/* Compatibility patch for newer Summernote on our legacy Bootstrap/jQuery/SmartAdmin stack. */
.note-popover .popover-content .note-color-all .note-dropdown-menu,
.note-editor .note-toolbar .note-color-all .note-dropdown-menu {
    min-width: 340px;
}

.note-popover .popover-content .note-color .note-dropdown-menu .note-palette,
.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette {
    display: inline-block;
    margin: 0;
    vertical-align: top;
    width: 160px;
}

.note-popover .popover-content .note-color .note-dropdown-menu .note-palette:first-child,
.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette:first-child {
    margin: 0 5px;
}

.note-popover .popover-content .note-style .note-current-style,
.note-editor .note-toolbar .note-style .note-current-style {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.note-popover .popover-content .note-style .dropdown-toggle,
.note-editor .note-toolbar .note-style .dropdown-toggle {
    text-align: start;
    width: 11rem;
}

.note-popover .popover-content .note-style .dropdown-toggle .note-current-style,
.note-editor .note-toolbar .note-style .dropdown-toggle .note-current-style {
    width: calc(100% - 1.25rem);
}
