html,
body {
    height: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef2f7 50%, #e9eef5 100%);
    color: #212529;
}

:root {
    --sidebar-width: 260px;
    --todo-sidebar-width: 320px;
    --rail-toggle-width: 18px;
    --rail-toggle-height: 68px;
}

.layout-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    background-color: inherit;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.06) 0%, rgba(255, 255, 255, 0.92) 65%, #ffffff 100%);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, padding 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    border-right: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 2px 0 18px rgba(15, 46, 97, 0.08);
    z-index: 1060;
}

@media (min-width: 992px) {
    body:not(.sidebar-collapsed) .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        align-self: flex-start;
    }
}

.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
}

.sidebar-toggle-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.sidebar-toggle-icon .icon-expand {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle-icon .icon-collapse {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle-icon .icon-expand {
    display: block;
}

button.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.16);
    background: rgba(255, 255, 255, 0.75);
    color: #0b3d91;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.1;
}

button.sidebar-toggle:hover,
button.sidebar-toggle:focus {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.18);
    color: #063073;
}

button.sidebar-toggle:focus {
    outline: 2px solid rgba(13, 110, 253, 0.3);
    outline-offset: 2px;
}

button.sidebar-toggle:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
}

body.sidebar-collapsed button.sidebar-toggle {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.08) 100%);
    color: #1f2937;
}

.sidebar-toggle-text {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bookmark-toggle-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.bookmark-dropdown-menu {
    min-width: 260px;
    max-width: 320px;
}

.bookmark-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bookmark-dropdown-menu li + li {
    margin-top: 0.35rem;
}

.bookmark-dropdown-menu a {
    text-decoration: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 63, 0.35);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.todo-sidebar {
    width: var(--todo-sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
    padding: 1.5rem 1.25rem;
    border-left: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: -2px 0 18px rgba(15, 46, 97, 0.08);
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    z-index: 1050;
}

@media (min-width: 992px) {
    body:not(.todo-sidebar-collapsed) .todo-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        align-self: flex-start;
    }
}

body.todo-sidebar-collapsed .todo-sidebar {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    border-left: none;
    box-shadow: none;
    overflow: hidden;
}

.todo-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.todo-sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.todo-sidebar-toggle {
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
}

.todo-section + .todo-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
}

.todo-section .section-heading {
    margin-bottom: 0.25rem;
}

.todo-section-toggle {
    border: 1px solid rgba(102, 112, 133, 0.3);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.todo-section-toggle:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.todo-section-toggle:hover {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.todo-section-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .todo-section-toggle-icon {
    transform: rotate(180deg);
}

.todo-list {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.todo-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.65rem;
    padding: 0.55rem 0.65rem;
    background-color: #ffffff;
    margin-bottom: 0.55rem;
}

.todo-card:last-child {
    margin-bottom: 0;
}

.todo-card .fw-semibold {
    font-size: 0.95rem;
}

.todo-card .small {
    font-size: 0.78rem;
}

.todo-checkbox-form .form-check-input {
    margin-top: 0.15rem;
}

.todo-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 63, 0.4);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.todo-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .todo-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 360px);
        padding: 1.25rem;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    body.todo-sidebar-collapsed .todo-sidebar {
        width: min(80vw, 360px);
        padding: 1.25rem;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(100%);
    }
}

.todo-sidebar-rail-toggle {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #0d6efd 0%, #3f6fce 100%);
    width: var(--rail-toggle-width);
    height: var(--rail-toggle-height);
    border-radius: 999px 0 0 999px;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: fixed;
    right: var(--todo-sidebar-width);
    top: 50%;
    transform: translate3d(0, -50%, 0);
    z-index: 1060;
    color: #ffffff;
}

.todo-sidebar-rail-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 1px;
}

.todo-sidebar-rail-toggle:hover {
    transform: translate3d(-3px, -50%, 0);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.28);
}

