.kdoc-editor-modal .modal-content {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.kdoc-editor-modal .kdoc-modal-header {
    flex: 0 0 auto;
    min-height: 62px;
    background: #fff;
}

.kdoc-editor-modal .kdoc-info-bar {
    flex: 0 0 auto;
    background: #f8f9fa;
}

.kdoc-editor-modal .kdoc-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #e9edf3;
}

.kdoc-editor-modal .note-editor.note-frame {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #e9edf3;
}

.kdoc-editor-modal .note-toolbar {
    flex: 0 0 auto;
    position: relative;
    z-index: 1060 !important;
    overflow: visible !important;
    white-space: normal;
    border: 0;
    border-bottom: 1px solid #d5dbe4;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 7px rgba(31, 41, 55, .12);
}

.kdoc-editor-modal .note-toolbar .dropdown-menu,
.kdoc-editor-modal .note-toolbar .note-dropdown-menu,
.kdoc-editor-modal .note-popover {
    z-index: 1070 !important;
}

.kdoc-editor-modal .kdoc-margin-dropdown .dropdown-menu {
    width: 320px;
    max-width: calc(100vw - 24px);
    z-index: 1090;
}

.kdoc-editor-modal .note-editing-area {
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow: auto;
    padding: 24px;
    background: #34383e;
}

.kdoc-editor-modal .note-editable {
    --kdoc-margin-top: 25.4mm;
    --kdoc-margin-right: 25.4mm;
    --kdoc-margin-bottom: 25.4mm;
    --kdoc-margin-left: 25.4mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: max-content;
    min-width: 210mm;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212529;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
}

.kdoc-editor-modal .kdoc-page {
    position: relative;
    flex: 0 0 297mm;
    width: 210mm;
    height: 297mm;
    padding: var(--kdoc-margin-top) var(--kdoc-margin-right) var(--kdoc-margin-bottom) var(--kdoc-margin-left);
    overflow: hidden;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
}

.kdoc-editor-modal .kdoc-page-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    outline: 0;
}

.kdoc-editor-modal .note-editable p {
    margin-bottom: 9pt;
}

.kdoc-editor-modal .note-editable table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10pt;
}

.kdoc-editor-modal .note-editable th,
.kdoc-editor-modal .note-editable td {
    border: 1px solid #6c757d;
    padding: 5pt;
    vertical-align: top;
}

.kdoc-editor-modal .note-editable th {
    background: #f1f3f5;
}

[data-theme="dark"] .kdoc-editor-modal .kdoc-modal-header,
[data-theme="dark"] .kdoc-editor-modal .note-toolbar {
    background: #242424;
}

[data-theme="dark"] .kdoc-editor-modal .kdoc-info-bar {
    background: #1e1e1e;
}

[data-theme="dark"] .kdoc-editor-modal .note-editing-area {
    background: #202224;
}

@media (max-width: 767.98px) {
    .kdoc-editor-modal .kdoc-modal-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .kdoc-editor-modal .kdoc-modal-header > .d-flex {
        width: 100%;
        justify-content: flex-start !important;
    }

    .kdoc-editor-modal .note-editing-area {
        padding: 12px;
    }
}
