/* Loaded AFTER summernote.css — dark-theme + HTML5 <i/> unwrap fixes */

/* Summernote builds <i class="note-icon-…"/> which HTML5 treats as an OPEN tag,
   so dropdown labels end up INSIDE the icon and inherit visibility:hidden.
   Keep the icon glyph on ::before; always show the label text. */
.note-editor .note-dropdown-menu.note-check > .dropdown-item,
.note-editor .note-dropdown-menu.note-check > a.dropdown-item {
	color: #e8eaed !important;
	visibility: visible !important;
}
.note-editor .note-dropdown-menu.note-check > .dropdown-item > i,
.note-editor .note-dropdown-menu.note-check > a.dropdown-item > i {
	/* do not hide the whole <i> — label may be a child of it */
	visibility: visible !important;
	font-style: normal !important;
	color: inherit !important;
	speak: normal;
}
.note-editor .note-dropdown-menu.note-check > .dropdown-item > i::before,
.note-editor .note-dropdown-menu.note-check > a.dropdown-item > i::before {
	visibility: hidden;
	color: #F03D1E !important;
	margin-right: .4rem;
}
.note-editor .note-dropdown-menu.note-check > .dropdown-item.checked > i::before,
.note-editor .note-dropdown-menu.note-check > a.dropdown-item.checked > i::before {
	visibility: visible;
}
.note-editor .note-dropdown-menu.note-check .dropdown-item span,
.note-editor .note-dropdown-menu.note-check .dropdown-item i span,
.note-editor .note-dropdown-menu .dropdown-item,
.note-editor .note-dropdown-menu .dropdown-item span,
.note-editor .dropdown-fontname .dropdown-item,
.note-editor .dropdown-fontname .dropdown-item span,
.note-editor .note-current-fontname,
.note-editor .note-current-fontsize {
	color: #e8eaed !important;
	visibility: visible !important;
	opacity: 1 !important;
	font-style: normal !important;
}

[data-bs-theme=light] .note-editor .note-dropdown-menu.note-check > .dropdown-item,
[data-bs-theme=light] .note-editor .note-dropdown-menu.note-check > a.dropdown-item,
[data-bs-theme=light] .note-editor .note-dropdown-menu .dropdown-item,
[data-bs-theme=light] .note-editor .note-dropdown-menu .dropdown-item span,
[data-bs-theme=light] .note-editor .dropdown-fontname .dropdown-item span,
[data-bs-theme=light] .note-editor .note-current-fontname,
[data-bs-theme=light] .note-editor .note-current-fontsize {
	color: #212529 !important;
}

.note-editor .note-dropdown-menu .dropdown-item:hover,
.note-editor .note-dropdown-menu .dropdown-item:hover span,
.note-editor .note-dropdown-menu .dropdown-item:hover i span {
	color: #fff !important;
}

/* Editor chrome */
[data-bs-theme=dark] .note-editor.note-frame,
[data-bs-theme=dark] .note-editor.note-airframe {
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color) !important;
	box-shadow: none !important;
}
[data-bs-theme=dark] .note-editor .note-toolbar.card-header,
[data-bs-theme=dark] .card-header.note-toolbar {
	background-color: var(--bs-tertiary-bg, var(--bs-secondary-bg)) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bs-border-color) !important;
	box-shadow: none !important;
}
[data-bs-theme=dark] .note-toolbar .note-btn-group,
[data-bs-theme=dark] .note-toolbar .btn-group {
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
}
[data-bs-theme=dark] .note-toolbar .note-btn,
[data-bs-theme=dark] .note-toolbar .btn-light {
	background-color: transparent !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	color: var(--bs-body-color) !important;
}
[data-bs-theme=dark] .note-editor.note-frame .note-editing-area .note-editable {
	background-color: var(--bs-body-bg) !important;
	color: var(--bs-body-color) !important;
}
[data-bs-theme=dark] .note-editor .note-statusbar,
[data-bs-theme=dark] .note-editor.note-frame .note-statusbar {
	background-color: var(--bs-tertiary-bg, var(--bs-secondary-bg)) !important;
	border-top: 1px solid var(--bs-border-color) !important;
}
[data-bs-theme=dark] .note-editor .note-statusbar .note-resizebar .note-icon-bar {
	border-top-color: var(--bs-secondary-color) !important;
	opacity: 0.55;
}
[data-bs-theme=dark] .note-dropdown-menu,
[data-bs-theme=dark] .note-toolbar .dropdown-menu {
	background-color: var(--bs-body-bg) !important;
	border-color: var(--bs-border-color) !important;
}
[data-bs-theme=dark] .note-color-reset,
[data-bs-theme=dark] .note-color-select,
[data-bs-theme=dark] .note-palette .btn-light {
	background-color: var(--bs-secondary-bg) !important;
	border-color: var(--bs-border-color) !important;
	color: #e8eaed !important;
}
[data-bs-theme=dark] .note-palette-title {
	color: var(--bs-secondary-color) !important;
}

.modal .note-editor,
.modal .note-toolbar,
.modal .note-btn-group {
	overflow: visible !important;
}
.modal .note-dropdown-menu.dropdown-menu {
	z-index: 1080;
}
