:root {
    --sidebar-width: 280px;
    --primary: #06402B;
    --accent: #22C55E;
    --hover: #16A34A;
    --success: #4ADE80;
    --bg: #07150f;
    --bg-secondary: #0a1d15;
    --card-bg: rgba(20,45,35,0.92);
    --card-bg-solid: #0f241b;
    --card-hover: #123124;
    --borders: rgba(74,222,128,0.18);
    --glow: rgba(34,197,94,0.12);
    --text: #F8FAFC;
    --text-secondary: #B6D7C8;
    --sidebar-bg: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
    --sidebar-border: rgba(74,222,128,0.18);
    --sidebar-text: var(--text-secondary);
    --sidebar-text-active: var(--text);
    --sidebar-hover-bg: rgba(11, 42, 30, 0.78);
    --sidebar-active-bg: linear-gradient(135deg, rgba(15, 55, 38, 0.95), rgba(10, 40, 28, 0.95));
    --sidebar-highlight: rgba(74, 222, 128, 0.18);
    --sidebar-shadow: 0 20px 70px var(--glow);
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 20%),
                radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.08), transparent 22%),
                var(--sidebar-bg);
    overflow-x: hidden;
}

body.app-shell {
    min-height: 100vh;
}

/* Layered page background and secondary backdrop behind content */
body.app-shell .main-container {
    position: relative;
    z-index: 1;
}

/* Large soft gradient and light source layers behind the main container */
body.app-shell .main-container::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px 400px at 10% 10%, rgba(34,197,94,0.06), transparent 12%),
                radial-gradient(900px 600px at 90% 85%, rgba(34,197,94,0.03), transparent 12%);
    mix-blend-mode: screen;
    filter: blur(18px) saturate(1.05);
}

/* Subtle vignette and depth to focus content */
body.app-shell .main-container::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(closest-side, rgba(0,0,0,0) 60%, rgba(0,0,0,0.22) 100%);
    mix-blend-mode: multiply;
}

/* Secondary backdrop behind page content blocks to create hierarchy */
body.app-shell .page-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
body.app-shell .page-content::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    right: -1.5rem;
    top: -1.5rem;
    bottom: -1.5rem;
    z-index: 1;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 6px 30px rgba(2,6,12,0.30);
    pointer-events: none;
    filter: blur(0.6px);
}

.sidebar {
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    overflow-y: auto;
    box-shadow: var(--sidebar-shadow);
    border-right: 1px solid var(--sidebar-border);
    z-index: 1200;
    transition: transform 0.3s ease, width 0.3s ease;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    box-sizing: border-box;
}

.sidebar.mobile-closed {
    transform: translateX(-100%);
}

.sidebar.mobile-open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

html.sidebar-open,
html.sidebar-open body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Pages loaded inside the persistent admin shell keep only their content. */
body.app-content-embedded #shared-sidebar,
body.app-content-embedded .sidebar-overlay {
    display: none !important;
}

body.app-content-embedded .main-container {
    width: 100% !important;
    min-height: 100vh;
    margin-left: 0 !important;
}

html body.app-shell.facilities-embedded .main-container,
html body.app-shell.facilities-embedded .main-container.computer-labs-page,
html body.app-shell.facilities-embedded .facilities-main {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
}

.app-content-frame {
    display: block;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    border: 0;
    background: transparent;
    animation: none !important;
    will-change: auto;
}

.app-content-frame.app-content-frame-back {
    animation: none !important;
}

@keyframes app-content-frame-slide-in {
    from {
        opacity: 0;
        transform: translateX(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes app-content-frame-slide-in-back {
    from {
        opacity: 0;
        transform: translateX(-1.5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-content-frame,
    .app-content-frame.app-content-frame-back {
        animation: none;
    }
}

.sidebar-header {
    position: relative;
    padding: 1.2rem 1rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    background: linear-gradient(180deg, rgba(7, 25, 18, 0.7), rgba(6, 20, 14, 0.52));
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}

.sidebar-close-btn {
    display: none;
}

/* Profile block removed from sidebar */
.sidebar-profile {
    display: none !important;
}
.sidebar-profile-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(6,182,212,0.06));
    border: 1px solid var(--borders);
    color: var(--text);
    font-weight: 700;
}
.sidebar-profile-name {
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.sidebar-profile-role {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sidebar-logout {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.sidebar-logout:hover {
    background: rgba(34, 197, 94, 0.15);
    color: var(--text);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    min-height: 3.25rem;
    padding: 0.3rem 0.15rem;
}

.sidebar-logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(16,185,129,0.08));
    border: 1px solid rgba(74,222,128,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 24px rgba(34,197,94,0.12);
    font-size: 1.15rem;
    color: var(--accent);
    flex-shrink: 0;
}

.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #f8fafc;
    text-shadow: 0 0 18px rgba(110,231,183,0.12);
}

.sidebar-tagline {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(134, 239, 172, 0.85);
    margin-top: 0.22rem;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.5rem 0.8rem 1rem;
    position: sticky;
    bottom: 0;
    background: rgba(2, 10, 20, 0.95);
    backdrop-filter: blur(14px);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    margin: 0.3rem 0;
    border-radius: 0.85rem;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.nav-item i {
    width: 1.3rem;
    text-align: center;
    color: #4ADE80;
    font-size: 1.05rem;
}

.nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: #D1FAE5;
    border-left-color: rgba(74, 222, 128, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: #D1FAE5;
    border-left-color: rgba(74, 222, 128, 0.22);
    font-weight: 600;
    border: 1px solid rgba(74, 222, 128, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 20px rgba(6,64,43,0.12);
}

.sidebar-back-link {
    border-left-color: rgba(52, 211, 153, 0.25);
}

.sidebar-back-link:hover,
.sidebar-back-link:focus-visible {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.main-container {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: auto;
    max-width: none;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Strong enforcement: keep sidebar consistent across all pages */
/* Sidebar text and layout: avoid overriding icon fonts */
.sidebar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sidebar-text);
}

/* keep box-sizing universal inside sidebar but do not force text font on icons */
.sidebar * {
    box-sizing: border-box !important;
}

/* Apply unified typography only to text elements, not icon <i> elements */
.sidebar .nav-item,
.sidebar .sidebar-logo-text,
.sidebar .sidebar-tagline {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--sidebar-text) !important;
}

.sidebar {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border) !important;
}

/* Ensure Font Awesome icons render correctly inside the sidebar */
.sidebar i[class*="fa-"],
.sidebar i[class^="fa"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Force the sidebar to be fixed and visible above other page elements */
#sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1200 !important;
    display: block !important;
}

#sidebarOverlay {
    inset: 0 !important;
}

.sidebar .nav-item {
    padding: 0.75rem 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5rem !important;
    letter-spacing: 0 !important;
    gap: 0.75rem !important;
    border-radius: 0.85rem !important;
}

.sidebar .sidebar-nav-link,
.sidebar .sidebar-nav-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5rem !important;
}

body.app-shell .sidebar .nav-item > i {
    font-size: 1.25rem !important;
    width: 1.5rem !important;
    color: #4ADE80 !important;
}

body.app-shell .sidebar .nav-item:hover {
    background: var(--sidebar-hover-bg) !important;
    color: #D1FAE5 !important;
    border-left-color: rgba(74, 222, 128, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body.app-shell .sidebar .nav-item.active,
body.app-shell .sidebar .nav-item[aria-current="page"] {
    position: relative;
    overflow: hidden;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    font-weight: 600 !important;
    background: linear-gradient(110deg, rgba(34, 197, 94, 0.24), rgba(16, 68, 46, 0.72) 62%, rgba(8, 39, 29, 0.9)) !important;
    color: #ecfdf5 !important;
    border-left-color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.38) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 3px 0 0 #4ade80, 0 0 22px rgba(34,197,94,0.16) !important;
}

body.app-shell .sidebar .nav-item.active i,
body.app-shell .sidebar .nav-item[aria-current="page"] i {
    color: #86efac !important;
    filter: drop-shadow(0 0 6px rgba(74,222,128,0.65));
}

body.app-shell .sidebar .nav-item.active .sidebar-nav-label,
body.app-shell .sidebar .nav-item[aria-current="page"] .sidebar-nav-label {
    color: #ecfdf5 !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    font-weight: 600 !important;
}

@media (max-width: 1023px) {
    body.student-portal .main-container {
        margin-left: 0 !important;
    }

    body.student-portal .sidebar {
        width: min(82vw, 280px) !important;
        min-width: min(82vw, 280px) !important;
        max-width: min(82vw, 280px) !important;
        transform: translateX(-100%) !important;
    }

    body.student-portal .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
}

@media (max-width: 767px) {
    body.student-portal .sidebar {
        width: min(88vw, 280px) !important;
        min-width: min(88vw, 280px) !important;
        max-width: min(88vw, 280px) !important;
    }

    body.student-portal .sidebar-header {
        padding: 1.1rem 1rem;
    }

    body.student-portal .sidebar-profile {
        padding: 0.8rem 1rem;
    }

    body.student-portal .nav-item {
        padding: 0.8rem 1rem;
    }

    body.student-portal .sidebar-logo-text {
        font-size: 1.12rem;
    }

    body.student-portal .sidebar-tagline {
        font-size: 0.7rem;
    }
}

/* Theme unification for feature and static admin pages
   Target only pages using the `.page-content` wrapper so Dashboard remains unchanged */
body.app-shell .page-content {
    background: linear-gradient(180deg, rgba(4,10,14,0.52), rgba(2,6,12,0.64));
    padding: 1.5rem !important;
    color: #d9f5e0;
    min-height: 100vh;
}

/* Keep standalone feature-page content below the page shell instead of crowding the top edge. */
html body.app-shell:not(.app-content-embedded):not(.audit-logs-page):not(.reports-page):not(.laboratory-schedules-page) .page-content {
    padding-top: 2rem !important;
}

/* Glassmorphism cards: replace white cards with dark translucent panels */
body.app-shell .page-content .bg-white,
body.app-shell .page-content .rounded-lg.bg-white,
body.app-shell .page-content .rounded-3xl.bg-white {
    background: rgba(13,23,34,0.72) !important;
    border: 1px solid rgba(52,211,153,0.25) !important;
    box-shadow: 0 8px 30px rgba(2,6,12,0.6), inset 0 1px 0 rgba(255,255,255,0.02) !important;
    color: #e6fff0 !important;
}

/* Card hover and spacing consistency */
body.app-shell .page-content .card,
body.app-shell .page-content .card-hover,
body.app-shell .page-content .rounded-lg {
    border-radius: 0.85rem !important;
}
body.app-shell .page-content .card-hover:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 0 18px rgba(34,197,94,0.18) !important;
}

/* Typography scale consistent with dashboard */
body.app-shell .page-content h1,
body.app-shell .page-content h2,
body.app-shell .page-content h3,
body.app-shell .page-content .page-title,
body.app-shell .page-content .card-title {
    color: #dfffe8 !important;
    font-weight: 700 !important;
}

/* Tables: dark mode */
body.app-shell:not(.reports-page) .page-content table {
    background: transparent !important;
    color: #d9f5e0 !important;
}
body.app-shell:not(.reports-page) .page-content table thead th {
    background: transparent !important;
    color: #9fe9b9 !important;
    border-bottom: 1px solid rgba(34,197,94,0.08) !important;
}
body.app-shell:not(.reports-page) .page-content table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}
body.app-shell:not(.reports-page) .page-content table tbody tr:hover {
    background: rgba(34,197,94,0.02) !important;
}

/* Inputs, selects, search boxes */
body.app-shell .page-content .search-box input,
body.app-shell .page-content input,
body.app-shell .page-content select,
body.app-shell .page-content textarea {
    background: rgba(10,18,22,0.6) !important;
    border: 1px solid rgba(34,197,94,0.08) !important;
    color: #d9f5e0 !important;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.6) !important;
    border-radius: 0.75rem !important;
}
body.app-shell .page-content .search-box input::placeholder,
body.app-shell .page-content input::placeholder,
body.app-shell .page-content textarea::placeholder {
    color: rgba(149,249,179,0.6) !important;
}

/* Buttons */
body.app-shell .page-content .btn-primary,
body.app-shell .page-content .btn-primary:hover {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.14) !important;
    border-radius: 0.75rem !important;
}

/* Dropdowns and selects */
body.app-shell .page-content select {
    padding: 0.6rem 0.9rem !important;
}

body.app-shell select,
body.app-shell select option,
body.app-shell select optgroup {
    color: #f8fafc !important;
}

body.app-shell select option {
    background-color: #0a121e !important;
    color: #f8fafc !important;
}

body.app-shell select option:hover,
body.app-shell select option:focus,
body.app-shell select option:checked,
body.app-shell select option[selected] {
    background: linear-gradient(180deg, rgba(16,185,129,0.25), rgba(16,185,129,0.4)) !important;
    color: #f8fafc !important;
}

/* Small UI elements (badges) */
body.app-shell .page-content .badge-pending,
body.app-shell .page-content .badge-under-repair,
body.app-shell .page-content .badge-resolved {
    background: rgba(255,255,255,0.04) !important;
    color: inherit !important;
}

/* Ensure icons inside page-content use the same sizing and color */
body.app-shell .page-content i {
    color: #86EFAC !important;
    font-size: 1.05rem !important;
}

@media (max-width: 768px) {
    .main-container {
        margin-left: 0;
    }
    .sidebar.mobile-closed {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
}

@media (min-width: 768px) {
    .sidebar.mobile-closed,
    .sidebar.mobile-open {
        transform: translateX(0);
    }
}

.top-header {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(2, 6, 23, 0.96));
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(74, 222, 128, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Override light utility classes used in static pages (header, modals, cards) */
body.app-shell .main-container header.bg-white,
body.app-shell .main-container header.bg-white.shadow-sm,
body.app-shell header.bg-white {
    background: rgba(3,10,18,0.95) !important;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2) !important;
    color: #e9fff2 !important;
}

/* Ensure .modal-content from static pages follows the dashboard card style */
body.app-shell .modal .modal-content,
body.app-shell .modal-content {
    background: rgba(3,8,12,0.86) !important;
    color: #e7fff2 !important;
    border: 1px solid rgba(34,197,94,0.06) !important;
    box-shadow: 0 30px 80px rgba(2,6,12,0.7) !important;
}

/* Force badge and small utility colors to match dark theme */
body.app-shell .page-content .badge-serviceable,
body.app-shell .page-content .badge-unserviceable,
body.app-shell .page-content .badge {
    background: rgba(255,255,255,0.03) !important;
    color: #c8ffd9 !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
}

/* Neutralize explicit light text classes inside page-content/main-container */
body.app-shell .main-container .text-gray-900,
body.app-shell .main-container .text-gray-700,
body.app-shell .main-container .text-gray-600,
body.app-shell .page-content .text-gray-900,
body.app-shell .page-content .text-gray-700,
body.app-shell .page-content .text-gray-600 {
    color: inherit !important;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-meta {
    margin-left: 0.75rem;
}

.menu-toggle {
    display: none;
    position: fixed !important;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #86efac;
    cursor: pointer;
}

/* Mobile/Tablet hamburger: visible up to 1023px (tablet breakpoint) */
@media (max-width: 1023px) {
    .menu-toggle {
        display: inline-flex !important;
        position: fixed !important;
        left: 1rem;
        top: 1rem;
        z-index: 50;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: rgba(6, 24, 17, 0.7);
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(2,6,12,0.5);
        border: 1px solid rgba(74,222,128,0.08);
        backdrop-filter: blur(8px);
    }

    .header-left {
        padding-left: 3.5rem;
    }

    .sidebar-close-btn {
        position: absolute;
        top: 10px;
        right: 12px;
        z-index: 1302;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(3,10,12,0.6);
        color: #dfffe8;
        font-size: 1.25rem;
        border: 1px solid rgba(74,222,128,0.06);
    }

    .page-header-card {
        padding-left: 88px;
    }

    .page-header-card > div:first-child {
        min-width: 0;
    }
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fff5;
}

.header-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d9f5e0;
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    background: rgba(17, 28, 40, 0.7);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.header-back-link:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #f8fff5;
    border-color: var(--sidebar-highlight);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.55rem 0.85rem 0.55rem 2.3rem;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 0.75rem;
    width: 200px;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.88);
    color: #d9f5e0;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #94f9b3;
}

.search-box input:focus {
    outline: none;
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.search-box i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #86efac;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #86EFAC;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    color: #4ADE80;
}

.icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #22C55E;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(52, 211, 153, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease;
}

.user-profile:hover {
    background: rgba(34, 197, 94, 0.15);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.22);
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #ecfdf5;
    font-size: 0.9rem;
}

.user-role {
    color: #86EFAC;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-container {
        margin-left: 0;
    }

    .top-header {
        padding: 1rem;
    }

    .search-box input {
        width: 130px;
    }

    .header-right {
        gap: 1rem;
    }

    .user-info {
        display: none;
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

body.student-portal .sidebar-header {
    isolation: isolate;
    overflow: hidden;
    padding: 1.35rem 1.2rem 1.1rem;
    border-bottom: 1px solid rgba(74, 222, 128, 0.15);
    background:
        radial-gradient(140px 100px at 0% 0%, rgba(34, 197, 94, 0.18), transparent 78%),
        linear-gradient(145deg, rgba(7, 17, 31, 0.98), rgba(2, 6, 23, 0.96));
}

body.student-portal .sidebar-header::after {
    position: absolute;
    z-index: -1;
    right: -2.5rem;
    bottom: -4.5rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(74, 222, 128, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 1rem rgba(74, 222, 128, 0.025), 0 0 0 2rem rgba(74, 222, 128, 0.02);
    content: '';
    pointer-events: none;
}

body.student-portal .sidebar-logo {
    position: relative;
    z-index: 1;
    gap: 0.8rem;
    margin: 0;
}

body.student-portal .sidebar-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

body.student-portal .sidebar-logo i {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(134, 239, 172, 0.26);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.25), rgba(16, 85, 55, 0.32));
    color: #4ade80;
    font-size: 1.35rem;
    filter: drop-shadow(0 5px 12px rgba(34, 197, 94, 0.14));
}

