:root {
    --ink: #162238;
    --muted: #6d788b;
    --line: #e7ebf0;
    --surface: #ffffff;
    --soft: #f5f7fa;
    --navy: #0f2847;
    --navy-2: #15375e;
    --gold: #cda54d;
    --green: #1d805e;
    --danger-bg: #fff0f0;
    --danger-text: #a93434;
    --shadow: 0 18px 48px rgba(15, 40, 71, .10);
    --radius: 20px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--soft); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; font-weight: 800; color: #d7e8ff; }
.eyebrow.dark { color: #60708a; }
.muted { color: var(--muted); }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) minmax(480px, 1.05fr); }
.brand-panel { position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px clamp(40px, 6vw, 92px); background: linear-gradient(145deg, #0a203c 0%, #12365d 56%, #0e2948 100%); color: #fff; }
.brand-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.brand-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .22; }
.brand-glow-one { width: 400px; height: 400px; background: #d2ab51; right: -190px; top: -160px; }
.brand-glow-two { width: 320px; height: 320px; background: #4992d0; left: -160px; bottom: -130px; }
.brand-content { position: relative; z-index: 1; max-width: 620px; }
.brand-logo { width: 150px; height: 150px; object-fit: contain; margin-bottom: 34px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); background: rgba(255,255,255,.96); border-radius: 50%; padding: 8px; }
.brand-content h1 { margin: 0; max-width: 620px; font-size: clamp(36px, 4vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.brand-copy { max-width: 580px; margin: 22px 0 38px; color: #d8e4f1; font-size: 17px; line-height: 1.7; }
.brand-meta { display: grid; gap: 8px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); color: #c1cede; font-size: 13px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; background: #fff; }
.login-card { width: min(440px, 100%); }
.login-card h2 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.035em; }
.login-card > .muted { margin: 0 0 32px; line-height: 1.6; }
.mobile-brand { display: none; }
.alert { margin: 0 0 22px; padding: 13px 15px; background: var(--danger-bg); color: var(--danger-text); border: 1px solid #ffd5d5; border-radius: 12px; font-size: 14px; }
.login-form { display: grid; gap: 20px; }
.login-form label { display: grid; gap: 8px; }
.login-form label > span { font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; height: 50px; border: 1px solid #d9e0e8; border-radius: 12px; padding: 0 14px; outline: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { border-color: #2b5c8b; box-shadow: 0 0 0 4px rgba(43, 92, 139, .10); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; right: 8px; top: 8px; height: 34px; border: 0; background: #eef3f7; color: #3e536d; border-radius: 8px; padding: 0 12px; font-size: 12px; font-weight: 800; }
.primary-button { height: 52px; border: 0; border-radius: 12px; background: var(--navy); color: white; font-weight: 800; box-shadow: 0 10px 24px rgba(15,40,71,.17); transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--navy-2); transform: translateY(-1px); }
.primary-button.inline, .secondary-button.inline { display: inline-flex; width: auto; align-items: center; justify-content: center; padding: 0 20px; }
.security-note { margin: 22px 0 0; color: #8a94a4; font-size: 12px; text-align: center; }

/* Application shell */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; display: flex; flex-direction: column; z-index: 40; padding: 24px 18px; background: #0c2340; color: white; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 25px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sidebar-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; padding: 3px; background: #fff; }
.sidebar-brand div { display: grid; gap: 2px; }
.sidebar-brand strong { letter-spacing: .03em; font-size: 14px; }
.sidebar-brand span { color: #aebdcd; font-size: 11px; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 26px; }
.nav-link { min-height: 48px; display: flex; align-items: center; gap: 12px; border-radius: 11px; padding: 0 13px; color: #c8d5e1; font-size: 13px; font-weight: 650; transition: background .15s, color .15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.09); color: white; }
.nav-icon, .nav-badge { width: 27px; min-width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 800; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 9px; color: #a9b9c8; font-size: 11px; padding: 18px 8px 4px; border-top: 1px solid rgba(255,255,255,.10); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54d59b; box-shadow: 0 0 0 4px rgba(84,213,155,.10); }
.app-main { grid-column: 2; min-width: 0; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 54px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar .eyebrow { margin-bottom: 2px; font-size: 9px; }
.topbar h1 { margin: 0; font-size: 22px; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 10px; }
.admin-menu { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #edf2f7; color: var(--navy); font-weight: 800; }
.admin-copy { display: grid; gap: 1px; min-width: 95px; }
.admin-copy strong { font-size: 12px; }
.admin-copy span { font-size: 10px; color: var(--muted); }
.logout-button { margin-left: 8px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #44536a; font-size: 11px; font-weight: 750; }
.dashboard-content { padding: 34px clamp(24px, 4vw, 54px) 24px; }
.welcome-card { position: relative; overflow: hidden; min-height: 210px; display: flex; align-items: center; justify-content: space-between; border-radius: 22px; padding: 36px clamp(26px, 4vw, 48px); background: linear-gradient(120deg, #113359, #174c77); color: white; box-shadow: var(--shadow); }
.welcome-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(205,165,77,.25), transparent 28%); }
.welcome-card > div { position: relative; z-index: 1; max-width: 720px; }
.welcome-card h2 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.welcome-card p { max-width: 700px; margin: 0; color: #d6e3ef; line-height: 1.65; font-size: 14px; }
.welcome-card img { position: relative; z-index: 1; width: 130px; height: 130px; object-fit: contain; border-radius: 50%; padding: 7px; background: white; opacity: .96; box-shadow: 0 16px 32px rgba(0,0,0,.18); }
.pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13); color: #e4eef8; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 34px; }
.summary-card { min-height: 126px; display: grid; align-content: center; gap: 7px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.summary-card > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.summary-card strong { font-size: 23px; letter-spacing: -.02em; }
.summary-card small { color: #8c96a5; font-size: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 14px; }
.section-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.section-heading h2 { margin: 0; font-size: 23px; }
.integration-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.module-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(15,40,71,.08); border-color: #d9e0e8; }
.module-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.module-mark { width: 45px; height: 45px; display: inline-grid; place-items: center; border-radius: 12px; background: #eef3f7; color: var(--navy); font-size: 12px; font-weight: 850; }
.ready-badge { padding: 6px 9px; border-radius: 999px; background: #eaf7f1; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.module-card h3 { margin: 0 0 8px; font-size: 18px; }
.module-card > p { min-height: 44px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.module-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0; }
.module-metrics div { padding: 12px; background: #f7f9fb; border-radius: 10px; }
.module-metrics span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.module-metrics strong { font-size: 16px; }
.module-button { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; color: #244e78; font-size: 11px; font-weight: 800; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 34px; padding: 20px 2px 5px; border-top: 1px solid var(--line); color: #8b95a3; font-size: 10px; }
.sidebar-overlay { display: none; }

/* Module placeholder */
.module-page { background: #f4f6f9; }
.module-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(20px,4vw,54px); background: white; border-bottom: 1px solid var(--line); }
.module-brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; }
.module-brand img { width: 44px; height: 44px; object-fit: contain; }
.module-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.module-actions a { color: var(--navy); font-weight: 800; }
.module-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 36px 20px; }
.placeholder-panel { width: min(760px,100%); padding: clamp(28px,5vw,54px); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); text-align: center; }
.placeholder-panel .module-mark { margin-bottom: 22px; }
.placeholder-panel h1 { margin: 0 0 12px; font-size: clamp(28px,4vw,40px); }
.placeholder-panel > p:not(.eyebrow) { max-width: 610px; margin: 0 auto; color: var(--muted); line-height: 1.7; font-size: 13px; }
.placeholder-notes { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 30px 0; text-align: left; }
.placeholder-notes div { padding: 15px; background: #f7f9fb; border-radius: 12px; }
.placeholder-notes strong, .placeholder-notes span { display: block; }
.placeholder-notes strong { margin-bottom: 5px; font-size: 11px; }
.placeholder-notes span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.secondary-button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); font-size: 11px; font-weight: 800; }

@media (max-width: 1050px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 28px 20px; }
    .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-bottom: 40px;
        color: var(--navy);
        text-align: center;
    }
    .mobile-brand img,
    .mobile-brand-logo {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
        min-height: 150px !important;
        max-width: 150px !important;
        max-height: 150px !important;
        flex: 0 0 150px !important;
        object-fit: contain;
    }
    .mobile-brand strong {
        display: block;
        font-size: 20px;
        line-height: 1.25;
        letter-spacing: .02em;
    }
    .app-layout { display: block; }
    .app-main { margin-left: 0; }
    .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 16px 0 40px rgba(0,0,0,.18); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(5,20,35,.45); }
    .sidebar-open .sidebar-overlay { display: block; }
    .menu-button { display: grid; place-items: center; }
    .module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .topbar { height: 74px; padding: 0 15px; }
    .topbar .eyebrow, .admin-copy { display: none; }
    .topbar h1 { font-size: 18px; }
    .admin-avatar { width: 34px; height: 34px; }
    .logout-button { margin-left: 0; padding: 0 10px; }
    .dashboard-content { padding: 20px 14px; }
    .welcome-card { padding: 26px 22px; min-height: 230px; }
    .welcome-card img { display: none; }
    .welcome-card h2 { font-size: 26px; }
    .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
    .summary-card { min-height: 110px; padding: 15px; }
    .summary-card strong { font-size: 19px; }
    .module-card { padding: 20px; }
    .app-footer { display: grid; }
    .placeholder-notes { grid-template-columns: 1fr; }
    .module-brand span, .module-actions span { display: none; }
}

.integrated-badge { background:#e8f6ef; color:#17734f; }

/* Filled module icons */
.nav-icon svg,.module-mark svg{width:18px;height:18px;display:block;fill:currentColor;}
.module-mark svg{width:24px;height:24px;}
.module-mark{background:linear-gradient(145deg,#eef3f7,#e5ebf1);box-shadow:inset 0 0 0 1px rgba(15,40,71,.03);}
.module-card:hover .module-mark{background:#0f2847;color:#fff;}

/* ===== Operations dashboard ===== */
.ops-dashboard{display:grid;gap:18px;padding-top:26px}
.ops-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(15,40,71,.045)}
.ops-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ops-card-head .eyebrow{margin:0 0 4px;font-size:9px}.ops-card-head h2{margin:0;font-size:21px;letter-spacing:-.02em}
.ops-link{color:#244e78;font-size:10.5px;font-weight:800;white-space:nowrap}.ops-link:hover{text-decoration:underline}
.live-indicator{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%;background:#18a66a;box-shadow:0 0 0 5px rgba(24,166,106,.10);vertical-align:2px}
.live-dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:22px;align-items:center;padding:18px 20px;margin-bottom:18px;border-radius:14px;background:linear-gradient(125deg,#0f2847,#174c77);color:#fff}
.live-dashboard-clock{font-size:11px;font-weight:750;color:#cfe0ee;letter-spacing:.02em}.live-dashboard-status{margin-top:5px;font-size:15px;font-weight:800}
.live-dashboard-progress{height:9px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden}.live-dashboard-progress span{display:block;width:0;height:100%;border-radius:inherit;background:#dfbd70;transition:width .35s ease}
.ops-subtitle{margin:17px 0 10px;font-size:12px;color:#46556a}.dash-lecture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dash-lecture-grid.upcoming{grid-template-columns:repeat(4,minmax(0,1fr))}
.dash-lecture-card{min-width:0;padding:13px 14px;border:1px solid #e7ebf0;border-radius:13px;background:#f8fafc}.dash-class{font-size:11px;font-weight:850;color:#0f2847}.dash-location{margin-top:3px;color:#7a8798;font-size:9.5px}.dash-lesson{display:grid;gap:3px;margin-top:10px}.dash-lesson strong{font-size:12.5px;color:#1d2d42}.dash-lesson span{font-size:10.5px;color:#6d788b}.dash-free{color:#8b95a3!important;font-style:italic}.dash-empty{padding:18px;border:1px dashed #dce2e9;border-radius:12px;color:#7a8798;font-size:11px;text-align:center;grid-column:1/-1}
.cash-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.cash-summary-grid article{padding:16px;border:1px solid #e7ebf0;border-radius:14px;background:#f8fafc}.cash-summary-grid span{display:block;margin-bottom:7px;color:#6d788b;font-size:10px;font-weight:750}.cash-summary-grid strong{font-size:19px;color:#17263a}.cash-summary-grid article:nth-child(1) strong,.cash-summary-grid article:nth-child(3) strong{color:#17734f}.cash-summary-grid article:nth-child(2) strong{color:#a13a3a}.cash-summary-foot{margin-top:11px;color:#8993a1;font-size:10px}
.audit-note{padding:6px 9px;border-radius:999px;background:#eef3f7;color:#516175;font-size:9px;font-weight:800}.audit-columns{display:grid;grid-template-columns:minmax(0,1fr) 280px;padding:0 12px 8px;color:#8a95a4;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.audit-list{border-top:1px solid #edf0f4}.audit-item{display:grid;grid-template-columns:10px minmax(0,1fr);gap:12px;padding:14px 12px;border-bottom:1px solid #edf0f4}.audit-dot{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#8793a3}.audit-dot.report-card-designer{background:#2d73b9}.audit-dot.time-table-generator{background:#7a5ab5}.audit-dot.award-list-generator{background:#c49434}.audit-dot.cash-management-system{background:#23815f}.audit-dot.result-analysis-system{background:#2e6f9e}.audit-main{min-width:0}.audit-top{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px;align-items:center}.audit-top strong{font-size:11.5px;color:#1c2a3d}.audit-top>span{text-align:right;color:#6f7c8e;font-size:9.5px;font-weight:750}.audit-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:5px;color:#8a95a4;font-size:9.5px}
@media(max-width:1050px){.dash-lecture-grid,.dash-lecture-grid.upcoming{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.ops-card{padding:16px}.ops-card-head{display:grid}.ops-link{white-space:normal}.live-dashboard-hero{grid-template-columns:1fr}.dash-lecture-grid,.dash-lecture-grid.upcoming,.cash-summary-grid{grid-template-columns:1fr}.audit-columns{display:none}.audit-top{grid-template-columns:1fr}.audit-top>span{text-align:left}}

/* ===== Dashboard visual refresh v2 ===== */
.ops-dashboard{gap:22px;padding-top:28px;background:
    radial-gradient(circle at 82% 2%,rgba(205,165,77,.08),transparent 25%),
    radial-gradient(circle at 8% 18%,rgba(38,91,143,.055),transparent 24%)}

.dashboard-clock-card{position:relative;overflow:hidden;min-height:190px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;border-radius:24px;background:linear-gradient(128deg,#0b223d 0%,#123b64 58%,#0d2b4d 100%);color:#fff;box-shadow:0 22px 50px rgba(11,34,61,.22);isolation:isolate}
.dashboard-clock-card::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to right,black,transparent 88%);z-index:-1}
.clock-card-glow{position:absolute;border-radius:50%;filter:blur(4px);z-index:-1;pointer-events:none}.clock-card-glow-one{width:300px;height:300px;right:-90px;top:-155px;background:rgba(205,165,77,.34)}.clock-card-glow-two{width:240px;height:240px;left:35%;bottom:-180px;background:rgba(67,148,213,.18)}
.dashboard-clock-copy{min-width:0}.dashboard-clock-kicker{display:flex;align-items:center;gap:9px;margin-bottom:8px;color:#d7e6f3;font-size:10px;font-weight:850;letter-spacing:.16em}.clock-live-dot{width:8px;height:8px;border-radius:50%;background:#5ee0a7;box-shadow:0 0 0 5px rgba(94,224,167,.10),0 0 18px rgba(94,224,167,.45);animation:clockPulse 1.8s ease-in-out infinite}@keyframes clockPulse{50%{transform:scale(.78);opacity:.75}}
.dashboard-digital-time{display:flex;align-items:baseline;gap:3px;font-variant-numeric:tabular-nums;font-size:clamp(42px,6vw,72px);font-weight:800;line-height:1;letter-spacing:-.045em;text-shadow:0 4px 24px rgba(0,0,0,.18)}.dashboard-digital-time i{font-style:normal;color:#d9b964;animation:colonBlink 1s steps(1,end) infinite}@keyframes colonBlink{50%{opacity:.38}}.dashboard-digital-time>span{color:#f2d88f}.dashboard-digital-time small{margin-left:10px;padding:7px 9px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.08);font-size:11px;font-weight:850;letter-spacing:.09em;color:#d9e8f4}
.dashboard-clock-date{margin-top:10px;color:#c9d8e5;font-size:13px;font-weight:650;letter-spacing:.025em}
.dashboard-clock-side{min-width:220px;padding:19px 20px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:linear-gradient(180deg,rgba(10,28,51,.86),rgba(13,37,67,.78));backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 28px rgba(3,12,24,.22);text-align:right}.clock-zone-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(205,165,77,.24);border:1px solid rgba(242,216,143,.18);color:#ffe39b;font-size:9px;font-weight:850;letter-spacing:.08em;text-shadow:0 1px 0 rgba(0,0,0,.18)}.dashboard-clock-day{margin-top:15px;font-size:24px;font-weight:850;letter-spacing:-.02em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.28)}.dashboard-clock-caption{margin-top:6px;color:#e5eef7;font-size:11px;font-weight:600;line-height:1.55;text-shadow:0 1px 6px rgba(0,0,0,.25)}

.enhanced-card{position:relative;overflow:hidden;border-color:#e2e8ee;border-radius:20px;padding:24px;box-shadow:0 12px 32px rgba(15,40,71,.065);transition:transform .18s ease,box-shadow .18s ease}.enhanced-card:hover{transform:translateY(-1px);box-shadow:0 16px 38px rgba(15,40,71,.085)}
.ops-heading-wrap{display:flex;align-items:center;gap:12px}.ops-heading-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;font-size:18px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(15,40,71,.04)}.timetable-icon{background:#e9f2fb;color:#225f97}.cash-icon{background:#eaf7f0;color:#17734f;font-family:Georgia,serif}.audit-icon{background:#f4efe4;color:#9a7423;font-size:22px}.ops-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ops-refresh-badge{padding:6px 9px;border-radius:999px;background:#f1f6fa;color:#617286;font-size:9px;font-weight:800;white-space:nowrap}.ops-link{padding:8px 10px;border-radius:9px;background:#f6f8fb;transition:background .15s,color .15s}.ops-link:hover{background:#eef3f8;color:#173f68;text-decoration:none}

.live-board-card::after{content:"";position:absolute;right:-70px;top:-70px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(38,115,177,.09),transparent 68%);pointer-events:none}.live-dashboard-hero{position:relative;padding:20px 22px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:linear-gradient(125deg,#0e2b4b,#174f7e);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(15,40,71,.12)}.live-dashboard-status{font-size:16px}.live-dashboard-progress{height:10px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 2px rgba(0,0,0,.16)}.live-dashboard-progress span{background:linear-gradient(90deg,#d7ad50,#f0d58f);box-shadow:0 0 14px rgba(223,189,112,.35)}
.ops-subtitle{display:flex;align-items:center;gap:7px;margin:19px 0 10px;color:#364a62;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.055em}.ops-subtitle::before{content:"";width:6px;height:6px;border-radius:50%;background:#2f719f}.dash-lecture-grid{gap:12px}.dash-lecture-card{position:relative;overflow:hidden;padding:15px 16px 15px 18px;border-color:#e2e8ef;border-radius:14px;background:linear-gradient(180deg,#fbfcfd,#f7f9fb);box-shadow:0 4px 12px rgba(15,40,71,.035);transition:transform .15s,border-color .15s,box-shadow .15s}.dash-lecture-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2e75ae}.dash-lecture-grid.upcoming .dash-lecture-card::before{background:#c9a34d}.dash-lecture-card:hover{transform:translateY(-2px);border-color:#d3dce5;box-shadow:0 8px 18px rgba(15,40,71,.07)}.dash-class{font-size:12px;letter-spacing:.01em}.dash-location{margin-top:5px}.dash-lesson{margin-top:12px;padding-top:10px;border-top:1px dashed #e0e6ec}.dash-lesson strong{font-size:13px}.dash-lesson span{font-size:10.5px}

.cash-daily-card::before{content:"";position:absolute;width:230px;height:230px;right:-120px;bottom:-145px;border-radius:50%;background:rgba(35,129,95,.055);pointer-events:none}.cash-summary-grid{gap:14px}.cash-summary-grid article{display:flex;align-items:center;gap:13px;min-height:92px;padding:16px 17px;border-radius:15px;background:#fff;box-shadow:0 5px 14px rgba(15,40,71,.035);transition:transform .15s,box-shadow .15s}.cash-summary-grid article:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(15,40,71,.07)}.cash-tile-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;font-size:15px;font-weight:900}.cash-income-tile{border-top:3px solid #2b9a6c!important}.cash-income-tile .cash-tile-icon{background:#e8f7ef;color:#16724e}.cash-expense-tile{border-top:3px solid #c75b5b!important}.cash-expense-tile .cash-tile-icon{background:#fff0f0;color:#aa3c3c}.cash-net-tile{border-top:3px solid #c9a34d!important}.cash-net-tile .cash-tile-icon{background:#faf4e4}.cash-bank-tile{border-top:3px solid #387bb8!important}.cash-bank-tile .cash-tile-icon{background:#edf4fb}.cash-summary-grid span{margin-bottom:5px;font-size:9.5px;text-transform:uppercase;letter-spacing:.045em}.cash-summary-grid strong{font-size:20px;letter-spacing:-.025em}.cash-bank-tile strong{color:#286aa4!important}.cash-summary-foot{display:inline-flex;margin-top:14px;padding:7px 10px;border-radius:999px;background:#f4f7f9;color:#738196;font-weight:700}

.audit-card{padding-bottom:18px}.audit-note{display:flex;align-items:center;gap:7px;padding:7px 10px;background:#edf6f1;color:#3d6f5c}.audit-note-dot{width:7px;height:7px;border-radius:50%;background:#2f9c72;box-shadow:0 0 0 4px rgba(47,156,114,.09)}.audit-columns{padding:0 17px 9px}.audit-list{position:relative;border-top:1px solid #edf0f4}.audit-list::before{content:"";position:absolute;left:20px;top:17px;bottom:17px;width:1px;background:#e2e8ee}.audit-item{position:relative;grid-template-columns:18px minmax(0,1fr);gap:13px;padding:15px 16px;transition:background .15s}.audit-item:hover{background:#fafbfd}.audit-dot{position:relative;z-index:1;width:10px;height:10px;margin-top:4px;box-shadow:0 0 0 4px #fff,0 0 0 5px #e5eaf0}.audit-top strong{font-size:12px}.audit-top>span{display:inline-flex;justify-self:end;padding:4px 7px;border-radius:999px;background:#f2f5f8;color:#5c6c80}.audit-meta{margin-top:7px;gap:10px}.audit-meta span{padding:3px 0;color:#8390a0}

@media(max-width:900px){.dashboard-clock-card{align-items:flex-start}.dashboard-clock-side{min-width:190px}.dashboard-digital-time{font-size:clamp(40px,8vw,60px)}}
@media(max-width:720px){.dashboard-clock-card{display:grid;min-height:0;padding:24px 20px}.dashboard-clock-side{min-width:0;text-align:left}.dashboard-clock-day{font-size:20px}.dashboard-digital-time{font-size:clamp(39px,13vw,56px)}.dashboard-digital-time small{margin-left:6px;padding:5px 6px}.ops-heading-wrap{align-items:flex-start}.ops-head-actions{justify-content:flex-start}.ops-card-head{gap:12px}.cash-summary-grid article{min-height:82px}.audit-list::before{left:20px}}
@media(max-width:430px){.dashboard-digital-time{font-size:39px}.dashboard-digital-time small{font-size:9px}.clock-card-glow-one{right:-150px}.dashboard-clock-date{font-size:12px}.ops-heading-icon{width:38px;height:38px;flex-basis:38px}}

/* ===== Collapsible desktop sidebar ===== */
@media (min-width: 1051px) {
    .app-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        transition: grid-template-columns .22s ease;
    }
    .sidebar {
        transition: width .22s ease, padding .22s ease, box-shadow .22s ease;
        overflow: hidden;
    }
    .menu-button {
        display: grid;
        place-items: center;
        flex: 0 0 40px;
        cursor: pointer;
        color: var(--navy);
        font-size: 20px;
        line-height: 1;
        transition: background .15s ease, border-color .15s ease, transform .15s ease;
    }
    .menu-button:hover {
        background: #f4f7fa;
        border-color: #d8e0e8;
    }
    .menu-button:active { transform: scale(.96); }

    body.sidebar-collapsed .app-layout {
        grid-template-columns: 78px minmax(0, 1fr);
    }
    body.sidebar-collapsed .sidebar {
        width: 78px;
        padding-left: 11px;
        padding-right: 11px;
    }
    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }
    body.sidebar-collapsed .sidebar-brand img {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
    body.sidebar-collapsed .sidebar-brand > div,
    body.sidebar-collapsed .nav-link > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar-footer > span:not(.status-dot) {
        opacity: 0;
        width: 0;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
    }
    body.sidebar-collapsed .sidebar-nav { gap: 7px; }
    body.sidebar-collapsed .nav-link {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }
    body.sidebar-collapsed .nav-icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    body.sidebar-collapsed .sidebar-footer {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hover/focus peek: temporarily reveal the full menu without moving content. */
    body.sidebar-collapsed .sidebar:hover,
    body.sidebar-collapsed .sidebar:focus-within {
        width: 270px;
        padding-left: 18px;
        padding-right: 18px;
        box-shadow: 18px 0 38px rgba(5, 22, 40, .18);
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand,
    body.sidebar-collapsed .sidebar:focus-within .sidebar-brand {
        justify-content: flex-start;
        gap: 12px;
        padding-left: 8px;
        padding-right: 8px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand img,
    body.sidebar-collapsed .sidebar:focus-within .sidebar-brand img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand > div,
    body.sidebar-collapsed .sidebar:focus-within .sidebar-brand > div,
    body.sidebar-collapsed .sidebar:hover .nav-link > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar:focus-within .nav-link > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar:hover .sidebar-footer > span:not(.status-dot),
    body.sidebar-collapsed .sidebar:focus-within .sidebar-footer > span:not(.status-dot) {
        opacity: 1;
        width: auto;
        max-width: 190px;
        overflow: visible;
        pointer-events: auto;
    }
    body.sidebar-collapsed .sidebar:hover .nav-link,
    body.sidebar-collapsed .sidebar:focus-within .nav-link {
        justify-content: flex-start;
        gap: 12px;
        padding-left: 13px;
        padding-right: 13px;
    }
    body.sidebar-collapsed .sidebar:hover .nav-icon,
    body.sidebar-collapsed .sidebar:focus-within .nav-icon {
        width: 27px;
        min-width: 27px;
        height: 27px;
        border-radius: 8px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-footer,
    body.sidebar-collapsed .sidebar:focus-within .sidebar-footer {
        justify-content: flex-start;
        gap: 9px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .sidebar-brand > div,
    .nav-link > span:not(.nav-icon),
    .sidebar-footer > span:not(.status-dot) {
        transition: opacity .14s ease;
    }
}

/* ===== Collapsible sidebar v2 — reliable desktop/laptop behavior ===== */
@media (min-width: 769px) {
    /* Override the older drawer breakpoint on laptop-sized screens. */
    .app-layout {
        display: grid !important;
        grid-template-columns: 270px minmax(0, 1fr) !important;
        min-height: 100vh;
        transition: grid-template-columns .22s ease;
    }
    .app-main {
        grid-column: 2 !important;
        margin-left: 0 !important;
        min-width: 0;
    }
    .sidebar {
        transform: none !important;
        width: 270px;
        padding: 24px 18px;
        overflow: hidden;
        box-shadow: none;
        transition: width .22s ease, padding .22s ease, box-shadow .22s ease;
    }
    .sidebar-overlay { display: none !important; }

    /* The top-bar hamburger is the persistent desktop collapse control. */
    .menu-button {
        display: grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        cursor: pointer;
        color: var(--navy);
        font-size: 20px;
        line-height: 1;
    }

    body.sidebar-collapsed .app-layout {
        grid-template-columns: 78px minmax(0, 1fr) !important;
    }
    body.sidebar-collapsed .sidebar {
        width: 78px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
    }
    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }
    body.sidebar-collapsed .sidebar-brand img {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    body.sidebar-collapsed .sidebar-brand > div,
    body.sidebar-collapsed .nav-link > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar-footer > span:not(.status-dot) {
        display: block;
        opacity: 0;
        width: 0;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
    }
    body.sidebar-collapsed .nav-link {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }
    body.sidebar-collapsed .nav-icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    body.sidebar-collapsed .sidebar-footer {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hover expands only the visual sidebar; page content remains at 78px. */
    body.sidebar-collapsed .sidebar:hover {
        width: 270px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-shadow: 18px 0 38px rgba(5,22,40,.22) !important;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand {
        justify-content: flex-start;
        gap: 12px;
        padding-left: 8px;
        padding-right: 8px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand img {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-brand > div,
    body.sidebar-collapsed .sidebar:hover .nav-link > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar:hover .sidebar-footer > span:not(.status-dot) {
        opacity: 1;
        width: auto;
        max-width: 200px;
        overflow: visible;
        pointer-events: auto;
    }
    body.sidebar-collapsed .sidebar:hover .nav-link {
        justify-content: flex-start;
        gap: 12px;
        padding-left: 13px;
        padding-right: 13px;
    }
    body.sidebar-collapsed .sidebar:hover .nav-icon {
        width: 27px;
        min-width: 27px;
        height: 27px;
        border-radius: 8px;
    }
    body.sidebar-collapsed .sidebar:hover .sidebar-footer {
        justify-content: flex-start;
        gap: 9px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 768px) {
    /* Mobile keeps the existing slide-in drawer. */
    body.sidebar-collapsed .sidebar { width: 270px; }
}
