@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

/* Eternal University: light theme for the original, unmodified Blade markup.
 * Existing hooks: #app, #example-collapse-sidebar, .md:ml-64, .-m-48,
 * .sidebar-nav, .sidebar-nav-active, .card, .table and .form-group.
 * No replacement markup or JavaScript is needed. Print layouts are excluded.
 */
@media screen {
    :root body {
        --eu-bg: #f7f8fc;
        --eu-paper: #fff;
        --eu-ink: #182a46;
        --eu-muted: #52647d;
        --eu-border: #e2e8f0;
        --eu-blue: #2563eb;
        --eu-soft: #eff6ff;
        --eu-sidebar-bg: #ffffff;
        --eu-navbar-bg: #ffffff;
        --eu-sidebar: 244px;
        --eu-radius: 16px;
        --eu-shadow: none;
        margin: 0;
        background: var(--eu-bg);
        color: var(--eu-ink);
        font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
        font-size: 14.5px;
        line-height: 1.55;
        color-scheme: light;
        -webkit-font-smoothing: antialiased;
    }
    :root body * { box-sizing: border-box; }
    /* Flat surfaces by default; dashboard summary cards opt into depth below. */
    :root body,
    :root body *,
    :root body *::before,
    :root body *::after { box-shadow: none !important; text-shadow: none !important; }
    :root body :focus-visible { outline: 3px solid #93b8ff; outline-offset: 3px; }
    :root body ::selection { background: #dbeafe; color: #1e40af; }
    :root body :is(h1,h2,h3,h4,h5,h6) { color: var(--eu-ink); font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif; letter-spacing: -.025em; }

    /* 1. Original shared layout: replace the overlapping banner with normal flow. */
    #app > .md\:ml-64 { width: calc(100% - var(--eu-sidebar)); min-width: 0; min-height: 100vh; margin-left: var(--eu-sidebar); background: var(--eu-bg); }
    #app > .md\:ml-64 > .bg-pink-600 { display: none !important; }
    #app > .md\:ml-64 > .-m-48 { width: 100%; max-width: 1840px; min-width: 0; margin: 0 auto; padding: 26px 28px 20px; }
    #app > .md\:ml-64 > .-m-48 > .row { width: 100%; margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; }

    /* 2. White sidebar; menu levels use separate flat background colours. */
    #app > nav:has(#example-collapse-sidebar) {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        display: block;
        width: var(--eu-sidebar);
        height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
        max-height: none !important;
        padding: 18px 10px !important;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid #e0e7f1;
        background: var(--eu-sidebar-bg);
        box-shadow: none;
        scrollbar-width: thin;
        scrollbar-color: #d2dbea transparent;
        overscroll-behavior-y: contain;
    }
    #app > nav:has(#example-collapse-sidebar) > div { width: 100%; align-items: stretch; }
    #app > nav:has(#example-collapse-sidebar) > div > a {
        display: flex; align-items: center; gap: 11px;
        min-height: 48px; margin: 0 6px 10px; padding: 0 2px 12px;
        border-bottom: 1px solid #e6ecf5;
        color: #213758; font-family: "Plus Jakarta Sans", "Inter", sans-serif;
        font-size: 14px; font-weight: 700; line-height: 1.6;
        letter-spacing: -.025em; white-space: normal; text-transform: none;
    }
    #app > nav:has(#example-collapse-sidebar) > div > a::before { content: none; }
    #example-collapse-sidebar { margin-top: 0; border-radius: 0; background: transparent; box-shadow: none; }
    #example-collapse-sidebar > hr { display: none; }
    #example-collapse-sidebar :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
        position: relative; display: flex; width: 100%; min-height: 35px;
        align-items: center; gap: 8px; margin: 2px 0; padding: 5px 8px;
        border: 1px solid transparent; border-left-width: 3px; border-radius: 7px;
        background: #eaf3ff; color: #4c5d76;
        font-family: "Inter", "Segoe UI", sans-serif;
        font-size: 13px; font-weight: 500; line-height: 1.4;
        transition: color .18s, background-color .18s, box-shadow .18s;
    }
    #example-collapse-sidebar :is(.sidebar-nav,.sidebar-nav-active,.has-sub) > i {
        display: inline-flex; width: 17px; height: 20px; flex: 0 0 17px;
        align-items: center; justify-content: center; margin: 0;
        border: 0; border-radius: 0;
        background: transparent; color: #6b8ab5; font-size: 13px;
        transition: color .18s, background-color .18s;
    }
    #example-collapse-sidebar .sidebar-nav:hover { background: #dcecff; color: #245ac0; }
    #example-collapse-sidebar .sidebar-nav:hover > i { background: transparent; color: #356fdc; }
    #example-collapse-sidebar .sidebar-nav-active {
        border-color: transparent; border-left-color: #3b73de; background: #edf4ff;
        color: #245fc2; font-weight: 600;
        box-shadow: none;
    }
    #example-collapse-sidebar .sidebar-nav-active > i {
        border-color: transparent; background: transparent; color: #3473d2;
    }
    #example-collapse-sidebar .has-sub { padding-right: 28px; }
    #example-collapse-sidebar .has-sub::after {
        content: ""; position: absolute; top: 50%; right: 13px;
        width: 6px; height: 6px; border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor; color: #92a2ba;
        transform: translateY(-70%) rotate(45deg);
        transition: transform .18s; opacity: .85;
    }
    #example-collapse-sidebar .has-sub.sidebar-nav-active::after { color: #3473d2; }
    #example-collapse-sidebar li:has(> .subnav:not(.hidden)) > .has-sub::after {
        transform: translateY(-25%) rotate(225deg);
    }
    #example-collapse-sidebar .subnav {
        margin: 2px 0 5px 4px; padding: 0;
        border-left: 0; border-radius: 0; background: transparent;
    }
    #example-collapse-sidebar .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
        min-height: 29px; gap: 6px; margin: 2px 0; padding: 5px 7px !important;
        --nav-level-bg: #f4f1fa; border: 0; border-radius: 6px; background: #f4f1fa; font-size: 12px; font-weight: 500;
        line-height: 1.4; box-shadow: none;
    }
    #example-collapse-sidebar .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub)::before {
        content: none; position: absolute; left: -7px; top: 50%;
        width: 7px; height: 1px; background: #dce5f3;
    }
    #example-collapse-sidebar .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub) > i {
        width: 14px; height: 18px; flex-basis: 14px; border: 0;
        border-radius: 0; background: transparent; color: #99a9c1; font-size: 10px;
    }
    #example-collapse-sidebar .subnav .sidebar-nav:hover { background: #f0f5fd; color: #2563c7; }
    #example-collapse-sidebar .subnav .sidebar-nav-active {
        background: #e9f1ff !important; color: #225ac5 !important; font-weight: 600;
    }
    #example-collapse-sidebar .subnav .sidebar-nav-active > i { color: #2563eb !important; }
    #example-collapse-sidebar .subnav .subnav { margin-left: 4px; padding-left: 0; }
    #example-collapse-sidebar .subnav .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub) { --nav-level-bg: #edf7f3; background: #edf7f3; }
    #example-collapse-sidebar .subnav .has-sub { padding-right: 25px !important; }
    #example-collapse-sidebar .subnav .subnav .sidebar-nav:hover { background: #e2f0ea; }
    #example-collapse-sidebar .sidebar-nav-active,
    #example-collapse-sidebar .subnav .sidebar-nav-active,
    #example-collapse-sidebar .subnav .subnav .sidebar-nav-active {
        background: #e1ecff !important; color: #225ac5 !important;
    }
    #app > nav:has(#example-collapse-sidebar)::-webkit-scrollbar { width: 4px; }
    #app > nav:has(#example-collapse-sidebar)::-webkit-scrollbar-track { background: transparent; }
    #app > nav:has(#example-collapse-sidebar)::-webkit-scrollbar-thumb { border-radius: 8px; background: #d2dbea; }
    @media (max-width:767px) {
        #app > nav:has(#example-collapse-sidebar) > div > a::before { display: none; }
    }


    /* 3. Original toolbar: logo, language, academic session and user dropdown. */
    #app > .md\:ml-64 > nav {
        position: sticky;
        top: 0;
        left: auto;
        z-index: 30;
        display: flex;
        min-height: 76px;
        align-items: center;
        padding: 14px 32px;
        border-bottom: 1px solid var(--eu-border);
        background: var(--eu-navbar-bg) !important;
    }
    #app > .md\:ml-64 > nav > div { display: flex; width: 100%; align-items: center; flex-wrap: nowrap; gap: 18px; padding: 0; }
    #app > .md\:ml-64 > nav > div > a { display: flex; align-items: center; margin-right: auto; }
    #app > .md\:ml-64 > nav img { width: auto; max-width: 120px; height: 54px; object-fit: contain; }
    #app > .md\:ml-64 > nav form:not(:has(select)) { display: none !important; }
    #app > .md\:ml-64 > nav form:has(select) { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
    #app > .md\:ml-64 > nav label { margin: 0; color: #64748b; font-size: 12px; white-space: nowrap; }
    #app > .md\:ml-64 > nav label strong { font-weight: 500; }
    #app > .md\:ml-64 > nav select { min-width: 170px; min-height: 40px; padding: 9px 32px 9px 12px; border: 1px solid #d7e0ec; border-radius: 8px; background-color: #f8fafc; color: #40536e; font-size: 13px; }
    #app > .md\:ml-64 > nav a > div > span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #dce8fb; border-radius: 50%; background: #eff5ff !important; color: #4975bc; }
    #user-dropdown { min-width: 180px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; box-shadow: none; }
    #user-dropdown a { padding: 10px 12px; border-radius: 6px; color: #52637b; font-size: 13px; }
    #user-dropdown a:hover { background: #eff6ff; color: #2563eb; }

    /* 4. Original dashboard summary rows; no added dashboard wrapper. */
    #app > .md\:ml-64 > .-m-48 > div:has(> .flex.flex-wrap > a > .h-16) { width: 100%; padding-right: 0; padding-left: 0; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a { min-width: 0; }
    #app > .md\:ml-64 > .-m-48 a > .h-16 {
        position: relative; overflow: hidden;
        display: flex;
        height: auto;
        min-height: 100px;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        gap: 14px;
        margin: 0;
        padding: 16px;
        border: 1px solid var(--eu-border);
        border-radius: var(--eu-radius);
        background: #fff;
        text-align: left;
        box-shadow: none;
        transition: transform .2s, border-color .2s, box-shadow .2s;
    }
    #app > .md\:ml-64 > .-m-48 a:hover > .h-16 { transform: translateY(-2px); border-color: #bdd2f1; box-shadow: none; }
    #app > .md\:ml-64 > .-m-48 a > .h-16 h1 { display: flex; flex-direction: column; gap: 10px; margin: 0; color: #52647d; font-size: 12.5px; font-weight: 600; line-height: 1.5; text-transform: none; font-family: "Inter", "Segoe UI", sans-serif; letter-spacing: 0; }
    #app > .md\:ml-64 > .-m-48 a > .h-16 h1 span { display: block; color: #1e293b; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.05em; font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif; }
    #app > .md\:ml-64 > .-m-48 .bg-lightBlue-500.rounded-full { display: inline-flex; width: 46px; height: 46px; flex: 0 0 46px; align-items: center; justify-content: center; padding: 0; border-radius: 14px; background: #edf4ff; color: #3f78d6; font-size: 18px; box-shadow: none; }

    /* 5. Existing four- and three-card metric rows, across dashboard roles. */
    #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 12px; }
    #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) > div { width: 100%; min-width: 0; padding: 0; }
    #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) + .flex.flex-wrap { margin-top: 12px; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words { --metric-color: #4c78cf; --metric-soft: #edf3ff; position: relative; overflow: hidden; min-height: 88px; height: 100%; margin-bottom: 0; border: 1px solid var(--eu-border); border-radius: var(--eu-radius); background: linear-gradient(120deg,var(--metric-soft),#fff); box-shadow: none; transition: transform .2s,border-color .2s,box-shadow .2s; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words:hover { transform: translateY(-2px); border-color: #c3d5ee; box-shadow: none; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words > .flex-auto { padding: 14px; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words .flex.flex-wrap { flex-wrap: nowrap; align-items: center; gap: 12px; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words :is(.pr-4,.pl-4) { padding-right: 0; padding-left: 0; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words h5 { margin: 0 0 6px; color: #52647d; font-size: 13px; font-weight: 500; line-height: 1.5; text-transform: none; font-family: "Inter", "Segoe UI", sans-serif; letter-spacing: 0; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words span.text-xl { color: #253b58; font-size: 27px; font-weight: 700; letter-spacing: -.045em; font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words .bg-lightBlue-500 { background: var(--metric-soft); color: var(--metric-color); }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-yellow-500 { --metric-color: #b27b2f; --metric-soft: #fff4e3; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-rose-500 { --metric-color: #bd6685; --metric-soft: #ffedf4; }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-green-500 { --metric-color: #258b77; --metric-soft: #e8f8f1; background: linear-gradient(120deg,var(--metric-soft),#fff) !important; }
    #app > .md\:ml-64 > .-m-48 > hr { margin: 22px 0 16px; border: 0; border-bottom: 1px solid #e8e9f2; }
    #app > .md\:ml-64 > .-m-48 > h4 { margin: 0 0 18px; padding: 0; color: #253b58; font-size: 18px; font-weight: 700; }
    #app > .md\:ml-64 > .-m-48 > h4 strong { font-weight: inherit; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 { min-height: 34px; height: auto; align-items: center; margin: 0 0 14px; padding: 0; background: transparent; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 h1 { margin-top: 0; color: #253b58; font-size: 17px; font-weight: 700; text-transform: none; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500 { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 14px; }


    /* Section heading accents use existing icon classes. */
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words::before {
        content: none; position: absolute; left: 0; top: 24px; bottom: 24px;
        width: 3px; border-radius: 0 3px 3px 0; background: var(--metric-color); opacity: .7;
    }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500:has(.fa-hand-holding-usd) { background: #fff7e6; color: #a97823; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500:has(.fa-book) { background: #f3efff; color: #8664c8; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500:has(.fa-user) { background: #eaf8f1; color: #319677; }
    :root body .card-header { position: relative; }
    :root body .card-header::before {
        content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
        width: 3px; border-radius: 0 3px 3px 0; background: #6693e4;
    }

    /* 6. Existing shared cards, page forms and list tools. */
    :root body .card { min-width: 0; margin-bottom: 16px; border: 1px solid var(--eu-border); border-radius: var(--eu-radius); background: #fff; box-shadow: none; }
    :root body .card-header { padding: 12px 16px; border-bottom: 1px solid var(--eu-border); border-radius: 12px 12px 0 0; background: #fff; }
    :root body .card-header-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
    :root body .card-title { margin: 0; color: #253b58; font-size: 16px; font-weight: 700; }
    :root body .card-body { padding: 16px; }
    :root body .card-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--eu-border); background: #fafbfd; color: #64748b; font-size: 12px; }
    :root body .card-controls > div { display: flex; min-width: 0; flex: 1 1 280px; align-items: center; flex-wrap: wrap; gap: 10px; }
    :root body .card-controls > div:last-child { justify-content: flex-end; }
    :root body .card-controls select { width: 76px; min-width: 76px; margin: 0; }
    :root body .card-controls input[type=text] { width: 250px; max-width: 100%; margin: 0; }
    :root body .form-group { margin-top: 0; margin-bottom: 8px; }
    :root body .form-label,
    :root body .form-group > label { display: inline-block; margin-bottom: 3px; color: #52637b; font-size: 13px; font-weight: 500; }
    :root body .grid:has(> .form-group) { align-items: start; gap: 8px 12px; }
    :root body .grid > .form-group { margin: 0; }
    :root body .grid + .btn { margin-top: 14px; }
    :root body form[wire\:submit\.prevent]:has(> .form-group) { padding: 16px; }
    :root body .card-body form[wire\:submit\.prevent] { padding: 0; }
    :root body :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=date],input[type=datetime-local],input[type=tel],input[type=url],select,textarea,.form-control,.form-select) { min-height: 30px; max-width: 100%; padding: 4px 8px; border: 1px solid #d7e0ec; border-radius: 8px; background-color: #fff; color: #334155; font-family: inherit; font-size: 13px; line-height: 1.4; box-shadow: none; transition: border-color .18s,box-shadow .18s; }
    :root body select { padding-right: 32px; }
    :root body textarea { min-height: 60px; resize: vertical; }
    :root body :is(input,textarea)::placeholder { color: #9aa8bb; }
    :root body :is(input,select,textarea):focus { outline: none; border-color: #87acf0; box-shadow: none; }
    :root body :is(input,select,textarea):disabled { background: #f3f6fa; color: #8b9ab0; cursor: not-allowed; }
    :root body input:is([type=checkbox],[type=radio]) { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: #2563eb; vertical-align: middle; }
    :root body .help-block { margin-top: 6px; color: #8b99ad; font-size: 12px; }
    :root body .validation-message { margin-top: 6px; color: #b63f5b; font-size: 12px; }
    :root body .form-group.invalid :is(input,select,textarea) { border-color: #dc879d !important; }

    /* 7. Existing tables: override the old black header and solid cell grid. */
    :root body .table { width: 100%; border-collapse: collapse; background: #fff; color: #40536e; font-family: inherit; font-size: 13px; }
    :root body .table th,
    :root body .table.table-index th { padding: 2px; border: 0; border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: left; text-transform: none; white-space: nowrap; }
    :root body .table td,
    :root body .table.table-index td { padding: 2px; border-width: 0 0 1px; border-style: solid !important; border-color: #edf1f6; color: #40536e; font-size: 13px; line-height: 1.4; vertical-align: middle; }
    :root body .table tbody tr:nth-child(odd) { background: #fff; }
    :root body .table tbody tr:nth-child(even) { background: #fbfdff; }
    :root body .table tbody tr:hover { background: #f0f6ff; }
    :root body .table-view th { width: 28%; min-width: 150px; }
    :root body .table-view :is(th,td),
    :root body .table-bordered :is(th,td) { border: 1px solid #e2e8f0; }
    :root body :is(.overflow-x-auto,.table-responsive) { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 #f8fafc; }

    :root body .table .btn { min-height: 22px; padding: 2px 5px; font-size: 12px; }
    :root body .table :is(input:not([type=checkbox]):not([type=radio]),select) { min-height: 24px; padding: 2px 5px; font-size: 13px; }
    :root body .card-table { padding-top: 0; padding-bottom: 8px; }

    :root body .table .badge { padding: 2px 4px; }

    /* 8. Shared action buttons, status badges and notifications. */
    :root body .btn { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 6px 11px; border: 1px solid transparent; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; letter-spacing: 0; text-transform: none; box-shadow: none; transition: background-color .18s,border-color .18s,color .18s; }
    :root body :is(.btn-primary,.btn-indigo,.btn-info) { border-color: #2563eb; background: linear-gradient(180deg,#3478f6,#2563eb); color: #fff; box-shadow: none; }
    :root body :is(.btn-primary,.btn-indigo,.btn-info):hover { border-color: #1d4ed8; background: #1d4ed8; }
    :root body :is(.btn-secondary,.btn-default) { border-color: #dce4ef; background: #fff; color: #52637b; }
    :root body :is(.btn-secondary,.btn-default):hover { border-color: #bdcee5; background: #f6f9fe; color: #315f9d; }
    :root body :is(.btn-danger,.btn-rose) { border-color: #f0d8e0; background: #fff1f4; color: #b54c6c; }
    :root body :is(.btn-success,.btn-green) { border-color: #d1eadd; background: #eef9f3; color: #2a805a; }
    :root body :is(.btn-warning,.btn-orange) { border-color: #efdfb8; background: #fff9eb; color: #9e772a; }
    :root body .btn-outline-primary { border-color: #bdd3f5; background: #fff; color: #2563eb; }
    :root body .btn-sm { min-height: 28px; padding: 4px 8px; font-size: 12px; }
    :root body .btn-lg { min-height: 38px; padding: 8px 14px; font-size: 14px; }
    :root body .btn:disabled { opacity: .45; cursor: not-allowed; }
    :root body .badge { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 1.3; }
    :root body :is(.badge-success,.badge-approved) { background: #edf9f2; color: #2b805b; }
    :root body :is(.badge-danger,.badge-rejected) { background: #fff1f4; color: #b54b69; }
    :root body :is(.badge-warning,.badge-pending) { background: #fff8e8; color: #a27c2b; }
    :root body .badge-relationship { background: #eff5ff; color: #456fab; }
    :root body .alert { padding: 10px 12px; border: 1px solid #dce6f7; border-radius: 10px; font-size: 13px; line-height: 1.65; }
    :root body .alert-info { border-color: #dbe7fa; background: #eff6ff; color: #3e649a; }
    :root body .alert-success { border-color: #d3ecdf; background: #f0faf4; color: #2c7d55; }
    :root body .alert-danger { border-color: #f0d8e0; background: #fff2f5; color: #b34d6a; }
    :root body .select2-container { max-width: 100%; }
    :root body .select2-selection { min-height: 30px; border: 1px solid #d7e0ec; border-radius: 8px; background: #fff; }
    :root body .select2-selection__rendered { color: #334155; font-size: 13px; line-height: 28px; }
    :root body .select2-selection__arrow { height: 28px; }
    :root body .select2-dropdown { border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; box-shadow: none; }
    :root body .dropzone { border-color: #cad9ee; border-radius: 12px; background: #f9fbff; }
    :root body .page-link { display: inline-flex; min-width: 30px; min-height: 30px; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #64748b; font-size: 12px; }
    :root body .page-item.active .page-link { border-color: #2563eb; background: #2563eb; color: #fff; }

    /* 9. Footer and existing floating voice control. */
    #app > .md\:ml-64 > .-m-48 > footer { margin-top: 32px; padding: 20px 0; color: #7b8ba1; }
    #app > .md\:ml-64 > .-m-48 > footer .container { max-width: none; padding: 0; }
    #app > .md\:ml-64 > .-m-48 > footer .text-sm { font-size: 12px; font-weight: 400; }
    :root body #voice-assistant-btn { width: 46px !important; height: 46px !important; padding: 12px; background-color: #2563eb; box-shadow: none; }
    :root body #voice-assistant-btn i { font-size: 17px; }

    /* Pastel overview palette: blue, lavender, mint and peach. */
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a { --summary-ink: #366bc4; --summary-tint: #e9f1ff; --summary-edge: #d9e5fc; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(2) { --summary-ink: #8864ca; --summary-tint: #f1eaff; --summary-edge: #e5d9fa; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(3) { --summary-ink: #268b76; --summary-tint: #e6f7ef; --summary-edge: #d3ecdf; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(4) { --summary-ink: #bf7957; --summary-tint: #fff0e7; --summary-edge: #f4dfd2; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a > .h-16 {
        isolation: isolate; border-color: var(--summary-edge);
        background: linear-gradient(115deg,var(--summary-tint),#fff 150%);
        box-shadow: none;
    }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a h1 { color: #53627b; font-weight: 500; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a h1 span { color: var(--summary-ink); }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a .bg-lightBlue-500 {
        border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.72);
        color: var(--summary-ink); box-shadow: none;
    }
    #app > .md\:ml-64 > .-m-48 a > .h-16::after {
        content: ""; position: absolute; z-index: -1; pointer-events: none;
        width: 150px; height: 150px; right: -66px; bottom: -100px;
        border: 22px solid rgba(255,255,255,.38); border-radius: 50%;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words {
        border-color: #e4e9f1;
        box-shadow: none;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words .bg-lightBlue-500 {
        width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 16px;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words span.text-xl { line-height: 1.2; }
    #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) { padding-left: 0; padding-right: 0; }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 h1 { margin-left: 10px; letter-spacing: -.035em; }
    #app > .md\:ml-64 > .-m-48 > .flex.justify-end:has(input[type="date"]) {
        padding: 16px 18px; border: 1px solid var(--eu-border); border-radius: 12px; background: #fff;
    }
    #app > .md\:ml-64 > .-m-48 > footer { margin-top: 24px; padding: 18px 0 8px; }
    @media (min-width:768px) {
        /* Keep the white sidebar continuous below the viewport in long captures. */
        body:has(#example-collapse-sidebar)::before {
            content: ""; position: fixed; inset: 0 auto 0 0; width: var(--eu-sidebar);
            background: var(--eu-sidebar-bg); border-right: 1px solid var(--eu-border); pointer-events: none;
        }
        #app { position: relative; }
        #app > nav:has(#example-collapse-sidebar) > div { min-height: 0; }
        #example-collapse-sidebar { overflow: visible; flex: 0 0 auto; }
        #example-collapse-sidebar :is(.sidebar-nav,.sidebar-nav-active,.has-sub) { text-transform: capitalize; }
    }

    /* Section panels share one surface; application cards retain their own emphasis. */
    @media (min-width:768px) {
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap {
            gap: 10px; padding: 10px; border: 1px solid #e7e6f1; border-radius: 18px;
            background: #fff; box-shadow: none;
        }
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap > div + div {
            border-left: 0;
        }
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap > div:nth-child(4n + 1) { border-left: 0; }
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap:has(> div:nth-child(2)):not(:has(> div:nth-child(3))) { grid-template-columns: repeat(2,minmax(0,1fr)); }

        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap .relative.flex.flex-col.min-w-0.break-words {
            min-height: 80px; border: 1px solid color-mix(in srgb,var(--metric-color) 12%,white); border-radius: 12px; background: linear-gradient(115deg,var(--metric-soft),#fff 160%); box-shadow: none;
        }
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap .relative.flex.flex-col.min-w-0.break-words:hover {
            filter: brightness(.985); transform: translateY(-2px);
        }
        #app > .md\:ml-64 > .-m-48 > div:has(> .h-16) + .flex.flex-wrap .relative.flex.flex-col.min-w-0.break-words > .flex-auto {
            padding: 12px;
        }
    }

    /* 10. Preserve the original desktop and mobile menu toggles. */
    @media (min-width:768px) {
        #example-collapse-sidebar { display: flex !important; align-items: stretch; }
        #app > nav:has(#example-collapse-sidebar) button.md\:hidden,
        #example-collapse-sidebar > .md\:hidden { display: none !important; }
        #app > .md\:ml-64 > nav > div > ul { display: flex; }
    }
    @media (min-width:1600px) {
        :root body { --eu-sidebar: 252px; }
        #app > .md\:ml-64 > .-m-48 { padding-right: 40px; padding-left: 40px; }
    }
    @media (min-width:768px) and (max-width:1199px) {
        :root body { --eu-sidebar: 228px; }
        #app > .md\:ml-64 > .-m-48 { padding: 24px; }
        #app > .md\:ml-64 > nav { padding-right: 24px; padding-left: 24px; }
        #app > .md\:ml-64 > nav label { display: none; }
        #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16),
        #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    }
    @media (max-width:767px) {
        #app > .md\:ml-64 { width: 100%; margin-left: 0; }
        #app > nav:has(#example-collapse-sidebar) { position: relative; inset: auto; width: 100%; height: auto; min-height: 0; padding: 12px 16px !important; overflow: visible; }
        #app > nav:has(#example-collapse-sidebar) > div { align-items: center; }
        #app > nav:has(#example-collapse-sidebar) > div > a { min-height: 32px; flex: 1; margin: 0 0 0 12px; padding: 0; border: 0; font-size: 11px; }
        #example-collapse-sidebar { position: absolute; top: 48px; right: 0; left: 0; z-index: 50; max-height: calc(100dvh - 70px); margin: 0; padding: 18px 14px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; background: var(--eu-sidebar-bg); box-shadow: none; }
        #example-collapse-sidebar.hidden { display: none !important; }
        #app > .md\:ml-64 > nav { position: relative; min-height: 68px; padding: 12px 16px; }
        #app > .md\:ml-64 > nav > div { flex-wrap: wrap; gap: 10px; }
        #app > .md\:ml-64 > nav > div > a { display: flex; margin-right: auto; }
        #app > .md\:ml-64 > nav img { height: 40px; max-width: 100px; }
        #app > .md\:ml-64 > nav label { display: none; }
        #app > .md\:ml-64 > nav select { min-width: 128px; max-width: 155px; font-size: 11px; }
        #app > .md\:ml-64 > nav > div > ul:last-child { display: flex; }
        #app > .md\:ml-64 > .-m-48 { padding: 22px 16px 16px !important; }
        #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16),
        #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
        #app > .md\:ml-64 > .-m-48 a > .h-16 { min-height: 94px; gap: 8px; padding: 13px 12px; }
        #app > .md\:ml-64 > .-m-48 a > .h-16 h1 { font-size: 11px; }
        #app > .md\:ml-64 > .-m-48 a > .h-16 h1 span { font-size: 27px; }
        #app > .md\:ml-64 > .-m-48 .bg-lightBlue-500.rounded-full { width: 33px; height: 33px; flex-basis: 33px; border-radius: 9px; font-size: 13px; }
        #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words > .flex-auto { padding: 13px 12px; }
        #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words h5 { font-size: 11px; }
        :root body :is(.card-header,.card-body,.card-controls) { padding: 12px; }
        :root body .card-controls > div { width: 100%; flex: 1 1 100%; justify-content: flex-start; text-align: left; }
        :root body #voice-assistant-btn { right: 16px !important; bottom: 16px !important; }
    }
    @media (max-width:380px) {
        #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16),
        #app > .md\:ml-64 > .-m-48 > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) { grid-template-columns: minmax(0,1fr); }
    }
    @media (prefers-reduced-motion:reduce) {
        :root body *,
        :root body *::before,
        :root body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
}

/* SaaS polish: existing dashboard, sidebar and toolbar hooks only. */
@media screen {
    :root {
        --eu-summary-depth: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                            0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    /* Summary and metric cards: compact dimensions remain unchanged. */
    #app > .md\:ml-64 > .-m-48 :is(
        a > .h-16,
        .relative.flex.flex-col.min-w-0.break-words
    ) {
        border-color: transparent !important;
        box-shadow: var(--eu-summary-depth) !important;
        transition: all 0.2s ease;
    }

    #app > .md\:ml-64 > .-m-48 :is(
        a > .h-16,
        .relative.flex.flex-col.min-w-0.break-words
    ):hover {
        transform: translateY(-2px);
        box-shadow: var(--eu-summary-depth) !important;
    }

    /* Titles stay quiet; values carry the emphasis. */
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a h1,
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words h5 {
        color: #64748b;
        font-weight: 500;
    }

    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a h1 span,
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words span.text-xl {
        color: #0f172a;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    /* Section accents follow existing icon and metric-grid structure. */
    #app > .md\:ml-64 > .-m-48 > div > .h-16 {
        --eu-section-accent: #3b82f6;
        --eu-section-soft: #eff6ff;
        position: relative;
        gap: 0;
        padding: 4px 10px 4px 14px;
        border-radius: 8px;
        background: linear-gradient(90deg, var(--eu-section-soft), transparent 75%);
    }

    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-hand-holding-usd) {
        --eu-section-accent: #c18a25;
        --eu-section-soft: #fff8e8;
    }

    #app > .md\:ml-64 > .-m-48 > div:has(+ .flex.flex-wrap > div:nth-child(5)) > .h-16 {
        --eu-section-accent: #8b5cf6;
        --eu-section-soft: #f5f0ff;
    }

    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-user) {
        --eu-section-accent: #16a085;
        --eu-section-soft: #eaf8f2;
    }

    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-book) {
        --eu-section-accent: #6366f1;
        --eu-section-soft: #eef0ff;
    }

    #app > .md\:ml-64 > .-m-48 > div > .h-16::before {
        content: "";
        position: absolute;
        inset: 7px auto 7px 0;
        width: 3px;
        border-radius: 3px;
        background: var(--eu-section-accent);
    }

    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500 {
        color: var(--eu-section-accent) !important;
        background: var(--eu-section-soft) !important;
    }

    /* Preserve the compact, shallow menu hierarchy. */
    #example-collapse-sidebar .sidebar-nav-active,
    #example-collapse-sidebar .subnav .sidebar-nav-active,
    #example-collapse-sidebar .subnav .subnav .sidebar-nav-active {
        background: #e8edff !important;
        color: #4338ca !important;
        font-weight: 600;
    }

    #example-collapse-sidebar > ul > li > .sidebar-nav-active {
        border-left-color: #6366f1;
    }

    #example-collapse-sidebar .sidebar-nav-active > i,
    #example-collapse-sidebar .subnav .sidebar-nav-active > i,
    #example-collapse-sidebar .has-sub.sidebar-nav-active::after {
        color: #4f46e5 !important;
    }

    /* Header controls share one alignment and consistent spacing. */
    #app > .md\:ml-64 > nav {
        border-bottom: 1px solid #e2e8f0;
        background: #fff !important;
    }

    #app > .md\:ml-64 > nav > div {
        align-items: center;
        column-gap: 16px;
        row-gap: 8px;
    }

    #app > .md\:ml-64 > nav form:has(select) {
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    #app > .md\:ml-64 > nav select {
        min-height: 36px;
        margin: 0;
        padding: 7px 30px 7px 10px;
        border-color: #dce3ef;
        background-color: #fff;
        line-height: 1.4;
    }

    @media (max-width:767px) {
        #app > .md\:ml-64 > nav > div { column-gap: 10px; }
    }

    @media (prefers-reduced-motion:reduce) {
        #app > .md\:ml-64 > .-m-48 :is(
            a > .h-16,
            .relative.flex.flex-col.min-w-0.break-words
        ) {
            transition: none;
            transform: none;
        }

        #app > .md\:ml-64 > .-m-48 :is(
            a > .h-16,
            .relative.flex.flex-col.min-w-0.break-words
        ):hover { transform: none; }
    }
}

/* Full view audit: missing utilities used by existing templates only. */
@media screen {
    :where(#app > .md\:ml-64 > .-m-48) .d-flex { display:flex; }
    :where(#app > .md\:ml-64 > .-m-48) .d-block { display:block; }
    :where(#app > .md\:ml-64 > .-m-48) .d-none { display:none; }
    :where(#app > .md\:ml-64 > .-m-48) .align-items-center { align-items:center; }
    :where(#app > .md\:ml-64 > .-m-48) .align-items-end { align-items:flex-end; }
    :where(#app > .md\:ml-64 > .-m-48) .justify-content-center { justify-content:center; }
    :where(#app > .md\:ml-64 > .-m-48) .justify-content-between { justify-content:space-between; }
    :where(#app > .md\:ml-64 > .-m-48) .justify-content-start { justify-content:flex-start; }
    :where(#app > .md\:ml-64 > .-m-48) .justify-content-end { justify-content:flex-end; }
    :where(#app > .md\:ml-64 > .-m-48) .w-0 { width:0; }
    :where(#app > .md\:ml-64 > .-m-48) .w-100 { width:100%; }
    :where(#app > .md\:ml-64 > .-m-48) .min-w-full { min-width:100%; }
    :where(#app > .md\:ml-64 > .-m-48) .img-fluid { max-width:100%;height:auto; }
    :where(#app > .md\:ml-64 > .-m-48) .text-start { text-align:left; }
    :where(#app > .md\:ml-64 > .-m-48) .text-end { text-align:right; }
    :where(#app > .md\:ml-64 > .-m-48) .small { font-size:12px; }
    :where(#app > .md\:ml-64 > .-m-48) .fw-bold { font-weight:700; }
    :where(#app > .md\:ml-64 > .-m-48) .font-weight-bold { font-weight:700; }
    :where(#app > .md\:ml-64 > .-m-48) .font-mono { font-family:ui-monospace,Consolas,monospace; }
    :where(#app > .md\:ml-64 > .-m-48) .font-black { font-weight:800; }
    :where(#app > .md\:ml-64 > .-m-48) .italic { font-style:italic; }
    :where(#app > .md\:ml-64 > .-m-48) .ms-auto { margin-left:auto; }
    :where(#app > .md\:ml-64 > .-m-48) .me-auto { margin-right:auto; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-auto { margin-top:auto; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-auto { margin-bottom:auto; }
    :where(#app > .md\:ml-64 > .-m-48) .border-collapse { border-collapse:collapse; }
    :where(#app > .md\:ml-64 > .-m-48) .border-l { border-left-width:1px; }
    :where(#app > .md\:ml-64 > .-m-48) .border-bottom { border-bottom:1px solid #e2e8f0; }
    :where(#app > .md\:ml-64 > .-m-48) .border-dashed { border-style:dashed; }
    :where(#app > .md\:ml-64 > .-m-48) .border-2 { border-width:2px; }
    :where(#app > .md\:ml-64 > .-m-48) .rounded-circle { border-radius:50%; }
    :where(#app > .md\:ml-64 > .-m-48) .rounded-2xl { border-radius:16px; }
    :where(#app > .md\:ml-64 > .-m-48) .rounded-3 { border-radius:8px; }
    :where(#app > .md\:ml-64 > .-m-48) .rounded-5 { border-radius:12px; }
    :where(#app > .md\:ml-64 > .-m-48) .rounded-t-lg { border-top-left-radius:8px;border-top-right-radius:8px; }
    :where(#app > .md\:ml-64 > .-m-48) .truncate { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    :where(#app > .md\:ml-64 > .-m-48) .sticky { position:sticky; }
    :where(#app > .md\:ml-64 > .-m-48) .opacity-75 { opacity:.75; }
    :where(#app > .md\:ml-64 > .-m-48) .py-8 { padding-top:2rem;padding-bottom:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-0 { padding-right:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-16 { margin-bottom:4rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-7 { padding-bottom:1.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pl-0 { padding-left:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-8 { padding-right:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-0\.5 { margin-bottom:0.125rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-96 { width:24rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-6 { gap:1.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-100 { height:25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-16 { padding-top:4rem;padding-bottom:4rem; }
    :where(#app > .md\:ml-64 > .-m-48) .p-1 { padding:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .my-5 { margin-top:1.25rem;margin-bottom:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-50 { width:12.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .my-4 { margin-top:1rem;margin-bottom:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-1\.5 { padding-top:0.375rem;padding-bottom:0.375rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-1 { padding-right:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-12 { padding-bottom:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ml-10 { margin-left:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-18 { height:4.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-3 { gap:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-5 { margin-bottom:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .p-5 { padding:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-2 { gap:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mr-4 { margin-right:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .m-2 { margin:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-100 { width:25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .p-8 { padding:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-12 { margin-bottom:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-0\.5 { width:0.125rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-24 { height:6rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-4 { gap:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-16 { width:4rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ml-2\.5 { margin-left:0.625rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-0 { padding-top:0rem;padding-bottom:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .my-1 { margin-top:0.25rem;margin-bottom:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-48 { width:12rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-10 { padding-right:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mx-10 { margin-left:2.5rem;margin-right:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-64 { width:16rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-3 { width:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-12 { padding-right:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-24 { width:6rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-0\.5 { padding-top:0.125rem;padding-bottom:0.125rem; }
    :where(#app > .md\:ml-64 > .-m-48) .p-2\.5 { padding:0.625rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-2\.5 { padding-top:0.625rem;padding-bottom:0.625rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-0\.5 { margin-top:0.125rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-0 { padding-bottom:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ml-5 { margin-left:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pl-2 { padding-left:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-64 { height:16rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-56 { width:14rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-6 { padding-bottom:1.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-20 { height:5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-1 { padding-bottom:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mx-1 { margin-left:0.25rem;margin-right:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-10 { margin-bottom:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-20 { width:5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-1\.5 { padding-left:0.375rem;padding-right:0.375rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-6 { height:1.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-7 { height:1.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .m-3 { margin:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pl-5 { padding-left:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-8 { margin-bottom:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-8 { padding-left:2rem;padding-right:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-10 { margin-top:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mx-3 { margin-left:0.75rem;margin-right:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pl-12 { padding-left:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-5 { padding-bottom:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-1 { gap:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-75 { width:18.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-7 { margin-bottom:1.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-40 { width:10rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pt-7 { padding-top:1.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .p-2 { padding:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mr-1\.5 { margin-right:0.375rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-5 { margin-top:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-20 { margin-top:5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pt-2 { padding-top:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pb-8 { padding-bottom:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-2 { height:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-10 { padding-left:2.5rem;padding-right:2.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-7 { margin-top:1.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pr-2 { padding-right:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mt-0 { margin-top:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-2\.5 { padding-left:0.625rem;padding-right:0.625rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-12 { padding-left:3rem;padding-right:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .m-4 { margin:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-32 { width:8rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-32 { height:8rem; }
    :where(#app > .md\:ml-64 > .-m-48) .gap-8 { gap:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-4 { width:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-5 { padding-top:1.25rem;padding-bottom:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-4 { height:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mb-1\.5 { margin-bottom:0.375rem; }
    :where(#app > .md\:ml-64 > .-m-48) .h-3 { height:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mx-4 { margin-left:1rem;margin-right:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .m-1 { margin:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .px-5 { padding-left:1.25rem;padding-right:1.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .w-0 { width:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .py-12 { padding-top:3rem;padding-bottom:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .mr-2\.5 { margin-right:0.625rem; }
    :where(#app > .md\:ml-64 > .-m-48) .col-span-2 { grid-column:span 2/span 2; }
    :where(#app > .md\:ml-64 > .-m-48) .w-1\/6 { width:16.6667%; }
    :where(#app > .md\:ml-64 > .-m-48) .grid-cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .w-1\/4 { width:25%; }
    :where(#app > .md\:ml-64 > .-m-48) .col-span-1 { grid-column:span 1/span 1; }
    :where(#app > .md\:ml-64 > .-m-48) .w-1\/3 { width:33.3333%; }
    :where(#app > .md\:ml-64 > .-m-48) .w-5\/6 { width:83.3333%; }
    :where(#app > .md\:ml-64 > .-m-48) .grid-cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .w-2\/3 { width:66.6667%; }
    :where(#app > .md\:ml-64 > .-m-48) .me-1 { margin-right:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .me-2 { margin-right:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .me-3 { margin-right:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .me-4 { margin-right:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ms-1 { margin-left:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ms-2 { margin-left:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ms-3 { margin-left:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pe-2 { padding-right:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pe-3 { padding-right:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .pe-4 { padding-right:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ps-2 { padding-left:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ps-3 { padding-left:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .ps-4 { padding-left:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .text-primary { color:#4f46e5; }
    :where(#app > .md\:ml-64 > .-m-48) .text-danger { color:#be4562; }
    :where(#app > .md\:ml-64 > .-m-48) .text-success { color:#16846c; }
    :where(#app > .md\:ml-64 > .-m-48) .text-muted { color:#64748b; }
    :where(#app > .md\:ml-64 > .-m-48) .text-dark { color:#1e293b; }
    :where(#app > .md\:ml-64 > .-m-48) .text-blue-600 { color:#2563eb; }
    :where(#app > .md\:ml-64 > .-m-48) .text-blue-800 { color:#1e40af; }
    :where(#app > .md\:ml-64 > .-m-48) .text-green-700 { color:#15803d; }
    :where(#app > .md\:ml-64 > .-m-48) .text-green-800 { color:#166534; }
    :where(#app > .md\:ml-64 > .-m-48) .text-red-600 { color:#dc2626; }
    :where(#app > .md\:ml-64 > .-m-48) .text-red-700 { color:#b91c1c; }
    :where(#app > .md\:ml-64 > .-m-48) .text-gray-800 { color:#1f2937; }
    :where(#app > .md\:ml-64 > .-m-48) .text-yellow-800 { color:#854d0e; }
    :where(#app > .md\:ml-64 > .-m-48) .text-slate-400 { color:#94a3b8; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-gray-50 { background-color:#f8fafc; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-blue-50 { background-color:#eff6ff; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-blue-100 { background-color:#dbeafe; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-green-100 { background-color:#dcfce7; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-yellow-100 { background-color:#fef9c3; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-red-100 { background-color:#fee2e2; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-soft-secondary { background-color:#f1f5f9; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-primary { background-color:#4f46e5; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-success { background-color:#16846c; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-blue-600 { background-color:#2563eb; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-blue-700 { background-color:#1d4ed8; }
    :where(#app > .md\:ml-64 > .-m-48) .bg-green-600 { background-color:#16a34a; }
    :where(#app > .md\:ml-64 > .-m-48) .space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top:1rem; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-3 { width:100%;min-width:0;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-4 { width:100%;min-width:0;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-6 { width:100%;min-width:0;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-9 { width:100%;min-width:0;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-12 { width:100%;min-width:0;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-7 { flex:0 0 58.3333%;max-width:58.3333%;padding:0 6px; }
    :where(#app > .md\:ml-64 > .-m-48) .col-12 { flex:0 0 100%;max-width:100%;padding:0 6px; }
    @media (min-width:640px) {
    :where(#app > .md\:ml-64 > .-m-48) .sm\:my-8 { margin-top:2rem;margin-bottom:2rem; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:ml-3 { margin-left:0.75rem; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:px-1 { padding-left:0.25rem;padding-right:0.25rem; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:w-60 { width:15rem; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:grid-cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:col-span-1 { grid-column:span 1/span 1; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:col-span-2 { grid-column:span 2/span 2; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:w-2\/2 { width:100%; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:w-1\/4 { width:25%; }
    :where(#app > .md\:ml-64 > .-m-48) .sm\:grid-cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    }
    @media (min-width:768px) {
    :where(#app > .md\:ml-64 > .-m-48) .md\:ml-2 { margin-left:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:px-2 { padding-left:0.5rem;padding-right:0.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:pt-20 { padding-top:5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:p-12 { padding:3rem; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:mb-0 { margin-bottom:0rem; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:w-1\/2 { width:50%; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:col-span-2 { grid-column:span 2/span 2; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:w-1\/3 { width:33.3333%; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:grid-cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .md\:col-span-1 { grid-column:span 1/span 1; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:w-6\/12 { width:50%; }
    :where(#app > .md\:ml-64 > .-m-48) .md\:grid-cols-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .md\:grid-cols-5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-3 { flex:0 0 25%;max-width:25%; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-4 { flex:0 0 33.3333%;max-width:33.3333%; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-6 { flex:0 0 50%;max-width:50%; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-9 { flex:0 0 75%;max-width:75%; }
    :where(#app > .md\:ml-64 > .-m-48) .col-md-12 { flex:0 0 100%;max-width:100%; }
    }
    @media (min-width:1024px) {
    :where(#app > .md\:ml-64 > .-m-48) .lg\:gap-6 { gap:1.5rem; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:w-2\/12 { width:16.6667%; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:w-12\/12 { width:100%; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:col-span-6 { grid-column:span 6/span 6; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:w-3\/12 { width:25%; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:grid-cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:grid-cols-12 { grid-template-columns:repeat(12,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:w-8\/12 { width:66.6667%; }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:grid-cols-5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
    :where(#app > .md\:ml-64 > .-m-48) .lg\:col-span-2 { grid-column:span 2/span 2; }
    }
    @media (min-width:1280px) {
    :where(#app > .md\:ml-64 > .-m-48) .xl\:grid-cols-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
    }
}

/* All admin modules: compact data screens, editors and specialist views.
 * Audited hooks come from resources/views; no new HTML classes are required.
 * Screen-only rules deliberately leave print styles intact.
 */
@media screen {
    /* Shared page structure: CRUD, fees, students, library, reports and settings. */
    #app > .md\:ml-64 > .-m-48 .row:has(> [class*="col-"]) {
        display: flex; flex-wrap: wrap; width: auto;
        margin: 0 -6px 12px; padding: 0;
    }
    #app > .md\:ml-64 > .-m-48 .container-fluid { width: 100%; min-width: 0; padding: 0; }
    #app > .md\:ml-64 > .-m-48 .card.p-6 { padding: 14px; }
    #app > .md\:ml-64 > .-m-48 .card > h3 { margin: 0 0 12px; padding-bottom: 10px; font-size: 16px; line-height: 1.4; }
    #app > .md\:ml-64 > .-m-48 :is(.mb-4,.mb-6).flex.items-center.justify-between {
        gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
    }
    #app > .md\:ml-64 > .-m-48 .text-2xl.font-bold { font-size: 23px; line-height: 1.3; }
    #app > .md\:ml-64 > .-m-48 :is(.mb-4,.mb-6).flex.items-center.justify-between > div > p {
        margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.5;
    }
    #app > .md\:ml-64 > .-m-48 :is(button,a).rounded-md:is(.px-4,.px-6) {
        display: inline-flex; min-height: 30px; align-items: center; justify-content: center;
        gap: 6px; padding: 5px 10px; font-size: 13px; line-height: 1.4;
    }
    #app > .md\:ml-64 > .-m-48 :is(button,a) > svg { flex-shrink: 0; }
    #app > .md\:ml-64 > .-m-48 :is(form,.card) > .grid { gap: 12px; }

    /* Utility-based tables were not covered by the original .table-only theme. */
    #app > .md\:ml-64 > .-m-48 table:is(.min-w-full,.w-full,.table-auto) {
        width: 100%; border-collapse: collapse; border-color: #e2e8f0;
        background: #fff; color: #40536e; font-family: inherit; font-size: 13px;
    }
    #app > .md\:ml-64 > .-m-48 table:is(.min-w-full,.w-full,.table-auto) > :is(thead,tbody,tfoot) > tr > :is(th,td) {
        padding: 2px !important; border-bottom: 1px solid #e8edf5;
        line-height: 1.4; vertical-align: middle;
    }
    #app > .md\:ml-64 > .-m-48 table:is(.min-w-full,.w-full,.table-auto) > thead > tr > th {
        color: #52637b; background: #f3f6fc; font-size: 12px;
        font-weight: 600; text-align: left; letter-spacing: 0; text-transform: none;
    }
    #app > .md\:ml-64 > .-m-48 table:is(.min-w-full,.w-full,.table-auto) > tbody > tr:hover { background: #f5f8ff; }
    #app > .md\:ml-64 > .-m-48 .overflow-x-auto > table { min-width: 100%; }
    #app > .md\:ml-64 > .-m-48 table .rounded-full:is(.bg-yellow-100,.bg-green-100,.bg-gray-100) {
        padding: 2px 6px; border-radius: 5px; font-size: 11px; line-height: 1.4;
    }

    /* Inventory: existing inline four-card grid and its SVG metric icons. */
    #app > .md\:ml-64 > .-m-48 .mb-8:has(> .overflow-hidden.border-0 > .p-5 dl) {
        display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important;
        gap: 12px !important; margin-bottom: 16px;
    }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl) {
        --inventory-accent: #3d72ce; --inventory-tint: #edf3ff;
        overflow: hidden; border: 1px solid #dfe7f4; border-radius: 14px;
        background: var(--inventory-tint) !important; color: #0f172a !important;
        box-shadow: var(--eu-summary-depth) !important; transition: transform .2s ease;
    }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl):nth-child(2) { --inventory-accent:#238b75; --inventory-tint:#eaf8f1; }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl):nth-child(3) { --inventory-accent:#ab7a25; --inventory-tint:#fff6e5; }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl):nth-child(4) { --inventory-accent:#bb607b; --inventory-tint:#fff0f4; }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl):hover { transform:translateY(-2px); }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl) > .p-5 { padding:16px; }
    #app > .md\:ml-64 > .-m-48 .p-5:has(dl) > .flex { gap:12px; }
    #app > .md\:ml-64 > .-m-48 .p-5:has(dl) .ml-5 { margin-left:0; min-width:0; }
    #app > .md\:ml-64 > .-m-48 .p-5:has(dl) .flex-shrink-0 {
        display:flex; width:40px; height:40px; align-items:center; justify-content:center;
        padding:8px; background:#fff; border-radius:11px; color:var(--inventory-accent);
    }
    #app > .md\:ml-64 > .-m-48 .p-5:has(dl) svg.text-white { color:var(--inventory-accent) !important; }
    #app > .md\:ml-64 > .-m-48 .p-5 dl dt { color:#64748b; font-size:12px; font-weight:500; white-space:normal; line-height:1.4; }
    #app > .md\:ml-64 > .-m-48 .p-5 dl dd .text-2xl.text-white { margin-top:5px; color:#0f172a !important; font-size:27px; font-weight:700; }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl) > .px-5.py-3 {
        padding:8px 14px; border-top:1px solid rgba(60,80,120,.08); background:rgba(255,255,255,.55) !important;
    }
    #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl) > .px-5.py-3 .text-white {
        color:var(--inventory-accent) !important; gap:5px; font-size:12px; font-weight:600;
    }

    /* Circular editors and rich forms use their existing dedicated hooks. */
    #app > .md\:ml-64 > .-m-48 .circular-create-container { max-width:none; padding:0; font-family:inherit; }
    #app > .md\:ml-64 > .-m-48 :is(.premium-card,.form-card) { margin-bottom:16px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
    #app > .md\:ml-64 > .-m-48 .card-header-premium { padding:12px 16px; border-bottom:1px solid #e2e8f0; background:#f8faff; }
    #app > .md\:ml-64 > .-m-48 .card-header-premium h3 { margin:0; font-size:16px; color:#253b58; }
    #app > .md\:ml-64 > .-m-48 .card-body-premium { padding:16px; }
    #app > .md\:ml-64 > .-m-48 :is(.form-label-premium,.detail-label,.erp-spec-label) { display:block; margin-bottom:3px; color:#64748b; font-size:12px; font-weight:500; }
    #app > .md\:ml-64 > .-m-48 :is(.input-premium,.search-input-field) { width:100%; min-height:30px; padding:4px 8px; border:1px solid #d7e0ec; border-radius:7px; background:#fff; color:#334155; font:inherit; font-size:13px; }
    #app > .md\:ml-64 > .-m-48 .targeting-grid { gap:12px; }
    #app > .md\:ml-64 > .-m-48 .role-tile { padding:10px 12px; border:1px solid #e2e8f0; border-radius:8px; background:#f9fbff; }
    #app > .md\:ml-64 > .-m-48 .input-group { display:flex; align-items:stretch; gap:0; }
    #app > .md\:ml-64 > .-m-48 .input-group > :is(input,select,.form-control) { min-width:0; flex:1 1 auto; }
    #app > .md\:ml-64 > .-m-48 .form-check { display:flex; align-items:center; gap:7px; margin-bottom:6px; }
    #app > .md\:ml-64 > .-m-48 .is-invalid { border-color:#dc879d !important; }
    #app > .md\:ml-64 > .-m-48 .invalid-feedback { margin-top:3px; color:#b63f5b; font-size:12px; }
    #app > .md\:ml-64 > .-m-48 .select2-selection--multiple { height:auto; padding:2px 4px; }
    #app > .md\:ml-64 > .-m-48 .select2-selection--multiple .select2-selection__rendered { line-height:24px; }

    /* Hostel, allocation, LMS and attendance navigation. Visibility remains under JS control. */
    #app > .md\:ml-64 > .-m-48 :is(.tabs,.nav-tabs) { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; padding:0 0 8px; border-bottom:1px solid #e2e8f0; }
    #app > .md\:ml-64 > .-m-48 :is(.tab-button,.nav-tabs .nav-link) { padding:6px 10px; border:1px solid #e2e8f0; border-radius:7px; background:#fff; color:#52637b; font-size:13px; font-weight:500; }
    #app > .md\:ml-64 > .-m-48 .nav-tabs .nav-link.active { border-color:#d4ddff; background:#eef1ff; color:#4338ca; }
    #app > .md\:ml-64 > .-m-48 .accordion-item { margin-bottom:8px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; }
    #app > .md\:ml-64 > .-m-48 .accordion-button { width:100%; padding:9px 12px; border:0; border-radius:8px; background:#f3f6fc; color:#334155; text-align:left; font-size:13px; font-weight:600; }
    #app > .md\:ml-64 > .-m-48 :is(.accordion-body,.accordion-content) { padding:12px; }
    #app > .md\:ml-64 > .-m-48 .stat-box { min-width:0; padding:12px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
    #app > .md\:ml-64 > .-m-48 .status-badge { display:inline-flex; align-items:center; padding:2px 6px; border-radius:5px; font-size:11px; line-height:1.4; }
    #app > .md\:ml-64 > .-m-48 :is(.modal-content,.modal-dialog .card) { border:1px solid #dce4ef; border-radius:12px; background:#fff; }
    #app > .md\:ml-64 > .-m-48 :is(.modal-header,.modal-footer) { padding:10px 14px; border-color:#e2e8f0; }
    #app > .md\:ml-64 > .-m-48 .modal-body { padding:14px; }

    @media (max-width:1199px) {
        #app > .md\:ml-64 > .-m-48 .mb-8:has(> .overflow-hidden.border-0 > .p-5 dl) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    }
    @media (max-width:767px) {
        #app > .md\:ml-64 > .-m-48 .mb-8:has(> .overflow-hidden.border-0 > .p-5 dl) { grid-template-columns:minmax(0,1fr) !important; }
        #app > .md\:ml-64 > .-m-48 :is(.card.p-6,.card-body-premium) { padding:12px; }
        #app > .md\:ml-64 > .-m-48 :is(.mb-4,.mb-6).flex.items-center.justify-between > .flex { flex-wrap:wrap; gap:6px; }
        #app > .md\:ml-64 > .-m-48 .targeting-grid { grid-template-columns:minmax(0,1fr); }
        #app > .md\:ml-64 > .-m-48 .text-2xl.font-bold { font-size:20px; }
    }
    @media (prefers-reduced-motion:reduce) {
        #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl) { transition:none; }
        #app > .md\:ml-64 > .-m-48 .overflow-hidden.border-0:has(> .p-5 dl):hover { transform:none; }
    }
}

/* Specialist table and editor variants found during the complete view scan. */
@media screen {
    #app > .md\:ml-64 > .-m-48 :is(.premium-table,
        .erp-glass-table,
        .erp-timetable-table,
        .erp-assignment-table,
        .erp-test-table,
        .detail-table,
        .erp-responsive-matrix-table,
        .table-master-matrix,
        .meta-table,
        .attendance-table,
        .table-premium,
        .tt-table-final,
        .distribution-table,
        .lesson-plan-table) {
        width:100%; border-collapse:collapse; font-family:inherit; font-size:13px;
    }
    #app > .md\:ml-64 > .-m-48 :is(.premium-table,
        .erp-glass-table,
        .erp-timetable-table,
        .erp-assignment-table,
        .erp-test-table,
        .detail-table,
        .erp-responsive-matrix-table,
        .table-master-matrix,
        .meta-table,
        .attendance-table,
        .table-premium,
        .tt-table-final,
        .distribution-table,
        .lesson-plan-table) > :is(thead,tbody,tfoot) > tr > :is(th,td) {
        padding:2px !important; line-height:1.4; border-color:#e2e8f0; vertical-align:middle;
    }
    #app > .md\:ml-64 > .-m-48 :is(.premium-table,.table-premium) th {
        color:#52637b; background:#f3f6fc; font-size:12px; font-weight:600; text-transform:none; letter-spacing:0;
    }
    #app > .md\:ml-64 > .-m-48 :is(.btn-premium-primary,.btn-premium-secondary,.btn-pill-primary) {
        display:inline-flex; min-height:30px; align-items:center; justify-content:center; gap:6px;
        padding:5px 10px; border:1px solid #dce4ef; border-radius:7px; font-size:13px; font-weight:600;
    }
    #app > .md\:ml-64 > .-m-48 :is(.btn-premium-primary,.btn-pill-primary) { border-color:#4f46e5; background:#4f46e5; color:#fff; }
    #app > .md\:ml-64 > .-m-48 .btn-premium-secondary { background:#fff; color:#52637b; }
    #app > .md\:ml-64 > .-m-48 :is(.targeting-panel,.filter-section,.erp-filter-panel) { padding:12px; border:1px solid #e2e8f0; border-radius:9px; background:#f8faff; }
    #app > .md\:ml-64 > .-m-48 :is(.user-table-container,.table-container,.card-table) { max-width:100%; overflow-x:auto; }
    #app > .md\:ml-64 > .-m-48 .search-box-premium { margin-bottom:10px; }
    #app > .md\:ml-64 > .-m-48 .search-box-premium i { left:10px; }
    #app > .md\:ml-64 > .-m-48 .search-box-premium input { padding-left:30px !important; }
    #app > .md\:ml-64 > .-m-48 :is(.summary-card,.stat-card,.ga-card) { min-width:0; padding:12px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
    #app > .md\:ml-64 > .-m-48 :is(.stat-number,.value) { color:#0f172a; font-variant-numeric:tabular-nums; }
    #app > .md\:ml-64 > .-m-48 .stat-number { font-size:26px; font-weight:700; line-height:1.2; }
    #app > .md\:ml-64 > .-m-48 :is(.stat-label,.ga-card-label) { color:#64748b; font-size:12px; font-weight:500; }
    #app > .md\:ml-64 > .-m-48 .detail-row { gap:10px; padding:7px 0; border-bottom:1px solid #edf1f6; }
    #app > .md\:ml-64 > .-m-48 .detail-value { color:#334155; font-size:13px; overflow-wrap:anywhere; }
    #app > .md\:ml-64 > .-m-48 :is(.alert-premium,.alert-premium-success,.alert-premium-error) { padding:10px 12px; border:1px solid #dce6f7; border-radius:8px; font-size:13px; }
    #app > .md\:ml-64 > .-m-48 .alert-premium-success { border-color:#cdeadd; background:#edf9f2; color:#257b57; }
    #app > .md\:ml-64 > .-m-48 .alert-premium-error { border-color:#f0d5de; background:#fff1f4; color:#b54565; }
}

/* Student portal, admission/login pages, public catalogue and kiosk.
 * These layouts now load this same stylesheet through their authorised include.
 */
@media screen {
    :root, :root.dark {
        color-scheme:light;
        --primary-bg:#f7f8fc; --sidebar-l1-bg:#fff; --sidebar-l2-bg:#fff;
        --text-primary:#1e293b; --text-secondary:#64748b; --border-color:#e2e8f0;
    }
    :root body:not(:has(#example-collapse-sidebar)) { background:#f7f8fc !important; color:#1e293b; }
    :root body .navbar.bg-blue-700 { padding:10px 16px !important; border-bottom:1px solid #e2e8f0; background:#fff !important; }
    :root body .navbar .container-fluid { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
    :root body .navbar .navbar-brand { display:flex; align-items:center; gap:12px; max-width:100%; margin:0; }
    :root body .navbar .navbar-brand img { width:auto; height:48px; object-fit:contain; }
    :root body .navbar .navbar-brand h3 { margin:0 !important; color:#253b58 !important; font-size:19px; line-height:1.3; white-space:normal; }
    :root body .navbar .text-white { color:#45638d !important; }
    :root body:not(:has(#example-collapse-sidebar)) :is(.premium-card,.form-card,.stat-box,.erp-profile-card,.erp-education-card,.erp-meta-card,.erp-attendance-card,.erp-assignment-card,.erp-test-card) {
        min-width:0; margin-bottom:16px; border:1px solid #e2e8f0; border-radius:12px; background:#fff;
    }
    :root body:not(:has(#example-collapse-sidebar)) :is(.card-header-premium,.ga-card-header) { padding:12px 16px; border-bottom:1px solid #e2e8f0; background:#f8faff; }
    :root body:not(:has(#example-collapse-sidebar)) .card-body-premium { padding:16px; }
    :root body:not(:has(#example-collapse-sidebar)) :is(.form-label-premium,.detail-label,.erp-spec-label) { margin-bottom:3px; color:#64748b; font-size:12px; font-weight:500; }
    :root body:not(:has(#example-collapse-sidebar)) :is(.input-premium,.search-input-field) { min-height:30px; padding:4px 8px; border:1px solid #d7e0ec; border-radius:7px; background:#fff; color:#334155; font-size:13px; }
    :root body:not(:has(#example-collapse-sidebar)) :is(.erp-glass-table,.erp-timetable-table,.erp-assignment-table,.erp-test-table,.erp-responsive-matrix-table) { width:100%; border-collapse:collapse; font-size:13px; }
    :root body:not(:has(#example-collapse-sidebar)) :is(.erp-glass-table,.erp-timetable-table,.erp-assignment-table,.erp-test-table,.erp-responsive-matrix-table) :is(th,td) { padding:2px !important; line-height:1.4; border-color:#e2e8f0; }

    /* Student navigation: compact links on a white rail; original mobile toggle retained. */
    :root body .sidebar-column { border-right:1px solid #e2e8f0; background:#fff !important; }
    :root body .sidebar-column > .card { border-radius:0; background:#fff !important; }
    :root body .sidebar-column .navbar-nav { padding:6px !important; gap:3px; }
    :root body .sidebar-column .nav-item { margin:0 0 3px !important; }
    :root body .sidebar-column .nav-link { min-height:35px; padding:6px 9px !important; border:1px solid transparent !important; border-radius:7px !important; background:#eaf3ff; color:#52637b; }
    :root body .sidebar-column .nav-link h5 { margin:0 !important; font-size:13px !important; font-weight:500; line-height:1.4; }
    :root body .sidebar-column .nav-link i { color:#7392bc; }
    :root body .sidebar-column .nav-link:hover { background:#dfeeff; color:#315faf; }
    :root body .sidebar-column .nav-link.active-link { border-color:#d8dfff !important; background:#e8edff !important; color:#4338ca !important; }
    :root body .sidebar-column .nav-link.active-link :is(i,h5) { color:#4338ca !important; }
    :root body .course-selector { min-height:30px; padding:4px 8px; border:1px solid #cbdaf3; border-radius:7px; background:#f4f8ff; color:#315c9b; font-size:12px; }
    :root body .support-footer { margin-top:12px; padding:10px; border-left:3px solid #7c83dd; border-radius:8px; background:#f3f2ff; font-size:12px; }

    /* Public admission navigation and authentication panels. */
    :root body:has(#pills-tab) > section.bg-soft-primary { padding-top:20px !important; background:#eef3ff; }
    :root body:has(#pills-tab) > section.bg-soft-primary h1 { margin:0; color:#253b58; font-size:25px; font-weight:700; line-height:1.4; }
    :root body:has(#pills-tab) > section.navbar-dark { padding:8px 12px !important; border-color:#e3e9f3 !important; background:#fff; }
    :root body:has(#pills-tab) > section.navbar-dark marquee p { margin:0; font-size:13px !important; line-height:1.5; }
    :root body:has(#pills-tab) .row.mt-12 { margin-top:22px; }
    :root body #pills-tab .nav-item { margin-bottom:7px !important; }
    :root body #pills-tab button { width:100%; min-height:38px; gap:9px; padding:7px 10px !important; border:1px solid #e0e8f5 !important; border-radius:8px; background:#fff !important; color:#52637b; text-align:left; }
    :root body #pills-tab button img { width:27px; height:27px; object-fit:contain; margin:0; }
    :root body #pills-tab button.active { border-color:#cddaff !important; background:#eef3ff !important; }
    :root body #pills-tab button b { color:#3e5576 !important; font-size:13px; font-weight:500; }
    :root body #pills-tabContent { padding:0 !important; border:0 !important; background:transparent !important; }
    :root body #pills-tabContent .card { border:1px solid #e2e8f0 !important; border-radius:14px; }
    :root body #pills-tabContent .card .card-header { padding:18px 16px 10px; background:#fff; }
    :root body #pills-tabContent .card .card-header :is(h3,h4) { margin:7px 0; font-size:19px; font-weight:700; line-height:1.4; }
    :root body #pills-tabContent .card .card-header h3 + h4 { color:#64748b; font-size:13px; font-weight:400; }
    :root body .card:has(#loginForm) { max-width:480px; margin:0 auto 18px; box-shadow:var(--eu-summary-depth) !important; }
    :root body #loginForm { text-align:left; }
    :root body #loginForm :is(input[type=email],input[type=password]) { min-height:30px; padding:4px 9px; border:1px solid #d7e0ec; border-radius:7px; font-size:13px; }
    :root body #loginForm button[type=submit] { min-height:32px; border:1px solid #4f46e5; border-radius:7px; background:#4f46e5; color:#fff; font-weight:600; }

    /* Alternate two-level admin shell remains light even if its stored theme is dark. */
    :root body .layout-wrapper { color:#1e293b; background:#f7f8fc; }
    :root body :is(.sidebar-l1,.sidebar-l2,.topbar) { border-color:#e2e8f0; background:#fff !important; color:#334155; }
    :root body .nav-item-l1 { color:#8191aa; padding:11px 0; }
    :root body .nav-item-l1:is(:hover,.active) { background:#edf1ff; color:#4f46e5; }
    :root body .nav-item-l2 { min-height:34px; margin-bottom:3px; padding:6px 9px; border-radius:7px; background:#f1f5ff; color:#52637b; font-size:13px; }
    :root body .nav-item-l2.active { background:#e8edff; color:#4338ca; }
    :root body .nav-group-title { margin:14px 0 6px; color:#64748b; font-size:11px; letter-spacing:.04em; }
    :root body .content-wrapper { background:#f7f8fc; }
    :root body .topbar input { background:#f8faff; color:#334155; }

    /* Kiosk uses a light canvas; existing forms, actions and touch layout remain intact. */
    :root body .kiosk-bg { background:linear-gradient(135deg,#f1f5ff,#f5f1ff) !important; }
    :root body .glass { border:1px solid #dfe6f3; border-radius:16px; background:#fff; backdrop-filter:none; }
    :root body:has(.kiosk-bg) :is(h1,h2,h3,p).text-white { color:#253b58 !important; }
    :root body :is(input,select,textarea,button,a):focus-visible { outline:2px solid #93b8ff; outline-offset:2px; }

    @media (min-width:992px) {
        :root body .sidebar-column { flex:0 0 238px; width:238px; max-width:238px; }
        :root body .sidebar-column + .col-lg-9 { flex:1 1 0; width:calc(100% - 238px); max-width:calc(100% - 238px); min-width:0; }
    }
    @media (max-width:991px) {
        :root body .sidebar-column .navbar-nav { display:flex; flex-direction:row !important; gap:6px; overflow-x:auto; }
        :root body .sidebar-column .nav-link { white-space:nowrap; }
    }
    @media (max-width:767px) {
        :root body .navbar.bg-blue-700 { padding:8px 12px !important; }
        :root body .navbar .navbar-brand img { height:37px; }
        :root body .navbar .navbar-brand h3 { font-size:15px; }
        :root body:has(#pills-tab) > section.bg-soft-primary h1 { font-size:20px; }
        :root body #pills-tab { display:flex !important; gap:6px; overflow-x:auto; padding-bottom:6px; }
        :root body #pills-tab .nav-item { flex:0 0 auto; }
        :root body #pills-tab button { min-height:34px; padding:5px 8px !important; }
        :root body #pills-tab button img { width:22px; height:22px; }
    }
}

/* Public kiosk directory pages: replace their old dark glass surfaces with light cards. */
@media screen {
    :root body .pk-wrapper { width:100%; padding:30px 20px; background:#f4f6fc; font-family:inherit; }
    :root body #pk-video-bg { opacity:.06; filter:none; }
    :root body .pk-logo-area { margin-bottom:28px; }
    :root body .pk-logo-area :is(h1,p) { background:none; -webkit-text-fill-color:currentColor; animation:none; color:#253b58; }
    :root body .pk-logo-area h1 { font-size:clamp(26px,4vw,44px); font-weight:800; line-height:1.2; }
    :root body .pk-logo-area p { color:#64748b; font-size:14px; letter-spacing:.12em; }
    :root body .pk-logo-icon { width:88px !important; height:88px !important; border:1px solid #e0e7f3 !important; background:#fff !important; backdrop-filter:none !important; }
    :root body .pk-main-grid { width:100%; max-width:1040px; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px; }
    :root body .pk-tile { min-width:0; padding:24px; border:1px solid #e1def3; border-radius:18px; background:#f1ecff; color:#5d4f9c; }
    :root body .pk-tile.pk-amber { border-color:#f0e3cb; background:#fff6e5; color:#9c7429; }
    :root body .pk-tile.pk-teal { border-color:#d2e9e5; background:#e9f8f3; color:#278875; }
    :root body .pk-tile.pk-green { border-color:#d5e4f9; background:#edf4ff; color:#4476bc; }
    :root body .pk-tile-icon { color:inherit; }
    :root body .pk-tile-label { color:inherit; font-size:23px; font-weight:700; }
    :root body .pk-tile-sub { color:#64748b; font-size:14px; line-height:1.5; }
    :root body :is(.pk-footer-mail,.pk-footer-mail a,.pk-card-sub,.pk-empty,.pk-back,.pk-back-btn) { color:#64748b; }
    :root body .pk-page { padding:28px 24px 60px; font-family:inherit; }
    :root body .pk-page-header :is(h1,h2) { color:#253b58; font-size:30px; }
    :root body .pk-page-header p { color:#64748b; font-size:14px; }
    :root body :is(.pk-card,.pk-video-card) { padding:20px; border:1px solid #e1e7f2; border-radius:14px; background:#fff; backdrop-filter:none; }
    :root body .pk-card h4 { color:#253b58; font-size:17px; }
    :root body .pk-card-link { border:1px solid #d7e3fa; background:#edf3ff; color:#3562aa; }
    :root body .pk-card-link:hover { border-color:#b8cef5; background:#e0ecff; color:#2858a3; transform:translateY(-2px); }
    :root body #externalModal { background:#f7f8fc; }
    :root body .modal-nav { border-bottom:1px solid #e2e8f0; background:#fff; color:#334155; }
    :root body > h1:first-child { max-width:1000px; margin:36px auto 20px; padding:0 20px; font-size:28px; }
    :root body > h1:first-child + :is(a,ul) { display:block; max-width:1000px; margin:0 auto; padding:16px 20px; color:#3562aa; }
    @media (max-width:991px) {
        :root body .pk-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    }
    @media (max-width:767px) {
        :root body .pk-main-grid { grid-template-columns:minmax(0,1fr) !important; gap:12px; }
        :root body .pk-tile { padding:18px; }
        :root body .pk-tile-label { font-size:20px; }
        :root body .pk-page { padding:20px 14px 40px; }
        :root body .pk-grid { grid-template-columns:minmax(0,1fr); }
    }
}

/* Legacy app/Webpixels styles set explicit input heights; enforce the agreed compact size. */
@media screen {
    :root body :is(
        form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),
        form select:not([multiple]),
        .form-control:not(textarea):not([multiple]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
        .input-premium:not(textarea)
    ) {
        box-sizing:border-box; height:30px !important; min-height:30px !important;
        padding-top:4px !important; padding-bottom:4px !important;
        font-size:13px; line-height:1.4;
    }
    :root body textarea.form-control { height:auto; min-height:60px; }
    :root body .flatpickr input[data-input] { padding-left:30px !important; }
    :root body .flatpickr button[data-clear] { width:28px; height:30px; }
    :root body :is(.btn-premium-primary,.btn-premium-secondary) { height:30px !important; }
}

/* Final contrast and narrow-screen corrections from rendered page checks. */
@media screen {
    :root body .pk-tile-icon { background:#fff; color:inherit; border:1px solid rgba(70,90,140,.08); }
    :root body .pk-tile-icon i { color:inherit; }
    :root body .pk-logo-icon {
        background:#fff url("https://iqwing.s3.ap-south-1.amazonaws.com/cms/results/2024-06/1719471736482.png") center / 68px auto no-repeat !important;
    }
    :root body .pk-logo-icon img { opacity:0; }
    :root body .pk-content-wrap { width:100%; min-width:0; padding:20px 16px; }
    :root body .pk-content-wrap .main-title { color:#253b58; font-size:clamp(24px,4vw,38px); margin-bottom:24px; }
    :root body .pk-video-grid { width:100%; max-width:1200px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
    :root body .pk-video-card { min-width:0; overflow-wrap:anywhere; }
    :root body .pk-video-card h3 { color:#253b58; font-size:21px; margin-bottom:10px; }
    :root body .pk-video-card p { color:#64748b; font-size:14px; }
    :root body .pk-video-card i { margin-bottom:18px; font-size:42px; }
    :root body .pk-video-card:hover { transform:translateY(-2px); }
    :root body .pk-marquee-wrapper { width:100%; min-width:0; max-width:100%; }
    :root body .pk-marquee-content { font-size:13px; letter-spacing:.04em; }
    :root body .dept-tab { border:1px solid #dce5f3; background:#fff; color:#52637b; font-size:13px; padding:8px 14px; }
    :root body .dept-tab.active { border-color:#c8e3d9; background:#e8f7f0; color:#25836a; }
    :root body .dept-tab:hover { border-color:#b9cdeb; background:#f1f6ff; color:#3562aa; }
    :root body:has(#pills-tab) .accordion-button { border:1px solid #e0e6f4; border-radius:8px; background:#eff3ff !important; color:#364c72 !important; font-size:13px; padding:10px 14px; }
    :root body:has(#pills-tab) .accordion-button::after {
        width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
        border-radius:0; background:none !important; transform:rotate(45deg);
    }
    :root body:has(#pills-tab) .accordion-button:not(.collapsed)::after { transform:rotate(225deg); }
    :root body #pills-tabContent .card-header::before { content:none; }
    @media (max-width:767px) {
        :root body .pk-video-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
        :root body .pk-video-card { padding:18px; }
    }
}

@media screen {
    :root body:has(#pills-tab) .row > [class*="col-"] { min-width:0; }
    :root body #pills-tab { max-width:100%; }
    @media (max-width:767px) {
        :root body:has(#pills-tab) .row > [class*="col-"] { width:100%; max-width:100%; }
        :root body #pills-tab { width:100%; flex-wrap:nowrap; }
    }
}

/* Legacy mentorship/fee-report/allocation tables without a class attribute. */
@media screen {
    #app > .md\:ml-64 > .-m-48 table:not([class]) { width:100%; border-collapse:collapse; font-family:inherit; font-size:13px; color:#40536e; }
    #app > .md\:ml-64 > .-m-48 table:not([class]) > :is(thead,tbody,tfoot) > tr > :is(th,td) { padding:2px !important; line-height:1.4; border-color:#e2e8f0; }
}

/* Align legacy wrapped form fields and remove oversized list-filter spacing. */
@media screen {
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> .form-group) {
        align-items:flex-start; row-gap:8px;
    }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap > .form-group {
        min-width:0; padding-top:0 !important; padding-bottom:0 !important;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5:has(> .form-group) {
        width:100%; min-height:0; margin:0 0 8px !important;
        padding:10px 10px 8px !important; column-gap:0; row-gap:8px;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5 > .form-group {
        display:flex; flex-direction:column; align-items:stretch;
        margin:0; padding:0 6px !important;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5 > .form-group > .form-label {
        min-height:18px; margin:0 0 3px; line-height:18px;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5 > .form-group > :is(.validation-message,.help-block) {
        margin:0; line-height:1.35;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5:has(> .form-group) > .btn {
        align-self:flex-start; margin:0 6px; min-height:30px; padding:4px 10px;
    }
    #app > .md\:ml-64 > .-m-48 .row.g-5:has(> .form-group) + .overflow-hidden {
        margin-top:0; padding-top:0;
    }
}

/* Sidebar type hierarchy: each nested menu level steps down in size and weight. */
@media screen {
    #example-collapse-sidebar {
        --menu-font-size:14px;
        --menu-font-weight:600;
        --menu-active-weight:700;
    }
    #example-collapse-sidebar .subnav {
        --menu-font-size:13px;
        --menu-font-weight:500;
        --menu-active-weight:600;
    }
    #example-collapse-sidebar .subnav .subnav {
        --menu-font-size:12px;
        --menu-font-weight:400;
        --menu-active-weight:500;
    }
    #example-collapse-sidebar :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
        font-size:var(--menu-font-size) !important;
        font-weight:var(--menu-font-weight) !important;
        line-height:1.4;
    }
    #example-collapse-sidebar .sidebar-nav-active {
        font-weight:var(--menu-active-weight) !important;
    }
}

/* Dashboard density refinement. Values remain untouched: CSS cannot select plain text zeros. */
@media screen {
    #app > .md\:ml-64:has(> .-m-48 .flex.flex-wrap > a > .h-16) {
        --eu-bg:#f4f5f7;
        background:var(--eu-bg);
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) {
        --eu-summary-depth:0 3px 6px -2px rgba(15,23,42,.05),0 1px 3px rgba(15,23,42,.025);
        padding-top:22px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .flex.flex-wrap:has(> a > .h-16) {
        gap:10px; margin-bottom:16px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) a > .h-16 {
        min-height:88px; padding:12px 14px; gap:10px; border-radius:12px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) a > .h-16 h1 {
        gap:8px; margin-left:0; font-size:12px; line-height:1.4;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) a > .h-16 h1 span {
        font-size:28px; line-height:1.15; letter-spacing:-.025em;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) a > .h-16 .bg-lightBlue-500 {
        width:36px; height:36px; flex-basis:36px; border-radius:10px; font-size:15px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > hr {
        margin:14px 0 10px; border-bottom-color:#e8edf5;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > h4 {
        margin-bottom:10px; font-size:16px; line-height:1.4;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > div > .h-16 {
        min-height:30px; margin-bottom:8px; padding-top:3px; padding-bottom:3px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > div > .h-16 h1 {
        font-size:16px; line-height:22px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > div > .h-16 .bg-lightBlue-500 {
        width:26px; height:26px; flex-basis:26px; border-radius:8px; font-size:12px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) {
        gap:10px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > .flex.flex-wrap + .flex.flex-wrap {
        margin-top:10px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words {
        min-height:74px; border-radius:10px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words > .flex-auto {
        padding:10px 12px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words h5 {
        margin-bottom:5px; color:#64748b; font-size:12px; line-height:1.4; font-weight:500;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words span.text-xl {
        font-size:25px; line-height:1.2; font-weight:700; letter-spacing:-.025em;
        font-variant-numeric:tabular-nums;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words .bg-lightBlue-500 {
        width:32px; height:32px; flex-basis:32px; border-radius:9px; font-size:14px;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > .flex.justify-end:has(input[type="date"]) {
        padding:10px 12px; border-radius:10px; gap:8px; flex-wrap:wrap;
    }
    #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > footer {
        margin-top:16px; padding:12px 0 6px;
    }
    @media (min-width:768px) {
        #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) > div:has(> .h-16) + .flex.flex-wrap {
            padding:8px; gap:8px; border-radius:12px;
        }
    }
    @media (max-width:767px) {
        #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) a > .h-16 h1 span { font-size:25px; }
        #app > .md\:ml-64 > .-m-48:has(.flex.flex-wrap > a > .h-16) .relative.flex.flex-col.min-w-0.break-words span.text-xl { font-size:23px; }
    }
}

/* Sidebar navigation with distinct module, group, and page states. */
@media screen {
    :root body:has(#example-collapse-sidebar) { --eu-sidebar-bg: #fff; }

    #app > nav:has(#example-collapse-sidebar) {
        border-color: #dce5f1;
        scrollbar-color: #c1cde0 transparent;

        &::-webkit-scrollbar-thumb { background: #c1cde0; }
    }

    #example-collapse-sidebar {
        --menu-ink: #253b58;
        --menu-accent: #234eac;
        --menu-hover: #e5edff;
        --menu-open: #dbe7ff;
        border-color: #dce5f1;

        > ul {
            display: flex;
            flex-direction: column;
            gap: 2px;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        li { min-width: 0; }

        > ul > li > :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
            min-height: 34px;
            margin: 0;
            padding: 5px 9px;
            gap: 8px;
            border: 0;
            border-radius: 6px;
            background: #eff4ff;
            color: var(--menu-ink);

            > i { color: #59749e; }
        }

        > ul > li > .has-sub { padding-right: 27px; }

        > ul > li:has(> .subnav:not(.hidden)) > .has-sub,
        > ul > li > .has-sub.sidebar-nav-active {
            background: var(--menu-open) !important;
            color: var(--menu-accent) !important;
            font-weight: 700 !important;
        }

        > ul > li > .sidebar-nav-active:not(.has-sub) {
            background: #244da0 !important;
            color: #fff !important;
        }

        > ul > li > .sidebar-nav-active:not(.has-sub) > i { color: #fff !important; }
        > ul > li:has(> .subnav:not(.hidden)) > .has-sub > i,
        .has-sub.sidebar-nav-active::after { color: var(--menu-accent) !important; }

        .subnav {
            --menu-hover: #e3f2e9;
            --menu-selected: #d5ebde;
            margin: 3px 0 6px 12px;
            padding: 3px 4px 4px 8px;
            border: 0;
            border-left: 1px solid #b9d9c6;
            border-radius: 0 6px 6px 0;
            background: #f0f8f3;
        }

        .subnav .subnav {
            --menu-hover: #eee7fa;
            --menu-selected: #e4d9f7;
            margin: 1px 0 4px 6px;
            padding: 2px 3px 3px 5px;
            border: 0;
            border-left: 1px solid #d4c7e9;
            background: #f5f0fb;
        }

        .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub),
        .subnav .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
            min-height: 27px;
            margin: 0;
            padding: 4px 6px !important;
            gap: 6px;
            border: 0;
            border-radius: 5px;
            background: transparent;
            color: #425773;

            > i { color: #617ba1; }
        }

        .subnav .has-sub,
        .subnav .subnav .has-sub { padding-right: 24px !important; }

        .subnav .sidebar-nav-active,
        .subnav .subnav .sidebar-nav-active {
            background: var(--menu-selected) !important;
            color: var(--menu-accent) !important;
        }

        .subnav .sidebar-nav-active > i { color: var(--menu-accent) !important; }

        .subnav li:has(> .subnav:not(.hidden)) > a[href="#"]:not(.has-sub) {
            margin-top: 4px;
            color: #263d61;
            font-size: 12px !important;
            font-weight: 700 !important;

            > i { color: #355d9f; }
        }

        > ul > li > :is(.sidebar-nav,.has-sub):hover,
        .subnav :is(.sidebar-nav,.has-sub):hover,
        .subnav .subnav :is(.sidebar-nav,.has-sub):hover {
            background: var(--menu-hover);
            color: var(--menu-accent);
        }
    }

    @media (min-width:768px) {
        #app > nav:has(#example-collapse-sidebar) { padding-top: 10px !important; }

        #app > nav:has(#example-collapse-sidebar) > div > a {
            min-height: 34px;
            margin-bottom: 8px;
            padding-bottom: 7px;
        }
    }

    @media (max-width:767px) {
        #example-collapse-sidebar {
            top: 100%;
            padding-top: 12px;
        }

        #example-collapse-sidebar > .md\:hidden:first-child {
            margin-bottom: 8px;
            padding-bottom: 8px;
        }

        #example-collapse-sidebar > ul > li > :is(.sidebar-nav,.sidebar-nav-active,.has-sub),
        #example-collapse-sidebar .subnav :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
            min-height: 38px;
        }
    }
}

/* Consistent compact forms and data tables. Dashboard/navigation stay independent. */
@media screen {
    :root body .card:has(form,.table,.card-controls) { border-color:#dfe6f0; border-radius:12px; }
    :root body .card:has(form,.table,.card-controls) > .card-header {
        padding:10px 12px; background:#fff; border-bottom:1px solid #e3e9f2;
    }
    :root body .card:has(form,.table,.card-controls) > .card-header .card-title {
        font-size:16px; font-weight:700; line-height:1.4;
    }
    :root body .card:has(form) > .card-body { padding:12px; }
    :root body .card-controls { padding:8px 12px; gap:8px; background:#f8faff; color:#64748b; }
    :root body .card-controls > div { gap:7px; }
    :root body .card-controls select { width:66px; min-width:66px; border-radius:6px; }
    :root body .card-controls input[type=text] { width:220px; border-radius:6px; }
    :root body :is(.form-label,.form-label-premium),
    :root body .form-group > label {
        margin-bottom:3px; color:#52637b; font-size:12px; font-weight:600; line-height:1.4;
    }
    :root body :is(.form-control,.form-select,.input-premium) {
        border-color:#cfd9e8; border-radius:6px !important; background-color:#fff;
        color:#334155; font-size:13px; line-height:1.4;
    }
    :root body :is(.form-control,.form-select,.input-premium):hover:not(:disabled):not(:focus) { border-color:#aebfd8; }
    :root body :is(.form-control,.form-select,.input-premium):focus { border-color:#719ce3; }
    :root body :is(.form-control,.input-premium)[readonly] { background-color:#f8fafc; color:#64748b; }
    :root body .form-group :is(.help-block,.validation-message) { margin-top:2px; font-size:11px; line-height:1.35; }
    :root body :is(.help-block,.validation-message):empty { display:none; }
    :root body .form-group > input:is([type=checkbox],[type=radio]) + .form-label { display:inline; margin-left:5px; }
    :root body .select2-selection { min-height:30px; border-color:#cfd9e8; border-radius:6px; }
    :root body .select2-selection--single { height:30px; }
    :root body .select2-selection--single .select2-selection__rendered { line-height:28px; font-size:13px; }
    :root body .select2-selection--multiple { height:auto; }

    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) {
        background:#fff; color:#334155; font-size:13px;
    }
    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) > :is(thead,tbody,tfoot) > tr > :is(th,td) {
        padding:2px !important; line-height:1.4; vertical-align:middle;
    }
    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) > thead > tr > th {
        border-bottom:1px solid #d6e0ef; background:#edf3fc; color:#435b7d;
        font-size:12px; font-weight:600; letter-spacing:0; text-transform:none;
    }
    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) > tbody > tr > td { border-bottom-color:#e8edf5; }
    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) > tbody > tr:nth-child(even) { background:#fbfcff; }
    :root body table:is(.table.table-index,.table,.min-w-full,.table-auto,.premium-table,.table-premium) > tbody > tr:hover { background:#eff5ff; }
    :root body .table .badge { padding:2px 4px; border-radius:4px; font-size:11px; line-height:1.35; }
    :root body .table .btn { min-height:22px; padding:2px 5px; border-radius:5px; font-size:12px; line-height:1.3; }
    :root body .table td > .flex { gap:4px; }
    @media (max-width:767px) {
        :root body .card-controls > div { flex-basis:100%; justify-content:flex-start; }
        :root body .card-controls input[type=text] { width:min(220px,100%); }
    }
}

@media screen {
    #app > .md\:ml-64 > .-m-48 table:is(.table,.min-w-full,.table-auto,.premium-table,.table-premium) > thead > tr > th {
        border-bottom-color:#d6e0ef; background:#edf3fc; color:#435b7d; font-size:12px; font-weight:600;
    }
}

/* Admin palette: neutral surfaces, navy navigation, restrained status accents.
   Keep existing layouts, metrics, menu hierarchy and print styles unchanged. */
@media screen {
    :root body:has(#example-collapse-sidebar) {
        --eu-bg:#f3f5f8;
        --eu-ink:#172b46;
        --eu-muted:#526174;
        --eu-border:#dfe5ed;
        --eu-blue:#245da8;
        --eu-soft:#edf3fa;
    }

    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a {
        --summary-ink:#245da8; --summary-tint:#edf3fa; --summary-edge:#dfe5ed;
    }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(2) {
        --summary-ink:#245da8; --summary-tint:#edf3fa; --summary-edge:#dfe5ed;
    }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(3) {
        --summary-ink:#14705a; --summary-tint:#edf7f2;
    }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a:nth-child(4) {
        --summary-ink:#ac3d48; --summary-tint:#fcf0f1;
    }
    #app > .md\:ml-64 > .-m-48 :is(a > .h-16,.relative.flex.flex-col.min-w-0.break-words) {
        border-color:#dfe5ed !important; background:#fff !important;
    }
    #app > .md\:ml-64 > .-m-48 a > .h-16::after { content:none; }
    #app > .md\:ml-64 > .-m-48 .flex.flex-wrap:has(> a > .h-16) > a .bg-lightBlue-500 {
        border:0; background:var(--summary-tint); color:var(--summary-ink);
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words {
        --metric-color:#245da8; --metric-soft:#edf3fa;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-yellow-500 {
        --metric-color:#956416; --metric-soft:#fbf4e8;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-rose-500 {
        --metric-color:#245da8; --metric-soft:#edf3fa;
    }
    #app > .md\:ml-64 > .-m-48 .relative.flex.flex-col.min-w-0.break-words.bg-green-500 {
        --metric-color:#14705a; --metric-soft:#edf7f2;
    }
    #app > .md\:ml-64 > .-m-48 > div > .h-16,
    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-hand-holding-usd),
    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-user),
    #app > .md\:ml-64 > .-m-48 > div > .h-16:has(.fa-book),
    #app > .md\:ml-64 > .-m-48 > div:has(+ .flex.flex-wrap > div:nth-child(5)) > .h-16 {
        --eu-section-accent:#245da8; --eu-section-soft:#edf3fa;
        background:transparent;
    }
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500,
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500:has(.fa-hand-holding-usd),
    #app > .md\:ml-64 > .-m-48 > div > .h-16 .bg-lightBlue-500:has(.fa-book) { background:#edf3fa; color:#245da8; }
}

/* Unified module layer: shared neutral surfaces and restrained functional colours.
 * Keep all rules screen-only and mapped to existing module hooks.
 */
@media screen {
    :root {
        --portal-surface:#fff; --portal-canvas:#f4f5f7; --portal-tint:#edf3fa;
        --portal-line:#dfe5ed; --portal-heading:#172b46; --portal-text:#40536e;
        --portal-muted:#64748b; --portal-accent:#245da8; --portal-radius:10px;
    }
    :root body :is(.card,.premium-card,.form-card,.custom-card,.grievance-card) {
        border-color:var(--portal-line); background-color:var(--portal-surface);
        color:var(--portal-text); border-radius:var(--portal-radius);
    }
    :root body :is(.card-header,.card-header-premium) {
        padding:10px 12px; border-bottom:1px solid var(--portal-line); background:#fff;
    }
    :root body :is(.card-title,.card-header-premium h3) {
        margin:0; color:var(--portal-heading); font-size:16px; font-weight:700; line-height:1.4;
    }
    :root body :is(.form-label,.form-label-premium) { color:#526174; font-weight:600; }
    :root body :is(.form-control,.form-select,.input-premium,.select2-selection) { border-color:#cfd9e8; border-radius:6px !important; }
    :root body :is(.btn-primary,.btn-indigo,.btn-info,.btn-premium-primary,.btn-pill-primary) {
        border-color:var(--portal-accent); background:var(--portal-accent); color:#fff;
    }
    :root body :is(.btn-primary,.btn-indigo,.btn-info,.btn-premium-primary,.btn-pill-primary):hover {
        border-color:#1c4c8b; background:#1c4c8b;
    }
    :root body :is(.modal-header,.modal-footer) { padding:10px 14px; border-color:var(--portal-line); background:#fff; color:var(--portal-heading); }
    :root body .modal-header .btn-close { filter:none; }
    :root body .modal-body { padding:14px; background:#fff; }
    :root body .modal-header :is(h3,h4,h5,.text-white) { color:var(--portal-heading) !important; }

    /* Timetable course accordion: replace the isolated purple/gold theme. */
    #app > .md\:ml-64 > .-m-48 .rounded-3xl:has(> .premium-card > .accordion-header) {
        min-height:0 !important; padding:0; border-radius:10px; background:#fff !important;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card:has(> .accordion-header) {
        margin-bottom:12px; border:1px solid var(--portal-line); border-radius:10px;
        background:#fff; overflow:hidden;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card.active:has(> .accordion-header) { border-color:#b8cce6; background:#fff; }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header,
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header.inactive {
        width:100%; min-height:52px; gap:10px; padding:10px 12px;
        border:0; border-radius:0; background:var(--portal-tint); color:#204a7a;
        transition:background-color .18s ease;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header:hover { background:#e4edf8; }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header > .flex { min-width:0; gap:10px; }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header > .flex > * { margin-left:0; }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header .text-xl {
        color:#204a7a; font-size:16px; font-weight:700; font-style:normal;
        letter-spacing:0; overflow-wrap:anywhere;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header .p-3 {
        display:flex; width:32px; height:32px; flex:0 0 32px; align-items:center; justify-content:center;
        padding:6px; border-radius:8px; background:#fff !important;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header i { color:var(--portal-accent) !important; font-size:17px; }
    #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header span.border-2 {
        padding:4px 7px; border:1px solid #cedcf0; border-radius:6px;
        background:#fff; color:#526b8d; font-size:11px; font-weight:500; text-transform:none;
    }
    #app > .md\:ml-64 > .-m-48 .premium-card:has(> .accordion-header) > div > .p-6 { padding:8px 10px; background:#fff !important; }
    #app > .md\:ml-64 > .-m-48 .premium-card .table-premium { border:1px solid #e3eaf3; border-radius:0; background:#fff; }
    #app > .md\:ml-64 > .-m-48 .premium-card .table-premium :is(thead,tbody) { background:#fff !important; color:var(--portal-text) !important; }
    #app > .md\:ml-64 > .-m-48 .premium-card .table-premium th { padding:2px !important; background:var(--portal-tint); color:#435b7d; font-size:12px; font-weight:600; }
    #app > .md\:ml-64 > .-m-48 .premium-card .table-premium td { padding:2px !important; color:var(--portal-text); }
    #app > .md\:ml-64 > .-m-48 .premium-card .table-premium td .text-amber-600 { color:#718299; font-size:10px; font-weight:500; letter-spacing:.02em; }
    #app > .md\:ml-64 > .-m-48 .semester-text { color:#334155; font-family:inherit; font-size:13px; font-style:normal; font-weight:600; line-height:1.4; }
    #app > .md\:ml-64 > .-m-48 .section-item {
        min-height:44px; margin:0; padding:7px 9px; border:1px solid #e0e7f1;
        border-radius:7px; background:#f9fbfe;
    }
    #app > .md\:ml-64 > .-m-48 .section-item > .flex { min-width:0; gap:9px; }
    #app > .md\:ml-64 > .-m-48 .section-item > .flex > * { margin-left:0; }
    #app > .md\:ml-64 > .-m-48 .section-item .w-12.h-12 {
        width:28px; height:28px; border-radius:6px; background:#e8f0fb !important;
        color:#315d9a; font-size:14px; font-weight:700;
    }
    #app > .md\:ml-64 > .-m-48 .division-label { color:#64748b !important; font-size:10px; font-weight:500; letter-spacing:.04em; }
    #app > .md\:ml-64 > .-m-48 .division-master-text { color:#334155 !important; font-size:13px; font-weight:600 !important; }
    #app > .md\:ml-64 > .-m-48 .btn-action { width:28px; height:28px; border:1px solid transparent; border-radius:6px; font-size:14px; }
    #app > .md\:ml-64 > .-m-48 .btn-add { background:var(--portal-accent); color:#fff; }
    #app > .md\:ml-64 > .-m-48 .btn-edit { border-color:#cfddf0; background:#edf3fa; color:#245da8; }

    /* Mentorship/attendance module banners use the same light header treatment. */
    #app > .md\:ml-64 > .-m-48 .rounded-xl.text-white:has(> div > :is(h4,h6)),
    #app > .md\:ml-64 > .-m-48 .border-b-4.border-yellow-500:has(marquee) {
        border-color:#dce6f3 !important; background:#edf3fa !important; color:#204a7a !important;
    }
    #app > .md\:ml-64 > .-m-48 .border-b-4.border-yellow-500 marquee { color:#405e83 !important; font-size:12px; }

    /* Grievance styles use real CSS rather than uncompiled @apply declarations. */
    :root body .avatar-circle { display:inline-flex; width:30px; height:30px; flex:0 0 30px; align-items:center; justify-content:center; border-radius:50%; background:#edf3fa; color:#3562aa; font-size:12px; font-weight:600; }
    :root body :is(.priority-badge,.status-badge) { display:inline-flex; align-items:center; padding:2px 6px; border:1px solid transparent; border-radius:5px; font-size:11px; font-weight:500; line-height:1.4; }
    :root body :is(.priority-urgent,.priority-high) { border-color:#f0d6dc; background:#fff1f4; color:#ad435c; }
    :root body .priority-medium { border-color:#d7e3f6; background:#edf3ff; color:#3562aa; }
    :root body .priority-low { border-color:#d5e9dc; background:#edf8f1; color:#28794e; }
    :root body .status-pending { border-color:#efdfb8; background:#fff7e8; color:#976e24; }
    :root body .status-in_progress { border-color:#d7e3f6; background:#edf3ff; color:#3562aa; }
    :root body .status-resolved { border-color:#d5e9dc; background:#edf8f1; color:#28794e; }
    :root body .status-closed { border-color:#e2e8f0; background:#f5f7fa; color:#64748b; }

    /* Student learning/profile cards: readable white surfaces over legacy wallpapers. */
    :root body .container-fluid:has(> :is(.erp-test-wrapper,.erp-assignment-wrapper,.erp-attendance-wrapper,.erp-timetable-wrapper,.erp-education-wrapper)) { position:relative; isolation:isolate; }
    :root body .container-fluid:has(> :is(.erp-test-wrapper,.erp-assignment-wrapper,.erp-attendance-wrapper,.erp-timetable-wrapper,.erp-education-wrapper))::before {
        content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:var(--portal-canvas);
    }
    :root body :is(.erp-test-card,.erp-assignment-card,.erp-attendance-card,.erp-education-card,.erp-profile-card,.erp-meta-card,.erp-glass-responsive-card) {
        padding:12px !important; border:1px solid var(--portal-line) !important;
        border-radius:10px; background:#fff !important; color:var(--portal-text);
        backdrop-filter:none; -webkit-backdrop-filter:none;
    }
    :root body :is(.erp-test-title,.erp-spec-label,.erp-assignment-card h3,.erp-attendance-card h3) { color:var(--portal-heading) !important; }
    :root body .erp-phone-scroll-engine { max-width:100%; overflow-x:auto; }
    @media (max-width:767px) {
        #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header { flex-wrap:wrap; gap:8px; }
        #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header > .flex:first-child { flex:1 1 180px; }
        #app > .md\:ml-64 > .-m-48 .premium-card > .accordion-header .text-xl { font-size:14px; }
        #app > .md\:ml-64 > .-m-48 .section-item { padding:6px; }
    }
}

@media screen {
    #app > .md\:ml-64 > .-m-48 .rounded-xl.text-white:has(> div > h6) :is(h6,p) { color:#405e83 !important; }
    /* This legacy search input declares an inline !important background/text colour. */
    #app > .md\:ml-64 > .-m-48 input[wire\:model\.debounce\.250ms="search_dashboard"] {
        box-shadow:inset 0 0 0 100px #fff !important;
        -webkit-text-fill-color:#334155; caret-color:#334155; border-color:#cad8eb !important;
    }
    #app > .md\:ml-64 > .-m-48 :is(.table,.table-master-matrix,.premium-table,.table-premium,.erp-glass-table) > thead > tr > th {
        padding:2px !important; border-color:#dce5f2 !important; background:#edf3fa !important;
        color:#435b7d !important; font-size:12px; font-weight:600; letter-spacing:0; text-transform:none;
    }
    #app > .md\:ml-64 > .-m-48 .btn-report { padding:5px 10px; border-radius:6px; background:#245da8 !important; color:#fff !important; font-size:12px; }
}

@media screen {
    #app > .md\:ml-64 > .-m-48 .bg-gradient-to-br.border.rounded-xl.p-5 { padding:12px; border:1px solid #dfe5ed; background:#fff; border-radius:10px; }
    #app > .md\:ml-64 > .-m-48 .min-h-screen.bg-gray-50 > .bg-white > .max-w-7xl { padding-top:14px; padding-bottom:14px; }
    @media (max-width:767px) {
        #app > .md\:ml-64 > .-m-48 .w-full.px-0:has(> .rounded-xl.text-white > div > h6) [style*="min-width"] { min-width:0 !important; max-width:100%; }
        #app > .md\:ml-64 > .-m-48 .w-full.px-0:has(> .rounded-xl.text-white > div > h6) .position-relative.w-100 { max-width:100% !important; }
    }
}


/* Dashboard surfaces, grids, and controls using the existing Blade markup. */
@media screen {
    #app:is(
        :has(> .md\:ml-64 > .-m-48 > div > .flex.flex-wrap > a > .h-16),
        :has(> .md\:ml-64 > .-m-48 > div > .h-16):has(> .md\:ml-64 > .-m-48 > .flex.flex-wrap > div > .relative.flex.flex-col.min-w-0.break-words a[href=""] span.text-xl)
    ) {
        --dashboard-sidebar: 240px;
        --dashboard-canvas: #f8fafc;
        --dashboard-surface: #fff;
        --dashboard-border: #dbe3ee;
        --dashboard-ink: #0f172a;
        --dashboard-label: #475569;
        --dashboard-accent: #244da0;
        --dashboard-icon-bg: #eef4ff;
        --dashboard-icon-ink: #284f99;
        --dashboard-gutter: clamp(16px, 2.5vw, 32px);
        --dashboard-gap: 12px;
        --dashboard-card-padding: clamp(16px, 1.3vw, 20px);
        --dashboard-card-radius: 10px;
        --dashboard-primary-columns: 4;
        --dashboard-secondary-columns: 3;

        > nav:has(#example-collapse-sidebar) {
            --eu-sidebar: var(--dashboard-sidebar);
            border-color: var(--dashboard-border);
        }

        #example-collapse-sidebar :is(.sidebar-nav,.sidebar-nav-active,.has-sub) {
            min-width: 0;
            height: auto;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        > .md\:ml-64 {
            --eu-sidebar: var(--dashboard-sidebar);
            background: var(--dashboard-canvas);
        }

        > .md\:ml-64 > nav {
            min-height: 64px;
            padding: 10px var(--dashboard-gutter);
            border-bottom-color: var(--dashboard-border);
            background: var(--dashboard-surface) !important;

            > div { gap: 8px 14px; }
            > div > ul { margin: 0; }
            img { height: 42px; }
            label { color: var(--dashboard-label); }
            select { color: var(--dashboard-ink); }
        }

        > .md\:ml-64 > .-m-48 {
            padding: 20px var(--dashboard-gutter);

            &:has(> .flex.justify-end > form > input[name="filter_start_date"]) {
                display: flex;
                flex-direction: column;
                reading-flow: flex-visual;
            }

            > .flex.justify-end:has(> form > input[name="filter_start_date"]) {
                order: -1;
                justify-content: flex-start;
                width: 100%;
                margin: 0 0 18px;
                padding: 10px 12px;
                border: 1px solid var(--dashboard-border);
                border-radius: var(--dashboard-card-radius);
                background: var(--dashboard-surface);

                form {
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    gap: 8px;
                    width: 100%;
                    margin: 0;
                }

                span {
                    margin: 0 4px 0 0;
                    color: var(--dashboard-ink);
                    font-size: 13px;
                }

                input[type="date"],
                button {
                    min-width: 0;
                    height: 34px !important;
                    min-height: 34px !important;
                    margin: 0;
                    border-radius: 6px;
                    font: inherit;
                    font-size: 13px;
                }

                button {
                    padding: 0 14px;
                    background: var(--dashboard-accent);
                    color: #fff;
                }

                button:hover { background: #1c3d82; }

                :is(input,button):focus-visible {
                    outline: 2px solid var(--dashboard-accent);
                    outline-offset: 2px;
                }
            }

            > hr:has(+ .flex.justify-end > form > input[name="filter_start_date"]) {
                display: none;
            }

            > div > .flex.flex-wrap:has(> a > .h-16) {
                grid-template-columns: repeat(var(--dashboard-primary-columns), minmax(0, 1fr));
                gap: var(--dashboard-gap);
                margin-bottom: 0;
            }

            > .flex.flex-wrap:has(> div > .relative.flex.flex-col.min-w-0.break-words) {
                grid-template-columns: repeat(var(--dashboard-secondary-columns), minmax(0, 1fr));
                gap: var(--dashboard-gap);
                padding: 0;
                border: 0;
                border-radius: 0;
                background: transparent;
            }

            a > .h-16,
            .relative.flex.flex-col.min-w-0.break-words {
                min-height: 94px;
                border: 1px solid var(--dashboard-border) !important;
                border-radius: var(--dashboard-card-radius);
                background: var(--dashboard-surface) !important;
                box-shadow: none !important;
                transition: border-color .15s ease;

                &:hover {
                    transform: none;
                    filter: none;
                    border-color: #a8bbd9 !important;
                    box-shadow: none !important;
                }

                .bg-lightBlue-500 {
                    border: 0;
                    background: var(--dashboard-icon-bg);
                    color: var(--dashboard-icon-ink);
                }
            }

            a > .h-16,
            .relative.flex.flex-col.min-w-0.break-words > .flex-auto {
                padding: var(--dashboard-card-padding);
                gap: 8px;
            }

            .relative.flex.flex-col.min-w-0.break-words .flex.flex-wrap { gap: 8px; }

            a > .h-16 h1,
            .relative.flex.flex-col.min-w-0.break-words h5 {
                color: var(--dashboard-label);
                font-size: 13px;
                font-weight: 600;
                overflow-wrap: anywhere;
            }

            a > .h-16 h1 span,
            .relative.flex.flex-col.min-w-0.break-words span.text-xl {
                color: var(--dashboard-ink);
                font-size: clamp(20px, 1.8vw, 28px);
                font-variant-numeric: tabular-nums;
                letter-spacing: -.025em;
                overflow-wrap: anywhere;
            }

            /* The two report links have whitespace-only value spans in Blade. */
            :is(a[href$="/teacher-performance"], a[href$="/software-utilization"]) span.text-xl::before,
            span.text-xl:empty::before {
                content: "—";
                color: var(--dashboard-label);
            }

            > div > .h-16 { background: transparent; }

            > h4,
            > div > .h-16 h1 {
                color: var(--dashboard-ink);
                font-size: 16px;
                font-weight: 700;
            }

            > hr,
            > footer hr { border-color: var(--dashboard-border); }

            > footer :is(a, .text-sm) { color: var(--dashboard-label); }
        }

        @media (max-width:1199px) {
            --dashboard-primary-columns: 2;
            --dashboard-secondary-columns: 2;
        }

        @media (max-width:767px) {
            > .md\:ml-64 > nav {
                min-height: 56px;

                > div { gap: 8px; }
                > div > ul { display: flex; }
                img { height: 34px; }

                a > div > span { width: 32px; height: 32px; }
            }
        }

        @media (max-width:420px) {
            --dashboard-primary-columns: 1;
            --dashboard-secondary-columns: 1;

            > .md\:ml-64 > .-m-48 > .flex.justify-end:has(> form > input[name="filter_start_date"]) {
                span { flex-basis: 100%; }
                input[type="date"] { flex: 1 1 100px; }
            }
        }
    }
}
