.note-editor.note-frame.fullscreen {
    z-index: 99999999;
    background: #FFF;
}

.note-editing-area {
    background: #FFF;
    border: 1px solid rgb(219, 219, 219);
}

.note-editor.note-frame,
.note-editor .note-toolbar,
.note-editor.note-frame .note-statusbar {
    background: inherit;
    border: 0;
}

.panel-heading.note-toolbar {
    padding: 0 0 7px 0;
    border: 0 !important;
}

.note-editor .form-group {
    padding: 15px 10px 15px 15px;
}

.note-editor div.checkbox {
    padding: 0 20px;
}

.note-editor .btn {
    padding: 4px 12px;
    background-color: #e3e3e3;
    color: #0a0a0a;
}

.note-editor .btn:hover {
    background-color: #d3d3d3;
}

.note-image-input {
    border: 0;
}

textarea.summernote {
    min-height: 200px;
}

textarea.summernote.large,
textarea.summernote.extended {
    min-height: 400px;
}

.dropdown-nugget a {
    display: block;
    font-size: .9em;
    padding: .3em .4em;
    white-space: nowrap;
}

.dropdown-nugget a:nth-child(even) {
    background: #F9F9F9;
}

.dropdown-nugget hr {
    margin: .8em 0;
}

.note-editable .nugget {
    font-family: "Courier New";
}

.note-toggle {
    float: right;
}

.note-toggle .btn {
    background-color: transparent !important;
}

.note-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    transition: all .1s ease-in-out;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    cursor: pointer;
}

.note-overlay:hover {
    background: rgba(0, 0, 0, 0.1);
}

.note-editor .note-overlay .btn {
    background-color: #000;
    border: 2px solid #000;
    color: #FFF !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3em;
}

.note-group-select-from-files {
    display: none !important;
}

/* Filemanager browse link inside Summernote URL dialogs */
.note-editor .fm-browse {
    display: inline-block;
    margin-top: 5px;
}

/*
 * Self-contained filemanager picker overlay.
 *
 * Used instead of swal() so the picker can stack on top of an editor that
 * is itself hosted inside a swal layer — sweetalert2 v7 is single-instance
 * and would otherwise replace (and tear down) the outer swal.
 */
.fm-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-picker-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.fm-picker-dialog {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: calc(100vw - 40px);
    max-width: 1600px;
    /* no fixed height — header keeps its natural height and the frame
       wrapper grows with content via filemanager's auto-resize. The
       outer max-height keeps the dialog inside the viewport when the
       iframe's content cap (90vh) plus chrome would push it off-screen. */
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.fm-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.fm-picker-title {
    font-size: 1.1em;
    font-weight: 600;
}

.fm-picker-close {
    background: transparent;
    border: 0;
    padding: 4px 10px;
    font-size: 1.2em;
    cursor: pointer;
    color: #999;
}

.fm-picker-close:hover {
    color: #d9534f;
}

.fm-picker-frame-wrap {
    /* initial visible area until the filemanager iframe reports its
       actual content height (initEditorAutoResize then sets style.height
       on this element directly) */
    height: 600px;
}

.fm-picker-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}