body.student-portal .sidebar-logo-text {
    color: #ecfdf5 !important;
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

body.student-portal .sidebar-tagline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #9ab9a9 !important;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.2;
}

body.student-portal .sidebar-tagline::before {
    width: 0.38rem;
    height: 0.38rem;
    flex: 0 0 0.38rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 9px rgba(74, 222, 128, 0.7);
    content: '';
}

body.student-portal .sidebar-close-btn {
    border: 1px solid rgba(134, 239, 172, 0.14);
    background: rgba(5, 20, 14, 0.78);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.student-portal .sidebar-close-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(20, 83, 45, 0.75);
    color: #86efac;
}

body.student-portal .student-page-header {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    left: calc(var(--sidebar-width) + 1rem);
    z-index: 1100;
    display: flex;
    min-height: 4.7rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: auto;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.55rem 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 1.15rem;
    background:
        radial-gradient(180px 90px at 0% 0%, rgba(34, 197, 94, 0.13), transparent 78%),
        linear-gradient(115deg, rgba(5, 28, 18, 0.98), rgba(4, 20, 15, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

@media (max-width: 1023px) {
    body.student-portal .student-page-header {
        top: 0.5rem;
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
        margin: 0;
    }

    body.student-portal .student-page-menu {
        display: inline-flex;
    }
}

body.student-portal .student-page-header-spacer {
    flex: 0 0 auto;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

body.student-portal .student-page-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

body.student-portal .student-page-menu {
    display: none;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 222, 128, 0.17);
    border-radius: 0.85rem;
    background: rgba(7, 17, 31, 0.8);
    color: #86efac;
    font-size: 1.2rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.student-portal .student-page-menu:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(7, 17, 31, 0.9);
}

body.student-portal .student-page-heading-copy {
    min-width: 0;
}

body.student-portal .student-page-title {
    margin: 0;
    overflow: hidden;
    color: #e8f5ed;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.student-portal .student-page-subtitle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.18rem 0 0;
    overflow: hidden;
    color: #15976f;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

body.student-portal .student-page-user {
    display: inline-flex;
    min-height: 2.2rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem 0.2rem 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    background: rgba(3, 39, 28, 0.55);
    color: #86efac;
}


body.student-portal .student-page-user-initials {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 222, 128, 0.19);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #a7f3d0;
    font-size: 0.58rem;
    font-weight: 800;
}

body.student-portal .student-page-user-initials.has-profile-photo,
body.student-portal .system-profile-badge-avatar.has-profile-photo {
    overflow: hidden;
    padding: 0;
    background: #e5f3e9;
}

body.student-portal .profile-avatar-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

body.student-portal .student-page-user-role {
    color: #86c9a5;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    body.student-portal .sidebar-header {
        padding: 1.1rem 1rem 1rem;
    }

    body.student-portal .student-page-header {
        min-height: 4.4rem;
        padding: 0.45rem 0.55rem;
        border-radius: 1rem;
    }

    body.student-portal .student-page-heading {
        gap: 0.55rem;
    }

    body.student-portal .student-page-menu {
        display: inline-flex;
    }

    body.student-portal .student-page-title {
        font-size: 1rem;
    }

    body.student-portal .student-page-user {
        min-height: 2rem;
        gap: 0.3rem;
        padding-right: 0.45rem;
    }

    body.student-portal .student-page-user-initials {
        width: 1.5rem;
        height: 1.5rem;
    }

    body.student-portal .student-page-user-role {
        font-size: 0.53rem;
        letter-spacing: 0.1em;
    }
}

/* Additional global overrides to ensure Dashboard visual language applies
   across all modules: buttons, secondary controls, modals, lists, pagination */

/* Secondary buttons and link-buttons */
body.app-shell .page-content .btn-secondary,
body.app-shell .page-content .btn-link {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    color: #c9f8d9 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.65rem !important;
    transition: all 0.18s ease !important;
}
body.app-shell .page-content .btn-secondary:hover,
body.app-shell .page-content .btn-link:hover {
    background: rgba(34,197,94,0.06) !important;
    border-color: rgba(34,197,94,0.12) !important;
}

/* Tables: alternate row shading, compact spacing */
body.app-shell:not(.reports-page) .page-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}
body.app-shell:not(.reports-page) .page-content table tbody tr {
    background: rgba(3,8,12,0.5) !important;
    border-radius: 0.75rem !important;
}
body.app-shell:not(.reports-page) .page-content table td,
body.app-shell:not(.reports-page) .page-content table th {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
}

/* Forms and controls: compact consistent spacing */
body.app-shell .page-content .form-row {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}
body.app-shell .page-content .form-group {
    margin-bottom: 0.85rem !important;
}

/* Modal dialogs: dark backdrop and card */
body.app-shell .modal,
body.app-shell .dialog {
    background: rgba(3,8,12,0.72) !important;
    border: 1px solid rgba(34,197,94,0.06) !important;
    box-shadow: 0 30px 80px rgba(2,6,12,0.7) !important;
    color: #e6fff0 !important;
    border-radius: 0.85rem !important;
}

/* List groups and panels */
body.app-shell .page-content .list-group,
body.app-shell .page-content .panel {
    background: rgba(3,8,12,0.45) !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    border-radius: 0.75rem !important;
}

/* Pagination controls */
body.app-shell .page-content .pagination a,
body.app-shell .page-content .pagination button {
    background: rgba(255,255,255,0.02) !important;
    color: #cfffe0 !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    padding: 0.45rem 0.65rem !important;
    border-radius: 0.6rem !important;
}
body.app-shell .page-content .pagination a.active,
body.app-shell .page-content .pagination button.active {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.14) !important;
}

/* Empty states */
body.app-shell .page-content .empty-state {
    text-align: center !important;
    color: rgba(223,255,232,0.9) !important;
    padding: 2rem !important;
}

/* Ensure utility backgrounds (cards created with common utility classes) are dark */
body.app-shell .page-content .bg-light,
body.app-shell .page-content .panel-light,
body.app-shell .page-content .card-light {
    background: rgba(3,8,12,0.5) !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    color: #eafef0 !important;
}

/* Convert Tailwind gray utility card backgrounds to dashboard cards */
body.app-shell .page-content .bg-gray-50,
body.app-shell .page-content .bg-gray-100,
body.app-shell .page-content .rounded-3xl.bg-gray-50,
body.app-shell .page-content .rounded-3xl.bg-gray-100,
body.app-shell .page-content .rounded-2xl.bg-gray-50,
body.app-shell .page-content .rounded-2xl.bg-gray-100 {
    background: rgba(3,8,12,0.52) !important;
    border: 1px solid rgba(34,197,94,0.06) !important;
    color: #e8fff3 !important;
    box-shadow: 0 12px 40px rgba(2,6,12,0.6) !important;
}

/* Neutralize light borders used for panels */
body.app-shell .page-content .border-gray-200,
body.app-shell .page-content .border-gray-100,
body.app-shell .page-content .border {
    border-color: rgba(255,255,255,0.03) !important;
}

/* Subtle dividers */
body.app-shell .page-content hr {
    border: none !important;
    height: 1px !important;
    background: rgba(255,255,255,0.03) !important;
    margin: 1rem 0 !important;
}

/* Utility: ensure link colors in page content use the accent */
body.app-shell .page-content a {
    color: #b8ffd3 !important;
    text-decoration: none !important;
}
body.app-shell .page-content a:hover {
    text-decoration: underline !important;
}

/* Dashboard-style card wrapper used across modules */
/* Reuse Dashboard's exact card component across the app */
.card,
.page-content .card {
    background: rgba(7, 17, 31, 0.78) !important;
    border-radius: 1.5rem !important;
    padding: 1.2rem !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.03), 0 10px 30px rgba(34, 197, 94, 0.12) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(74, 222, 128, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    color: #e5f9e0 !important;
}

/* Tight variant for small control bars */
.card.sm {
    padding: 0.6rem 0.9rem !important;
    border-radius: 1rem !important;
}

/* Elevated look for dashboard cards: subtle glow and lift on hover */
body.app-shell .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
body.app-shell .card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.18) !important;
    border-color: #34D399 !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #86EFAC;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.card-icon.green {
    background: rgba(22, 163, 74, 0.16);
    color: #4ADE80;
}

.card-icon.blue {
    background: rgba(34, 211, 238, 0.12);
    color: #38bdf8;
}

.card-icon.red {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.card-icon.amber {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

/* Make tables appear inset with softly elevated rows */
body.app-shell:not(.reports-page) .page-content table tbody tr {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00)) !important;
    border-radius: 0.6rem !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45) inset !important;
}

/* Chart and table card variants should match the Dashboard card visuals */
.chart-card, .table-card {
    background: rgba(7, 17, 31, 0.78) !important;
    border-radius: 1.5rem !important;
    padding: 1.2rem !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.03), 0 10px 30px rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(74, 222, 128, 0.18) !important;
    color: #e5f9e0 !important;
    backdrop-filter: blur(20px) !important;
}

.chart-card {
    padding: 1.4rem !important;
}

.table-card {
    padding: 1.4rem !important;
}

/* Emerald overrides for remaining navy/black tones (preserve layout)
   These rules target common components that previously used dark navy/black
   colors and apply the unified emerald palette. */
body, .main-container, .page-content {
    color: var(--text) !important;
}

.section-shell,
.filter-control,
.table-shell,
.glass-card,
.summary-card,
.modern-table tbody tr,
.details-modal-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--borders) !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.03) !important;
}

.modern-table thead {
    background: var(--card-hover) !important;
}

.modern-table th { color: var(--text-secondary) !important; }
.modern-table td { color: var(--text) !important; }
.modern-table tbody tr:hover { background: var(--card-hover) !important; }

.filter-control input,
.filter-control select { color: var(--text) !important; }
.filter-control select:focus { background: var(--card-bg) !important; color: var(--text) !important; }

.details-modal { background: rgba(2,6,23,0.76) !important; }

/* Shared forest-green theme for authenticated pages and their dashboard widgets. */
:root {
    --primary: #06402b !important;
    --accent: #22c55e !important;
    --hover: #16a34a !important;
    --success: #4ade80 !important;
    --bg: #07150f !important;
    --bg-secondary: #0a1d15 !important;
    --card-bg: #0f241b !important;
    --card-bg-solid: #0f241b !important;
    --card-hover: #123124 !important;
    --borders: rgba(74, 222, 128, 0.18) !important;
    --text: #f8fafc !important;
    --text-secondary: #b6d7c8 !important;
    --text-muted: #86efac !important;
    --sidebar-bg: linear-gradient(180deg, #07150f 0%, #0a1d15 100%) !important;
    --sidebar-border: rgba(74, 222, 128, 0.18) !important;
    --sidebar-hover-bg: rgba(11, 42, 30, 0.78) !important;
    --sidebar-active-bg: linear-gradient(135deg, #0f3726, #0a281c) !important;
}

html.theme-light,
html[data-theme="light"],
body.theme-light {
    --primary: #16a34a !important;
    --accent: #16a34a !important;
    --hover: #15803d !important;
    --success: #16a34a !important;
    --bg: #f4f7f5 !important;
    --bg-secondary: #ffffff !important;
    --card-bg: #ffffff !important;
    --card-bg-solid: #ffffff !important;
    --card-hover: #f0fdf4 !important;
    --borders: #dce5df !important;
    --text: #1f2937 !important;
    --text-secondary: #64748b !important;
    --text-muted: #64748b !important;
    --sidebar-bg: #ffffff !important;
    --sidebar-border: #dce5df !important;
    --sidebar-hover-bg: #f0fdf4 !important;
    --sidebar-active-bg: #e8f5ed !important;
    color-scheme: light !important;
}

html:not(.theme-light),
body:not(.theme-light),
body.app-shell:not(.theme-light) {
    background: #07150f !important;
    color: #f8fafc !important;
}

html.theme-light,
html.theme-light body,
html.theme-light body.app-shell {
    background: #f4f7f5 !important;
    color: #1f2937 !important;
}

body.app-shell .main-container,
body.app-shell .main-content,
body.app-shell .page-content {
    background: transparent !important;
}

body.app-shell .main-container::before,
body.app-shell .main-container::after,
body.app-shell .page-content::before {
    opacity: 0.35;
}

body.app-shell .sidebar {
    background: linear-gradient(180deg, #07150f 0%, #0a1d15 100%) !important;
    border-right-color: rgba(74, 222, 128, 0.18) !important;
    box-shadow: 0 20px 70px rgba(34, 197, 94, 0.12) !important;
}

body.app-shell .sidebar-header,
body.app-shell .top-header,
body.app-shell .top-header-card,
body.app-shell .maintenance-header-card,
body.app-shell .student-page-header,
body.app-shell .system-dashboard-heading,
body.app-shell .page-header-card {
    background: var(--app-header-bg) !important;
    border-color: rgba(74, 222, 128, 0.18) !important;
    box-shadow: 0 12px 35px rgba(6, 64, 43, 0.18) !important;
}

body.app-shell :is(.top-header, .top-header-card, .maintenance-header-card, .student-page-header, .system-dashboard-heading, .page-header-card) {
    border-radius: 1.5rem;
}

body.app-shell .card,
body.app-shell .chart-card,
body.app-shell .table-card,
body.app-shell .summary-card,
body.app-shell .section-shell,
body.app-shell .glass-card,
body.app-shell .table-shell,
body.app-shell .filter-control,
body.app-shell .details-modal-card,
body.app-shell .availability-modal-card,
body.app-shell .availability-summary-item,
body.app-shell .maintenance-header-user,
body.app-shell .page-content .panel,
body.app-shell .page-content .list-group,
body.app-shell .page-content .bg-white,
body.app-shell .page-content .bg-gray-50,
body.app-shell .page-content .bg-gray-100,
body.app-shell .page-content .bg-slate-50,
body.app-shell .page-content .bg-slate-100,
body.app-shell .attendance-page-header,
body.app-shell .attendance-page-card,
body.app-shell .attendance-summary-card,
body.app-shell .attendance-table-wrap,
body.app-shell .main-content .bg-white,
body.app-shell .main-content .bg-gray-50,
body.app-shell .main-content .bg-gray-100,
body.app-shell .main-content .bg-slate-50,
body.app-shell .main-content .bg-slate-100 {
    background: #0f241b !important;
    border: 1px solid rgba(74, 222, 128, 0.18) !important;
    border-radius: 1rem !important;
    color: #f8fafc !important;
    box-shadow: 0 12px 35px rgba(6, 64, 43, 0.18) !important;
}

body.app-shell .card,
body.app-shell .summary-card {
    padding: 1rem 1.1rem !important;
}

body.app-shell .card:hover,
body.app-shell .summary-card:hover,
body.app-shell .chart-card:hover,
body.app-shell .table-card:hover {
    border-color: rgba(74, 222, 128, 0.3) !important;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.12) !important;
    transform: translateY(-2px) !important;
}

body.app-shell .card-title,
body.app-shell .chart-summary,
body.app-shell .summary-card .text-sm,
body.app-shell .attendance-summary-label,
body.app-shell .section-header p,
body.app-shell .breadcrumb,
body.app-shell .header-subtitle,
body.app-shell .header-eyebrow,
body.app-shell .availability-summary-item span,
body.app-shell .table-title,
body.app-shell .student-page-subtitle {
    color: #b6d7c8 !important;
}

body.app-shell .card-value,
body.app-shell .summary-card strong,
body.app-shell .summary-card .text-2xl,
body.app-shell .summary-card .text-3xl,
body.app-shell .attendance-summary-value {
    color: #f8fafc !important;
}

body.app-shell .card-icon,
body.app-shell .summary-card .card-icon,
body.app-shell .attendance-summary-icon {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid rgba(74, 222, 128, 0.16) !important;
    border-radius: 0.9rem !important;
    background: rgba(74, 222, 128, 0.12) !important;
    color: #bbf7d0 !important;
    font-size: 1.05rem !important;
    box-shadow: none !important;
}

body.app-shell .card-icon.blue,
body.app-shell .card-icon.purple,
body.app-shell .card-icon.orange,
body.app-shell .card-icon.red,
body.app-shell .card-icon.amber {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #bbf7d0 !important;
}

body.app-shell .summary-card.late .card-icon {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #86efac !important;
}

body.app-shell .summary-card.absent .card-icon {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #86efac !important;
}

body.app-shell .summary-card.total .card-icon {
    background: rgba(74, 222, 128, 0.08) !important;
    color: #bbf7d0 !important;
}

body.app-shell .attendance-filter-label {
    color: #b6d7c8 !important;
}

body.app-shell:not(.reports-page) table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #e2fbe8 !important;
}

body.app-shell:not(.reports-page) table thead,
body.app-shell:not(.reports-page) table thead tr {
    background: #123124 !important;
}

body.app-shell:not(.reports-page) table th {
    border-bottom: 1px solid rgba(74, 222, 128, 0.18) !important;
    color: #b6d7c8 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

body.app-shell:not(.reports-page) table td {
    border-bottom: 1px solid rgba(74, 222, 128, 0.12) !important;
    color: #e2fbe8 !important;
}

body.app-shell:not(.reports-page) table tbody tr {
    background: #0f241b !important;
    box-shadow: none !important;
    transition: background-color 160ms ease;
}

body.app-shell:not(.reports-page) table tbody tr:hover {
    background: #123124 !important;
}

body.app-shell input:not([type="checkbox"]):not([type="radio"]),
body.app-shell select,
body.app-shell textarea {
    border-color: rgba(74, 222, 128, 0.18) !important;
    border-radius: 0.75rem !important;
    background-color: #0a1d15 !important;
    color: #f8fafc !important;
}

body.app-shell input::placeholder,
body.app-shell textarea::placeholder {
    color: #86a893 !important;
}

body.app-shell input:focus,
body.app-shell select:focus,
body.app-shell textarea:focus {
    border-color: rgba(74, 222, 128, 0.5) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14) !important;
}

body.app-shell .nav-item.active {
    background: linear-gradient(135deg, #0f3726, #0a281c) !important;
    border-left-color: #22c55e !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.app-shell .nav-item:hover {
    background: rgba(11, 42, 30, 0.78) !important;
    border-left-color: rgba(74, 222, 128, 0.4) !important;
}

body.app-shell .status-filter {
    border-color: rgba(74, 222, 128, 0.18) !important;
    background: #0a1d15 !important;
    color: #d1fae5 !important;
}

body.app-shell .status-filter.active,
body.app-shell .status-filter:hover {
    border-color: rgba(74, 222, 128, 0.3) !important;
    background: #123124 !important;
    color: #f8fafc !important;
}

body.app-shell .btn-secondary,
body.app-shell .page-content .btn-secondary {
    border: 1px solid rgba(74, 222, 128, 0.18) !important;
    background: #0a1d15 !important;
    color: #d1fae5 !important;
}

body.app-shell .btn-secondary:hover,
body.app-shell .page-content .btn-secondary:hover {
    border-color: rgba(74, 222, 128, 0.3) !important;
    background: #123124 !important;
}

body.app-shell .details-modal,
body.app-shell .modal,
body.app-shell .dialog {
    background-color: rgba(5, 12, 8, 0.82) !important;
}

html body.app-shell {
    --bg: #07150f;
    --bg-secondary: #0a1d15;
    --card-bg: rgba(20, 45, 35, 0.92);
    --card-bg-solid: #0f241b;
    --card-hover: #123124;
    --sidebar-bg: linear-gradient(180deg, #07150f 0%, #0a1d15 100%);
    --faculty-bg: #07150f;
    --faculty-panel: rgba(15, 36, 27, 0.94);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 20%),
        radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.08), transparent 22%),
        linear-gradient(180deg, #07150f 0%, #0a1d15 100%) !important;
}

html body.app-shell .main-container {
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.06), transparent 24%),
        linear-gradient(180deg, #07150f 0%, #0a1d15 100%) !important;
}

