.tiptap-wrapper {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.tiptap-wrapper .btn-list {
    margin-bottom: 0.5rem;
}

.tiptap-editor {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.tiptap-editor > .tiptap {
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 0.75rem;
    overflow-y: auto;
    outline: none;
}

.tiptap-editor > .tiptap > *:first-child {
    margin-top: 0;
}

.tiptap-editor > .tiptap > *:last-child {
    margin-bottom: 0;
}
.editor-mention {
    display: inline-block;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    background: var(--tblr-primary-lt);
    color: var(--tblr-primary);
    font-weight: 600;
}

.mention-suggestion-popup {
    position: absolute;
    z-index: 1080;
    min-width: 220px;
    max-height: 250px;
    padding: 0.25rem;
    overflow-y: auto;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    box-shadow: var(--tblr-box-shadow);
}

.mention-suggestion-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mention-suggestion-item:hover,
.mention-suggestion-item.active {
    background: var(--tblr-active-bg);
}

.mention-suggestion-empty {
    padding: 0.5rem 0.75rem;
}
.tiptap table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    table-layout: auto;
}

.tiptap td,
.tiptap th {
    min-width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--tblr-border-color);
    vertical-align: top;
}

.tiptap td > p,
.tiptap th > p {
    margin: 0;
}

.tiptap .selectedCell {
    background-color: var(--tblr-primary-lt);
}