@font-face {
    font-family: 'Signika';
    src: url('/assets/fonts/signika/Signika-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Signika';
    src: url('/assets/fonts/signika/Signika-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Signika';
    src: url('/assets/fonts/signika/Signika-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Signika';
    src: url('/assets/fonts/signika/Signika-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Signika';
    src: url('/assets/fonts/signika/Signika-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-font-sans: 'Signika', 'Segoe UI', sans-serif;
    --app-font-display: Georgia, 'Times New Roman', serif;
    --app-bg: #f4f7f3;
    --app-surface: rgba(255, 255, 255, 0.92);
    --app-surface-strong: #ffffff;
    --app-surface-muted: #eef4ef;
    --app-border: #d7e3d6;
    --app-border-strong: #bdd0bf;
    --app-text: #173126;
    --app-text-muted: #5f7269;
    --app-primary: #185c42;
    --app-primary-strong: #10412f;
    --app-primary-soft: #dfeee6;
    --app-secondary: #3f7f63;
    --app-accent: #c6922b;
    --app-danger: #b94a3c;
    --app-warning: #c97d1d;
    --app-success: #1f7a4d;
    --app-info: #2f6886;
    --app-shadow-sm: 0 10px 24px rgba(16, 65, 47, 0.06);
    --app-shadow-md: 0 18px 48px rgba(16, 65, 47, 0.10);
    --app-radius-sm: 10px;
    --app-radius-md: 16px;
    --app-radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--app-font-sans);
    background:
        radial-gradient(circle at top left, rgba(198, 146, 43, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(63, 127, 99, 0.12), transparent 28%),
        linear-gradient(180deg, #f7faf7 0%, var(--app-bg) 100%);
    color: var(--app-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--app-primary-strong);
}

a {
    color: var(--app-primary);
}

a:hover {
    color: var(--app-primary-strong);
}

.container-fluid {
    position: relative;
}

#sidebar {
    background:
        linear-gradient(180deg, rgba(16, 65, 47, 0.98) 0%, rgba(24, 92, 66, 0.98) 52%, rgba(63, 127, 99, 0.96) 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 14px 0 40px rgba(16, 65, 47, 0.16);
}

#sidebar .sidebar-header {
    padding: 1.5rem 1.4rem 1.15rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

#sidebar .sidebar-header h4 {
    margin: 0;
    font-family: var(--app-font-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: #f4f8f5;
}

#sidebar ul.components {
    padding: 0.9rem 0 1.4rem;
}

#sidebar ul li {
    margin: 0.15rem 0;
}

#sidebar ul li a {
    margin: 0 0.75rem;
    border-left: 0;
    border-radius: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(244, 248, 245, 0.92);
    display: block;
}

#sidebar .nav-link {
    color: rgba(244, 248, 245, 0.92) !important;
    background: transparent;
    border-left-color: transparent;
}

#sidebar .collapse .nav-link {
    color: rgba(231, 240, 234, 0.88) !important;
    background: transparent !important;
}

#sidebar ul li a i,
#sidebar ul li a span,
#sidebar ul li a small {
    color: inherit;
}

#sidebar ul li a:hover,
#sidebar ul li a:focus,
#sidebar ul li.active > a,
#sidebar ul li a[aria-current='page'] {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link:hover,
#sidebar .nav-link:focus,
#sidebar .nav-link.active,
#sidebar .collapse .nav-link:hover,
#sidebar .collapse .nav-link:focus,
#sidebar .collapse .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-left-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link .ms-auto,
#sidebar .collapse .nav-link .menu-icon--sub i {
    color: rgba(244, 248, 245, 0.8) !important;
}

#mobileMenu .nav-link {
    color: rgba(244, 248, 245, 0.94) !important;
    background: transparent !important;
    border-left-color: transparent !important;
}

#mobileMenu .collapse .nav-link {
    color: rgba(231, 240, 234, 0.88) !important;
    background: transparent !important;
}

#mobileMenu .nav-link:hover,
#mobileMenu .nav-link:focus,
#mobileMenu .nav-link.active,
#mobileMenu .collapse .nav-link:hover,
#mobileMenu .collapse .nav-link:focus,
#mobileMenu .collapse .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-left-color: transparent !important;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(189, 208, 191, 0.85);
    box-shadow: 0 10px 24px rgba(16, 65, 47, 0.06);
    padding: 0.95rem 1.35rem;
}

.navbar-brand {
    font-weight: 600;
    color: var(--app-primary-strong) !important;
}

.date-widget {
    border: 1px solid rgba(189, 208, 191, 0.85);
    color: var(--app-text);
}