html body.app-shell .sidebar {
    background: var(--sidebar-bg) !important;
}

html body.app-shell .glass-card,
html body.app-shell .faculty-surface,
html body.app-shell .tech-card,
html body.app-shell .tech-card-soft,
html body.app-shell .glass,
html body.app-shell .card,
html body.app-shell .page-content {
    background: linear-gradient(145deg, rgba(20, 45, 35, 0.96), rgba(10, 29, 21, 0.94)) !important;
}

html body.app-shell [class*="bg-[#020617]"],
html body.app-shell [class*="bg-[#07111f]"],
html body.app-shell [class*="bg-[#0b1728]"] {
    background-color: var(--bg-secondary) !important;
}

html body.app-shell [class*="to-[#07111f]"] {
    --tw-gradient-to: #0f241b var(--tw-gradient-to-position) !important;
}

body.student-portal .main-container {
    width: calc(100% - var(--sidebar-width)) !important;
    max-width: none !important;
    margin: 0 0 0 var(--sidebar-width) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html body.student-portal .main-container > header,
html body.student-portal .main-container > .top-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.student-portal .student-page-header {
    top: 0.75rem !important;
    right: 1rem !important;
    left: calc(var(--sidebar-width) + 1rem) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 1.5rem !important;
}

html body.student-portal .main-container > main,
html body.student-portal .main-container > .page-shell,
html body.student-portal .main-container > .page-content,
html body.student-portal .main-container > header > div,
body.student-portal .page-shell,
body.student-portal .page-content {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
}

body.student-portal > .page-shell {
    width: calc(100% - var(--sidebar-width)) !important;
    margin-left: var(--sidebar-width) !important;
}

@media (max-width: 1023px) {
    body.student-portal .main-container {
        width: 100% !important;
        margin-left: 0 !important;
    }

    body.student-portal .student-page-header {
        top: 0.5rem !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        border-radius: 1rem !important;
    }

    body.student-portal > .page-shell {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

body.app-shell .profile-theme-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
}

body.app-shell .profile-theme-toggle {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 0.85rem;
    background: rgba(7, 38, 24, 0.84);
    color: #a7f3d0;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.app-shell .profile-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(15, 55, 38, 0.96);
}

body.app-shell .profile-theme-toggle:focus-visible {
    outline: 3px solid rgba(74, 222, 128, 0.55);
    outline-offset: 2px;
}

body.app-shell .theme-toggle-header-fallback {
    justify-content: flex-end;
}

body.app-shell .theme-toggle-header-fallback .profile-theme-controls {
    margin-left: auto;
}

html body.app-shell .main-container.theme-light {
    --bg: #ffffff;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --card-hover: #eef6f0;
    --borders: #d7e3da;
    --text: #1f2937;
    --text-secondary: #5b6b61;
    --faculty-bg: #ffffff;
    --faculty-panel: #ffffff;
    color-scheme: light;
    color: #1f2937 !important;
    background: #ffffff !important;
}

html body.app-shell.faculty-dashboard-page .main-container.theme-light::before,
html body.app-shell.faculty-dashboard-page .main-container.theme-light::after {
    background: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

html body.app-shell .main-container.theme-light .page-content,
html body.app-shell .main-container.theme-light main,
html body.app-shell .main-container.theme-light > .page-shell {
    color: #1f2937 !important;
    background: transparent !important;
}

html body.app-shell .main-container.theme-light .page-content {
    background: #ffffff !important;
}

html body.app-shell .main-container.theme-light :is(
    .glass-card,
    .faculty-surface,
    .tech-card,
    .tech-card-soft,
    .glass,
    .card,
    .summary-card,
    .section-shell,
    .table-card,
    .chart-card,
    .info-card,
    .equipment-card,
    .availability-laboratory-section,
    .system-dashboard-heading,
    .student-page-header,
    .page-header-card,
    .top-header,
    .page-content,
    .bg-white,
    .bg-slate-50,
    .bg-slate-100,
    .bg-slate-200,
    .bg-slate-800,
    .bg-slate-900,
    .bg-slate-950
) {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07) !important;
}

html body.app-shell .main-container.theme-light .system-dashboard-heading,
html body.app-shell .main-container.theme-light .student-page-header,
html body.app-shell .main-container.theme-light .page-header-card,
html body.app-shell .main-container.theme-light .top-header {
    background: #ffffff !important;
}

html body.app-shell .main-container.theme-light :is(h1, h2, h3, h4, h5, h6, p, label, .page-title, .card-title, .table-title) {
    color: #1f2937 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light :is(
    h1, h2, h3, h4, h5, h6, p, span, label, small, strong, td, th, div, li, a,
    .inventory-label, .inventory-value, .stat-label, .stat-value,
    .page-title, .card-title, .table-title,
    .text-white, .text-slate-100, .text-slate-200, .text-slate-300, .text-slate-400,
    .text-slate-500, .text-slate-600, .text-slate-700, .text-slate-800, .text-slate-900,
    .text-gray-100, .text-gray-200, .text-gray-300, .text-gray-400, .text-gray-500,
    .text-gray-600, .text-gray-700, .text-gray-800, .text-gray-900,
    .text-emerald-50, .text-emerald-100, .text-emerald-200, .text-emerald-300,
    .text-emerald-400, .text-emerald-500, .text-green-100, .text-green-200,
    .text-green-300, .text-green-400, .text-green-500
) {
    color: #111827 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light #equipmentTableSection :is(
    th,
    td,
    .text-slate-400,
    .text-slate-500,
    .text-slate-300,
    .text-emerald-50,
    .text-emerald-100,
    .text-emerald-200,
    .text-emerald-300,
    .text-emerald-400,
    .text-emerald-800,
    .text-emerald-900,
    .text-emerald-950,
    [class*="text-emerald-"],
    [class*="text-slate-"]
) {
    color: #111827 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light #equipmentTableSection .pc-set-actions-toggle,
html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light #equipmentTableSection .pc-set-actions-toggle i,
html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light #equipmentTableSection .pc-set-actions-menu button {
    color: #111827 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .main-container.theme-light :is(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    color: #111827 !important;
}

html body.app-shell .main-container.theme-light :is(
    .text-white,
    .text-slate-100,
    .text-slate-200,
    .text-slate-300,
    .text-slate-400,
    .text-slate-500,
    .text-slate-600,
    .text-slate-700,
    .text-slate-800,
    .text-slate-900,
    .text-gray-100,
    .text-gray-200,
    .text-gray-300,
    .text-gray-400,
    .text-gray-500,
    .text-gray-600,
    .text-gray-700,
    .text-gray-800,
    .text-gray-900,
    .text-emerald-50,
    .text-emerald-100,
    .text-emerald-200,
    .text-emerald-300,
    .text-emerald-400,
    .text-emerald-500,
    .text-green-100,
    .text-green-200,
    .text-green-300,
    .text-green-400,
    .text-green-500
) {
    color: #34483a !important;
}

html body.app-shell .main-container.theme-light [class*="to-[#07111f]"] {
    --tw-gradient-to: #ffffff var(--tw-gradient-to-position) !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table,
html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody {
    background: #ffffff !important;
    color: #26352b !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light :is(
    .faculty-dashboard-table-wrap,
    .attendance-table-wrap,
    .table-wrapper,
    .table-wrap,
    .table-container,
    .table-responsive,
    [class*="table-wrap"],
    [class*="table-container"]
) {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #26352b !important;
    box-shadow: none !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody tr,
html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody tr:nth-child(even) {
    background: #ffffff !important;
    box-shadow: none !important;
    color: #26352b !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody tr:nth-child(even) {
    background: #f6faf7 !important;
}

html body.system-layout-page .main-container.theme-light :is(.table-title, caption) {
    color: #166534 !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table td {
    background: transparent !important;
    border-color: #e3ebe5 !important;
    color: #34483a !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody tr:hover {
    background: #edf6ef !important;
}

html body.app-shell:not(.reports-page):not(.faculty-dashboard-page) .main-container.theme-light table tbody tr:hover td {
    background: transparent !important;
    color: #26352b !important;
}

html body.app-shell .main-container.theme-light input:not([type="checkbox"]):not([type="radio"]),
html body.app-shell .main-container.theme-light select,
html body.app-shell .main-container.theme-light textarea {
    border-color: #cbd8ce !important;
    background-color: #ffffff !important;
    color: #26352b !important;
    box-shadow: inset 0 1px 2px rgba(31, 41, 55, 0.04) !important;
}

html body.app-shell .main-container.theme-light input::placeholder,
html body.app-shell .main-container.theme-light textarea::placeholder {
    color: #78877c !important;
}

html body.app-shell .main-container.theme-light select option,
html body.app-shell .main-container.theme-light select optgroup {
    background: #ffffff !important;
    color: #26352b !important;
}

html body.app-shell .main-container.theme-light .modal-content,
html body.app-shell .main-container.theme-light .details-modal,
html body.app-shell .main-container.theme-light .dialog {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

html body.app-shell .main-container.theme-light .profile-theme-toggle {
    border-color: #cbd8ce;
    background: #edf4ef;
    color: #245c3a;
}

html body.app-shell .main-container.theme-light .profile-theme-toggle:hover {
    border-color: #92b79b;
    background: #e2efe5;
}

html body.app-shell .main-container.theme-light .profile-theme-toggle:focus-visible {
    outline-color: rgba(34, 110, 61, 0.45);
}

@media (max-width: 480px) {
    body.app-shell .profile-theme-controls {
        gap: 0.35rem;
    }

    body.app-shell .profile-theme-toggle {
        width: 2.4rem;
        height: 2.4rem;
        flex-basis: 2.4rem;
    }
}

html body.app-shell:not(.reports-page) .main-container .theme-locked-table-header.theme-locked-table-header {
    background: #0a2e1d !important;
    color: #ffffff !important;
}

html body.app-shell:not(.reports-page) .main-container table thead .theme-locked-table-header.theme-locked-table-header {
    border-bottom-color: rgba(134, 201, 165, 0.2) !important;
    padding: 0.3rem 0.75rem !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

html body.system-layout-page .main-container.theme-dark :is(.table-title, caption) {
    color: #d1fae5 !important;
}

html body:is(.faculty-page, .faculty-portal):not(.faculty-dashboard-page) :is(
   .main-container.theme-light,
   .page-shell.theme-light,
   .audit-page-content.theme-light
) :is(
   .status-badge,
   .status-pill,
   .faculty-status,
   .audit-status-badge,
   .equipment-status-badge,
   .badge
):not(.profile-theme-static):not([class*="system-profile-badge"]):not([class*="student-page-user"]) {
   border-color: rgba(74, 222, 128, 0.28) !important;
   background: #0a2e1d !important;
   color: #d1fae5 !important;
}

html body:is(.faculty-page, .faculty-portal):not(.faculty-dashboard-page) :is(
   .main-container.theme-light,
   .page-shell.theme-light,
   .audit-page-content.theme-light
) :is(
   .status-badge,
   .status-pill,
   .faculty-status,
   .audit-status-badge,
   .equipment-status-badge,
   .badge,
   [class*="badge-"]
):not(.profile-theme-static):not([class*="system-profile-badge"]):not([class*="student-page-user"]):is(
   [class*="pending"],
   [class*="review"],
   [class*="late"],
   [class*="repair"],
   [class*="amber"],
   [class*="yellow"],
   [class*="orange"]
) {
   border-color: rgba(251, 191, 36, 0.36) !important;
   background: #3b2a0b !important;
   color: #fde68a !important;
}

html body:is(.faculty-page, .faculty-portal):not(.faculty-dashboard-page) :is(
   .main-container.theme-light,
   .page-shell.theme-light,
   .audit-page-content.theme-light
) :is(
   .status-badge,
   .status-pill,
   .faculty-status,
   .audit-status-badge,
   .equipment-status-badge,
   .badge,
   [class*="badge-"]
):not(.profile-theme-static):not([class*="system-profile-badge"]):not([class*="student-page-user"]):is(
   [class*="reject"],
   [class*="unavailable"],
   [class*="absent"],
   [class*="overdue"],
   [class*="rose"],
   [class*="red"]
) {
   border-color: rgba(248, 113, 113, 0.36) !important;
   background: #3b1717 !important;
   color: #fecaca !important;
}

html body:is(.faculty-page, .faculty-portal):not(.faculty-dashboard-page) :is(
   .main-container.theme-light,
   .page-shell.theme-light,
   .audit-page-content.theme-light
) :is(
   .status-badge,
   .status-pill,
   .faculty-status,
   .audit-status-badge,
   .equipment-status-badge,
   .badge,
   [class*="badge-"]
):not(.profile-theme-static):not([class*="system-profile-badge"]):not([class*="student-page-user"]):is(
   [class*="blue"],
   [class*="info"]
) {
   border-color: rgba(96, 165, 250, 0.36) !important;
   background: #172b43 !important;
   color: #bfdbfe !important;
}

html body.app-shell .main-container.theme-light :is(
    .attendance-page-header,
    .attendance-page-card,
    .attendance-summary-card
) {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #26352b !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07) !important;
}

html body.app-shell .main-container.theme-light :is(
    .attendance-page-title,
    .attendance-summary-value,
    .attendance-filter-label,
    .attendance-pagination-info
) {
    color: #26352b !important;
}

html body.app-shell:not(.faculty-dashboard-page) .main-container.theme-light .faculty-dashboard-table .table-item-name {
    color: #26352b !important;
}

html body.app-shell .main-container.theme-light .faculty-dashboard-table .table-item-meta {
    color: #66756a !important;
}

html body.app-shell .main-container.theme-light :is(
    .attendance-summary-label,
    .attendance-modal-subtitle,
    .attendance-modal-close,
    .attendance-student-name
) {
    color: #24613b !important;
}

html body.app-shell .main-container.theme-light .attendance-table-wrap {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html body.app-shell .main-container.theme-light .attendance-table td {
    border-color: #e3ebe5 !important;
    color: #34483a !important;
}

html body.app-shell .main-container.theme-light .attendance-table tbody tr:hover {
    background: #f1f7f2 !important;
}

html body.app-shell .main-container.theme-light :is(
    .attendance-action-btn,
    .attendance-pagination-btn
) {
    border-color: #cbd8ce !important;
    background: #ffffff !important;
    color: #245c3a !important;
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.06) !important;
}

html body.app-shell .main-container.theme-light :is(
    .attendance-action-btn,
    .attendance-pagination-btn
):hover:not(:disabled) {
    background: #edf6ef !important;
}

html body.app-shell .main-container.theme-light #attendanceSessionModal .modal-content,
html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-modal-header,
html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-modal-body,
html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-summary-card,
html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-table-wrap {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #26352b !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07) !important;
}

html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-table-wrap tbody,
html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-table-wrap tbody tr {
    color: #34483a !important;
}

html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-modal-controls button {
    border-color: #b9d9c2 !important;
    background: #edf6ef !important;
    color: #245c3a !important;
}

html body.app-shell .main-container.theme-light #attendanceSessionModal .attendance-detail-table td::before {
    color: #24613b !important;
}

html body.app-shell .main-container .profile-theme-controls {
    border-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

html body.app-shell .main-container .profile-theme-static {
    border-color: rgba(74, 222, 128, 0.2) !important;
    background: #04281b !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html body.app-shell .main-container .profile-theme-static :is(
    .system-profile-badge-name,
    .student-page-user-name,
    .system-profile-badge-copy,
    .student-page-user-copy,
    .user-profile .user-name
) {
    color: #ffffff !important;
}

html body.app-shell .main-container .profile-theme-static :is(
    .system-profile-badge-role,
    .student-page-user-role,
    .user-profile .user-role
) {
    color: #34d399 !important;
}

html body.app-shell .main-container .profile-theme-static :is(
    .system-profile-badge-avatar,
    .student-page-user-initials,
    .user-profile .user-avatar
) {
    border-color: rgba(74, 222, 128, 0.32) !important;
    background: #06402b !important;
    color: #6ee7b7 !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light {
    color-scheme: light;
    color: #26352b;
    background: #f4f7f5;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light > .system-dashboard-heading {
    border-color: #d7e3da !important;
    background: #ffffff !important;
    color: #245c3a !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .07) !important;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light > .system-dashboard-heading h1 {
    color: #17452a !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light > .system-dashboard-heading #mobileMenuToggle {
    border-color: #c5dfcd !important;
    background: #edf6ef !important;
    color: #245c3a !important;
}

html body.faculty-borrow-equipment-page > .page-shell .profile-theme-static {
    border-color: rgba(74, 222, 128, .2) !important;
    background: #04281b !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html body.faculty-borrow-equipment-page > .page-shell .profile-theme-static :is(
    .system-profile-badge-name,
    .student-page-user-name,
    .system-profile-badge-copy,
    .student-page-user-copy
) {
    color: #ffffff !important;
}

html body.faculty-borrow-equipment-page > .page-shell .profile-theme-static :is(
    .system-profile-badge-role,
    .student-page-user-role
) {
    color: #34d399 !important;
}

html body.faculty-borrow-equipment-page > .page-shell .profile-theme-static :is(
    .system-profile-badge-avatar,
    .student-page-user-initials
) {
    border-color: rgba(74, 222, 128, .32) !important;
    background: #06402b !important;
    color: #6ee7b7 !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light > .panel-card,
html body.faculty-borrow-equipment-page > .page-shell.theme-light > .panel-card > .panel-body {
    border-color: #d7e3da;
    background: #ffffff;
    color: #26352b;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .07);
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .section-title {
    border-color: #d7e3da;
    background: linear-gradient(100deg, #edf6ef, #f7faf8);
    color: #245c3a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .section-title i {
    border-color: #c5dfcd;
    background: #e8f3eb;
    color: #247044;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field label {
    color: #34483a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field :is(
    input:not([type="checkbox"]),
    select,
    textarea
) {
    border-color: #cbd8ce;
    background: #ffffff;
    color: #26352b;
    box-shadow: inset 0 1px 2px rgba(31, 41, 55, .04);
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field :is(
    input:not([type="checkbox"]),
    select,
    textarea
):focus {
    border-color: #4b9b65;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 110, 61, .12);
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field :is(
    input,
    textarea
)::placeholder {
    color: #78877c;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light #selectedEquipmentCount,
html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field > .text-xs {
    color: #66756a !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light #equipmentSelectionList {
    border-color: #d7e3da !important;
    background: #f8fbf9 !important;
    color: #34483a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light #equipmentSelectionList > [role="status"] {
    color: #66756a !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option {
    border-color: #d7e3da;
    background: #ffffff;
    color: #34483a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option:hover {
    background: #edf6ef;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option-details strong {
    color: #26352b !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option-details > span {
    color: #66756a !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option-status {
    color: #247044 !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-equipment-option-status.text-amber-200 {
    color: #8a5a0a !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-form-field > p.rounded-xl {
    border-color: #d7e3da !important;
    background: #f2f8f3 !important;
    color: #405747 !important;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-qr-scan-button {
    border-color: #b9d9c2;
    background: #edf6ef;
    color: #245c3a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-qr-result,
html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-inventory-card {
    border-color: #d7e3da;
    background: #f8fbf9;
    color: #34483a;
    box-shadow: none;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-inventory-card strong,
html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-qr-result-copy {
    color: #34483a;
}

html body.faculty-borrow-equipment-page > .page-shell.theme-light .borrow-btn.secondary {
    border-color: #cbd8ce;
    background: #ffffff;
    color: #245c3a;
}

html body:is(.faculty-page, .faculty-portal) :is(
    .main-container,
    .page-shell,
    .audit-page-content,
    .page-content
) :is(
    [class~="text-xs"],
    [class*="text-[10px]"],
    [class*="text-[11px]"],
    [class*="text-[.7rem]"]
) {
    font-size: 0.8125rem !important;
}

html body:is(.faculty-page, .faculty-portal) :is(
    .main-container,
    .page-shell,
    .audit-page-content,
    .page-content
) [class~="text-sm"] {
    font-size: 0.9375rem !important;
}

html.theme-light body.app-shell,
html.theme-light body {
    color-scheme: light;
    color: #1f2937 !important;
    background: #f4f7f5 !important;
}

html.theme-light body.app-shell .main-container,
html.theme-light body.app-shell .main-content,
html.theme-light body.app-shell .page-content,
html.theme-light .facilities-main,
html.theme-light .page-shell,
html.theme-light .audit-page-content {
    color: #1f2937 !important;
    background: #f4f7f5 !important;
}

html.theme-light body.app-shell :is(.system-profile-badge, .student-page-user, .user-profile, .profile-theme-static) {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell :is(
    .system-profile-badge-avatar,
    .student-page-user-initials,
    .user-avatar
) {
    border: 1px solid #dce5df !important;
    background: #e8f5ed !important;
    color: #16a34a !important;
}

html.theme-light body.app-shell :is(
    .system-profile-badge-name,
    .student-page-user-name,
    .user-name,
    .system-profile-badge-copy,
    .student-page-user-copy
) {
    color: #1f2937 !important;
}

html.theme-light body.app-shell :is(
    .system-profile-badge-role,
    .student-page-user-role,
    .user-role
) {
    color: #16a34a !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    *:not(i):not(svg):not(path):not(canvas) {
    color: #111827 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    color: #111827 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(input, textarea)::placeholder {
    color: #4b5563 !important;
    opacity: 1;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(select option, select optgroup) {
    color: #111827 !important;
    background: #ffffff !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.system-profile-badge, .student-page-user, .user-profile, .profile-theme-static) {
    border-color: #bfd5c5 !important;
    background: #ffffff !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.system-profile-badge-avatar, .student-page-user-initials, .user-avatar) {
    border-color: #bfd5c5 !important;
    background: #e8f3eb !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.theme-locked-table-header, table thead, table thead tr, table thead th) {
    border-color: #cbd8ce !important;
    background: #e8f3eb !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(table, table tbody, table tbody tr) {
    background: #ffffff !important;
    color: #111827 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    table tbody tr:nth-child(even) {
    background: #f6faf7 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(table th, table td) {
    border-color: #e3ebe5 !important;
    color: #111827 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.badge, [class*="badge-"], .status-badge, .status-pill, .faculty-status, .audit-status-badge, .equipment-status-badge) {
    border-color: #bfd5c5 !important;
    background: #e8f3eb !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.badge, [class*="badge-"], .status-badge, .status-pill, .faculty-status, .audit-status-badge, .equipment-status-badge):is(
        [class*="amber"], [class*="yellow"], [class*="orange"], [class*="pending"], [class*="review"], [class*="late"]
    ) {
    border-color: #e7c982 !important;
    background: #fff7df !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.badge, [class*="badge-"], .status-badge, .status-pill, .faculty-status, .audit-status-badge, .equipment-status-badge):is(
        [class*="red"], [class*="rose"], [class*="reject"], [class*="unavailable"], [class*="absent"], [class*="overdue"]
    ) {
    border-color: #e7b5b5 !important;
    background: #fff0f0 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.badge, [class*="badge-"], .status-badge, .status-pill, .faculty-status, .audit-status-badge, .equipment-status-badge):is(
        [class*="blue"], [class*="info"]
    ) {
    border-color: #b8cee5 !important;
    background: #eef6ff !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    button:not([class*="danger"]):not([class*="delete"]):not([class*="red"]):not([class*="rose"]),
html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    [role="button"]:not([class*="danger"]):not([class*="delete"]):not([class*="red"]):not([class*="rose"]) {
    border-color: #bfd5c5 !important;
    background-color: #edf6ef !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(button, [role="button"]):is([class*="danger"], [class*="delete"], [class*="red"], [class*="rose"]) {
    border-color: #e7b5b5 !important;
    background-color: #fff0f0 !important;
}

body.app-shell .student-university-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 1023px) {
    body.app-shell .student-university-title {
        font-size: clamp(0.9rem, 4.8vw, 1.25rem) !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
    }
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page) {
    background: #ffffff !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light) {
    background: #ffffff !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.main-content, .page-content, main) {
    background: #ffffff !important;
}

html.theme-light body.app-shell
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    .profile-theme-toggle {
    border: 1px solid rgba(74, 222, 128, .36) !important;
    background: #04281b !important;
    color: #a7f3d0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

html.theme-light body.app-shell
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    .profile-theme-toggle:hover {
    border-color: rgba(74, 222, 128, .65) !important;
    background: #0b3b27 !important;
    color: #d1fae5 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page):not(.reports-page) {
    background: #eef0ee !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page):not(.reports-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light) {
    background: #eceeec !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page):not(.reports-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(.main-content, .page-content, main) {
    background: transparent !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(
        .glass-card,
        .faculty-surface,
        .tech-card,
        .tech-card-soft,
        .glass,
        .card,
        .summary-card,
        .section-shell,
        .table-card,
        .chart-card,
        .info-card,
        .equipment-card,
        .availability-laboratory-section,
        .system-dashboard-heading,
        .student-page-header,
        .page-header-card,
        .top-header,
        .panel-card,
        .attendance-page-header,
        .attendance-page-card,
        .attendance-summary-card,
        .modal-content,
        .details-modal,
        .dialog
    ) {
    background-color: #f5f6f5 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(
        .faculty-dashboard-table-wrap,
        .attendance-table-wrap,
        .table-wrapper,
        .table-wrap,
        .table-container,
        .table-responsive,
        [class*="table-wrap"],
        [class*="table-container"]
    ) {
    background-color: #f2f4f2 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background-color: #f8f9f8 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    table,
html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    table tbody tr,
html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    table tbody tr:nth-child(even) {
    background-color: #f5f6f5 !important;
}

html.theme-light body:is(.app-shell, .faculty-borrow-equipment-page, .faculty-page, .faculty-portal):not(.reports-page):not(.faculty-dashboard-page)
    :is(.main-container.theme-light, .page-shell.theme-light, .audit-page-content.theme-light)
    table tbody tr:nth-child(even) {
    background-color: #eef0ee !important;
}

html.theme-light body.app-shell.system-layout-page #mainContainer .system-dashboard-heading .system-profile-badge.profile-theme-static {
    border-color: rgba(74, 222, 128, .32) !important;
    background: #04281b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(4, 40, 27, .18) !important;
}

html.theme-light body.app-shell.system-layout-page #mainContainer .system-dashboard-heading .system-profile-badge.profile-theme-static .system-profile-badge-copy,
html.theme-light body.app-shell.system-layout-page #mainContainer .system-dashboard-heading .system-profile-badge.profile-theme-static .system-profile-badge-name {
    background: transparent !important;
    color: #ffffff !important;
}

html.theme-light body.app-shell.system-layout-page #mainContainer .system-dashboard-heading .system-profile-badge.profile-theme-static .system-profile-badge-role {
    background: transparent !important;
    color: #34d399 !important;
}

html.theme-light body.app-shell.system-layout-page #mainContainer .system-dashboard-heading .system-profile-badge.profile-theme-static .system-profile-badge-avatar {
    border-color: rgba(74, 222, 128, .4) !important;
    background: #06402b !important;
    color: #a7f3d0 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .inventory-header-actions .system-profile-badge.profile-theme-static {
    border-color: rgba(74, 222, 128, .32) !important;
    background: #04281b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(4, 40, 27, .18) !important;
}

html.theme-light body.app-shell.equipment-inventory-page .inventory-header-actions .system-profile-badge.profile-theme-static .system-profile-badge-copy,
html.theme-light body.app-shell.equipment-inventory-page .inventory-header-actions .system-profile-badge.profile-theme-static .system-profile-badge-name {
    background: transparent !important;
    color: #ffffff !important;
}

html.theme-light body.app-shell.equipment-inventory-page .inventory-header-actions .system-profile-badge.profile-theme-static .system-profile-badge-role {
    background: transparent !important;
    color: #34d399 !important;
}

html.theme-light body.app-shell.equipment-inventory-page .inventory-header-actions .system-profile-badge.profile-theme-static .system-profile-badge-avatar {
    border-color: rgba(74, 222, 128, .4) !important;
    background: #06402b !important;
    color: #a7f3d0 !important;
}

html.theme-light body.student-portal:not(.faculty-dashboard-page) :is(.main-container.theme-light, .page-shell.theme-light) :is(
    .student-page-header,
    .system-dashboard-heading,
    .summary-card,
    .card,
    .section-shell,
    .filter-control,
    .table-shell,
    .glass-card,
    .panel-card,
    .profile-card,
    .profile-shell,
    .profile-photo-panel,
    .detail-item,
    .form-section,
    .radio-card,
    .option-card,
    .section-title,
    .section-title i,
    .profile-theme-toggle,
    .btn-ghost,
    .borrow-equipment-option,
    .borrow-inventory-card,
    .borrow-qr-result,
    .borrow-qr-scan-button,
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    table th,
    table td,
    [class*="-card"]:not([class*="icon"]):not([class*="badge"]),
    [class~="border"],
    [class~="border-2"],
    [class~="border-4"],
    [class~="border-8"],
    [style*="border"],
    .student-page-user,
    .student-page-user-initials
) {
    border-width: 1.5px !important;
    border-color: #1f2937 !important;
}

html.theme-light body.student-portal :is(.main-container.theme-light, .page-shell.theme-light) .student-page-header {
    background: #ffffff !important;
    color: #111827 !important;
}

html.theme-light body.student-portal :is(.main-container.theme-light, .page-shell.theme-light) .student-page-user {
    border-color: rgba(74, 222, 128, .32) !important;
    background: #04281b !important;
    color: #ffffff !important;
}

html.theme-light body.student-portal :is(.main-container.theme-light, .page-shell.theme-light) .student-page-user-initials {
    border-color: rgba(74, 222, 128, .4) !important;
    background: #06402b !important;
    color: #a7f3d0 !important;
}

html.theme-light body.student-portal :is(.main-container.theme-light, .page-shell.theme-light) .student-page-user-role {
    color: #34d399 !important;
}

html.theme-light body.student-portal.pc-station-page .main-container.theme-light > header.student-page-header {
    background: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
}

html.theme-light body.student-portal :is(.student-page-header, .system-dashboard-heading) {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07) !important;
}

html.theme-light body.student-portal .student-page-header .student-page-subtitle {
    color: #000000 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
}

@media (min-width: 1024px) {
    html body.app-shell .main-container {
        box-sizing: border-box;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    html body.app-shell.technician-portal .main-container {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 1023px) {
    body.student-portal .student-page-header {
        display: flex !important;
        min-height: 3.8rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        padding: 0.45rem 0.55rem !important;
        overflow: hidden !important;
    }

    body.student-portal .student-page-heading {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    body.student-portal .student-page-header #mobileMenuToggle {
        display: inline-flex !important;
        width: 2.3rem !important;
        height: 2.3rem !important;
        flex: 0 0 2.3rem !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(74, 222, 128, 0.2) !important;
        border-radius: 0.75rem !important;
        background: rgba(7, 38, 24, 0.8) !important;
        color: #a7f3d0 !important;
        font-size: 1rem !important;
    }

    body.student-portal .student-page-heading-copy {
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.student-portal .student-page-heading-copy .student-page-title {
        max-width: 34vw !important;
        font-size: clamp(0.78rem, 3.8vw, 1rem) !important;
        line-height: 1.15 !important;
    }

    body.student-portal .student-page-heading-copy .student-page-title.student-university-title {
        max-width: min(100%, calc(100vw - 10rem)) !important;
        font-size: clamp(0.82rem, 3.8vw, 1.1rem) !important;
        font-weight: 700 !important;
        letter-spacing: 0.035em !important;
    }

    body.student-portal .system-dashboard-heading h1.student-university-title {
        max-width: min(100%, calc(100vw - 10rem)) !important;
        font-size: clamp(0.82rem, 3.8vw, 1.1rem) !important;
        font-weight: 700 !important;
        letter-spacing: 0.035em !important;
    }

    body.student-portal .student-page-heading-copy .student-page-subtitle {
        display: block !important;
        max-width: 34vw !important;
        margin: 0.12rem 0 0 !important;
        overflow: hidden !important;
        color: #86c9a5 !important;
        font-size: 0.46rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        line-height: 1.15 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.student-portal .student-page-header :is(
        .pc-station-header-actions,
        .borrow-header-actions,
        .attendance-header-actions,
        .report-issue-header-actions,
        .my-requests-header-actions,
        .student-profile-header-actions
    ),
    body.student-portal .student-page-header > .student-page-user {
        display: flex !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.3rem !important;
        margin: 0 !important;
    }

    body.student-portal .student-page-header :is(
        .pc-station-header-actions,
        .borrow-header-actions,
        .attendance-header-actions,
        .report-issue-header-actions,
        .my-requests-header-actions,
        .student-profile-header-actions
    ) {
        flex-direction: row-reverse !important;
    }

    body.student-portal .student-page-header .student-page-user {
        min-width: 0 !important;
        min-height: 2.15rem !important;
        flex: 0 1 auto !important;
        gap: 0.3rem !important;
        margin: 0 !important;
        padding: 0.2rem 0.4rem 0.2rem 0.22rem !important;
    }

    body.student-portal .student-page-header .student-page-user-initials {
        width: 1.55rem !important;
        height: 1.55rem !important;
        flex: 0 0 1.55rem !important;
    }

    body.student-portal .student-page-header .student-page-user-copy {
        min-width: 0 !important;
        max-width: 27vw !important;
    }

    body.student-portal .student-page-header .student-page-user-name {
        max-width: 27vw !important;
        overflow: hidden !important;
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.student-portal .student-page-header .student-page-user-role {
        max-width: 18vw !important;
        overflow: hidden !important;
        font-size: 0.48rem !important;
        letter-spacing: 0.06em !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.student-portal .student-page-header .profile-theme-controls {
        display: inline-flex !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    body.student-portal .student-page-header .profile-theme-toggle {
        width: 2.25rem !important;
        height: 2.25rem !important;
        flex: 0 0 2.25rem !important;
        border-radius: 0.75rem !important;
    }
}

html.theme-light body.app-shell.student-portal .main-container.theme-light .student-university-title {
    color: #000000 !important;
}

body.app-shell.student-portal .main-container.theme-light .student-page-header .student-university-title,
html.theme-light body.app-shell.student-portal .student-page-header .student-university-title {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.app-shell.student-portal .student-page-header .student-university-title {
    display: block !important;
    max-width: 100% !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.student-borrow-equipment-page .borrow-requests-table :is(th, td),
body.student-my-requests-page .borrow-requests-table :is(th, td),
body.faculty-my-requests-page .borrow-requests-table :is(th, td),
body.admin-borrow-equipment-page table :is(th, td) {
    color: #ffffff !important;
}

body.student-borrow-equipment-page .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
body.student-my-requests-page .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
body.faculty-my-requests-page .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
body.admin-borrow-equipment-page table tbody td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg) {
    color: #ffffff !important;
    font-weight: 500;
}

body.student-borrow-equipment-page .borrow-requests-table th,
body.student-my-requests-page .borrow-requests-table th,
body.faculty-my-requests-page .borrow-requests-table th,
body.admin-borrow-equipment-page table th {
    font-weight: 700 !important;
}

html.theme-light body.student-borrow-equipment-page .main-container.theme-light .borrow-requests-table :is(th, td),
html.theme-light body.student-my-requests-page .main-container.theme-light .borrow-requests-table :is(th, td),
html.theme-light body.faculty-my-requests-page .main-container.theme-light .borrow-requests-table :is(th, td),
html.theme-light body.admin-borrow-equipment-page .main-container.theme-light table :is(th, td) {
    color: #111827 !important;
}

html.theme-light body.student-borrow-equipment-page .main-container.theme-light .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
html.theme-light body.student-my-requests-page .main-container.theme-light .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
html.theme-light body.faculty-my-requests-page .main-container.theme-light .borrow-requests-table td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg),
html.theme-light body.admin-borrow-equipment-page .main-container.theme-light table tbody td :not(.borrow-request-status):not(.status-badge):not(button):not(i):not(svg) {
    color: #111827 !important;
}

/* Keep page-level titles consistent across every signed-in portal. */
body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero):has(h1, .page-title, .header-title, .student-page-title, .page-header-title) {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.45rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .55rem !important;
    margin: 0 0 .65rem !important;
    padding: .15rem .8rem !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 0 !important;
    background: var(--app-header-bg) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
}

html.theme-light body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero):has(h1, .page-title, .header-title, .student-page-title, .page-header-title) {
    border: 1px solid var(--app-border) !important;
    background: var(--app-header-bg) !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(h1, .page-title, .header-title, .student-page-title, .page-header-title) {
    color: #1f2937 !important;
}

html.theme-light body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(p, .eyebrow, .header-eyebrow, .header-subtitle, .student-page-subtitle, .page-header-subtitle, .dashboard-header-details) {
    color: #64748b !important;
}

body .top-header > .top-header-card {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.1rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .55rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(h1, .page-title, .header-title, .student-page-title, .page-header-title) {
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #e8f5ed !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    letter-spacing: -.01em !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.eyebrow, .header-eyebrow, .header-subtitle, .student-page-subtitle, .page-header-subtitle, .dashboard-header-details, .hero-icon, .heading-icon) {
    display: none !important;
}

body :is(.hero, .page-heading) :is(.heading-copy, .hero-copy) > p {
    display: none !important;
}

body .hero:has(h1) > div > p,
body .technician-profile-header p,
body .audit-page-heading .page-description {
    display: none !important;
}

body :is(.system-dashboard-heading, .student-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero) > :is(div:first-child, .heading-copy, .student-page-heading, .system-dashboard-heading-main) {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.system-dashboard-heading-actions, .student-dashboard-profile-column, .header-actions, .header-right, .header-icons, .borrow-header-actions, .campus-chip, .technician-profile-identity) {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: .35rem !important;
    margin: 0 0 0 auto !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.system-profile-badge, .student-page-user, .technician-profile-identity, .campus-chip) {
    box-sizing: border-box !important;
    min-height: 1.9rem !important;
    gap: .35rem !important;
    padding: .1rem .45rem .1rem .25rem !important;
    border-radius: .45rem !important;
    box-shadow: none !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.system-profile-badge-avatar, .student-page-user-initials, .technician-profile-identity > span:first-child) {
    width: 1.45rem !important;
    height: 1.45rem !important;
    flex-basis: 1.45rem !important;
    border-radius: .35rem !important;
    font-size: .62rem !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.system-profile-badge-name, .student-page-user-name, .technician-profile-identity [data-tech-name]) {
    max-width: min(12rem, 24vw) !important;
    font-size: .7rem !important;
    line-height: 1.1 !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.system-profile-badge-role, .student-page-user-role, .technician-profile-identity [data-tech-role]) {
    font-size: .48rem !important;
    line-height: 1.1 !important;
}

body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
    :is(.profile-theme-toggle, #mobileMenuToggle, .menu-toggle, .student-page-menu) {
    width: 1.8rem !important;
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    flex: 0 0 1.8rem !important;
    padding: 0 !important;
    border-radius: .4rem !important;
    box-shadow: none !important;
    transform: none !important;
}

body .audit-page-heading {
    box-sizing: border-box !important;
    min-height: 2.45rem !important;
    margin: 0 0 .65rem !important;
    padding: .4rem .8rem !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 0 !important;
    background: var(--app-header-bg) !important;
    box-shadow: none !important;
}

body .audit-page-heading .comlab-page-heading-title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
}

body.student-portal header:has(> .student-page-header) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Admin light mode: keep the workspace genuinely white and free of dark/green surfaces. */
html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal) {
    --bg: #ffffff;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --card-hover: #f8fafc;
    --borders: #e5e7eb;
    --text: #111827;
    --text-secondary: #64748b;
    background: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)::before,
html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

html.theme-light body.app-shell.system-layout-page:not(.reports-page):not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(.main-container, .main-content, .page-content, main, .page-shell, .audit-page-content) {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.reports-page):not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(
        .card,
        .glass-card,
        .glass,
        .panel,
        .panel-card,
        .section-shell,
        .table-card,
        .table-shell,
        .table-wrapper,
        .table-wrap,
        .table-container,
        .table-responsive,
        .summary-card,
        .chart-card,
        .info-card,
        .equipment-card,
        .equipment-summary-card,
        .availability-laboratory-section,
        .assignment-table-card,
        .top-controls-section,
        .system-dashboard-heading,
        .page-heading,
        .page-header-card,
        .top-header,
        .modal-content,
        .details-modal,
        .dialog
    ) {
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell.system-layout-page:not(.reports-page):not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(table, table tbody, table tbody tr, table tbody tr:nth-child(even), table tbody tr:hover) {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.reports-page):not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(h1, h2, h3, h4, h5, h6, p, label, th, td, .page-title, .card-title, .table-title) {
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(.text-white, .text-emerald-50, .text-emerald-100, .text-emerald-200, .text-emerald-300, .text-green-100, .text-green-200, .text-green-300) {
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.reports-page):not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(.theme-locked-table-header, table thead th, .assignment-table thead th) {
    border-color: #e5e7eb !important;
    background: #f8fafc !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(.system-profile-badge.profile-theme-static, .student-page-user, .campus-chip, .profile-theme-toggle) {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page:not(.student-portal):not(.faculty-portal):not(.faculty-page):not(.technician-portal)
    :is(.system-profile-badge-copy, .system-profile-badge-name, .system-profile-badge-role, .campus-chip strong) {
    background: transparent !important;
    color: #111827 !important;
}

html.theme-light body.app-shell.system-layout-page.admin-dashboard-page #mainContainer #maintenance-monitoring {
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.student-portal .student-page-header {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
}

@media (max-width: 640px) {
    body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero) {
        min-height: 2.35rem !important;
        gap: .35rem !important;
        padding-right: .5rem !important;
        padding-left: .5rem !important;
    }

    body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
        :is(h1, .page-title, .header-title, .student-page-title, .page-header-title) {
        font-size: .88rem !important;
    }

    body :is(.system-dashboard-heading, .top-header, .student-page-header, .attendance-page-header, .page-header-card, .technician-profile-header, .page-heading, .hero)
        :is(.system-dashboard-heading-actions, .header-actions, .header-right, .header-icons, .borrow-header-actions) {
        gap: .2rem !important;
    }
}

/* High-specificity layer keeps older page-level styles from restoring thick cards. */
html body:not(.app-content-embedded):not(.facilities-embedded) .comlab-slim-page-header:not(#comlab-header-specificity) {
    box-sizing: border-box !important;
    display: flex !important;
    position: fixed !important;
    inset: 0 0 auto var(--sidebar-width, 280px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 2.45rem !important;
    height: 2.45rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .55rem !important;
    margin: 0 !important;
    padding: .15rem .8rem !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 0 !important;
    background: var(--app-header-bg) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    z-index: 1050 !important;
    transition: none !important;
}

html.theme-light body .comlab-slim-page-header:not(#comlab-header-specificity) {
    border: 0 !important;
    border-bottom: 1px solid var(--app-border) !important;
    background: var(--app-header-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    color: #1f2937 !important;
}

html body .comlab-page-header-spacer {
    display: block !important;
    width: 100% !important;
    height: 2.45rem !important;
    min-height: 2.45rem !important;
    margin: 0 0 .65rem !important;
    padding: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity) > .top-header-card {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.1rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .55rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(h1, .page-title, .header-title, .student-page-title, .page-header-title, .comlab-page-heading-title) {
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #e8f5ed !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    letter-spacing: -.01em !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.eyebrow, .header-eyebrow, .header-subtitle, .student-page-subtitle, .page-header-subtitle, .dashboard-header-details, .hero-icon, .heading-icon) {
    display: none !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    > :is(div:first-child, .top-header-card, .heading-copy, .student-page-heading, .system-dashboard-heading-main) {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity):is(.hero, .page-heading) p,
html body .comlab-slim-page-header:not(#comlab-header-specificity).technician-profile-header p,
html body .comlab-slim-page-header:not(#comlab-header-specificity).audit-page-heading .page-description {
    display: none !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.system-dashboard-heading-actions, .student-dashboard-profile-column, .header-actions, .header-right, .header-icons, .borrow-header-actions, .campus-chip, .technician-profile-identity) {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: .35rem !important;
    margin: 0 0 0 auto !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.system-profile-badge, .student-page-user, .technician-profile-identity, .campus-chip) {
    min-height: 1.9rem !important;
    gap: .35rem !important;
    padding: .1rem .45rem .1rem .25rem !important;
    border-radius: .45rem !important;
    box-shadow: none !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.system-profile-badge-avatar, .student-page-user-initials, .technician-profile-identity > span:first-child) {
    width: 1.45rem !important;
    height: 1.45rem !important;
    flex-basis: 1.45rem !important;
    border-radius: .35rem !important;
    font-size: .62rem !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.system-profile-badge-name, .student-page-user-name, .technician-profile-identity [data-tech-name]) {
    max-width: min(12rem, 24vw) !important;
    font-size: .7rem !important;
    line-height: 1.1 !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.system-profile-badge-role, .student-page-user-role, .technician-profile-identity [data-tech-role]) {
    font-size: .48rem !important;
    line-height: 1.1 !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity) .user-profile {
    box-sizing: border-box !important;
    min-height: 1.9rem !important;
    gap: .35rem !important;
    margin: 0 !important;
    padding: .1rem .45rem .1rem .25rem !important;
    border-radius: .45rem !important;
    box-shadow: none !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity) .user-profile .user-avatar {
    width: 1.45rem !important;
    height: 1.45rem !important;
    flex: 0 0 1.45rem !important;
    font-size: .62rem !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity) .user-profile .user-name {
    max-width: min(12rem, 24vw) !important;
    font-size: .7rem !important;
    line-height: 1.1 !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity) .user-profile .user-role {
    font-size: .48rem !important;
    line-height: 1.1 !important;
}

html body .comlab-slim-page-header:not(#comlab-header-specificity)
    :is(.profile-theme-toggle, #mobileMenuToggle, .menu-toggle, .student-page-menu) {
    width: 1.8rem !important;
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    flex: 0 0 1.8rem !important;
    padding: 0 !important;
    border-radius: .4rem !important;
    box-shadow: none !important;
    transform: none !important;
}

html body .comlab-static-header-wrap:not(#comlab-header-wrap-specificity) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    html body .comlab-slim-page-header:not(#comlab-header-specificity) {
        min-height: 2.35rem !important;
        height: 2.35rem !important;
        gap: .35rem !important;
        padding-right: .5rem !important;
        padding-left: .5rem !important;
    }

    html body .comlab-slim-page-header:not(#comlab-header-specificity)
        :is(h1, .page-title, .header-title, .student-page-title, .page-header-title, .comlab-page-heading-title) {
        font-size: .88rem !important;
    }
}

@media (max-width: 1023px) {
    html body.app-shell.student-portal:not(.app-content-embedded):not(.facilities-embedded)
        .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
        inset: 0 0 auto 0 !important;
        width: 100% !important;
    }

}

@media (max-width: 768px) {
    html body:not(.student-portal) .comlab-slim-page-header:not(#comlab-header-specificity) {
        inset: 0 0 auto 0 !important;
    }
}

html body .comlab-notification-button {
    box-sizing: border-box !important;
    position: relative !important;
    display: inline-grid !important;
    width: 1.95rem !important;
    min-width: 1.95rem !important;
    height: 1.95rem !important;
    min-height: 1.95rem !important;
    flex: 0 0 1.95rem !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(74, 222, 128, .28) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, .18), rgba(6, 64, 43, .72)) !important;
    color: #a7f3d0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 12px rgba(2, 18, 12, .25) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

html body .comlab-notification-button:hover {
    border-color: rgba(74, 222, 128, .66) !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, .3), rgba(6, 64, 43, .88)) !important;
    color: #ecfdf5 !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .1), 0 7px 16px rgba(2, 18, 12, .3) !important;
    transform: translateY(-1px) !important;
}

html body .comlab-notification-button:focus-visible {
    outline: 2px solid #86efac !important;
    outline-offset: 2px !important;
}

html body .comlab-notification-button > .fa-bell {
    color: inherit !important;
    font-size: .82rem !important;
    line-height: 1 !important;
}

html body .comlab-notification-button:hover > .fa-bell {
    animation: comlab-bell-ring .48s ease-in-out;
}

html body .comlab-notification-button .comlab-notification-badge:not(.hidden) {
    box-sizing: border-box !important;
    position: absolute !important;
    top: -.28rem !important;
    right: -.3rem !important;
    display: inline-flex !important;
    min-width: 1.05rem !important;
    width: auto !important;
    height: 1.05rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 .24rem !important;
    border: 1px solid #07150f !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .28) !important;
    font-size: .56rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html body .comlab-notification-button .comlab-notification-badge.hidden {
    display: none !important;
}

@keyframes comlab-bell-ring {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-12deg); }
    40%, 80% { transform: rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
    html body .comlab-notification-button,
    html body .comlab-notification-button:hover > .fa-bell {
        animation: none !important;
        transition: none !important;
    }
}

/* Refined shared navigation for every authenticated role. */
html body #sidebar {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background:
        radial-gradient(220px 180px at 0% 0%, rgba(34, 197, 94, .12), transparent 72%),
        linear-gradient(180deg, #071a12 0%, #06150f 54%, #081a12 100%) !important;
    border-right: 1px solid rgba(74, 222, 128, .2) !important;
    box-shadow: 14px 0 38px rgba(1, 10, 7, .22), inset -1px 0 0 rgba(255, 255, 255, .025) !important;
}

html body #sidebar .sidebar-header {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    min-height: 5.8rem !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    padding: .95rem 1rem .9rem !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(74, 222, 128, .16) !important;
    background:
        radial-gradient(180px 110px at 0% 0%, rgba(34, 197, 94, .13), transparent 78%),
        linear-gradient(150deg, rgba(12, 39, 27, .96), rgba(6, 22, 15, .98)) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .025) !important;
}

html body #sidebar .sidebar-logo {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    min-width: 0 !important;
    min-height: 3.6rem !important;
    align-items: center !important;
    gap: .72rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #sidebar .sidebar-logo > i {
    display: inline-grid !important;
    width: 2.45rem !important;
    height: 2.45rem !important;
    flex: 0 0 2.45rem !important;
    place-items: center !important;
    border: 1px solid rgba(74, 222, 128, .3) !important;
    border-radius: .78rem !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, .24), rgba(6, 64, 43, .44)) !important;
    color: #4ade80 !important;
    font-size: 1.05rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 5px 16px rgba(34, 197, 94, .1) !important;
}

html body #sidebar .sidebar-brand-copy {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .2rem !important;
}

html body #sidebar .sidebar-logo-text {
    display: block !important;
    color: #e8f5ed !important;
    font-size: 1.38rem !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    line-height: 1 !important;
    text-shadow: 0 2px 14px rgba(74, 222, 128, .1) !important;
}

html body #sidebar .sidebar-tagline {
    display: block !important;
    margin: 0 !important;
    color: #95b5a4 !important;
    font-size: .57rem !important;
    font-weight: 750 !important;
    letter-spacing: .13em !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
}

html body #sidebar .sidebar-nav {
    display: block !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: .7rem .62rem 1rem !important;
    scrollbar-color: rgba(74, 222, 128, .25) transparent !important;
    scrollbar-width: thin !important;
}

html body #sidebar .sidebar-nav::-webkit-scrollbar {
    width: 5px !important;
}

html body #sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent !important;
}

html body #sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(74, 222, 128, .23) !important;
}

html body #sidebar .nav-item {
    position: relative !important;
    display: flex !important;
    min-width: 0 !important;
    min-height: 2.72rem !important;
    align-items: center !important;
    gap: .68rem !important;
    margin: .18rem 0 !important;
    padding: .48rem .68rem !important;
    overflow: visible !important;
    border: 1px solid transparent !important;
    border-radius: .72rem !important;
    background: transparent !important;
    color: #a9c8b7 !important;
    font-size: .88rem !important;
    font-weight: 620 !important;
    line-height: 1.28rem !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

html body #sidebar .nav-item > i {
    display: inline-grid !important;
    width: 1.78rem !important;
    height: 1.78rem !important;
    flex: 0 0 1.78rem !important;
    place-items: center !important;
    border: 1px solid transparent !important;
    border-radius: .55rem !important;
    background: rgba(34, 197, 94, .075) !important;
    color: #4ade80 !important;
    font-size: .96rem !important;
    line-height: 1 !important;
    transition: color .18s ease, border-color .18s ease, background .18s ease, filter .18s ease !important;
}

html body #sidebar .sidebar-nav-label {
    display: block !important;
    min-width: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    overflow-wrap: normal !important;
}

html body #sidebar .nav-item:hover {
    border-color: rgba(74, 222, 128, .14) !important;
    background: linear-gradient(105deg, rgba(34, 197, 94, .1), rgba(12, 42, 29, .5)) !important;
    color: #e1f5e9 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    transform: translateX(2px) !important;
}

html body #sidebar .nav-item:hover > i {
    border-color: rgba(74, 222, 128, .16) !important;
    background: rgba(34, 197, 94, .14) !important;
    color: #86efac !important;
}

html body #sidebar .nav-item.active,
html body #sidebar .nav-item[aria-current="page"] {
    border-color: rgba(74, 222, 128, .34) !important;
    background: linear-gradient(105deg, rgba(34, 197, 94, .2), rgba(12, 54, 36, .8) 62%, rgba(8, 31, 22, .96)) !important;
    color: #effcf3 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 5px 16px rgba(1, 16, 10, .18) !important;
    transform: none !important;
}

html body #sidebar .nav-item.active::before,
html body #sidebar .nav-item[aria-current="page"]::before {
    position: absolute !important;
    top: .48rem !important;
    bottom: .48rem !important;
    left: 0 !important;
    width: 3px !important;
    border-radius: 0 999px 999px 0 !important;
    background: #4ade80 !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, .6) !important;
    content: '' !important;
}

html body #sidebar .nav-item.active > i,
html body #sidebar .nav-item[aria-current="page"] > i {
    border-color: rgba(134, 239, 172, .22) !important;
    background: rgba(34, 197, 94, .19) !important;
    color: #a7f3d0 !important;
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, .32)) !important;
}

html body #sidebar .nav-item:focus-visible {
    outline: 2px solid #86efac !important;
    outline-offset: 2px !important;
    color: #ecfdf5 !important;
}

html body #sidebar .sidebar-footer {
    position: relative !important;
    z-index: 1 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: .55rem .62rem .75rem !important;
    border-top: 1px solid rgba(74, 222, 128, .12) !important;
    background: linear-gradient(180deg, rgba(6, 21, 14, .88), rgba(5, 17, 11, .98)) !important;
    backdrop-filter: blur(14px) !important;
}

