html, body { min-height: 100dvh; }

body { display: flex; flex-direction: column; }
body main { flex-grow: 1; display: flex; flex-direction: column; }

/*** ---------- Containers ---------- ***/
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { --bs-gutter-x: 2rem; }

@media (min-width: 1500px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 75%; }
}

.note-editor {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.note-editor .note-toolbar {
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

.note-editor .note-editing-area .note-editable {
    padding: 0.75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.note-editor .note-statusbar {
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-secondary-bg);
}

.note-editor.note-frame.codeview .note-codable {
    border: none;
    box-shadow: none;
}

.note-editor.note-frame .note-editing-area .note-editable {
    border: none;
    box-shadow: none;
}

.note-editor .note-btn {
    border-radius: var(--bs-border-radius-sm);
}

.note-editor .note-btn:hover {
    background-color: var(--bs-secondary-bg);
}

.note-editor .note-btn [class^="bi-"]:before,
.note-editor .note-btn [class*=" bi-"]:before {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.note-editor .note-btn i[class^="bi-"],
.note-editor .note-btn i[class*=" bi-"] {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    font-family: "bootstrap-icons" !important;
}

.note-editor .note-toolbar .note-btn {
    font-family: inherit;
}

.note-editor .note-toolbar .note-btn i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.note-editor .note-toolbar .dropdown-menu,
.note-editor .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    display: none !important;
    min-width: 160px;
    padding: 0.5rem 0;
    margin: 0;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    top: 100%;
    left: 0;
}

.note-editor .note-toolbar .dropdown-menu.show,
.note-editor .dropdown-menu.show {
    display: block !important;
}

.note-editor .note-btn-group .dropdown-menu {
    position: absolute !important;
    display: none !important;
    z-index: 1051 !important;
}

.note-editor .note-btn-group .dropdown-menu.show {
    display: block !important;
}

.note-editor .note-toolbar .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--bs-body-color);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.note-editor .note-toolbar .dropdown-item:hover,
.note-editor .note-toolbar .dropdown-item:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
}

.note-editor .note-toolbar .dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.note-editor .note-toolbar .dropdown {
    position: relative;
}