.notification-bell-btn,
.profile-pill,
.btn.btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(24, 92, 66, 0.18);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.notification-bell-btn:hover,
.profile-pill:hover {
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    border-color: transparent;
}

.profile-pill {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card,
.dashboard-card,
.glass-card,
.stats-card,
.kpi-card,
.facility-card,
.rf-card {
    background: var(--app-surface);
    border: 1px solid rgba(189, 208, 191, 0.72);
    border-radius: var(--app-radius-md);
    box-shadow: var(--app-shadow-sm);
}

.card:hover,
.dashboard-card:hover,
.stats-card:hover,
.kpi-card:hover,
.facility-card:hover {
    box-shadow: var(--app-shadow-md);
}

.card-header,
.rf-card__header {
    background: linear-gradient(135deg, rgba(24, 92, 66, 0.08), rgba(198, 146, 43, 0.08));
    border-bottom: 1px solid rgba(189, 208, 191, 0.7);
}

.form-control,
.form-select,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 12px !important;
    border-color: var(--app-border) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    min-height: 46px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--app-secondary) !important;
    box-shadow: 0 0 0 0.22rem rgba(63, 127, 99, 0.14) !important;
}

.form-label,
label {
    color: var(--app-text);
    font-weight: 600;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(223, 238, 230, 0.42);
    --bs-table-hover-bg: rgba(198, 146, 43, 0.08);
    border-color: var(--app-border);
}

.table thead th {
    color: var(--app-primary-strong);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge,
.gradient-badge,
.status-badge {
    border-radius: 999px;
}

.alert {
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: var(--app-shadow-sm);
}

.alert-info {
    border-color: rgba(47, 104, 134, 0.18);
}

.alert-success {
    border-color: rgba(31, 122, 77, 0.18);
}

.alert-warning {
    border-color: rgba(201, 125, 29, 0.18);
}

.alert-danger {
    border-color: rgba(185, 74, 60, 0.18);
}

.dropdown-menu {
    border: 1px solid rgba(189, 208, 191, 0.78);
    border-radius: 16px;
    box-shadow: var(--app-shadow-md);
}

.dropdown-item:active,
.dropdown-item.active {
    background: var(--app-primary-soft);
    color: var(--app-primary-strong);
}

.progress {
    background: rgba(223, 238, 230, 0.72);
}

.progress-bar {
    background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.85rem 1rem;
    }

    #content .container-fluid.py-4 {
        padding-top: 1.25rem !important;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .card,
    .dashboard-card,
    .stats-card,
    .facility-card {
        border-radius: 14px;
    }
}

/* ------------------------------------------------------------------------- */
/* Modern dashboard shell                                                     */
/* ------------------------------------------------------------------------- */

:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --shell-emerald-950: #0c2f25;
    --shell-emerald-900: #123f31;
    --shell-emerald-760: #1f654e;
    --shell-blue: #315f79;
    --shell-gold: #c9922e;
    --shell-ivory: #f7faf6;
    --shell-line: rgba(219, 231, 222, 0.72);
    --shell-glass: rgba(255, 255, 255, 0.72);
    --shell-shadow: 0 18px 48px rgba(12, 47, 37, 0.14);
    --shell-focus: 0 0 0 0.22rem rgba(201, 146, 46, 0.24);
}

body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(247, 250, 246, 0.98), rgba(232, 241, 236, 0.94) 52%, rgba(237, 244, 246, 0.98)),
        var(--shell-ivory);
}

#sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f7fbf8;
    background:
        linear-gradient(180deg, rgba(12, 47, 37, 0.98), rgba(18, 63, 49, 0.98) 48%, rgba(31, 101, 78, 0.97)),
        var(--shell-emerald-900);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 18px 0 46px rgba(12, 47, 37, 0.18);
    transition: width 0.24s ease, box-shadow 0.24s ease;
}

#sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%);
}

#sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

#sidebar .sidebar-header,
#mobileMenu .mobile-menu-header {
    position: relative;
    z-index: 1;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f7fbf8;
    text-decoration: none;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
    color: #ffffff;
}

.sidebar-brand__mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 24px rgba(4, 26, 20, 0.18);
}

.sidebar-brand__mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.sidebar-brand__text {
    min-width: 0;
    display: grid;
    gap: 0.05rem;
    transition: opacity 0.18s ease, width 0.18s ease;
}

.sidebar-brand__name {
    font-size: 1.22rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.sidebar-brand__meta {
    color: rgba(232, 241, 236, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
}

.sidebar-status {
    flex: 0 0 auto;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    color: #fff6de;
    background: rgba(201, 146, 46, 0.18);
    border: 1px solid rgba(201, 146, 46, 0.34);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: opacity 0.18s ease;
}

#sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding-inline: 0.75rem;
}

#sidebar.collapsed .sidebar-brand {
    gap: 0;
}