@media (max-width: 767px) {
    html body #sidebar .sidebar-header {
        min-height: 5.45rem !important;
        padding: .82rem .92rem !important;
    }

    html body #sidebar .sidebar-nav {
        padding: .58rem .55rem .85rem !important;
    }

    html body #sidebar .nav-item {
        min-height: 2.65rem !important;
        padding: .44rem .62rem !important;
        font-size: .86rem !important;
    }
}

@media (max-width: 1023px) {
    html body #sidebar .sidebar-logo {
        padding-right: 2.65rem !important;
    }

    html body #sidebar .sidebar-close-btn {
        position: absolute !important;
        top: .8rem !important;
        right: .75rem !important;
        z-index: 3 !important;
        display: inline-grid !important;
        width: 2rem !important;
        height: 2rem !important;
        place-items: center !important;
        border: 1px solid rgba(74, 222, 128, .18) !important;
        border-radius: .62rem !important;
        background: rgba(4, 25, 16, .84) !important;
        color: #b7e5c8 !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, .2) !important;
    }

    html body #sidebar .sidebar-close-btn:hover,
    html body #sidebar .sidebar-close-btn:focus-visible {
        border-color: rgba(74, 222, 128, .46) !important;
        background: rgba(15, 55, 38, .96) !important;
        color: #ecfdf5 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body #sidebar .nav-item,
    html body #sidebar .nav-item > i {
        transition: none !important;
    }
}

