/* Shared rich-text editor controls for public, panel, and admin pages. */
body .note-editor.note-frame {
    overflow: hidden;
    border: 1px solid #c9e3f8 !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
}

body .note-editor .note-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 7px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #d5e9fa !important;
    background: #f0f8ff !important;
}

body .note-editor .note-toolbar .note-btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin: 2px 3px 2px 0 !important;
}

body .note-editor .note-toolbar button.note-btn,
body .note-editor .note-toolbar .note-btn {
    display: inline-flex;
    min-width: 38px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px !important;
    border: 1px solid #c5ddf7 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #245b9d !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body .note-editor .note-toolbar button.note-btn:hover,
body .note-editor .note-toolbar button.note-btn:focus,
body .note-editor .note-toolbar button.note-btn.active,
body .note-editor .note-toolbar button.note-btn:active,
body .note-editor .note-toolbar .note-btn:hover,
body .note-editor .note-toolbar .note-btn:focus,
body .note-editor .note-toolbar .note-btn.active,
body .note-editor .note-toolbar .note-btn:active {
    border-color: #8fc8f1 !important;
    background: #e4f3ff !important;
    color: #174f91 !important;
    box-shadow: none !important;
}

body .note-editor .note-toolbar .note-btn .note-icon-caret,
body .note-editor .note-toolbar .note-btn .note-icon-caret:before {
    color: #245b9d !important;
}

body .note-editor .note-dropdown-menu,
body .note-editor .note-palette {
    border: 1px solid #c9e3f8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(29, 68, 111, .14) !important;
}

body .note-editor .note-dropdown-item:hover,
body .note-editor .note-dropdown-item:focus,
body .note-editor .note-palette button:hover {
    background: #eaf6ff !important;
    color: #174f91 !important;
}

body .note-editor .note-editing-area .note-editable {
    background: #fff;
}

@media (max-width: 575px) {
    body .note-editor .note-toolbar {
        gap: 3px;
        padding: 6px !important;
    }

    body .note-editor .note-toolbar .note-btn-group {
        gap: 3px;
        margin-right: 2px !important;
    }

    body .note-editor .note-toolbar button.note-btn,
    body .note-editor .note-toolbar .note-btn {
        min-width: 34px;
        min-height: 36px;
        padding: 5px 8px !important;
    }
}