#sidebar.collapsed .sidebar-brand__text,
#sidebar.collapsed .sidebar-status {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

#sidebar ul.components,
#mobileMenu ul.components {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0.85rem 0.7rem 1.35rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar-version {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 251, 248, 0.8);
    font-size: 0.78rem;
}

.sidebar-version__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(232, 241, 236, 0.64);
}

.sidebar-version__value {
    font-weight: 700;
    color: #ffffff;
}

#sidebar.collapsed .sidebar-version {
    justify-content: center;
    padding-inline: 0.4rem;
}

#sidebar.collapsed .sidebar-version__label {
    display: none;
}

#sidebar ul.components::-webkit-scrollbar,
#mobileMenu ul.components::-webkit-scrollbar,
#mobileMenu .mobile-menu-body::-webkit-scrollbar {
    width: 6px;
}

#sidebar ul.components::-webkit-scrollbar-thumb,
#mobileMenu ul.components::-webkit-scrollbar-thumb,
#mobileMenu .mobile-menu-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

#sidebar .nav-item,
#mobileMenu .nav-item {
    margin: 0.18rem 0;
}

#sidebar .nav-link,
#mobileMenu .nav-link {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.45rem 0.6rem;
    color: rgba(247, 251, 248, 0.84) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#sidebar .nav-link::before,
#mobileMenu .nav-link::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.18s ease;
}

#sidebar .nav-link:hover,
#sidebar .nav-link:focus,
#mobileMenu .nav-link:hover,
#mobileMenu .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.11) !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
    transform: translateX(2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 10px 22px rgba(4, 26, 20, 0.12);
}

#sidebar .nav-link.active,
#sidebar .nav-item.active > .nav-link,
#mobileMenu .nav-link.active,
#mobileMenu .nav-item.active > .nav-link {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.10)),
        rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        inset 0 -18px 32px rgba(12, 47, 37, 0.10),
        0 14px 26px rgba(4, 26, 20, 0.16);
}

#sidebar .nav-link.active::before,
#sidebar .nav-item.active > .nav-link::before,
#mobileMenu .nav-link.active::before,
#mobileMenu .nav-item.active > .nav-link::before {
    background: linear-gradient(180deg, #ffd98c, var(--shell-gold));
}

.menu-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: rgba(247, 251, 248, 0.92);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#sidebar .menu-icon i,
#mobileMenu .menu-icon i,
.menu-icon i {
    width: 1em;
    height: 1em;
    margin: 0;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    text-align: center;
    font-size: 0.95rem;
}

#sidebar .menu-icon i::before,
#mobileMenu .menu-icon i::before,
.menu-icon i::before {
    display: block;
    line-height: 1;
    vertical-align: 0;
}

.shell-icon-btn i,
.date-widget i {
    width: 1.1em;
    line-height: 1;
    text-align: center;
}

.nav-link:hover .menu-icon,
.nav-link:focus .menu-icon,
.nav-link.active .menu-icon,
.nav-item.active > .nav-link .menu-icon {
    color: #fff6de;
    background: rgba(201, 146, 46, 0.20);
    border-color: rgba(201, 146, 46, 0.30);
    transform: translateY(-1px);
}

.menu-label {
    min-width: 0;
    color: inherit;
    line-height: 1.15;
    white-space: normal;
}

.menu-chevron {
    color: rgba(247, 251, 248, 0.64) !important;
    transition: transform 0.18s ease;
}

.nav-link:not(.collapsed) .menu-chevron {
    transform: rotate(180deg);
}

#sidebar .collapse,
#mobileMenu .collapse {
    width: 100%;
}

#sidebar .collapse .nav-link,
#mobileMenu .collapse .nav-link {
    min-height: 42px;
    margin-left: 0.55rem;
    padding-left: 0.5rem !important;
    color: rgba(232, 241, 236, 0.78) !important;
    font-size: 0.88rem;
}

.menu-icon--sub {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

#sidebar.collapsed ul.components {
    padding-inline: 0.5rem;
}

#sidebar.collapsed .nav-link {
    justify-content: center;
    gap: 0;
    min-height: 48px;
    padding-inline: 0.4rem;
}

#sidebar.collapsed .menu-label,
#sidebar.collapsed .menu-chevron {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

#sidebar.collapsed .menu-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

#sidebar.collapsed .collapse {
    display: none !important;
}

#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: width 0.24s ease, margin-left 0.24s ease;
}