/* Light mode shared navigation */
html.theme-light body #sidebar,
html.theme-light #sidebar,
html.theme-light .sidebar {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-right: 1px solid #dce5df !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04), inset -1px 0 0 rgba(0, 0, 0, 0.02) !important;
}

html.theme-light body #sidebar .sidebar-header,
html.theme-light .sidebar .sidebar-header {
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #dce5df !important;
    box-shadow: none !important;
}

html.theme-light body #sidebar .sidebar-logo > i,
html.theme-light .sidebar .sidebar-logo > i {
    border: 1px solid #dce5df !important;
    border-radius: .78rem !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
    box-shadow: none !important;
}

html.theme-light body #sidebar .sidebar-logo-text,
html.theme-light .sidebar .sidebar-logo-text {
    color: #1f2937 !important;
    text-shadow: none !important;
}

html.theme-light body #sidebar .sidebar-tagline,
html.theme-light .sidebar .sidebar-tagline {
    color: #64748b !important;
}

html.theme-light body #sidebar .sidebar-nav,
html.theme-light .sidebar .sidebar-nav {
    scrollbar-color: #dce5df transparent !important;
}

html.theme-light body #sidebar .sidebar-nav::-webkit-scrollbar-thumb,
html.theme-light .sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: #dce5df !important;
}