.todo-sidebar-rail-toggle.collapsed {
    background: linear-gradient(180deg, #6c757d 0%, #495057 100%);
}

.todo-sidebar-rail-icon::before {
    content: '\2039';
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

body.todo-sidebar-collapsed .todo-sidebar-rail-icon::before {
    content: '\203A';
}

body.todo-sidebar-collapsed .todo-sidebar-rail-toggle {
    right: 0;
}

@media (max-width: 991.98px) {
    .todo-sidebar-rail-toggle {
        width: 22px;
        height: 56px;
        bottom: 1.25rem;
        top: auto;
        transform: translate3d(0, 0, 0);
        right: min(80vw, 360px);
    }

    .todo-sidebar-rail-toggle:hover {
        transform: translate3d(-3px, 0, 0);
    }
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-fab-toggle {
    position: fixed;
    left: var(--sidebar-width);
    top: 50%;
    transform: translate3d(0, -50%, 0);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #0d6efd 0%, #3f6fce 100%);
    width: var(--rail-toggle-width);
    height: var(--rail-toggle-height);
    border-radius: 0 999px 999px 0;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 1300;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, left 0.2s ease;
}

body.sidebar-collapsed .sidebar-fab-toggle {
    left: 0;
}

.sidebar-fab-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 1px;
}

.sidebar-fab-toggle:hover {
    transform: translate3d(2px, -50%, 0);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.28);
}

.sidebar-fab-toggle.collapsed {
    background: linear-gradient(180deg, #6b7280 0%, #46505f 100%);
}

.sidebar-fab-toggle__icon::before {
    content: '\203A';
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-collapsed .sidebar-fab-toggle__icon::before {
    content: '\2039';
}

@media (max-width: 991.98px) {
    .sidebar-fab-toggle {
        top: auto;
        bottom: 1.25rem;
        transform: translate3d(0, 0, 0);
        width: 22px;
        height: 56px;
    }

    body:not(.sidebar-collapsed) .sidebar-fab-toggle {
        left: min(80vw, 260px);
    }

    .sidebar-fab-toggle:hover {
        transform: translate3d(2px, 0, 0);
    }
}

.sidebar-quick-menu {
    position: absolute;
    min-width: 240px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid rgba(15, 46, 97, 0.12);
    box-shadow: 0 20px 40px rgba(15, 46, 97, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: none;
    z-index: 1200;
}

.sidebar-quick-menu.show {
    display: block;
}

.sidebar-quick-menu .nav {
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-quick-menu .nav-link {
    border-radius: 0.6rem;
    padding: 0.5rem 0.75rem;
    color: #1f2937;
}

.sidebar-quick-menu .nav-link:hover,
.sidebar-quick-menu .nav-link:focus {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

body.sidebar-collapsed .sidebar {
    width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

body.sidebar-collapsed .sidebar-inner {
    opacity: 0;
    pointer-events: none;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    transition: opacity 0.2s ease;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    padding-bottom: 1rem;
}

.sidebar-title {
    font-size: 1.35rem;
    color: #0d6efd;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu .nav-link.active,
.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link:focus {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    text-decoration: none;
}

.main-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-inner--wide {
    max-width: 1440px;
    margin-inline: auto;
}

.content-surface {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(15, 46, 97, 0.12);
}

.direct-messages-widget-body {
    background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
    height: 100%;
}

.direct-messages-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem;
    gap: 0.75rem;
    color: #0f172a;
}

.direct-messages-widget__header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.direct-messages-widget__content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
}

.direct-messages-widget__conversations {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.direct-messages-widget__conversation-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.direct-messages-widget__conversation-item {
    display: block;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    color: inherit;
    text-decoration: none;
}

.direct-messages-widget__conversation-item:hover,
.direct-messages-widget__conversation-item:focus {
    background-color: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
}

.direct-messages-widget__conversation-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #4f8aff 100%);
    color: #fff;
}

.direct-messages-widget__conversation-item.active .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.direct-messages-widget__thread {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    gap: 0.75rem;
}

.direct-messages-widget__thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 0.75rem;
}

.direct-message-thread {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.direct-message-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.25rem;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(15, 46, 97, 0.12);
}

.message-bubble.message-incoming {
    align-self: flex-start;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.message-bubble.message-outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #0d6efd 0%, #4f8aff 100%);
    color: #fff;
}

.message-bubble .message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.message-bubble.message-outgoing .message-meta {
    color: rgba(255, 255, 255, 0.85);
}

.message-bubble.message-outgoing .message-body {
    color: #fff;
}

.direct-message-composer__controls {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.direct-message-composer__controls .form-control {
    flex: 1 1 auto;
    min-height: 2.75rem;
}

.direct-message-composer__controls .btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
}

.direct-message-composer__controls--compact .form-control {
    min-height: 2.25rem;
}

.direct-message-composer__controls--compact .btn {
    padding-inline: 0.85rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 260px;
        max-width: 80%;
        padding: 1.5rem 1.25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        transform: translateX(0);
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    body.sidebar-collapsed .sidebar {
        width: 0;
        padding: 0;
        transform: translateX(-100%);
    }

    .direct-messages-widget__content {
        grid-template-columns: minmax(0, 1fr);
    }

    .direct-messages-widget__conversations {
        max-height: 40%;
    }
}

.dm-hidden-by-new-conversation {
    display: none !important;
}

body.dm-new-conversation-open .direct-messages-page .direct-message-thread,
body.dm-new-conversation-open .direct-messages-page .direct-message-composer {
    display: none !important;
}





.direct-messages-widget__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px rgba(15, 46, 97, 0.08);
}

.direct-messages-widget__summary-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #4f8aff 0%, #0d6efd 100%);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
}

.direct-messages-widget__summary-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.direct-messages-widget__summary-name {
    font-weight: 600;
    color: #0f172a;
}

.direct-messages-widget__summary-meta {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.55);
}

.direct-messages-widget__summary-snippet {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.direct-messages-summary {
    margin-bottom: 1rem;
}


.direct-messages-widget__summary .btn {
    border-radius: 0.8rem;
    padding-inline: 0.9rem;
}


.direct-message-composer__controls .btn.btn-primary {
    background: linear-gradient(135deg, #4f8aff 0%, #0d6efd 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.25);
}

.direct-message-composer__controls .btn.btn-primary:hover,
.direct-message-composer__controls .btn.btn-primary:focus {
    filter: brightness(1.05);
}


.message-bubble .message-body {
    color: #0f172a;
    line-height: 1.4;
}


.message-menu-summary .direct-messages-widget__summary {
    gap: 0.75rem;
}

.messages-dropdown {
    min-width: 22rem;
}

.filter-multiselect {
    position: relative;
    width: 100%;
}

.filter-multiselect__toggle {
    width: 100%;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.15));
    background-color: #fff;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--bs-body-color, #212529);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-multiselect__toggle:focus {
    outline: 0;
    border-color: rgba(13, 110, 253, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.filter-multiselect__label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-multiselect__caret {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: rgba(73, 80, 87, 0.75);
}

.filter-multiselect__menu {
    width: 100%;
    max-height: 16.5rem;
    overflow-y: auto;
    padding: 0.75rem 1rem;
}

.filter-multiselect__menu .form-check + .form-check {
    margin-top: 0.5rem;
}

.home-main-container {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

.home-main-container .content-surface.content-surface--flush {
    background: transparent;
}

.home-dashboard {
    padding: clamp(1.25rem, 3vw, 3rem);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.5rem;
    box-shadow: 0 28px 45px rgba(15, 46, 97, 0.08);
}

.home-dashboard > .row + .row {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 575.98px) {
    .home-dashboard {
        padding: 1.25rem;
    }
}

.content-surface--flush {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.rich-text-input {
    display: none !important;
}

.rich-text-editor-container {
    position: relative;
}

.rich-text-editor {
    min-height: 8rem;
    padding: 0.75rem;
    overflow-y: auto;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: #fff;
}

.rich-text-editor:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: rgba(13, 110, 253, 0.6);
}

.rich-text-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(108, 117, 125, 0.85);
    pointer-events: none;
}

.rich-text-editor ul,
.rich-text-editor ol {
    padding-left: 1.25rem;
}

.rich-text-editor blockquote {
    border-left: 3px solid rgba(13, 110, 253, 0.2);
    margin: 0.5rem 0;
    padding-left: 0.75rem;
    color: rgba(12, 37, 74, 0.9);
}

.rich-text-underline {
    text-decoration: underline;
}

.rich-text-toolbar__color-group {
    position: relative;
}

.rich-text-color-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 10rem;
    margin-top: 0.25rem;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.375rem;
    padding: 0.25rem 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 2000;
}

.rich-text-color-menu.show {
    display: block;
}

.rich-text-color-menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
}

.rich-text-color-menu__item:hover,
.rich-text-color-menu__item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    outline: none;
}

.rich-text-color-menu__item--default .rich-text-color-menu__label {
    color: inherit;
}

.rich-text-color-menu__swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

.rich-text-color-menu__label {
    flex: 1 1 auto;
}

.rich-text-output mark,
.rich-text-editor mark {
    background-color: #fff2a8;
    padding: 0 0.2em;
    border-radius: 0.2em;
}

.rich-text-output .rich-text-color,
.rich-text-editor .rich-text-color {
    font-weight: inherit;
}

.rich-text-output .rich-text-color.rich-text-color-red,
.rich-text-editor .rich-text-color.rich-text-color-red {
    color: #b42318;
}

.rich-text-output .rich-text-color.rich-text-color-orange,
.rich-text-editor .rich-text-color.rich-text-color-orange {
    color: #c2410c;
}

.rich-text-output .rich-text-color.rich-text-color-yellow,
.rich-text-editor .rich-text-color.rich-text-color-yellow {
    color: #b58105;
}

.rich-text-output .rich-text-color.rich-text-color-green,
.rich-text-editor .rich-text-color.rich-text-color-green {
    color: #15803d;
}

.rich-text-output .rich-text-color.rich-text-color-teal,
.rich-text-editor .rich-text-color.rich-text-color-teal {
    color: #0f766e;
}

.rich-text-output .rich-text-color.rich-text-color-blue,
.rich-text-editor .rich-text-color.rich-text-color-blue {
    color: #2563eb;
}

.rich-text-output .rich-text-color.rich-text-color-purple,
.rich-text-editor .rich-text-color.rich-text-color-purple {
    color: #7c3aed;
}

.rich-text-output .rich-text-color.rich-text-color-pink,
.rich-text-editor .rich-text-color.rich-text-color-pink {
    color: #db2777;
}

.rich-text-output .rich-text-color.rich-text-color-gray,
.rich-text-editor .rich-text-color.rich-text-color-gray {
    color: #334155;
}

.phonebook-detail-card {
    position: sticky;
    top: 1.5rem;
}

.phonebook-contact-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phonebook-contact-list li + li {
    margin-top: 0.35rem;
}

.phonebook-contact-list a {
    word-break: break-word;
}

.phonebook-add-action {
    white-space: nowrap;
}

.schedule-grid-wrapper {
    position: relative;
}

.schedule-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.schedule-grid {
    table-layout: fixed;
    width: 100%;
}

.schedule-grid th:first-child,
.schedule-grid td:first-child {
    width: 220px;
    min-width: 220px;
}

.schedule-grid th:not(:first-child),
.schedule-grid td:not(:first-child) {
    width: 140px;
    min-width: 140px;
    word-break: break-word;
}

@media (min-width: 992px) {
    .schedule-side-panel {
        position: sticky;
        top: 1rem;
    }
}

.realtime-notification-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1080;
}

.realtime-notification {
    background-color: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    min-width: 220px;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.realtime-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.realtime-notification.realtime-notification-log {
    background-color: #0f766e;
}

.realtime-notification.realtime-notification-message {
    background-color: #2563eb;
}

.realtime-notification-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.realtime-notification-body {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.realtime-notification-hide {
    opacity: 0;
    transform: translateY(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5edff;
    color: #1d4ed8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.user-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.user-avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
}

.user-avatar--xl {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.user-avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