#content.expanded {
    width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 72px;
    padding: 0.85rem 1.2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 247, 0.72)),
        var(--shell-glass);
    border-bottom: 1px solid rgba(189, 208, 191, 0.66);
    box-shadow: 0 12px 34px rgba(12, 47, 37, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar-custom::after {
    display: none;
}

.topbar-left {
    min-width: 0;
}

.topbar-context {
    min-width: 0;
    gap: 0.65rem;
}

.navbar-brand {
    max-width: min(34vw, 440px);
    overflow: hidden;
    color: var(--shell-emerald-950) !important;
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shell-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--shell-emerald-900);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(230, 240, 234, 0.86)),
        #ffffff;
    border: 1px solid rgba(189, 208, 191, 0.80);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px rgba(12, 47, 37, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.shell-icon-btn:hover,
.shell-icon-btn:focus {
    color: var(--shell-blue);
    background:
        linear-gradient(145deg, #ffffff, rgba(232, 241, 236, 0.92)),
        #ffffff;
    border-color: rgba(49, 95, 121, 0.28);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 28px rgba(12, 47, 37, 0.14);
}

.shell-icon-btn:focus-visible,
.profile-pill:focus-visible,
#sidebar .nav-link:focus-visible,
#mobileMenu .nav-link:focus-visible {
    outline: none;
    box-shadow: var(--shell-focus), 0 12px 24px rgba(12, 47, 37, 0.12);
}

.shell-icon-btn--ghost {
    color: rgba(247, 251, 248, 0.94);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.shell-icon-btn--ghost:hover,
.shell-icon-btn--ghost:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.date-widget {
    min-height: 36px;
    display: inline-flex;
    gap: 0.42rem;
    padding: 0.38rem 0.7rem;
    color: var(--app-text);
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(189, 208, 191, 0.72);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(12, 47, 37, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.date-widget i {
    color: var(--shell-blue);
}

.date-widget__divider {
    color: var(--app-text-muted);
}

.notification-bell-btn {
    position: relative;
    overflow: visible;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    color: #fff;
    background: linear-gradient(135deg, #c84e3f, #9f372c);
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.profile-pill {
    max-width: min(34vw, 230px);
    min-height: 42px;
    gap: 0.55rem;
    padding: 0.35rem 0.75rem 0.35rem 0.38rem;
    color: var(--shell-emerald-950);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 241, 235, 0.84)),
        #ffffff;
    border: 1px solid rgba(189, 208, 191, 0.78);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(12, 47, 37, 0.09);
}

.profile-pill:hover,
.profile-pill:focus {
    color: var(--shell-blue);
    border-color: rgba(49, 95, 121, 0.28);
}

.profile-pill img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.88);
}

.profile-pill__name {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    overflow: hidden;
    border-radius: 14px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    display: block;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    background: rgba(8, 32, 25, 0.44);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.overlay.show {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

#mobileMenu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2000;
    width: min(88vw, 320px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f7fbf8;
    background:
        linear-gradient(180deg, rgba(12, 47, 37, 0.98), rgba(18, 63, 49, 0.98) 50%, rgba(31, 101, 78, 0.98)),
        var(--shell-emerald-900);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 24px 0 58px rgba(4, 26, 20, 0.30);
    transform: translateX(-110%);
    transition: transform 0.24s ease;
}

#mobileMenu.show,
#mobileMenu.active {
    left: 0;
    transform: translateX(0);
}

#mobileMenu .mobile-menu-header {
    flex: 0 0 auto;
}

#mobileMenu .mobile-menu-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

#mobileMenu ul.components {
    height: 100%;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    #sidebar {
        display: none;
    }

    #content,
    #content.expanded {
        width: 100%;
        margin-left: 0;
    }

    .navbar-custom {
        min-height: 64px;
        padding: 0.72rem 0.85rem;
    }

    .navbar-brand {
        max-width: 46vw;
    }

    .profile-pill {
        max-width: 42vw;
        padding-right: 0.45rem;
    }

    .profile-pill__name {
        max-width: 22vw;
    }

    .shell-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
}

.icon-fw {
    width: 1.25em;
    text-align: center;
}

.icon-sm {
    font-size: 0.875em;
}

.icon-lg {
    font-size: 1.25em;
}

.icon-xl {
    font-size: 1.5em;
}

.icon-2x {
    font-size: 2em;
}

.icon-3x {
    font-size: 3em;
}

.icon-4x {
    font-size: 4em;
}

.icon-5x {
    font-size: 5em;
}

.bi-spin {
    animation: bi-spin 1s linear infinite;
}

.bi-beat {
    animation: bi-beat 1s ease-in-out infinite;
}

@keyframes bi-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bi-beat {
    45% {
        transform: scale(1.2);
    }
}