html.theme-light body #sidebar .nav-item,
html.theme-light .sidebar .nav-item {
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light body #sidebar .nav-item > i,
html.theme-light .sidebar .nav-item > i {
    border: 1px solid transparent !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

html.theme-light body #sidebar .sidebar-nav-label,
html.theme-light .sidebar .sidebar-nav-label {
    color: inherit !important;
}

html.theme-light body #sidebar .nav-item:hover,
html.theme-light .sidebar .nav-item:hover {
    border-color: #dce5df !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
    box-shadow: none !important;
    transform: translateX(2px) !important;
}

html.theme-light body #sidebar .nav-item:hover > i,
html.theme-light .sidebar .nav-item:hover > i {
    border-color: #dce5df !important;
    background: #dcfce7 !important;
    color: #15803d !important;
}

html.theme-light body #sidebar .nav-item.active,
html.theme-light body #sidebar .nav-item[aria-current="page"],
html.theme-light .sidebar .nav-item.active,
html.theme-light .sidebar .nav-item[aria-current="page"] {
    border-color: rgba(22, 163, 74, 0.25) !important;
    background: #e8f5ed !important;
    color: #16a34a !important;
    box-shadow: none !important;
    transform: none !important;
}

html.theme-light body #sidebar .nav-item.active::before,
html.theme-light body #sidebar .nav-item[aria-current="page"]::before,
html.theme-light .sidebar .nav-item.active::before,
html.theme-light .sidebar .nav-item[aria-current="page"]::before {
    background: #16a34a !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.35) !important;
}

html.theme-light body #sidebar .nav-item.active > i,
html.theme-light body #sidebar .nav-item[aria-current="page"] > i,
html.theme-light .sidebar .nav-item.active > i,
html.theme-light .sidebar .nav-item[aria-current="page"] > i {
    border-color: transparent !important;
    background: #16a34a !important;
    color: #ffffff !important;
    filter: none !important;
}

html.theme-light body #sidebar .nav-item:focus-visible,
html.theme-light .sidebar .nav-item:focus-visible {
    outline: 2px solid #16a34a !important;
    outline-offset: 2px !important;
    color: #16a34a !important;
}

html.theme-light body #sidebar .sidebar-footer,
html.theme-light .sidebar .sidebar-footer {
    border-top: 1px solid #dce5df !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
}

@media (max-width: 1023px) {
    html.theme-light body #sidebar .sidebar-close-btn,
    html.theme-light .sidebar .sidebar-close-btn {
        border-color: #dce5df !important;
        background: #f4f7f5 !important;
        color: #1f2937 !important;
        box-shadow: none !important;
    }

    html.theme-light body #sidebar .sidebar-close-btn:hover,
    html.theme-light body #sidebar .sidebar-close-btn:focus-visible,
    html.theme-light .sidebar .sidebar-close-btn:hover,
    html.theme-light .sidebar .sidebar-close-btn:focus-visible {
        border-color: #16a34a !important;
        background: #e8f5ed !important;
        color: #16a34a !important;
    }
}

body.app-shell :is(
    .system-dashboard-heading,
    .top-header,
    .student-page-header,
    .attendance-page-header,
    .page-header-card,
    .technician-profile-header,
    .page-heading,
    .hero
) h1 {
    display: none !important;
}

body.app-shell :is(
    .system-dashboard-heading,
    .top-header,
    .student-page-header,
    .attendance-page-header,
    .page-header-card,
    .technician-profile-header,
    .page-heading,
    .hero
) .system-profile-badge-name {
    display: none !important;
}

body.app-shell :is(.system-dashboard-heading, .top-header, .student-page-header, .header-actions) .header-pill {
    font-size: 0 !important;
}

body.app-shell :is(.system-dashboard-heading, .top-header, .student-page-header, .header-actions) .header-pill > i {
    font-size: 1rem !important;
}

/* One shared toolbar for every authenticated content area. */
html body.app-shell:not(.app-content-embedded):not(.facilities-embedded) .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: 0 0 auto var(--sidebar-width, 280px) !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 2.8rem !important;
    min-height: 2.8rem !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .65rem !important;
    margin: 0 !important;
    padding: .25rem .9rem !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(110, 231, 183, .2) !important;
    border-radius: 0 !important;
    background: var(--app-header-bg) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
    transform: none !important;
    z-index: 1150 !important;
    transition: none !important;
}

html body.app-shell .comlab-page-header-spacer:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
    box-sizing: border-box !important;
    height: 2.8rem !important;
    min-height: 2.8rem !important;
    margin: 0 0 .65rem !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-dashboard-heading-main, .header-left, .student-page-heading, .heading-copy) {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: .6rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-dashboard-heading-actions, .header-actions, .header-right, .header-icons, .student-dashboard-profile-column, .borrow-header-actions, .attendance-header-actions) {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .45rem !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(h1, h2, .page-title, .header-title, .student-page-title, .page-header-title, .comlab-page-heading-title, p, .header-meta, .header-subtitle, .student-page-subtitle, .page-header-subtitle, .dashboard-header-details) {
    display: none !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.profile-theme-controls, [data-theme-toggle-anchor]) {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(#mobileMenuToggle, .menu-toggle, .student-page-menu, .profile-theme-toggle, .comlab-notification-button, [data-comlab-notification-button]) {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    flex: 0 0 2.25rem !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(110, 231, 183, .24) !important;
    border-radius: .72rem !important;
    background: rgba(14, 67, 43, .64) !important;
    color: #a7f3d0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge, .student-page-user, .user-profile, .faculty-profile-link) {
    box-sizing: border-box !important;
    display: inline-flex !important;
    min-width: 0 !important;
    min-height: 2.25rem !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .45rem !important;
    margin: 0 !important;
    padding: .15rem .55rem .15rem .3rem !important;
    border: 1px solid rgba(110, 231, 183, .24) !important;
    border-radius: .75rem !important;
    background: rgba(14, 67, 43, .52) !important;
    color: #e7f5ec !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-avatar, .student-page-user-initials, .user-avatar, .faculty-profile-avatar) {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    flex: 0 0 1.75rem !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(110, 231, 183, .28) !important;
    border-radius: .55rem !important;
    background: rgba(5, 69, 43, .85) !important;
    color: #a7f3d0 !important;
    font-size: .7rem !important;
    font-weight: 850 !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-copy, .student-page-user-copy, .user-info) {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: .1rem !important;
    text-align: left !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-name, .student-page-user-name, .user-name) {
    display: block !important;
    max-width: min(12rem, 25vw) !important;
    overflow: hidden !important;
    color: #f0fdf4 !important;
    font-size: .72rem !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-role, .student-page-user-role, .user-role) {
    display: block !important;
    color: #86efac !important;
    font-size: .52rem !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

@media (max-width: 768px) {
    html body.app-shell.student-portal:not(.app-content-embedded):not(.facilities-embedded)
        .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
        inset: env(safe-area-inset-top, 0px) 0 auto 0 !important;
        width: 100% !important;
        height: 2.8rem !important;
        min-height: 2.8rem !important;
        padding: .25rem .65rem !important;
    }

    html body.app-shell .comlab-page-header-spacer:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
        height: calc(2.8rem + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(2.8rem + env(safe-area-inset-top, 0px)) !important;
    }

    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) .menu-toggle,
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) #mobileMenuToggle,
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) .student-page-menu {
        display: inline-flex !important;
    }
}

@media (min-width: 1024px) {
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) .menu-toggle,
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) #mobileMenuToggle,
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) .student-page-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
        :is(.system-profile-badge-name, .student-page-user-name, .user-name) {
        display: none !important;
    }

    html body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
        :is(.system-profile-badge, .student-page-user, .user-profile, .faculty-profile-link) {
        gap: .35rem !important;
        padding-right: .4rem !important;
    }
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2) {
    border-bottom: 1px solid var(--app-border) !important;
    background: var(--app-header-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04) !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(#mobileMenuToggle, .menu-toggle, .student-page-menu, .profile-theme-toggle, .comlab-notification-button, [data-comlab-notification-button]) {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #16a34a !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(#mobileMenuToggle, .menu-toggle, .student-page-menu, .profile-theme-toggle, .comlab-notification-button, [data-comlab-notification-button]):hover {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge, .student-page-user, .user-profile, .faculty-profile-link) {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-avatar, .student-page-user-initials, .user-avatar, .faculty-profile-avatar) {
    border: 1px solid #dce5df !important;
    background: #e8f5ed !important;
    color: #16a34a !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-name, .student-page-user-name, .user-name) {
    color: #1f2937 !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(.system-profile-badge-role, .student-page-user-role, .user-role) {
    color: #16a34a !important;
}

html.theme-light body.app-shell .comlab-slim-page-header:not(#comlab-header-specificity):not(#comlab-header-specificity-2)
    :is(h1, .page-title, .header-title, .student-page-title, .page-header-title, .comlab-page-heading-title) {
    color: #1f2937 !important;
}

html body.app-shell.student-portal .comlab-slim-page-header
    :is(.system-dashboard-heading-actions, .student-dashboard-profile-column, .header-actions, .header-right, .header-icons)
    > :is(.comlab-notification-button, [data-comlab-notification-button]) {
    order: 1 !important;
}

html body.app-shell.student-portal .comlab-slim-page-header
    :is(.system-dashboard-heading-actions, .student-dashboard-profile-column, .header-actions, .header-right, .header-icons)
    > :is([data-theme-toggle-anchor], .profile-theme-controls, .profile-theme-toggle) {
    order: 2 !important;
}

html body.app-shell.student-portal .comlab-slim-page-header
    :is(.system-dashboard-heading-actions, .student-dashboard-profile-column, .header-actions, .header-right, .header-icons)
    > :is(.system-profile-badge, .student-page-user, .user-profile, .faculty-profile-link) {
    order: 3 !important;
}

html body.app-shell #qr-scan-float-btn {
    position: fixed !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1000 !important;
    display: inline-flex !important;
    width: 3.25rem !important;
    min-width: 3.25rem !important;
    height: 3.25rem !important;
    min-height: 3.25rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(167, 243, 208, .48) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #21b86a, #087a4c) !important;
    color: #f0fdf4 !important;
    box-shadow: 0 12px 28px rgba(2, 18, 12, .36), 0 0 0 4px rgba(34, 197, 94, .1) !important;
    font: inherit !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

html body.app-shell #qr-scan-float-btn:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-2px) !important;
}

html body.app-shell #qr-scan-float-btn:focus-visible {
    outline: 3px solid #a7f3d0 !important;
    outline-offset: 3px !important;
}

html.theme-light body.app-shell #qr-scan-float-btn {
    border: 1px solid #15803d !important;
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .35), 0 0 0 4px rgba(22, 163, 74, .1) !important;
}

html.theme-light body.app-shell #qr-scan-float-btn:hover {
    background: #15803d !important;
    filter: brightness(1.05) !important;
}

html.theme-light body.app-shell #qr-scan-float-btn:focus-visible {
    outline: 3px solid #16a34a !important;
    outline-offset: 3px !important;
}

