@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
:root{--ink:#14213d;--navy:#101d42;--blue:#2f63e9;--soft:#f5f7fb}.app-shell{min-height:100vh;background:var(--soft);display:flex}.sidebar{background:var(--navy);color:#c8d1ed;width:252px;min-height:100vh;padding:25px 16px;display:flex;flex-direction:column}.logo{color:#fff;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:.5px;margin:0 10px 42px}.logo-icon,.brand-mark{display:inline-grid;place-items:center;background:#4c7dff;border-radius:9px;width:30px;height:30px;margin-right:8px}.sidebar-label{font-size:10px;letter-spacing:1.2px;color:#7f8bad;margin:0 12px 10px}.nav-item{border-radius:9px;color:#bac5e2;text-decoration:none;padding:12px;margin:2px 0;font-weight:500}.nav-item i{margin-right:12px}.nav-item:hover,.nav-item.active{background:#263762;color:#fff}.sidebar-bottom{margin-top:auto}.school-pill{font-size:13px;background:#1e2d55;border-radius:8px;padding:11px}.school-pill i{margin-right:8px}.main{flex:1;min-width:0}.topbar{height:72px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid #e8ecf4}.content{padding:32px 36px}.hero{color:#fff;border-radius:16px;padding:30px 34px;background:linear-gradient(110deg,#18336d,#3975e9);display:flex;justify-content:space-between;align-items:center}.hero h2,.page-heading h2{margin:6px 0;font-weight:750}.hero p,.page-heading p{margin:0;color:#d9e3ff}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.25px;color:#7fa5ff}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}.page-heading p{color:#7b8496}.metric-card{background:#fff;border-radius:13px;padding:23px;display:flex;gap:15px;align-items:center;box-shadow:0 4px 17px rgba(30,48,87,.06);position:relative}.metric-card small{color:#687388}.metric-card h3{margin:2px 0 0;font-size:28px;color:var(--ink)}.metric-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:11px;font-size:20px}.metric-icon.primary{color:#2f63e9;background:#eaf0ff}.metric-icon.success{color:#0b9b66;background:#e5f7ef}.metric-icon.warning{color:#bd8500;background:#fff5d9}.table{--bs-table-bg:transparent}.table th{font-size:11px;color:#727d91;text-transform:uppercase;letter-spacing:.5px;border-bottom-width:1px}.table td{padding:15px 8px;border-color:#edf0f5}.code-chip{background:#eaf0ff;color:#2854c7;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:700}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#10214a,#457cf0)}.login-card{width:min(420px,92vw);background:#fff;border-radius:18px;padding:42px}.login-card h1{font-weight:800;color:var(--ink)}.login-card h1 span{color:var(--blue)}.brand-mark{color:#fff;font-weight:800;font-size:20px;width:45px;height:45px;margin-bottom:20px}.form-control,.form-select{padding:.65rem .75rem;border-color:#dfe4ef}.btn-primary{background:var(--blue);border-color:var(--blue)}@media(max-width:767px){.sidebar{position:fixed;z-index:5;transform:translateX(-100%);transition:.2s}.sidebar.show{transform:none}.content{padding:22px 16px}.topbar{padding:0 16px}.hero,.page-heading{align-items:flex-start;gap:15px;flex-direction:column}}
body{font-size:16px;font-weight:600}.sidebar,.main{font-size:16px}.nav-item{font-size:16px;font-weight:700}.topbar strong,.topbar .small{font-size:16px;font-weight:700}.content h2{font-size:32px;font-weight:800}.content h3{font-weight:800}.content h5{font-size:18px;font-weight:800}.content p,.table td,.form-label,.form-control,.form-select{font-size:16px;font-weight:600}.table th{font-size:13px;font-weight:800}.btn{font-size:15px;font-weight:800}.metric-card small{font-size:14px;font-weight:700}.eyebrow{font-size:12px;font-weight:900}

/* Keep collapsed School Admin submenu links in one vertical column. */
.sidebar details{display:block;width:100%}.sidebar details > .nav-item{display:flex!important;width:100%;box-sizing:border-box;align-items:center;white-space:normal;margin:2px 0}.sidebar details > summary{display:block;width:100%;box-sizing:border-box}

/* Font Awesome is the single dashboard icon set.  These aliases preserve
   existing page markup while rendering every legacy dashboard icon with FA. */
i.bi{font-family:"Font Awesome 6 Free"!important;font-style:normal;font-weight:900}i.bi:before{font-family:"Font Awesome 6 Free"!important;font-weight:900}.bi-grid:before{content:"\f00a"}.bi-buildings:before,.bi-building:before{content:"\f1ad"}.bi-credit-card:before{content:"\f09d"}.bi-shield-check:before{content:"\f3ed"}.bi-check-circle:before{content:"\f058"}.bi-people:before{content:"\f0c0"}.bi-mortarboard:before{content:"\f19d"}.bi-book:before{content:"\f02d"}.bi-clipboard-data:before{content:"\f080"}.bi-award:before{content:"\f559"}.bi-calendar-check:before{content:"\f274"}.bi-person-badge:before{content:"\f2bd"}.bi-check2-square:before{content:"\f46d"}.bi-file-earmark-arrow-down:before{content:"\f56d"}.bi-files:before{content:"\f0c5"}.bi-box-arrow-right:before{content:"\f2f5"}.bi-cash-stack:before{content:"\f3d1"}.bi-currency-dollar:before{content:"\24"}.sidebar details summary:before{font-family:"Font Awesome 6 Free"!important;font-weight:900!important;content:"\f0da"!important}.sidebar details[open] summary:before{transform:rotate(90deg)!important}.sidebar details>.nav-item:before{font-family:"Font Awesome 6 Free";font-weight:900;content:"\f105";margin-right:12px;color:#8da5d2}.sidebar details>.nav-item.active:before{color:#9dc1ff}
/* Responsive navigation: menus remain visible on phone and tablet screens. */
@media (max-width:767px){
  .app-shell{display:block;min-height:100vh}
  .sidebar{position:static;transform:none!important;width:100%;min-height:0;height:auto;max-height:none;padding:16px;display:flex;z-index:auto}
  .logo{margin:0 10px 20px}.sidebar-label{margin-top:0}.sidebar-bottom{margin-top:18px}
  .main{width:100%}.topbar{height:auto;min-height:64px;gap:12px;flex-wrap:wrap;padding:12px 16px}.content{padding:20px 14px}
  .hero,.page-heading{padding:22px 18px;border-radius:12px}.hero h2,.page-heading h2{font-size:25px}
  .page-heading{margin-bottom:18px}.page-heading .btn,.page-heading>div:last-child{width:100%}
  .table-responsive{border:1px solid #edf0f5;border-radius:8px}.modal-dialog{margin:12px}.btn{white-space:normal}
}
@media (max-width:420px){
  body{font-size:15px}.sidebar{padding:14px 10px}.nav-item{padding:11px 10px}.content{padding:16px 10px}.hero,.page-heading{padding:18px 14px}.content h2{font-size:23px}
}

/* Phone navigation drawer. The button is inserted by assets/js/mobile-menu.js. */
.mobile-menu-toggle,.sidebar-overlay{display:none}
@media (max-width:767px){
  .app-shell{display:flex}
  .sidebar{position:fixed!important;top:10px;bottom:10px;left:10px;width:min(84vw,330px);min-height:0;height:auto;max-height:calc(100vh - 20px);padding:18px 14px;border-radius:18px;box-shadow:0 18px 45px rgba(6,15,40,.38);overflow-y:auto;transform:translateX(calc(-100% - 24px))!important;transition:transform .24s ease;z-index:1055}
  .sidebar.show{transform:translateX(0)!important}
  .sidebar .logo{margin-bottom:24px}.sidebar-bottom{margin-top:22px}
  .main{width:100%;min-width:0}.topbar{position:sticky;top:0;z-index:1040;justify-content:flex-start;padding:10px 14px}.topbar>a:last-child,.topbar>.btn:last-child{margin-left:auto}
  .mobile-menu-toggle{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:9px;background:#162b5a;color:#fff;padding:9px 11px;font-size:14px;font-weight:800;line-height:1}.mobile-menu-toggle i{font-size:16px}
  .sidebar-overlay{display:block;position:fixed;inset:0;z-index:1050;border:0;background:rgba(8,18,44,.45);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.sidebar-overlay.show{opacity:1;visibility:visible}
  .content{padding:18px 14px}.hero,.page-heading{padding:20px 16px}.table-responsive{max-width:100%}
}