html body.app-shell #qr-scan-float-btn i {
    font-size: 1.15rem !important;
}

html body.app-shell #comlab-help-float-btn {
    position: fixed !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1002 !important;
    display: inline-flex !important;
    width: 3.25rem !important;
    min-width: 3.25rem !important;
    height: 3.25rem !important;
    min-height: 3.25rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(167, 243, 208, .48) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #163d2b, #0b281b) !important;
    color: #d1fae5 !important;
    box-shadow: 0 12px 28px rgba(2, 18, 12, .36), 0 0 0 4px rgba(34, 197, 94, .08) !important;
    font: inherit !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

html body.app-shell #comlab-help-float-btn:hover {
    filter: brightness(1.12) !important;
    transform: translateY(-2px) !important;
}

html body.app-shell #comlab-help-float-btn:focus-visible {
    outline: 3px solid #a7f3d0 !important;
    outline-offset: 3px !important;
}

html body.app-shell #comlab-help-float-btn i {
    font-size: 1.12rem !important;
}

html body.app-shell #comlab-help-panel {
    position: fixed !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(8.65rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1003 !important;
    display: flex;
    box-sizing: border-box !important;
    width: min(22rem, calc(100vw - 2rem)) !important;
    max-height: min(32rem, 70vh) !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(110, 231, 183, .28) !important;
    border-radius: 1rem !important;
    background: #0b1d15 !important;
    color: #e8f4ed !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .45) !important;
}

html body.app-shell #comlab-help-panel[hidden] {
    display: none !important;
}

html body.app-shell #comlab-help-panel [hidden] {
    display: none !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    padding: .85rem 1rem !important;
    border-bottom: 1px solid rgba(110, 231, 183, .16) !important;
    background: rgba(16, 55, 37, .82) !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header h2,
html body.app-shell #comlab-help-panel .comlab-help-header p {
    margin: 0 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header h2 {
    color: #ecfdf5 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header p {
    margin-top: .15rem !important;
    color: #9dcab1 !important;
    font-size: .72rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: .35rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header-actions button {
    display: inline-flex !important;
    min-height: 2rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .3rem !important;
    padding: .35rem .5rem !important;
    border: 1px solid rgba(167, 243, 208, .2) !important;
    border-radius: .6rem !important;
    background: rgba(2, 18, 12, .28) !important;
    color: #d1fae5 !important;
    font: inherit !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header-actions .comlab-help-close {
    width: 2rem !important;
    padding: 0 !important;
    font-size: .9rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-header-actions button:disabled {
    cursor: wait !important;
    opacity: .6 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history {
    display: flex !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history[hidden] {
    display: none !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-heading {
    display: flex !important;
    align-items: center !important;
    gap: .6rem !important;
    padding: .65rem .85rem !important;
    border-bottom: 1px solid rgba(110, 231, 183, .12) !important;
    color: #dcebe1 !important;
    font-size: .8rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: .3rem !important;
    padding: .35rem .5rem !important;
    border: 1px solid rgba(167, 243, 208, .18) !important;
    border-radius: .55rem !important;
    background: transparent !important;
    color: #a7f3d0 !important;
    font: inherit !important;
    cursor: pointer !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-list {
    display: flex !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: .4rem !important;
    overflow-y: auto !important;
    padding: .65rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .2rem .5rem !important;
    width: 100% !important;
    padding: .65rem .7rem !important;
    border: 1px solid rgba(110, 231, 183, .12) !important;
    border-radius: .7rem !important;
    background: rgba(20, 42, 31, .75) !important;
    color: #e1f4e8 !important;
    text-align: left !important;
    cursor: pointer !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-item:hover,
html body.app-shell #comlab-help-panel .comlab-help-history-item.is-active {
    border-color: rgba(52, 211, 153, .5) !important;
    background: rgba(16, 68, 43, .76) !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-item strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #ecfdf5 !important;
    font-size: .78rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-item span {
    grid-column: 1 / -1 !important;
    overflow: hidden !important;
    color: #a9c5b3 !important;
    font-size: .7rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-item time {
    color: #8eb69b !important;
    font-size: .65rem !important;
    white-space: nowrap !important;
}

html body.app-shell #comlab-help-panel .comlab-help-history-empty {
    margin: auto !important;
    padding: 1rem !important;
    color: #9dcab1 !important;
    font-size: .8rem !important;
    text-align: center !important;
}

html body.app-shell #comlab-help-panel .comlab-help-close {
    display: inline-grid !important;
    width: 2rem !important;
    height: 2rem !important;
    place-items: center !important;
    border: 1px solid rgba(167, 243, 208, .2) !important;
    border-radius: .6rem !important;
    background: rgba(2, 18, 12, .35) !important;
    color: #d1fae5 !important;
    cursor: pointer !important;
}

html body.app-shell #comlab-help-panel .comlab-help-messages {
    display: flex !important;
    min-height: 7rem !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: .55rem !important;
    overflow-y: auto !important;
    padding: .85rem !important;
    overscroll-behavior: contain !important;
}

html body.app-shell #comlab-help-panel .comlab-help-message {
    max-width: 88% !important;
    margin: 0 !important;
    padding: .6rem .72rem !important;
    border-radius: .8rem !important;
    font-size: .82rem !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}

html body.app-shell #comlab-help-panel .comlab-help-answer {
    align-self: flex-start !important;
    border: 1px solid rgba(110, 231, 183, .14) !important;
    border-top-left-radius: .25rem !important;
    background: #142a1f !important;
    color: #e1f4e8 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-question {
    align-self: flex-end !important;
    border-top-right-radius: .25rem !important;
    background: #087a4c !important;
    color: #f0fdf4 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-error {
    border-color: rgba(248, 113, 113, .32) !important;
    color: #fecaca !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form {
    display: flex !important;
    gap: .5rem !important;
    padding: .7rem !important;
    border-top: 1px solid rgba(110, 231, 183, .16) !important;
    background: rgba(5, 23, 15, .95) !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form input {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 2.65rem !important;
    flex: 1 1 auto !important;
    padding: .55rem .7rem !important;
    border: 1px solid rgba(110, 231, 183, .24) !important;
    border-radius: .7rem !important;
    outline: none !important;
    background: #0b1d15 !important;
    color: #f0fdf4 !important;
    font: inherit !important;
    font-size: .84rem !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form input:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, .15) !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form input::placeholder {
    color: #83a994 !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form button {
    display: inline-grid !important;
    width: 2.65rem !important;
    min-width: 2.65rem !important;
    height: 2.65rem !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: .7rem !important;
    background: #087a4c !important;
    color: #f0fdf4 !important;
    cursor: pointer !important;
}

html body.app-shell #comlab-help-panel .comlab-help-form button:disabled {
    cursor: wait !important;
    opacity: .6 !important;
}

html.theme-light body.app-shell #comlab-help-float-btn {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #16a34a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
}

html.theme-light body.app-shell #comlab-help-float-btn:hover {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
}

html.theme-light body.app-shell #comlab-help-panel {
    border-color: #c8dfce !important;
    background: #ffffff !important;
    color: #20392b !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-header {
    border-color: #deebe1 !important;
    background: #f0f7f2 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-header h2 {
    color: #174b31 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-header p {
    color: #587663 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-header-actions button {
    border-color: #c8dfce !important;
    background: #ffffff !important;
    color: #245c3c !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-heading {
    border-color: #deebe1 !important;
    color: #294839 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-back {
    border-color: #c8dfce !important;
    color: #12663f !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item {
    border-color: #deebe1 !important;
    background: #f5faf6 !important;
    color: #294839 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item:hover,
html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item.is-active {
    border-color: #91c9a1 !important;
    background: #eaf5ed !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item strong {
    color: #174b31 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item span,
html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-item time,
html.theme-light body.app-shell #comlab-help-panel .comlab-help-history-empty {
    color: #587663 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-close {
    border-color: #c8dfce !important;
    background: #ffffff !important;
    color: #245c3c !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-answer {
    border-color: #deebe1 !important;
    background: #f2f8f3 !important;
    color: #294839 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-form {
    border-color: #deebe1 !important;
    background: #f7faf7 !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-form input {
    border-color: #c8dfce !important;
    background: #ffffff !important;
    color: #20392b !important;
}

html.theme-light body.app-shell #comlab-help-panel .comlab-help-form input::placeholder {
    color: #718b79 !important;
}

@media (max-width: 768px), (pointer: coarse) {
    html body.app-shell #comlab-help-panel .comlab-help-form input {
        font-size: 16px !important;
    }

    html body.app-shell.sidebar-open #qr-scan-float-btn,
    html body.app-shell.sidebar-open #comlab-help-float-btn,
    html body.app-shell.sidebar-open #comlab-help-panel {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.app-shell.comlab-help-keyboard-open #qr-scan-float-btn,
    html body.app-shell.comlab-help-keyboard-open #comlab-help-float-btn {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html body.app-shell #comlab-help-panel {
        max-width: calc(100vw - 1rem) !important;
        border-radius: .85rem !important;
    }

    html body.app-shell #comlab-help-panel .comlab-help-messages {
        min-height: 2rem !important;
    }
}

@media (max-width: 768px) and (max-height: 480px), (pointer: coarse) and (max-height: 480px) {
    html body.app-shell #comlab-help-panel .comlab-help-header {
        padding: .5rem .75rem !important;
    }

    html body.app-shell #comlab-help-panel .comlab-help-messages {
        padding: .5rem !important;
    }

    html body.app-shell #comlab-help-panel .comlab-help-form {
        padding: .45rem !important;
    }
}

html body.app-shell #qr-scanner-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(2, 14, 9, .88) !important;
    backdrop-filter: blur(10px) !important;
}

html body.app-shell #qr-scanner-modal.is-open {
    display: flex !important;
}

html body.app-shell #qr-scanner-modal.is-pc-station-scan .qr-scanner-dialog {
    width: min(100%, 32rem) !important;
}

html body.app-shell #qr-scanner-modal .qr-scanner-dialog {
    box-sizing: border-box !important;
    width: min(100%, 30rem) !important;
    max-height: 100% !important;
    overflow: auto !important;
    padding: 1.1rem !important;
    border: 1px solid rgba(110, 231, 183, .25) !important;
    border-radius: 1.2rem !important;
    background: linear-gradient(145deg, #10291c, #07170f) !important;
    color: #f0fdf4 !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
}

html body.app-shell #qr-scanner-modal .qr-scanner-dialog :is(h2, p) {
    margin: 0 !important;
}

html body.app-shell #qr-scanner-modal .qr-scanner-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .8rem !important;
    margin-bottom: .9rem !important;
}

html body.app-shell #qr-scanner-modal .qr-scanner-close {
    display: inline-grid !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    place-items: center !important;
    border: 1px solid rgba(110, 231, 183, .23) !important;
    border-radius: .75rem !important;
    background: rgba(14, 67, 43, .56) !important;
    color: #d1fae5 !important;
    cursor: pointer !important;
}

html body.app-shell #qr-scanner-modal .qr-reader-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: .9rem !important;
}

html body.app-shell #qr-scanner-modal.is-pc-station-viewfinder .qr-reader-frame::after {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    width: min(68vw, 15.625rem);
    aspect-ratio: 1;
    border: 2px solid rgba(110, 231, 183, .95);
    border-radius: 1rem;
    box-shadow: 0 0 0 999px rgba(2, 14, 9, .08), 0 0 20px rgba(52, 211, 153, .24);
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
}

html body.app-shell #qr-scanner-modal.is-pc-station-scan #qr-scan-status {
    text-align: center !important;
    font-weight: 700 !important;
}

html body.app-shell #qr-reader {
    overflow: hidden !important;
    border: 1px solid rgba(110, 231, 183, .2) !important;
    border-radius: .9rem !important;
    background: #04150d !important;
}

html body.app-shell #qr-reader video {
    border-radius: .85rem !important;
    object-fit: cover !important;
}

html body.app-shell #qr-scan-status {
    margin-top: .8rem !important;
    color: #a7f3d0 !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
}

html body.app-shell #qr-scan-status[data-state="error"] {
    color: #fecaca !important;
}

html body.app-shell #qr-scanner-modal [hidden] {
    display: none !important;
}

html body.app-shell #qr-admin-equipment-result {
    display: grid !important;
    gap: .85rem !important;
    max-height: min(68vh, 38rem) !important;
    overflow: auto !important;
    padding-right: .15rem !important;
}

html body.app-shell .qr-admin-equipment-heading {
    padding: .8rem .9rem !important;
    border: 1px solid rgba(110, 231, 183, .18) !important;
    border-radius: .9rem !important;
    background: rgba(4, 20, 13, .72) !important;
}

html body.app-shell .qr-admin-equipment-heading h3 {
    margin: 0 !important;
    color: #f0fdf4 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

html body.app-shell .qr-admin-equipment-heading p {
    margin: .2rem 0 0 !important;
    color: #86efac !important;
    font-size: .78rem !important;
}

html body.app-shell .qr-admin-current-holder,
html body.app-shell .qr-admin-cycle-section {
    padding: .85rem .9rem !important;
    border: 1px solid rgba(110, 231, 183, .18) !important;
    border-radius: .9rem !important;
    background: rgba(8, 34, 22, .68) !important;
}

html body.app-shell .qr-admin-result-label {
    display: block !important;
    margin-bottom: .4rem !important;
    color: #86efac !important;
    font-size: .68rem !important;
    font-weight: 850 !important;
    letter-spacing: .1em !important;
}

html body.app-shell #qr-admin-current-holder-name {
    display: grid !important;
    gap: .35rem !important;
    color: #f0fdf4 !important;
    font-size: .98rem !important;
    font-weight: 750 !important;
}

html body.app-shell .qr-admin-holder-entry span {
    display: block !important;
    margin-top: .1rem !important;
    color: #a7f3d0 !important;
    font-size: .76rem !important;
    font-weight: 550 !important;
}

html body.app-shell .qr-admin-not-borrowed {
    color: #a7f3d0 !important;
    font-size: .9rem !important;
    font-weight: 650 !important;
}

html body.app-shell .qr-admin-cycle-section h4 {
    margin: 0 0 .65rem !important;
    color: #f0fdf4 !important;
    font-size: .92rem !important;
    font-weight: 800 !important;
}

html body.app-shell #qr-admin-cycle-list {
    display: grid !important;
    gap: .5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body.app-shell .qr-admin-cycle-event,
html body.app-shell .qr-admin-cycle-empty {
    padding: .65rem .7rem !important;
    border: 1px solid rgba(110, 231, 183, .13) !important;
    border-radius: .7rem !important;
    background: rgba(2, 17, 11, .55) !important;
}

html body.app-shell .qr-admin-cycle-event-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: .5rem !important;
}

html body.app-shell .qr-admin-cycle-event-heading strong {
    color: #e7f5ec !important;
    font-size: .82rem !important;
}

html body.app-shell .qr-admin-cycle-event-heading span {
    color: #cbd5e1 !important;
    font-size: .67rem !important;
    font-weight: 750 !important;
    text-align: right !important;
}

html body.app-shell .qr-admin-cycle-event-heading span.is-current {
    color: #fcd34d !important;
}

html body.app-shell .qr-admin-cycle-event p,
html body.app-shell .qr-admin-cycle-empty {
    margin: .25rem 0 0 !important;
    color: #a7c8b5 !important;
    font-size: .74rem !important;
}

html body.app-shell #qr-admin-scan-again {
    display: inline-flex !important;
    min-height: 2.65rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    border: 1px solid rgba(110, 231, 183, .25) !important;
    border-radius: .8rem !important;
    background: rgba(14, 67, 43, .66) !important;
    color: #d1fae5 !important;
    font: inherit !important;
    font-size: .86rem !important;
    font-weight: 750 !important;
    cursor: pointer !important;
}

html body.app-shell #qr-pc-station-result {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
    display: grid !important;
    align-content: center !important;
    gap: .8rem !important;
    padding: 1rem !important;
    border-radius: .9rem !important;
    background: rgba(2, 14, 9, .9) !important;
    backdrop-filter: blur(5px) !important;
}

html body.app-shell .qr-pc-station-result-card {
    padding: .95rem 1rem !important;
    border: 1px solid rgba(248, 113, 113, .4) !important;
    border-radius: .9rem !important;
    background: rgba(69, 10, 10, .34) !important;
}

html body.app-shell .qr-pc-station-result-card[data-state="unavailable"] {
    border-color: rgba(251, 191, 36, .42) !important;
    background: rgba(69, 39, 10, .3) !important;
}

html body.app-shell #qr-pc-station-result-label {
    display: block !important;
    margin-bottom: .35rem !important;
    color: #fca5a5 !important;
    font-size: .68rem !important;
    font-weight: 850 !important;
    letter-spacing: .1em !important;
}

html body.app-shell .qr-pc-station-result-card[data-state="unavailable"] #qr-pc-station-result-label {
    color: #fcd34d !important;
}

html body.app-shell #qr-pc-station-result-name {
    margin: 0 !important;
    color: #fff7f7 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

html body.app-shell #qr-pc-station-result-message {
    margin: .3rem 0 0 !important;
    color: #fee2e2 !important;
    font-size: .86rem !important;
    line-height: 1.45 !important;
}

html body.app-shell #qr-pc-station-scan-again {
    display: inline-flex !important;
    min-height: 2.65rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    border: 1px solid rgba(110, 231, 183, .25) !important;
    border-radius: .8rem !important;
    background: rgba(14, 67, 43, .66) !important;
    color: #d1fae5 !important;
    font: inherit !important;
    font-size: .86rem !important;
    font-weight: 750 !important;
    cursor: pointer !important;
}

@media (prefers-reduced-motion: reduce) {
    html body.app-shell #qr-scan-float-btn {
        transition: none !important;
    }
}

/* ==========================================================================
   GLOBAL LIGHT MODE UNIFIED STYLING
   ========================================================================== */

html.theme-light,
html[data-theme="light"],
body.theme-light {
    --bg-page: #f4f7f5;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #64748b;
    --border-color: #dce5df;
    --primary-green: #16a34a;
    --hover-bg: #f0fdf4;
    --active-bg: #e8f5ed;
}

/* 1. Global Backgrounds and Page Containers */
html.theme-light,
html.theme-light body,
html.theme-light body.app-shell,
html.theme-light .main-container,
html.theme-light .main-content,
html.theme-light .page-content,
html.theme-light .facilities-main,
html.theme-light .page-shell,
html.theme-light .audit-page-content,
html.theme-light .assignment-content {
    background-color: #f4f7f5 !important;
    color: #1f2937 !important;
}

/* 2. Global Cards, Panels, Surfaces */
html.theme-light :is(
    .panel,
    .panel-card,
    .card,
    .dashboard-card,
    .stat-card,
    .quick-card,
    .report-card,
    .profile-card,
    .content-card,
    .overview-card,
    .inventory-card,
    .hero-card,
    .filter-card,
    .settings-card,
    .table-card,
    section.panel,
    .action-card,
    .status-card,
    .page-card,
    .summary-card,
    .glass-card,
    #reportPreviewCard,
    #systemAuditPanel,
    .chart-card,
    .chart-container,
    .lab-card,
    .report,
    .inventory-summary-card
) {
    background: #ffffff !important;
    border: 1px solid #dce5df !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light :is(.panel, .card, .dashboard-card, .table-card, .report-card) :is(h1, h2, h3, h4, h5, h6, strong, .card-title, .panel-title) {
    color: #1f2937 !important;
}

html.theme-light :is(.panel, .card, .dashboard-card, .table-card, .report-card) :is(p:not(.btn), span:not(.badge):not([class*="badge-"]):not(.status-badge), small, .text-muted, .sub, .card-subtitle, .panel-subtitle) {
    color: #64748b !important;
}

/* 3. Global Tables */
html.theme-light body.app-shell:not(.reports-page) table,
html.theme-light body.app-shell:not(.reports-page) .table,
html.theme-light body.app-shell:not(.reports-page) .custom-table,
html.theme-light body.app-shell:not(.reports-page) .inventory-table,
html.theme-light body.app-shell:not(.reports-page) .audit-logs-table,
html.theme-light body.app-shell:not(.reports-page) .borrow-requests-table,
html.theme-light body.app-shell:not(.reports-page) .maintenance-table,
html.theme-light body.app-shell:not(.reports-page) .assignment-table {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-collapse: collapse !important;
}

html.theme-light body.app-shell:not(.reports-page) :is(.table-wrap, .table-container, .table-responsive, .overflow-x-auto) {
    background: #ffffff !important;
    border: 1px solid #dce5df !important;
}

html.theme-light body.app-shell:not(.reports-page) table thead,
html.theme-light body.app-shell:not(.reports-page) table thead tr,
html.theme-light body.app-shell:not(.reports-page) table thead th,
html.theme-light body.app-shell:not(.reports-page) th,
html.theme-light body.app-shell:not(.reports-page) .theme-locked-table-header {
    background: #f8fafc !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #dce5df !important;
    font-weight: 700 !important;
}

html.theme-light body.app-shell:not(.reports-page) table tbody,
html.theme-light body.app-shell:not(.reports-page) table tbody tr {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #dce5df !important;
}

html.theme-light body.app-shell:not(.reports-page) table tbody tr:nth-child(even) {
    background: #fafbf9 !important;
}

html.theme-light body.app-shell:not(.reports-page) table tbody tr:hover {
    background: #f0fdf4 !important;
}

html.theme-light body.app-shell:not(.reports-page) table td {
    color: #1f2937 !important;
    border-bottom: 1px solid #dce5df !important;
}

html.theme-light body.app-shell:not(.reports-page) table td :is(.text-xs, .text-slate-400, .text-slate-500, .text-gray-400, .text-gray-500, .sub) {
    color: #64748b !important;
}

/* 4. Global Inputs, Selects, and Textareas */
html.theme-light :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
    select,
    textarea,
    .form-control,
    .search-box input,
    .filter-select,
    .modal-form-input,
    .modal-form-select,
    .modal-form-textarea,
    .search-field input,
    .filter-field select,
    .field input,
    .field select
) {
    background: #ffffff !important;
    border: 1px solid #dce5df !important;
    border-radius: .55rem !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
    select,
    textarea,
    .form-control
):focus {
    border-color: #16a34a !important;
    outline: 2px solid rgba(22, 163, 74, 0.2) !important;
    outline-offset: 1px !important;
}

html.theme-light :is(input, textarea)::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

html.theme-light :is(select option, select optgroup) {
    background: #ffffff !important;
    color: #1f2937 !important;
}

html.theme-light :is(.search-field, .search-box) > i {
    color: #16a34a !important;
}

/* 5. Buttons & Controls */
html.theme-light :is(.btn-primary, .primary-btn, .btn.approve, .save-btn) {
    border: 1px solid #15803d !important;
    background: #16a34a !important;
    color: #ffffff !important;
}

html.theme-light :is(.btn-primary, .primary-btn, .btn.approve, .save-btn):hover:not(:disabled) {
    background: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

html.theme-light :is(.btn-secondary, .btn.feedback, .refresh-button, .cancel-btn, .action-btn:not(.primary), .page-controls .btn) {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

html.theme-light :is(.btn-secondary, .btn.feedback, .refresh-button, .cancel-btn, .action-btn:not(.primary), .page-controls .btn):hover:not(:disabled) {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

/* 6. Pagination */
html.theme-light :is(.pagination, #reportPagination, #pagination) {
    color: #64748b !important;
}

html.theme-light :is(.pagination-btn, .report-page-button, .page-button) {
    border: 1px solid #dce5df !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

html.theme-light :is(.pagination-btn, .report-page-button, .page-button):hover:not(:disabled) {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

html.theme-light :is(.pagination-btn.active, .report-page-button[aria-current="page"], .page-button.active) {
    border-color: #16a34a !important;
    background: #16a34a !important;
    color: #ffffff !important;
}

/* 7. Modals, Popovers, Dialogs */
html.theme-light :is(
    .modal-content,
    .modal-dialog,
    .modal-card,
    .swal2-popup,
    .dialog,
    .audit-details-popover,
    .dropdown-menu,
    .pc-set-actions-menu,
    .menu-dropdown
) {
    background: #ffffff !important;
    border: 1px solid #dce5df !important;
    color: #1f2937 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

html.theme-light :is(.modal-content, .modal-card, .swal2-popup) :is(h1, h2, h3, h4, h5, h6, strong, .modal-title) {
    color: #1f2937 !important;
}

html.theme-light :is(.modal-content, .modal-card, .swal2-popup) :is(p, label, span:not(.badge):not([class*="badge-"])) {
    color: #1f2937 !important;
}

html.theme-light :is(.dropdown-item, .pc-set-actions-menu button, .menu-item) {
    color: #1f2937 !important;
    background: transparent !important;
}

html.theme-light :is(.dropdown-item, .pc-set-actions-menu button, .menu-item):hover {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

/* 8. Global Scrollbars */
html.theme-light,
html.theme-light body,
html.theme-light *:not(.report-table-shell) {
    scrollbar-color: #dce5df #f4f7f5 !important;
}

html.theme-light :not(.report-table-shell)::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

html.theme-light :not(.report-table-shell)::-webkit-scrollbar-track {
    background: #f4f7f5 !important;
}

html.theme-light :not(.report-table-shell)::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: #dce5df !important;
}

html.theme-light :not(.report-table-shell)::-webkit-scrollbar-thumb:hover {
    background: #b6d7c8 !important;
}

/* Maintenance Monitoring: the page has its own dark visual layer, so keep its
   light theme explicit and opaque. This also disables the shared decorative
   pseudo-layers that otherwise tint the table through the content stack. */
html.theme-light body.app-shell.admin-dashboard-page #mainContainer:has(#maintenance-view.active)::before,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer:has(#maintenance-view.active)::after,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer:has(#maintenance-view.active) .main-content::before,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer:has(#maintenance-view.active) .page-content::before {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring {
    --maintenance-ink: #1f2937;
    --maintenance-muted: #64748b;
    --maintenance-border: #dce5df;
    background: transparent !important;
    background-image: none !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-list-heading,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-table-footer {
    border-color: #dce5df !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-report-tab,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-date-filter,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-date-filter .filter-select,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-search-box,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-search-box input,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-refresh-button {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-report-tab.active,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter.active,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter[aria-pressed="true"] {
    border-color: #08643d !important;
    background: #08643d !important;
    color: #ffffff !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter:hover,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-report-tab:hover {
    border-color: #15803d !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter.active:hover,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-filter[aria-pressed="true"]:hover,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-report-tab.active:hover {
    background: #08643d !important;
    color: #ffffff !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .overflow-x-auto {
    border-color: #dce5df !important;
    background: #ffffff !important;
    background-image: none !important;
    scrollbar-color: #b6d7c8 #f8fafc !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .overflow-x-auto::-webkit-scrollbar-track {
    background: #f8fafc !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody {
    background: #ffffff !important;
    background-image: none !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table thead,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table thead tr,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table thead th {
    background: #08643d !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #075c35 !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr:nth-child(odd),
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr:nth-child(even) {
    background: #ffffff !important;
    background-image: none !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr:hover,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody tr:hover td {
    background: #f0fdf4 !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody td,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring table tbody td:last-child {
    background: inherit !important;
    background-image: none !important;
    border-color: #dce5df !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring :is(.maintenance-equipment-name, .maintenance-reporter-name, .maintenance-issue-title, .maintenance-reported-date time) {
    color: #1f2937 !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-equipment-name {
    color: #15803d !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring :is(.maintenance-equipment-location, .maintenance-reporter-email, .maintenance-issue-description, .maintenance-reported-date, #maintenancePaginationInfo) {
    color: #64748b !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-equipment-id {
    border-color: #b7d8c1 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

#maintenance-monitoring .maintenance-reporter-avatar {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, .28);
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: #bbf7d0;
    font-size: .72rem;
    font-weight: 800;
}

#maintenance-monitoring .maintenance-reporter-avatar.has-profile-photo {
    background: #0f1f18;
}

#maintenance-monitoring .maintenance-reporter-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.app-shell .system-dashboard-heading .system-profile-badge-avatar.has-profile-photo,
body.app-shell.admin-profile-page [data-admin-profile-initials].has-profile-photo {
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    border: 0 !important;
}

body.app-shell .system-dashboard-heading .system-profile-badge-avatar.has-profile-photo > .profile-avatar-photo {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    flex: 0 0 100%;
    object-fit: cover;
    border-radius: inherit;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring :is(.status-badge.status-pending, .status-badge.status-in-progress, .status-badge.status-resolved, .status-badge.status-rejected, .status-badge.status-cancelled, .status-badge.status-secondary) {
    box-shadow: none !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-badge.status-pending {
    border-color: #eab308 !important; background: #fef3c7 !important; color: #854d0e !important;
}
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-badge.status-in-progress {
    border-color: #38bdf8 !important; background: #e0f2fe !important; color: #075985 !important;
}
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .status-badge.status-resolved {
    border-color: #34d399 !important; background: #d1fae5 !important; color: #065f46 !important;
}
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring :is(.status-badge.status-rejected, .status-badge.status-cancelled) {
    border-color: #f87171 !important; background: #fee2e2 !important; color: #991b1b !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-details-button,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring .maintenance-search-clear,
html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring #maintenancePagination button {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring :is(.maintenance-details-button:hover, .maintenance-search-clear:hover, #maintenancePagination button:hover:not(:disabled)) {
    border-color: #15803d !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenance-monitoring #maintenancePagination button[aria-current="page"] {
    border-color: #15803d !important;
    background: #15803d !important;
    color: #ffffff !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenanceDetailsModal {
    background: rgba(15, 23, 42, .3) !important;
    backdrop-filter: blur(10px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenanceDetailsModal .maintenance-details-card {
    border-color: #dce5df !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #1f2937 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18) !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenanceDetailsModal :is(.maintenance-details-header, .maintenance-details-footer) {
    background: #ffffff !important;
    border-color: #dce5df !important;
}

html.theme-light body.app-shell.admin-dashboard-page #mainContainer #maintenanceDetailsModal .details-modal-close {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #1f2937 !important;
}

/* Shared application chrome polish: consistent focus, surfaces, and motion. */
html body.app-shell {
    --shell-emerald: #34d399;
    --shell-focus-ring: rgba(52, 211, 153, .38);
}

html body.app-shell .comlab-slim-page-header {
    border-bottom-color: rgba(110, 231, 183, .2) !important;
    backdrop-filter: blur(14px) saturate(1.08) !important;
}

html body.app-shell #sidebar .nav-item:focus-visible,
html body.app-shell :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--shell-emerald) !important;
    outline-offset: 2px !important;
}

html body.app-shell :is(input, select, textarea) {
    transition: border-color .16s ease, box-shadow .16s ease !important;
}

html body.app-shell :is(input, select, textarea):focus {
    border-color: var(--shell-emerald) !important;
    box-shadow: 0 0 0 3px var(--shell-focus-ring) !important;
}

html.theme-light body.app-shell {
    --shell-emerald: #15803d;
    --shell-focus-ring: rgba(21, 128, 61, .18);
}

@media (prefers-reduced-motion: reduce) {
    html body.app-shell :is(input, select, textarea) {
        transition: none !important;
    }
}

@media (max-width: 1023px) {
    html body.app-shell #sidebar {
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1400 !important;
    }

    html body.app-shell #sidebarOverlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1390 !important;
    }

    html.theme-light body.app-shell #shared-sidebar {
        --app-sidebar-bg: #FFFFFF;
        --app-header-bg: #FFFFFF;
        --app-text: #1E293B;
        --app-text-secondary: #64748B;
        --app-accent: #16A34A;
        --app-border: #E2E8F0;
        --app-hover-bg: #F0FDF4;
        --app-nav-active-bg: #DCFCE7;
    }

    html.theme-dark body.app-shell #shared-sidebar {
        --app-sidebar-bg: #082B20;
        --app-header-bg: #06251B;
        --app-text: #D1FAE5;
        --app-text-secondary: #A7C8B5;
        --app-accent: #4ADE80;
        --app-border: #145A3E;
        --app-hover-bg: #0F3B2C;
        --app-nav-active-bg: #104B35;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar,
    html.theme-dark body.app-shell #shared-sidebar #sidebar {
        border-right: 1px solid var(--app-border) !important;
        background: var(--app-sidebar-bg) !important;
        color: var(--app-text) !important;
        box-shadow: 14px 0 38px rgba(1, 10, 7, .18) !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-header,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-header {
        border-bottom: 1px solid var(--app-border) !important;
        background: var(--app-header-bg) !important;
        box-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-logo > i,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-logo > i {
        border-color: var(--app-border) !important;
        background: transparent !important;
        color: var(--app-accent) !important;
        box-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-logo-text,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-logo-text {
        color: var(--app-text) !important;
        text-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-tagline,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-tagline {
        color: var(--app-text-secondary) !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item {
        border-color: transparent !important;
        background: transparent !important;
        color: var(--app-text) !important;
        box-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item > i,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item > i {
        border-color: transparent !important;
        background: transparent !important;
        color: var(--app-accent) !important;
        filter: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item:hover,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item:hover {
        border-color: var(--app-border) !important;
        background: var(--app-hover-bg) !important;
        color: var(--app-text) !important;
        transform: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item:hover > i,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item:hover > i {
        background: transparent !important;
        color: var(--app-accent) !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item.active,
    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"] {
        border-color: #BBF7D0 !important;
        background: #DCFCE7 !important;
        color: #15803D !important;
        box-shadow: none !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item.active,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"] {
        border-color: #1E6B4E !important;
        background: #104B35 !important;
        color: #86EFAC !important;
        box-shadow: inset 3px 0 0 #4ADE80 !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item.active::before,
    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"]::before {
        background: #16A34A !important;
        box-shadow: none !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item.active::before,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"]::before {
        background: #4ADE80 !important;
        box-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item.active > i,
    html.theme-light body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"] > i {
        background: #BBF7D0 !important;
        color: #15803D !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item.active > i,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"] > i {
        background: #0B6040 !important;
        color: #86EFAC !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-footer,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-footer {
        border-top: 1px solid var(--app-border) !important;
        background: var(--app-header-bg) !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-close-btn {
        border-color: #E2E8F0 !important;
        background: #F1F5F9 !important;
        color: #1E293B !important;
        box-shadow: none !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-close-btn {
        border-color: #145A3E !important;
        background: #0B3A2A !important;
        color: #D1FAE5 !important;
        box-shadow: none !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-close-btn:hover,
    html.theme-light body.app-shell #shared-sidebar #sidebar .sidebar-close-btn:focus-visible {
        background: #DCFCE7 !important;
        color: #15803D !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-close-btn:hover,
    html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-close-btn:focus-visible {
        background: #104B35 !important;
        color: #86EFAC !important;
    }

    html.theme-light body.app-shell #shared-sidebar #sidebarOverlay {
        background: rgba(15, 23, 42, .32) !important;
    }

    html.theme-dark body.app-shell #shared-sidebar #sidebarOverlay {
        background: rgba(0, 0, 0, .52) !important;
    }

}

html.theme-dark body.app-shell #shared-sidebar #sidebar .sidebar-logo > i,
html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item > i,
html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item:hover > i,
html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item.active > i,
html.theme-dark body.app-shell #shared-sidebar #sidebar .nav-item[aria-current="page"] > i {
    color: #FFFFFF !important;
}
