:root{
  --blue:#0b87ba;
  --blue-strong:#0b87ba;
  --blue-soft:#f2f3fa;
  --green:#0b87ba;
  --red:#e5463a;
  --ink:#27324a;
  --muted:#64718b;
  --line:#d6dcea;
  --line-strong:#c1c9db;
  --bg:#f6f9fc;
  --panel:#fff;
  --head:#d7deeb;
  --head2:#e8eef4;
  --shadow:0 1px 2px rgba(15,24,42,.06);
  --rail:78px;
  --radius:8px;
  --font:11.5px;
}
*{box-sizing:border-box}
html,body{height:100%}
/* Standalone forms must scroll too; fixed application shells scope their own overflow. */
body{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:var(--font);color:var(--ink);background:var(--bg);overflow:auto}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
.app-shell{height:100vh;display:grid;grid-template-columns:var(--rail) 1fr;min-width:980px}
.module-rail{background:#fff;border-right:1px solid var(--line);overflow-y:auto;overflow-x:hidden;padding-bottom:18px}
.module-logo{height:64px;display:grid;place-items:center;border-bottom:1px solid #eef2f6;position:sticky;top:0;background:#fff;z-index:2}
.module-logo img{width:52px;height:48px;object-fit:contain}
.module-link{min-height:74px;padding:7px 4px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;color:#4c5872;font-size:9px;font-weight:700;text-align:center;border-left:3px solid transparent;transition:.16s ease;cursor:pointer}
.module-link:hover{background:#f2f8fc;color:var(--blue)}
.module-link.active{background:var(--blue);color:#fff;border-left-color:var(--blue)}
.module-link .micon{width:29px;height:29px;display:grid;place-items:center}
.module-link svg{width:28px;height:28px;fill:currentColor}
.module-link .label{line-height:1.1;letter-spacing:.1px}
.app-main{display:grid;grid-template-rows:62px auto 1fr;min-width:0;height:100vh}
.topbar{display:grid;grid-template-columns:1fr minmax(300px,420px) 1fr;align-items:center;gap:12px;padding:0 18px;background:#f8fbfd;border-bottom:1px solid #e3eaf0}
.topbar-left{align-self:center}
.date-line{font-size:13px;color:#197f9d;font-weight:700;margin-bottom:5px}
.page-caption{font-size:11px;color:#35415a;font-weight:600}
.campus-brand{justify-self:center;min-width:280px;max-width:420px;padding:8px 22px;border:1px solid #edf1f5;border-radius:0 0 14px 14px;background:#fff;text-align:center;box-shadow:var(--shadow)}
.campus-brand strong{display:block;color:#0488ae;text-decoration:underline;font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.1}
.campus-brand span{display:block;margin-top:5px;font-size:10px;color:#3b4355}
.topbar-right{justify-self:end;display:flex;align-items:center;gap:8px}
.icon-button{width:30px;height:30px;border:0;border-radius:50%;background:#e8eef5;display:grid;place-items:center;cursor:pointer;padding:0}
.icon-button:hover{background:#dce3f2}
.flag-button{font-size:15px}
.user-link{border:0;background:transparent;color:#187691;text-decoration:underline;font-size:11px;font-weight:700;cursor:pointer;padding:8px}
.breadcrumb{height:28px;display:flex;align-items:center;gap:5px;padding:0 18px;color:#6a768e;background:#f8fbfd;border-bottom:1px solid #edf1f5;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.breadcrumb a{color:#1d8faf}
.view{min-width:0;overflow:auto;padding:14px 16px 28px;outline:0}
.page-grid{display:grid;gap:12px}
.page-grid.two{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)}
.page-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace{max-width:1500px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 18px 24px;min-height:560px}
.workspace-search{display:flex;gap:8px;margin-bottom:16px}
.workspace-search input{width:100%;height:40px;border:1px solid var(--line-strong);border-radius:6px;padding:0 12px;font-size:13px}
.workspace-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.workspace-col{min-height:320px;padding-right:14px;border-right:1px solid #ebeff3}
.workspace-col:last-child{border-right:0}
.workspace-col h2{font-size:16px;color:#111;margin:0 0 13px}
.workspace-item{display:flex;align-items:center;gap:9px;padding:7px 2px;color:#62708d;font-size:13px;border-bottom:1px solid transparent;cursor:pointer}
.workspace-item:hover{color:var(--blue);background:#f8fbfd}
.workspace-item::before{content:'→';font-size:12px;color:#6d7b98}
.workspace-item.disabled{opacity:.45;pointer-events:none}
.page-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px}
.page-title-row h1{font-size:14px;margin:0;color:#26324a}
.page-title-row .sub{font-size:10px;color:#6b768e;margin-top:4px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px}
.card.compact{padding:9px}
.card-title{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.card-title .title-icon{width:30px;height:30px;border-radius:8px;background:var(--blue-soft);display:grid;place-items:center;color:var(--blue);font-size:16px;flex:0 0 auto}
.card-title .rule{height:2px;width:48px;background:var(--blue);position:absolute;margin-top:38px}
.section-label{font-size:11.5px;font-weight:700;margin:10px 0 7px;color:#27324a;text-decoration:underline}
.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 10px}
.form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.form-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.field{min-width:0}
.field.span-2{grid-column:span 2}.field.span-3{grid-column:span 3}.field.span-4{grid-column:1/-1}
.field label{display:block;font-size:10.5px;font-weight:600;margin:0 0 4px;color:#313e58}
.req{color:var(--red);margin-left:4px}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],select,textarea{width:100%;height:32px;border:1px solid #b9c2d5;border-radius:4px;background:#fff;padding:0 9px;outline:none;transition:border .12s,box-shadow .12s}
textarea,.textarea{height:66px;padding-top:7px;resize:vertical}
.input:focus,.select:focus,select:focus,input:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(7,148,189,.09)}
input[readonly],.readonly{background:#f3f6f8;color:#66728b}
.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
.btn{border:0;border-radius:5px;padding:8px 13px;min-height:32px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.btn:hover{filter:brightness(.97)}
.btn-primary{background:var(--blue);color:#fff}.btn-green{background:#22a9d0;color:#fff}.btn-dark{background:#666;color:#fff}.btn-danger{background:#d95b4f;color:#fff}.btn-soft{background:#eaf0f5;color:#404e6b}.btn-outline{background:#fff;border:1px solid var(--line-strong);color:#3e4d6d}
.btn-sm{padding:5px 8px;min-height:26px;font-size:10px}
.btn-icon{width:28px;height:28px;padding:0;border-radius:50%;font-size:12px}
.filters{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:9px;align-items:end}
.filters .filter-actions{display:flex;gap:7px;align-items:end}
.alert{padding:9px 11px;border-radius:6px;border:1px solid #f3db89;background:#fff7dc;color:#b01000;font-size:10.5px}
.alert.info{border-color:#beceef;background:#eff9fd;color:#17718a}.alert.success{border-color:#bcc9e5;background:#effaf1;color:#166e87}.alert.danger{border-color:#f1c4c0;background:#fff2f2;color:#a23b31}
.table-wrap{width:100%;overflow:auto;border:1px solid #dce4eb;border-radius:4px;background:#fff}
table{width:100%;border-collapse:collapse;font-size:10.5px;min-width:720px}
th,td{border-right:1px solid #e1e7ed;border-bottom:1px solid #e1e7ed;padding:6px 7px;vertical-align:middle;text-align:left;white-space:nowrap}
th{background:#d2d9e7;font-weight:700;color:#2f3c56}
tr:last-child td{border-bottom:0}th:last-child,td:last-child{border-right:0}
tbody tr:hover{background:#f5fafd}
tr.selected{background:#e7eefb!important}
.table-actions{display:flex;gap:5px;justify-content:center}
.status{display:inline-flex;align-items:center;gap:5px;border-radius:11px;padding:2px 8px;background:#dee4f2;color:#213867;font-weight:700;font-size:9.5px}
.status::before{content:'';width:6px;height:6px;border-radius:50%;background:#197c98}
.status.no{background:#fde2df;color:#b52f22}.status.no::before{background:#d64537}
.status.blue{background:#e3ebfb;color:#243d72}.status.blue::before{background:#1e96b9}
.scroll-panel{overflow:auto;max-height:500px}
.student-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:10px}
.related-panel{background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px;align-self:start;position:sticky;top:0}
.related-panel h3{font-size:12px;margin:0 0 8px}
.related-search{margin-bottom:6px}
.related-list{max-height:480px;overflow:auto;border-top:1px solid #e5eaf0}
.related-item{padding:6px 4px;border-bottom:1px solid #e8edf2;cursor:pointer;font-size:10px}
.related-item:hover,.related-item.active{background:#edf8fc;color:#0584a9}
.avatar{width:42px;height:42px;border-radius:50%;background:#e7eef4;display:grid;place-items:center;font-weight:700;color:#6c7a96;border:1px solid #d6dce9;overflow:hidden}
.avatar.lg{width:86px;height:86px;font-size:20px}
.avatar img{width:100%;height:100%;object-fit:cover}
.photo-tools{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.check{width:16px;height:16px}
.tag{display:inline-block;padding:2px 6px;border-radius:10px;background:#edf2f7;font-size:9px;color:#4c5872}
.muted{color:var(--muted)}
.small{font-size:9.5px}.tiny{font-size:8.5px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px}
.kpi .value{font-size:18px;font-weight:700;color:#1e3055}.kpi .label{font-size:9.5px;color:#6c778e;margin-top:3px}
.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.chart-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px;min-height:230px}
.chart-card h3{font-size:10px;color:#0084aa;text-decoration:underline;text-align:center;margin:8px 0 0}
.svg-chart{width:100%;height:185px;display:block}
.bar-row{display:flex;align-items:flex-end;justify-content:space-evenly;height:155px;gap:10px;border-left:1px solid #aeb8cc;border-bottom:1px solid #aeb8cc;padding:8px 10px 0;margin:4px 8px 0}
.bar-group{display:flex;align-items:flex-end;gap:3px;height:100%}
.bar{width:18px;background:#20a9d1;min-height:2px;position:relative}.bar.red{background:#ef5242}.bar.dark{background:#35415a}.bar.green{background:#1d91b3}.bar.teal{background:#1694b8}
.bar span{position:absolute;top:-13px;left:50%;transform:translateX(-50%);font-size:8px;color:#424f6b}
.donut{width:130px;height:130px;border-radius:50%;margin:16px auto 7px;background:conic-gradient(#f46355 0 68%,#1f3562 68% 100%);position:relative}
.donut::after{content:'';position:absolute;inset:29px;background:#fff;border-radius:50%}
.donut-label{position:absolute;inset:0;display:grid;place-items:center;z-index:2;font-weight:700;font-size:16px}
.editor{min-height:430px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:14px;overflow:auto}
.editor-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;background:#fafcfe}
.editor-toolbar button{border:0;background:#fff;border:1px solid #d9e1e8;border-radius:4px;min-width:28px;height:27px;cursor:pointer}
.placeholder-panel{display:flex;flex-direction:column;gap:6px;max-height:540px;overflow:auto}
.placeholder{padding:7px;border:1px solid #e0e6ec;border-radius:5px;background:#fff;cursor:pointer;font-size:11px}.placeholder:hover{border-color:var(--blue);color:var(--blue)}
.profile-grid{display:grid;grid-template-columns:1fr 1fr 130px;gap:18px}
.profile-pairs{display:grid;grid-template-columns:140px 1fr;gap:5px 8px;font-size:10px}.profile-pairs b{font-weight:700}
.matrix th,.matrix td{text-align:center;padding:5px 6px}.matrix td:first-child,.matrix th:first-child{text-align:left}
.report-meta{padding:6px 0 10px;font-size:10px;font-weight:700;display:flex;flex-wrap:wrap;gap:7px}.report-meta span::after{content:'/';margin-left:7px;color:#717d97}.report-meta span:last-child::after{content:''}
.modal-root:empty{display:none}.modal-root{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(0,0,0,.55);padding:20px}
.modal{width:min(1040px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 20px 55px rgba(0,0,0,.28);padding:18px}
.modal.sm{width:min(440px,94vw)}.modal.lg{width:min(1300px,96vw)}
.modal-header{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:12px}.modal-header h2{font-size:15px;margin:0}.modal-close{border:0;background:#eef3f7;width:30px;height:30px;border-radius:50%;cursor:pointer}
.toast-root{position:fixed;right:18px;bottom:18px;z-index:80;display:flex;flex-direction:column;gap:7px}.toast{background:#26324c;color:#fff;border-radius:6px;padding:9px 12px;box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:10.5px}.toast.ok{background:#1b86a5}.toast.bad{background:#b14237}
.empty{padding:32px;text-align:center;color:#7b879f;background:#fbfdfe;border:1px dashed #d6dce8;border-radius:6px}
.pagination{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}.pagination button{border:0;border-radius:4px;background:#aaa;color:#fff;padding:6px 12px;font-weight:700}
.action-float{position:fixed;right:22px;bottom:24px;z-index:10;width:38px;height:38px;border:0;border-radius:50%;background:#666;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.2);cursor:pointer}
.print-only{display:none}
.dark-contrast{--bg:#eef3f7;--panel:#fff;--ink:#171f31;--line:#c6cede}
@media (max-width:1200px){.filters{grid-template-columns:repeat(4,minmax(140px,1fr))}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-cols{gap:10px}.student-layout{grid-template-columns:minmax(0,1fr) 250px}}
@media (max-width:1040px){.form-grid,.form-grid.cols-5,.form-grid.cols-6{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(3,minmax(130px,1fr))}.page-grid.two{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr 1fr}.student-layout{grid-template-columns:1fr}.related-panel{position:static}.workspace-cols{grid-template-columns:1fr 1fr}.chart-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr}}
@media print{body{overflow:visible;background:#fff}.module-rail,.topbar,.breadcrumb,.no-print,.action-float{display:none!important}.app-shell{display:block;min-width:0}.app-main{display:block;height:auto}.view{overflow:visible;padding:0}.card{border:0;box-shadow:none}.print-only{display:block}.table-wrap{overflow:visible;border:0}table{font-size:9px}}

/* ========================================================================
   NILKANTHA CAMPUS MODERN EDUCATION ADMIN THEME
   Inspired by the compact education dashboard reference supplied by user.
   Content/labels remain campus-specific; only interface language is modernized.
   ======================================================================== */
:root{
  --primary:#0b87ba;
  --primary-2:#0b87ba;
  --primary-soft:#f2f3fa;
  --cyan:#0b87ba;
  --cyan-soft:#f2f3fa;
  --orange:#e5463a;
  --orange-soft:#fff1f2;
  --coral:#e5463a;
  --coral-soft:#fff1f2;
  --teal:#0b87ba;
  --teal-soft:#f2f3fa;
  --purple:#0b87ba;
  --purple-soft:#f2f3fa;
  --green:#0b87ba;
  --green-soft:#f2f3fa;
  --navy:#33343a;
  --ink:#3a3b42;
  --muted:#75819a;
  --muted-2:#969eb0;
  --bg:#f4f7fc;
  --panel:#ffffff;
  --panel-2:#fbfcff;
  --line:#e3e9f1;
  --line-strong:#cfd6e5;
  --head:#edf2f8;
  --head2:#f5f8fc;
  --shadow:0 8px 22px rgba(39,59,102,.08);
  --shadow-sm:0 3px 12px rgba(39,59,102,.07);
  --sidebar:244px;
  --rail:244px;
  --radius:13px;
  --font:12.2px;
  --topbar:68px;
}
html{scrollbar-color:#cbd3e5 transparent;scrollbar-width:thin}
body{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif;
  font-size:var(--font);
  line-height:1.45;
  color:var(--ink);
  background:var(--bg);
  letter-spacing:.005em;
}
*{scrollbar-width:thin;scrollbar-color:#cbd3e5 transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:#cbd3e5;border-radius:20px;border:2px solid transparent;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:#aebad2;background-clip:padding-box}

.app-shell{grid-template-columns:var(--sidebar) minmax(0,1fr);min-width:980px;transition:grid-template-columns .2s ease;background:var(--bg)}
.module-rail{background:var(--panel);border-right:1px solid var(--line);padding:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:2px 0 14px rgba(37,49,75,.025);z-index:20}
.sidebar-brand{height:var(--topbar);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 15px;flex:0 0 auto;background:var(--panel)}
.sidebar-brand-link{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
.sidebar-logo{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#f5f8ff;box-shadow:inset 0 0 0 1px #e6ecf8;flex:0 0 auto}
.sidebar-logo img{width:35px;height:35px;object-fit:contain}
.sidebar-brand-copy{min-width:0;display:flex;flex-direction:column;line-height:1.16}
.sidebar-brand-copy b{font-size:15px;color:var(--navy);font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-brand-copy small{font-size:9.5px;color:var(--muted);font-weight:600;margin-top:3px;letter-spacing:.04em}
.sidebar-scroll{overflow:auto;padding:10px 9px 16px;flex:1}
.sidebar-section-label{font-size:8.5px;color:#b1b8c7;font-weight:750;letter-spacing:.12em;padding:13px 10px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-nav-item{min-height:48px;display:flex;align-items:center;gap:10px;padding:6px 9px;border-radius:9px;color:#4b5976;transition:background .15s ease,color .15s ease,transform .15s ease;position:relative}
.sidebar-nav-item:hover{background:#f4f7fd;color:var(--primary)}
.sidebar-nav-item.active{background:var(--primary-soft);color:var(--primary)}
.sidebar-nav-item.active::before{content:"";position:absolute;left:-9px;top:9px;bottom:9px;width:3px;border-radius:0 4px 4px 0;background:var(--primary)}
.nav-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#eef4ff;color:var(--primary);flex:0 0 auto}
.nav-icon svg{width:17px;height:17px;fill:currentColor}
.nav-icon.accent-cyan{background:var(--cyan-soft);color:var(--cyan)}
.nav-icon.accent-purple{background:var(--purple-soft);color:var(--purple)}
.nav-icon.accent-orange{background:var(--orange-soft);color:#e72916}
.nav-icon.accent-green{background:var(--green-soft);color:var(--green)}
.nav-icon.accent-red{background:var(--coral-soft);color:var(--coral)}
.nav-icon.accent-teal{background:var(--teal-soft);color:var(--teal)}
.nav-icon.accent-indigo{background:#eef4ff;color:#48bfe1}
.nav-copy{display:flex;flex-direction:column;min-width:0;line-height:1.15;flex:1}
.nav-copy b{font-size:11.7px;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-copy small{font-size:9px;color:#9aa4b8;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.sidebar-nav-item.active .nav-copy small{color:#52c3e3}
.nav-chevron{font-size:14px;color:#a4acbe;transform:rotate(-90deg);transition:.15s ease}
.sidebar-module.open .nav-chevron{transform:rotate(0deg);color:var(--primary)}
.sidebar-subnav{margin:4px 0 3px 40px;padding:2px 0 3px 8px;border-left:1px solid #e7edf5}
.sidebar-subgroup{padding:2px 0 4px}
.sidebar-subgroup-title{font-size:8px;font-weight:750;letter-spacing:.1em;color:#a7afc0;padding:7px 7px 3px}
.sidebar-subitem{display:flex;align-items:center;gap:8px;min-height:29px;padding:4px 7px;border-radius:6px;color:#6d7993;font-size:10.3px;line-height:1.25;transition:.12s ease}
.sidebar-subitem:hover{background:#f7f9fd;color:var(--primary)}
.sidebar-subitem.active{background:#edf3ff;color:var(--primary);font-weight:650}
.sub-dot{width:5px;height:5px;border-radius:50%;border:1.5px solid #a9b2c5;flex:0 0 auto}
.sidebar-subitem.active .sub-dot{background:var(--primary);border-color:var(--primary)}
.sidebar-footer{flex:0 0 auto;border-top:1px solid var(--line);min-height:50px;display:flex;align-items:center;gap:9px;padding:8px 14px;background:#fbfcff;color:#727e98}
.sidebar-footer>span:last-child{display:flex;flex-direction:column;line-height:1.1}
.sidebar-footer b{font-size:10px;color:#56627b}.sidebar-footer small{font-size:8.5px;margin-top:3px}
.sidebar-status-dot{width:8px;height:8px;border-radius:50%;background:#1e96b9;box-shadow:0 0 0 4px #e5ebf7;flex:0 0 auto}

.app-main{grid-template-rows:var(--topbar) 31px minmax(0,1fr);height:100vh;min-width:0;background:var(--bg)}
.topbar{height:var(--topbar);grid-template-columns:minmax(230px,1fr) minmax(250px,360px) minmax(420px,1.25fr);padding:0 18px 0 14px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);gap:14px;box-shadow:0 1px 0 rgba(26,44,82,.02);position:relative;z-index:15}
.topbar-left{display:flex;align-items:center;gap:11px;min-width:0}
.topbar-menu-button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;cursor:pointer;box-shadow:0 1px 4px rgba(32,51,89,.04)}
.topbar-menu-button:hover{background:#f7f9fd;border-color:#d8dfed}
.topbar-menu-button span{width:14px;height:1.7px;border-radius:5px;background:#536281;display:block;transition:.2s}
.page-heading-wrap{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.page-caption{font-size:13px;color:var(--navy);font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.date-line{font-size:9.5px;color:var(--green);font-weight:700;margin:4px 0 0}
.campus-brand{justify-self:center;min-width:250px;max-width:360px;padding:5px 16px;border:0;border-radius:0;background:transparent;text-align:center;box-shadow:none}
.campus-brand strong{display:block;color:var(--primary);text-decoration:none;font-family:inherit;font-size:14px;font-weight:760;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.campus-brand span{display:block;margin-top:4px;font-size:9.3px;color:#7d879b;font-weight:520}
.topbar-right{justify-self:stretch;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.global-search-wrap{position:relative;min-width:200px;max-width:340px;flex:1;height:36px;display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:#f8faff;transition:.15s ease}
.global-search-wrap:focus-within{border-color:#a7e0f1;background:#fff;box-shadow:0 0 0 3px rgba(35,174,214,.08)}
.search-icon{width:35px;text-align:center;color:#818da5;font-size:16px;flex:0 0 auto}
.global-search-wrap input{height:34px;border:0!important;box-shadow:none!important;background:transparent!important;padding:0 7px 0 0;font-size:10.5px;min-width:0;flex:1;color:var(--ink)}
.search-shortcut{font-size:8px;color:#9aa4b8;border:1px solid #dfe4ef;border-radius:5px;padding:2px 5px;margin-right:7px;background:#fff;white-space:nowrap}
.global-search-results{position:absolute;left:0;right:0;top:42px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 16px 45px rgba(28,47,88,.16);padding:6px;max-height:430px;overflow:auto;z-index:100}
.global-result{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;gap:9px;align-items:center;padding:8px;border-radius:7px;color:#53617d}
.global-result:hover{background:#f2f7ff;color:var(--primary)}
.global-result-icon{width:28px;height:28px;background:#eef4ff;color:var(--primary);border-radius:7px;display:grid;place-items:center}.global-result-icon svg{width:14px;height:14px;fill:currentColor}
.global-result b{display:block;font-size:10.5px}.global-result small{display:block;font-size:8.5px;color:#9aa4b8;margin-top:2px}.global-empty{padding:18px;text-align:center;color:#8b95aa;font-size:10px}
.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#f8faff;color:#52607c;display:grid;place-items:center;font-size:14px;transition:.15s;box-shadow:none}
.icon-button:hover{background:#edf3ff;color:var(--primary);border-color:#d5dff4;transform:translateY(-1px)}
.user-avatar{width:34px;height:34px;border-radius:50%;border:0;background:var(--navy);color:#fff;font-size:9px;font-weight:800;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 8px rgba(19,33,63,.16)}
.user-avatar:hover{background:var(--primary)}
.breadcrumb{height:31px;padding:0 16px;background:#f8faff;border-bottom:1px solid var(--line);font-size:9.2px;color:#8b95aa;gap:5px}
.breadcrumb a{color:#72809d}.breadcrumb b{color:#4f5c78;font-weight:650}
.view{padding:14px 15px 28px;scroll-behavior:smooth}

/* General page typography */
.page-title-row{margin:0 0 10px;align-items:center}
.page-title-row h1{font-size:15.5px;line-height:1.15;color:var(--navy);font-weight:740;letter-spacing:-.01em}
.page-title-row .sub{font-size:9.6px;color:#8a94aa;margin-top:4px}
.small{font-size:9px}.muted{color:var(--muted)!important}

/* Modern cards */
.card{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);padding:12px;background:var(--panel);margin-bottom:11px}
.card.compact{padding:9px}
.card-title{font-size:12.5px;color:var(--navy);font-weight:720;margin:0 0 11px;padding-bottom:9px;border-bottom:1px solid #edf1f6;gap:9px}
.card-title .title-icon{width:29px;height:29px;border-radius:8px;background:var(--primary-soft);color:var(--primary);font-size:14px;box-shadow:inset 0 0 0 1px #e2eafb}
.card-title .rule{background:var(--primary)}
.section-label{font-size:10.8px;color:var(--navy);font-weight:700;text-decoration:none;border-left:3px solid var(--primary);padding-left:7px}
.page-grid{gap:11px}.page-grid.two{grid-template-columns:minmax(0,1fr) minmax(340px,.92fr)}

/* Forms */
.form-grid{gap:8px 10px}
.field label{font-size:9.8px;font-weight:650;color:#485672;margin:0 0 4px}
.req{color:var(--coral)}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],select,textarea{height:34px;border:1px solid #cfd6e6;border-radius:7px;background:#fff;padding:0 9px;color:#35425d;font-size:10.7px;transition:border-color .14s,box-shadow .14s,background .14s}
textarea,.textarea{height:68px;padding-top:8px}
.input:focus,.select:focus,select:focus,input:focus,textarea:focus{border-color:#75cfe9;box-shadow:0 0 0 3px rgba(35,174,214,.08)}
input[readonly],.readonly{background:#f6f8fb;color:#75819a}
input[type='file']{padding:6px;height:auto;min-height:34px;background:#fff}
.form-actions{gap:7px;margin-top:11px}
.filters{gap:8px;align-items:end}
.btn{border-radius:7px;min-height:32px;padding:7px 12px;font-size:10.3px;font-weight:700;box-shadow:0 2px 5px rgba(36,55,95,.06);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.btn:hover{filter:none;transform:translateY(-1px);box-shadow:0 5px 10px rgba(36,55,95,.11)}
.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:#1088aa}
.btn-green{background:var(--teal);color:#fff}.btn-green:hover{background:#0a7594}
.btn-dark{background:#525f79;color:#fff}.btn-dark:hover{background:#3f4b65}
.btn-danger{background:var(--coral);color:#fff}.btn-danger:hover{background:#e94737}
.btn-soft{background:#eef3f9;color:#52607c}.btn-soft:hover{background:#e2e8f4}
.btn-outline{background:#fff;border:1px solid #d5dcea;color:#52607c;box-shadow:none}
.btn-sm{padding:4px 8px;min-height:25px;font-size:9.3px}.btn-icon{width:27px;height:27px;border-radius:50%;padding:0;min-height:27px}

/* Tables */
.table-wrap{border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:none}
table{font-size:10.25px;border-collapse:separate;border-spacing:0}
thead th{position:sticky;top:0;z-index:2;background:#edf2f8;color:#46526c;font-weight:720;border-bottom:1px solid #d9dfec;padding:7px 8px;white-space:nowrap}
tbody td{padding:6px 8px;border-bottom:1px solid #edf1f5;color:#535f78;vertical-align:middle}
tbody tr:nth-child(even){background:#fbfcfe}
tbody tr:hover{background:#f3f7fd}
tbody tr:last-child td{border-bottom:0}
.status{border-radius:999px;padding:3px 8px;background:#e7ecf7;color:#17738e;font-size:9px;font-weight:750}.status::before{width:5px;height:5px;background:#1d90b1}.status.no{background:#ffefed;color:#c54639}.status.no::before{background:var(--coral)}
.pagination button{background:#a8b0c0;border-radius:6px;font-size:9px;padding:6px 11px}.pagination button:hover{background:#8691a7}

/* Alerts, modals and utility */
.alert{border-radius:8px;padding:9px 11px;font-size:9.8px;border-color:#f1de9d;background:#fffae8;color:#9b1b0e}.alert.info{border-color:#cfddfb;background:#eef4ff;color:#1b89a9}.alert.success{border-color:#c9d4ea;background:#eefaf2;color:#166c85}.alert.danger{border-color:#f2c8c4;background:#fff0ef;color:#a34238}
.modal-root{background:rgba(18,27,46,.58);backdrop-filter:blur(2px)}
.modal{border-radius:15px;box-shadow:0 28px 80px rgba(15,26,50,.26);padding:17px;border:1px solid rgba(255,255,255,.45)}
.modal-header{border-bottom:1px solid #e9eef4;padding-bottom:10px;margin-bottom:12px}.modal-header h2{font-size:15px;color:var(--navy);font-weight:760}.modal-close{background:#f0f3f7;color:#66728a}
.toast{border-radius:9px;padding:10px 13px;font-size:10px;background:#253452;box-shadow:0 12px 30px rgba(20,36,70,.2)}.toast.ok{background:#187894}.toast.bad{background:#c94a3d}
.empty{border-radius:9px;background:#fbfcff;border-color:#d9dfec;color:#848ea3}
.action-float{background:var(--primary);width:40px;height:40px;box-shadow:0 8px 20px rgba(23,159,198,.25)}

/* Module workspace */
.workspace{max-width:1500px;border:0;background:transparent;box-shadow:none;padding:0;min-height:0}
.modern-workspace{display:flex;flex-direction:column;gap:12px}
.workspace-hero{min-height:105px;background:#e9f0ff;border:1px solid #dbe5fa;border-radius:14px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}
.workspace-hero::after{content:"";position:absolute;width:170px;height:170px;border:25px solid rgba(35,174,214,.06);border-radius:50%;right:65px;top:-60px}
.workspace-hero .eyebrow{display:block;font-size:8.5px;font-weight:800;letter-spacing:.11em;color:#51c2e3;margin-bottom:6px}
.workspace-hero h1{margin:0;color:var(--primary);font-size:24px;line-height:1;font-weight:760;letter-spacing:-.02em}
.workspace-hero p{margin:8px 0 0;color:#68799c;font-size:10.5px}
.workspace-hero-mark{width:62px;height:62px;border-radius:18px;background:#fff;color:var(--primary);display:grid;place-items:center;box-shadow:0 8px 24px rgba(26,129,158,.12);z-index:1}.workspace-hero-mark svg{width:31px;height:31px;fill:currentColor}
.workspace-search{margin:0;display:flex;align-items:center;border:1px solid var(--line);background:#fff;border-radius:10px;height:39px;padding:0 11px;box-shadow:var(--shadow-sm)}
.workspace-search>span{font-size:15px;color:#909cb5;margin-right:7px}.workspace-search input{height:36px;border:0!important;box-shadow:none!important;background:transparent!important;padding:0;font-size:10.7px}
.workspace-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.workspace-col{border-right:0;padding:0;min-height:0}
.workspace-card{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden;min-width:0}
.workspace-card-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf1f5;background:#fbfcff}
.workspace-card-icon{width:32px;height:32px;border-radius:8px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:15px;font-weight:800}
.workspace-card-head h2{margin:0;font-size:12px;color:var(--navy);font-weight:750}.workspace-card-head p{margin:2px 0 0;font-size:8.7px;color:#98a1b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-count{min-width:24px;height:24px;border-radius:999px;background:#edf3fb;color:#6f7c98;display:grid;place-items:center;font-size:8.8px;font-weight:750}
.workspace-card-list{padding:5px}
.workspace-item{font-size:10.3px;color:#606d89;padding:7px 8px;border-radius:7px;gap:8px;border:0;min-width:0}
.workspace-item::before{display:none}.workspace-item:hover{background:#f3f7fd;color:var(--primary)}
.workspace-bullet{width:6px;height:6px;border:1.5px solid #aeb6c8;border-radius:50%;flex:0 0 auto}.workspace-item:hover .workspace-bullet{border-color:var(--primary);background:var(--primary)}
.workspace-item>span:nth-child(2){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-arrow{color:#b1b8c7}

/* Dashboard */
.dashboard-shell{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:12px;align-items:start}
.dashboard-main{min-width:0}.dashboard-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.dashboard-welcome{min-height:145px;border-radius:15px;background:#e7efff;border:1px solid #d7e2fa;box-shadow:var(--shadow);padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;overflow:hidden;margin-bottom:12px}
.dashboard-welcome::before{content:"";position:absolute;right:-35px;top:-70px;width:240px;height:240px;border-radius:50%;border:34px solid rgba(35,174,214,.055)}
.dashboard-welcome-copy{position:relative;z-index:1;max-width:600px}.dashboard-welcome-copy .eyebrow{font-size:8.5px;font-weight:800;letter-spacing:.12em;color:#59c5e4}.dashboard-welcome h1{margin:7px 0 4px;font-size:25px;letter-spacing:-.025em;color:var(--primary);font-weight:500}.dashboard-welcome h1 b{font-weight:800}.dashboard-welcome p{margin:0;color:#536385;font-size:10.8px}.dashboard-welcome p strong{color:#eb2e1b}
.dashboard-welcome-logo{width:100px;height:100px;border-radius:24px;background:#fff;display:grid;place-items:center;box-shadow:0 12px 35px rgba(25,127,156,.13);position:relative;z-index:1;flex:0 0 auto}.dashboard-welcome-logo img{width:82px;height:82px;object-fit:contain}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.dashboard-kpi{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);padding:12px;display:grid;grid-template-columns:35px 1fr;gap:9px;align-items:center;min-width:0}
.dashboard-kpi-icon{width:35px;height:35px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:16px}.dashboard-kpi.orange .dashboard-kpi-icon{background:var(--orange-soft);color:var(--orange)}.dashboard-kpi.teal .dashboard-kpi-icon{background:var(--teal-soft);color:var(--teal)}.dashboard-kpi.coral .dashboard-kpi-icon{background:var(--coral-soft);color:var(--coral)}
.dashboard-kpi .value{font-size:18px;color:var(--navy);font-weight:780;line-height:1}.dashboard-kpi .label{font-size:8.7px;color:#8791a6;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.72fr);gap:12px;margin-bottom:12px}.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);overflow:hidden}.dashboard-panel-head{height:43px;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.dashboard-panel-head h2{margin:0;font-size:11.7px;color:var(--navy)}.dashboard-panel-head a{font-size:8.8px;color:var(--primary);font-weight:650}.dashboard-panel-body{padding:12px}
.program-row{display:grid;grid-template-columns:72px 1fr 38px;gap:8px;align-items:center;margin-bottom:11px}.program-row:last-child{margin-bottom:0}.program-row b{font-size:9.8px;color:#525f7a}.program-progress{height:7px;border-radius:99px;background:#edf1f5;overflow:hidden}.program-progress i{height:100%;display:block;background:var(--primary);border-radius:inherit}.program-row:nth-child(2) i{background:var(--orange)}.program-row:nth-child(3) i{background:var(--cyan)}.program-row:nth-child(4) i{background:var(--coral)}.program-row:nth-child(5) i{background:var(--teal)}.program-row span{font-size:9px;text-align:right;color:#727f9a;font-weight:650}
.module-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-shortcut{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e7edf5;border-radius:9px;background:#fbfcff;transition:.13s}.module-shortcut:hover{background:#f1f6ff;border-color:#ccd8f2;transform:translateY(-1px)}.module-shortcut-icon{width:29px;height:29px;border-radius:8px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.module-shortcut-icon svg{width:15px;height:15px;fill:currentColor}.module-shortcut b{font-size:9.5px;color:#53607c}
.calendar-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);padding:13px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.calendar-head b{font-size:11px;color:var(--navy)}.calendar-controls{display:flex;gap:3px}.calendar-controls span{width:23px;height:23px;border-radius:5px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:10px}.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.mini-calendar span{font-size:8.5px;color:#6f7b95;padding:5px 1px;border-radius:5px}.mini-calendar .dow{font-size:7.6px;color:#a4abba;font-weight:700}.mini-calendar .today{background:var(--coral);color:#fff;font-weight:700}.mini-calendar .muted-day{color:#c6ccd5}
.quick-actions-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);overflow:hidden}.quick-action{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #edf1f5;color:#596682}.quick-action:last-child{border-bottom:0}.quick-action:hover{background:#f7faff;color:var(--primary)}.quick-action strong{font-size:9.8px}.quick-action small{display:block;color:#9aa4b8;font-size:8.2px;margin-top:1px}.quick-action-mark{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:var(--orange-soft);color:var(--orange);flex:0 0 auto}.quick-action:nth-child(2) .quick-action-mark{background:var(--teal-soft);color:var(--teal)}.quick-action:nth-child(3) .quick-action-mark{background:var(--purple-soft);color:var(--purple)}
.activity-list{display:flex;flex-direction:column}.activity-row{display:grid;grid-template-columns:48px 8px minmax(0,1fr);gap:8px;align-items:start;padding:8px 0;border-bottom:1px solid #eef2f6}.activity-row:last-child{border-bottom:0}.activity-time{font-size:8.5px;color:#9ba3b5}.activity-dot{width:7px;height:7px;border-radius:50%;background:var(--primary);margin-top:4px;box-shadow:0 0 0 3px #e7efff}.activity-row:nth-child(2) .activity-dot{background:var(--orange);box-shadow:0 0 0 3px #ffe7e5}.activity-row:nth-child(3) .activity-dot{background:var(--teal);box-shadow:0 0 0 3px #e6ecf8}.activity-row b{font-size:9.4px;color:#53607b}.activity-row small{display:block;color:#9aa4b8;font-size:8.2px;margin-top:1px}

/* Existing KPI widgets made consistent */
.kpi-grid{gap:10px}.kpi{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);background:#fff;padding:13px}.kpi .value{font-size:20px;color:var(--navy)}.kpi .label{font-size:9px;color:#848ea3}

/* Organization profile modernization */
.profile-grid{gap:14px}.profile-pairs{font-size:9.7px;grid-template-columns:132px 1fr;gap:6px 8px}.profile-pairs b{color:#4d5972}.profile-pairs i,.profile-pairs span{color:#6b7894}
.profile-pairs.modern{grid-template-columns:120px 1fr;padding-top:4px}
.profile-modal-head{display:flex;align-items:center;gap:11px;margin-bottom:12px}.profile-avatar-lg{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:800}.profile-modal-head h3{margin:0;color:var(--navy);font-size:14px}.profile-modal-head p{margin:3px 0 0;color:#8b95aa;font-size:9.5px}
.notification-list{display:flex;flex-direction:column}.notification-item{display:grid;grid-template-columns:9px minmax(0,1fr);gap:9px;padding:10px 2px;border-bottom:1px solid #edf1f5}.notification-item:last-child{border-bottom:0}.notification-item b{font-size:10px;color:#4d5b77}.notification-item p{font-size:8.8px;color:#8c96aa;margin:2px 0 0}.notification-dot{width:8px;height:8px;border-radius:50%;margin-top:4px}.notification-dot.blue{background:var(--primary)}.notification-dot.orange{background:var(--orange)}.notification-dot.teal{background:var(--teal)}

/* Student related panel */
.related-panel{border-radius:11px;border-color:var(--line);box-shadow:var(--shadow-sm);background:#fff}.related-panel h3{font-size:11px;color:var(--navy)}

/* Sidebar collapse */
body.sidebar-collapsed{--sidebar:72px;--rail:72px}
body.sidebar-collapsed .sidebar-brand{padding:0;justify-content:center}
body.sidebar-collapsed .sidebar-brand-link{justify-content:center}
body.sidebar-collapsed .sidebar-brand-copy,body.sidebar-collapsed .sidebar-section-label,body.sidebar-collapsed .nav-copy,body.sidebar-collapsed .nav-chevron,body.sidebar-collapsed .sidebar-subnav,body.sidebar-collapsed .sidebar-footer>span:last-child{display:none}
body.sidebar-collapsed .sidebar-scroll{padding:10px 7px}
body.sidebar-collapsed .sidebar-nav-item{justify-content:center;padding:6px;min-height:46px}
body.sidebar-collapsed .sidebar-nav-item.active::before{left:-7px}
body.sidebar-collapsed .sidebar-footer{justify-content:center;padding:8px}
body.sidebar-collapsed .nav-icon{width:32px;height:32px}

/* Dark theme */
body.theme-dark{
  --bg:#101727;--panel:#172033;--panel-2:#1b2539;--ink:#dce3f2;--navy:#eff4ff;--muted:#9ca8c0;--line:#29344a;--line-strong:#3a4660;--head:#243048;--head2:#1d273c;--primary-soft:#1e2e50;--shadow:0 8px 22px rgba(0,0,0,.16);--shadow-sm:0 3px 12px rgba(0,0,0,.13)
}
body.theme-dark .module-rail,body.theme-dark .sidebar-brand,body.theme-dark .topbar,body.theme-dark .card,body.theme-dark .workspace-card,body.theme-dark .workspace-search,body.theme-dark .dashboard-panel,body.theme-dark .dashboard-kpi,body.theme-dark .calendar-card,body.theme-dark .quick-actions-card,body.theme-dark .table-wrap,body.theme-dark .modal,body.theme-dark .global-search-results{background:var(--panel)}
body.theme-dark .breadcrumb,body.theme-dark .sidebar-footer,body.theme-dark .workspace-card-head{background:#131b2d}
body.theme-dark .sidebar-nav-item:hover,body.theme-dark .sidebar-subitem:hover,body.theme-dark tbody tr:hover,body.theme-dark .quick-action:hover{background:#1c2840}
body.theme-dark .sidebar-nav-item.active,body.theme-dark .sidebar-subitem.active{background:#1d2e50}
body.theme-dark .global-search-wrap,body.theme-dark .topbar-menu-button,body.theme-dark .icon-button,body.theme-dark .module-shortcut,body.theme-dark .input,body.theme-dark .select,body.theme-dark .textarea,body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#11192b;color:#dce3f2;border-color:#333f59}
body.theme-dark thead th{background:#243048;color:#cfd7e8;border-color:#323e58}
body.theme-dark tbody td{color:#b9c3d8;border-color:#263149}body.theme-dark tbody tr:nth-child(even){background:#151e30}
body.theme-dark .dashboard-welcome,body.theme-dark .workspace-hero{background:#162544;border-color:#263759}
body.theme-dark .dashboard-welcome-logo,body.theme-dark .workspace-hero-mark{background:#1d2840}
body.theme-dark .workspace-search input,body.theme-dark .global-search-wrap input{background:transparent!important}
body.theme-dark .search-shortcut{background:#19243a;border-color:#333f59;color:#8591aa}
body.theme-dark .workspace-card-head,body.theme-dark .sidebar-brand,body.theme-dark .topbar,body.theme-dark .breadcrumb,body.theme-dark .card-title,body.theme-dark .quick-action,body.theme-dark .dashboard-panel-head,body.theme-dark .activity-row,body.theme-dark .notification-item{border-color:#29344a}

@media (max-width:1360px){
 :root{--sidebar:224px}.topbar{grid-template-columns:minmax(200px,1fr) minmax(225px,320px) minmax(330px,1fr)}.global-search-wrap{max-width:270px}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1180px){
 :root{--sidebar:205px}.campus-brand{display:none}.topbar{grid-template-columns:minmax(250px,1fr) minmax(420px,1.2fr)}.dashboard-shell{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr}.workspace-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:1040px){
 body{--sidebar:72px}.sidebar-brand-copy,.sidebar-section-label,.nav-copy,.nav-chevron,.sidebar-subnav,.sidebar-footer>span:last-child{display:none}.sidebar-brand{padding:0;justify-content:center}.sidebar-brand-link{justify-content:center}.sidebar-scroll{padding:10px 7px}.sidebar-nav-item{justify-content:center;padding:6px}.sidebar-footer{justify-content:center}.topbar{grid-template-columns:minmax(220px,.8fr) minmax(420px,1.2fr)}.workspace-cols{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.form-grid,.form-grid.cols-5,.form-grid.cols-6{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{
 body{background:#fff!important;color:#111!important;overflow:visible!important}.module-rail,.topbar,.breadcrumb,.no-print,.action-float{display:none!important}.app-shell{display:block!important;min-width:0!important}.app-main{display:block!important;height:auto!important}.view{overflow:visible!important;padding:0!important}.card,.workspace-card,.dashboard-panel{box-shadow:none!important;border-color:#bbb!important;background:#fff!important}.table-wrap{overflow:visible!important}thead th{position:static!important;background:#eee!important;color:#111!important}tbody td{color:#111!important}.print-only{display:block!important}
}

/* ========================================================================
   2026-10 ENHANCED NAVIGATION LAYOUT
   Main modules stay on the left. The selected module opens its sub menus in
   a dedicated panel immediately to the right. Dashboard also exposes all
   main modules at the top of the page for fast navigation.
   ======================================================================== */
:root{
  --rail:104px;
  --submenu:292px;
  --topbar:74px;
  --font:13.4px;
  --radius:12px;
}
body{font-size:var(--font);line-height:1.48}
.app-shell{
  display:grid;
  grid-template-columns:var(--rail) var(--submenu) minmax(0,1fr);
  transition:grid-template-columns .2s ease;
  min-width:1100px;
}
body.submenu-hidden .app-shell{grid-template-columns:var(--rail) 0 minmax(0,1fr)}

/* Primary left rail */
.module-rail{
  width:auto;
  background:#fff;
  border-right:1px solid var(--line);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:2px 0 14px rgba(39,59,102,.035);
  z-index:25;
}
.rail-brand{height:var(--topbar);display:grid;place-items:center;border-bottom:1px solid var(--line);flex:0 0 auto}
.rail-brand a{display:grid;place-items:center;width:72px;height:62px;border-radius:12px;background:#f8fbff}
.rail-brand img{width:61px;height:56px;object-fit:contain}
.rail-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:10px 7px 14px}
.rail-module{
  min-height:68px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-bottom:5px;
  padding:7px 4px;
  border-radius:10px;
  color:#53607c;
  font-weight:750;
  text-align:center;
  transition:background .14s ease,color .14s ease,transform .14s ease;
  position:relative;
}
.rail-module:hover{background:#f3f7fd;color:var(--primary);transform:translateY(-1px)}
.rail-module.active{background:var(--primary);color:#fff;box-shadow:0 6px 16px rgba(23,159,198,.2)}
.rail-module.active::after{content:"";position:absolute;right:-7px;top:50%;transform:translateY(-50%);border-width:7px 0 7px 7px;border-style:solid;border-color:transparent transparent transparent var(--primary)}
.rail-module-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#edf3ff;color:var(--primary)}
.rail-module-icon svg{width:22px;height:22px;fill:currentColor}
.rail-module.active .rail-module-icon{background:rgba(255,255,255,.18);color:#fff}
.rail-module-label{font-size:10.8px;line-height:1.12;letter-spacing:.01em;max-width:88px;word-break:normal}
.rail-dashboard{min-height:62px}
.rail-bottom{padding:7px;border-top:1px solid var(--line);display:grid;place-items:center;background:#fbfcff}
.rail-help{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#63708b;font-weight:800;cursor:pointer}

/* Dedicated sub menu panel */
.submenu-panel{
  min-width:0;
  width:var(--submenu);
  background:#fff;
  border-right:1px solid var(--line);
  box-shadow:4px 0 18px rgba(39,59,102,.04);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  z-index:22;
  transition:opacity .16s ease,transform .2s ease;
}
body.submenu-hidden .submenu-panel{opacity:0;pointer-events:none;transform:translateX(-18px);width:0;border:0}
.submenu-head{min-height:var(--topbar);display:grid;grid-template-columns:42px minmax(0,1fr) 28px;gap:10px;align-items:center;padding:10px 10px 9px 13px;border-bottom:1px solid var(--line);background:#fbfcff}
.submenu-module-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}
.submenu-module-icon svg{width:21px;height:21px;fill:currentColor}
.submenu-module-icon.accent-cyan{background:var(--cyan-soft);color:var(--cyan)}
.submenu-module-icon.accent-purple{background:var(--purple-soft);color:var(--purple)}
.submenu-module-icon.accent-orange{background:var(--orange-soft);color:#e72916}
.submenu-module-icon.accent-green{background:var(--green-soft);color:var(--green)}
.submenu-module-icon.accent-red{background:var(--coral-soft);color:var(--coral)}
.submenu-module-icon.accent-teal{background:var(--teal-soft);color:var(--teal)}
.submenu-module-icon.accent-indigo{background:#eef4ff;color:#48bfe1}
.submenu-head-copy{min-width:0;line-height:1.12}.submenu-head-copy>span{font-size:9px;color:#98a1b5;font-weight:800;letter-spacing:.08em}.submenu-head-copy h2{font-size:15px;color:var(--navy);margin:3px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.submenu-head-copy p{font-size:10px;color:#8a94aa;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.submenu-close{width:28px;height:28px;border:0;border-radius:8px;background:#eef2f7;color:#65728d;font-size:17px;cursor:pointer}.submenu-close:hover{background:#e1e7f2;color:#303f5f}
.submenu-search{height:52px;padding:9px 11px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #eef2f6}.submenu-search span{color:#8b95aa;font-size:17px}.submenu-search input{height:34px!important;border:1px solid #dce2ef!important;border-radius:8px!important;background:#f8faff!important;font-size:11.5px!important;padding:0 9px!important}
.submenu-scroll{flex:1;overflow:auto;padding:8px 9px 12px}
.submenu-group{margin-bottom:10px}.submenu-group-title{display:grid;grid-template-columns:22px 1fr 24px;align-items:center;gap:4px;padding:7px 7px 5px;color:#98a1b4}.submenu-group-title>span{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#f0f5fb;color:#2fb6dd;font-size:12px}.submenu-group-title b{font-size:9.5px;letter-spacing:.09em}.submenu-group-title em{font-style:normal;font-size:9px;text-align:center;background:#eef3f8;border-radius:99px;padding:2px 0;color:#848fa5}
.submenu-links{display:flex;flex-direction:column;gap:2px}.submenu-link{min-height:37px;display:grid;grid-template-columns:10px minmax(0,1fr) 18px;gap:7px;align-items:center;padding:7px 7px;border-radius:8px;color:#52607d;font-size:11.6px;font-weight:600;transition:.12s}.submenu-link:hover{background:#f2f6fc;color:var(--primary);padding-left:10px}.submenu-link.active{background:var(--primary-soft);color:var(--primary);font-weight:750}.submenu-dot{width:5px;height:5px;border-radius:50%;background:#a5afc5}.submenu-link.active .submenu-dot{background:var(--primary);box-shadow:0 0 0 3px rgba(23,159,198,.09)}.submenu-arrow{font-size:16px;color:#a2abbe;text-align:right}
.submenu-workspace-link{margin:8px 10px 12px;min-height:50px;border-radius:10px;background:#f1f6ff;border:1px solid #dbe4f8;display:grid;grid-template-columns:31px 1fr 16px;gap:8px;align-items:center;padding:8px 10px;color:#1d90b1}.submenu-workspace-link>span:first-child{width:30px;height:30px;border-radius:8px;background:#fff;display:grid;place-items:center;color:var(--primary)}.submenu-workspace-link b{font-size:10.6px}.submenu-workspace-link small{display:block;font-size:8.8px;color:#8490aa;margin-top:1px}

/* Main content / header readability */
.app-main{grid-template-rows:var(--topbar) 32px 1fr;height:100vh;min-width:0}
.topbar{height:var(--topbar);grid-template-columns:minmax(210px,1fr) minmax(300px,430px) minmax(360px,1fr);padding:0 18px;gap:14px;background:#fff}
.topbar-menu-button{width:38px;height:38px;border-radius:10px}
.page-caption{font-size:14px;font-weight:750;color:#283654}.date-line{font-size:12px;margin:1px 0 0;color:#1d8fb0}
.campus-brand{padding:9px 22px;border-radius:13px;box-shadow:0 3px 12px rgba(39,59,102,.06)}.campus-brand strong{font-size:18px}.campus-brand span{font-size:11px}
.global-search-wrap{height:39px}.global-search-wrap input{font-size:12px}.icon-button{width:34px;height:34px}.user-avatar{width:35px;height:35px;font-size:11px}
.breadcrumb{height:32px;font-size:11px;padding:0 18px}.view{padding:16px 18px 30px}

/* Make all operational pages more readable without becoming oversized */
.page-title-row h1{font-size:17px}.page-title-row .sub{font-size:11.5px}.card{padding:14px}.card-title{font-size:16px}.field label{font-size:12px}.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],select,textarea{height:36px;font-size:12.5px;padding-left:10px}.btn{min-height:35px;font-size:12px;padding:8px 14px}.btn-sm{min-height:29px;font-size:11px}.table-wrap table,table{font-size:11.5px}.table-wrap th,.table-wrap td,th,td{padding:7px 8px}.status{font-size:10.5px}.related-panel h3{font-size:13px}.related-item{font-size:11.5px;padding:7px 5px}.profile-pairs{font-size:11.5px}.report-meta{font-size:11.5px}.section-label{font-size:13px}.alert{font-size:11.5px}

/* Dashboard: show every left-side module at the top for one-click access */
.dashboard-shell{gap:14px}
.dashboard-main{min-width:0}
.dashboard-module-menu{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow-sm);padding:12px;margin-bottom:13px}
.dashboard-module-menu-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.dashboard-module-menu-head h2{margin:0;font-size:15px;color:var(--navy)}.dashboard-module-menu-head p{margin:2px 0 0;font-size:10.5px;color:#8a94aa}.dashboard-module-menu-head span{font-size:10px;color:#8b95aa;background:#f3f6fa;border:1px solid #e4eaf1;border-radius:99px;padding:4px 8px;white-space:nowrap}
.dashboard-module-grid{display:grid;grid-template-columns:repeat(8,minmax(90px,1fr));gap:7px}
.dashboard-module-card{min-height:78px;border:1px solid #e7edf5;border-radius:11px;background:#fbfcff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:8px 5px;color:#55637f;transition:.14s ease}.dashboard-module-card:hover{background:#f1f6ff;border-color:#cad7f1;transform:translateY(-2px);box-shadow:0 6px 14px rgba(39,59,102,.07);color:var(--primary)}.dashboard-module-card .module-card-icon{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}.dashboard-module-card .module-card-icon svg{width:20px;height:20px;fill:currentColor}.dashboard-module-card b{font-size:10.8px;line-height:1.1}.dashboard-module-card small{font-size:8.7px;color:#99a2b5;line-height:1.05}
.dashboard-welcome-copy h1{font-size:24px}.dashboard-welcome-copy p{font-size:12px}.dashboard-kpi .value{font-size:22px}.dashboard-kpi .label{font-size:10.5px}.dashboard-panel-head h2{font-size:13px}.dashboard-panel-head a{font-size:10px}.program-row b,.module-shortcut b{font-size:10.5px}.quick-action strong{font-size:11px}.quick-action small{font-size:9.5px}.activity-row b{font-size:10.5px}.activity-row small{font-size:9px}

/* Dark mode support for new navigation */
body.theme-dark .submenu-panel,body.theme-dark .rail-brand,body.theme-dark .rail-bottom,body.theme-dark .dashboard-module-menu{background:var(--panel);border-color:var(--line)}
body.theme-dark .submenu-head{background:#131b2d;border-color:var(--line)}
body.theme-dark .submenu-search,body.theme-dark .submenu-group-title{border-color:var(--line)}
body.theme-dark .submenu-search input{background:#11192b!important;border-color:#333f59!important;color:#dce3f2!important}
body.theme-dark .submenu-link:hover,body.theme-dark .dashboard-module-card:hover{background:#1c2840}
body.theme-dark .submenu-link.active{background:#1d2e50}
body.theme-dark .dashboard-module-card{background:#151e30;border-color:#263149}
body.theme-dark .submenu-workspace-link{background:#172644;border-color:#263759;color:#b4e5f3}

@media (max-width:1450px){:root{--submenu:270px;--rail:98px}.dashboard-module-grid{grid-template-columns:repeat(4,1fr)}.topbar{grid-template-columns:minmax(190px,.8fr) minmax(260px,360px) minmax(330px,1fr)}}
@media (max-width:1180px){:root{--submenu:248px;--rail:88px}.rail-module-label{font-size:9.7px}.topbar{grid-template-columns:minmax(190px,.8fr) minmax(390px,1.2fr)}.dashboard-module-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:980px){.app-shell{min-width:900px}.submenu-panel{position:fixed;left:var(--rail);top:0;bottom:0;z-index:40;box-shadow:8px 0 28px rgba(15,24,42,.18)}body.submenu-hidden .submenu-panel{transform:translateX(-100%)}.app-shell,body.submenu-hidden .app-shell{grid-template-columns:var(--rail) minmax(0,1fr)}.app-main{grid-column:2}.dashboard-module-grid{grid-template-columns:repeat(4,1fr)}}
@media print{.submenu-panel{display:none!important}.app-shell,body.submenu-hidden .app-shell{display:block!important}.module-rail{display:none!important}}

/* ========================================================================
   E-SCHOOL INSPIRED CAMPUS ADMIN INTERFACE — NILKANTHA MULTIPLE CAMPUS
   Structure inspired by the user supplied education ERP reference:
   horizontal main modules, mega menu, left contextual shortcuts, wide content.
   All campus-specific labels, routes and workflows remain unchanged.
   ======================================================================== */
:root{
  --eschool-blue:#0b87ba;
  --eschool-blue-2:#0b87ba;
  --eschool-blue-dark:#0b87ba;
  --eschool-blue-soft:#f2f3fa;
  --eschool-green:#0b87ba;
  --eschool-green-soft:#f2f3fa;
  --eschool-orange:#e5463a;
  --eschool-red:#e5463a;
  --eschool-border:#d7dde8;
  --eschool-border-soft:#e8edf2;
  --eschool-bg:#f7f9fb;
  --eschool-text:#3d3f46;
  --eschool-muted:#737f97;
  --context-w:205px;
  --eschool-head-h:82px;
  --font:14px;
  --radius:6px;
}
body.eschool-layout{
  margin:0;
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif;
  font-size:var(--font);
  line-height:1.45;
  color:var(--eschool-text);
  background:#fff;
  overflow:hidden;
}
body.eschool-layout *{box-sizing:border-box}
.eschool-app{height:100vh;display:grid;grid-template-rows:var(--eschool-head-h) minmax(0,1fr);min-width:1100px;background:#fff}

/* Header ---------------------------------------------------------------- */
.eschool-header{
  position:relative;
  z-index:70;
  display:grid;
  grid-template-columns:190px minmax(680px,1fr) 310px;
  grid-template-rows:42px 40px;
  background:#f8f8f8;
  border-bottom:1px solid #cfd4df;
  box-shadow:0 1px 2px rgba(35,49,78,.05);
}
.eschool-brand{grid-row:1/3;grid-column:1;border-right:1px solid #d9e0e6;background:#fff;display:flex;align-items:center;padding:8px 12px}
.eschool-brand a{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
.eschool-brand img{width:56px;height:56px;object-fit:contain;flex:0 0 auto}
.eschool-brand-copy{min-width:0;display:flex;flex-direction:column;line-height:1.1}
.eschool-brand-copy strong{font-size:14px;color:#1287a9;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eschool-brand-copy small{font-size:9px;color:#7d879c;margin-top:4px;white-space:nowrap}

.top-module-nav{grid-column:2;grid-row:1;display:flex;align-items:stretch;gap:0;padding-left:4px;min-width:0;overflow:hidden;background:#f8f8f8}
.top-module{height:42px;border:0;border-left:1px solid transparent;border-right:1px solid transparent;background:transparent;color:#34405a;padding:0 10px;display:inline-flex;align-items:center;gap:6px;font-size:12.2px;font-weight:600;cursor:pointer;white-space:nowrap;position:relative;transition:.13s ease;text-decoration:none}
.top-module:hover,.top-module[aria-expanded="true"]{background:#fff;color:var(--eschool-blue-2);border-left-color:#e0e5ea;border-right-color:#e0e5ea}
.top-module.active{background:#fff;color:var(--eschool-blue-2);font-weight:750;box-shadow:inset 0 -3px 0 var(--eschool-blue)}
.top-module i{font-style:normal;font-size:9px;color:#8c95a8;margin-left:1px}
.top-module-icon{width:16px;height:16px;display:grid;place-items:center;color:#6e7a92}.top-module-icon svg{width:15px;height:15px;fill:currentColor}
.top-module:hover .top-module-icon,.top-module.active .top-module-icon,.top-module[aria-expanded="true"] .top-module-icon{color:var(--eschool-blue)}
.dashboard-tab .top-module-icon{color:var(--eschool-blue)}

.header-utility{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 12px;background:#f8f8f8}
.utility-link,.self-service{height:26px;border:0;background:transparent;color:#22acd4;font-size:11px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;padding:0 3px}
.utility-link span{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#52c3e3;color:#fff;font-size:10px;font-weight:800}
.self-service{background:#37b9df;color:#fff;border-radius:12px;padding:0 8px;font-size:10px;font-weight:700}.self-service span{font-size:10px}
.utility-icon{position:relative;width:28px;height:28px;border:0;background:transparent;cursor:pointer;font-size:15px;color:#556587}.utility-icon i{position:absolute;right:-1px;top:1px;font-style:normal;background:#db5a4d;color:#fff;border-radius:10px;min-width:14px;height:14px;line-height:14px;font-size:8px;text-align:center}
.utility-avatar{width:29px;height:29px;border:0;border-radius:50%;background:#3f4550;color:#fff;font-size:9px;font-weight:800;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12)}

.header-quick-nav{grid-column:2;grid-row:2;display:flex;align-items:center;gap:0;padding:0 4px;overflow:hidden;border-top:1px solid #f0f1f2;background:#fbfbfb}
.header-quick-nav a{height:39px;display:flex;align-items:center;padding:0 11px;font-size:11.2px;color:#4b5770;white-space:nowrap;border-bottom:2px solid transparent;transition:.13s}
.header-quick-nav a:hover{color:var(--eschool-blue);background:#f2f8fc;border-bottom-color:#94daee}

.header-search-row{grid-column:3;grid-row:2;display:flex;align-items:center;gap:6px;padding:5px 10px;border-top:1px solid #f0f1f2;background:#fbfbfb}
.global-search-wrap{position:relative;display:flex;align-items:center;flex:1;height:30px;border:1px solid #cdd2dd;border-radius:2px;background:#fff;min-width:0}
.global-search-wrap input{height:28px!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:#fff!important;padding:0 9px!important;font-size:11.5px!important;color:#424f6a!important;min-width:0;flex:1}
.search-submit{height:29px;width:34px;border:0;background:var(--eschool-blue);color:#fff;cursor:pointer;font-size:17px;display:grid;place-items:center}
.header-square{width:30px;height:30px;border:1px solid #d6dde4;background:#fff;color:#606d88;cursor:pointer;border-radius:3px;font-size:13px}.header-square:hover{background:#eef6fb;color:var(--eschool-blue)}
.global-search-results{position:absolute;right:0;left:0;top:34px;background:#fff;border:1px solid #cfd5e2;box-shadow:0 10px 30px rgba(38,52,81,.18);z-index:110;padding:4px;max-height:420px;overflow:auto;border-radius:3px}
.global-result{display:grid;grid-template-columns:30px minmax(0,1fr) 16px;gap:7px;align-items:center;padding:7px 8px;color:#475470;border-bottom:1px solid #edf0f3}.global-result:last-child{border-bottom:0}.global-result:hover{background:#eef7fd;color:#178cae}.global-result-icon{width:26px;height:26px;border-radius:3px;background:#eaf0fd;color:#209fc4;display:grid;place-items:center}.global-result-icon svg{width:14px;height:14px;fill:currentColor}.global-result b{font-size:11px}.global-result small{display:block;font-size:9.4px;color:#8b94a6;margin-top:1px}.global-empty{padding:14px;text-align:center;color:#7c869b;font-size:11px}

/* Mega menu -------------------------------------------------------------- */
.mega-menu{position:fixed;z-index:65;top:42px;left:190px;right:300px;pointer-events:none}
.mega-menu[hidden]{display:none}
.mega-card{pointer-events:auto;width:min(960px,100%);background:#fff;border:1px solid #d6dce7;border-top:0;box-shadow:0 14px 30px rgba(32,46,74,.18);border-radius:0 0 5px 5px;overflow:hidden}
.mega-top{height:48px;display:flex;align-items:center;justify-content:space-between;padding:6px 14px;background:#fbfcfd;border-bottom:1px solid #e4e9ee}
.mega-module{display:flex;align-items:center;gap:9px}.mega-module-icon{width:31px;height:31px;border-radius:4px;background:#e9effc;color:var(--eschool-blue);display:grid;place-items:center}.mega-module-icon svg{width:18px;height:18px;fill:currentColor}.mega-module small{font-size:9px;color:#838ca0;display:block;line-height:1}.mega-module h2{margin:3px 0 0;font-size:14px;color:#2c3955}.mega-home{font-size:10.5px;color:#1e97ba;background:#edf2fd;border:1px solid #d3dff8;padding:6px 9px;border-radius:3px;font-weight:650}.mega-home:hover{background:#dfe8fb}
.mega-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 14px 14px}
.mega-group{padding:0 13px 6px;border-right:1px solid #e5e9ed;min-width:0}.mega-group:first-child{padding-left:2px}.mega-group:last-child{border-right:0}
.mega-group-head{display:flex;align-items:center;gap:7px;margin:0 0 8px;padding-bottom:6px;border-bottom:2px solid #e8f1f7}.mega-group-head>span{width:24px;height:24px;background:#e7eefd;color:#209fc4;border-radius:4px;display:grid;place-items:center;font-weight:800}.mega-group-head b{display:block;font-size:12px;color:#20a2c8}.mega-group-head small{display:block;font-size:8.8px;color:#9097a7;margin-top:1px}
.mega-links{display:grid;grid-template-columns:1fr;gap:0}.mega-links.dense{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.mega-links a{display:flex;align-items:flex-start;gap:5px;padding:4px 3px;color:#525f7a;font-size:10.8px;line-height:1.25;border-radius:2px}.mega-links a>span{color:#7686a7}.mega-links a:hover{background:#eef7fd;color:#1994b7}.mega-links a:hover>span{color:#1994b7}

/* Page body -------------------------------------------------------------- */
.eschool-body{min-height:0;display:grid;grid-template-columns:var(--context-w) minmax(0,1fr);background:#fff;transition:grid-template-columns .18s ease}
body.context-hidden .eschool-body{grid-template-columns:0 minmax(0,1fr)}
.context-sidebar{min-width:0;background:#f8f8f8;border-right:1px solid #d7dde3;display:flex;flex-direction:column;overflow:hidden;transition:opacity .15s ease,transform .18s ease}
body.context-hidden .context-sidebar{opacity:0;pointer-events:none;transform:translateX(-20px)}
.context-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:9px 10px 7px;border-bottom:1px solid #e3e7eb;background:#fafafa}.context-head>div{min-width:0}.context-head b{display:block;font-size:12px;color:#2d3f63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-head span{display:block;font-size:9.2px;color:#8b93a4;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-head button{width:23px;height:23px;border:1px solid #d4dce3;border-radius:50%;background:#fff;color:#8690a4;cursor:pointer;font-size:15px;display:grid;place-items:center}.context-head button:hover{color:#20a1c6;border-color:#9fddef}
.context-search{margin:8px 8px 5px;display:flex;align-items:center;background:#fff;border:1px solid #d5dce3;height:31px}.context-search>span{width:29px;text-align:center;color:#818ca2}.context-search input{height:29px!important;border:0!important;box-shadow:none!important;background:transparent!important;font-size:10.5px!important;padding:0 6px 0 0!important}
.context-scroll{overflow:auto;flex:1;padding:2px 0 10px}.context-group{margin:0}.context-group-title{padding:8px 9px 5px;color:#7786a6;font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.06em;border-bottom:1px solid #edf0f2}.context-link{min-height:35px;padding:7px 8px;display:grid;grid-template-columns:minmax(0,1fr) 13px;align-items:center;gap:4px;color:#5c677e;font-size:10.8px;border-bottom:1px solid #e6e9ec;background:#fafafa}.context-link:hover{color:#1791b4;background:#eef7fc}.context-link.active{background:#e4ebfb;color:#1187a9;font-weight:700;border-left:3px solid #22a9d0;padding-left:5px}.context-link i{font-style:normal;color:#9aa4ba;text-align:right;font-size:14px}
.context-foot{height:52px;border-top:1px solid #dfe5e9;background:#f4f5f6;display:flex;align-items:center;gap:8px;padding:8px 11px;color:#64708a}.online-dot{width:8px;height:8px;border-radius:50%;background:#23add5;box-shadow:0 0 0 3px #dfe5f1}.context-foot>span:last-child{display:flex;flex-direction:column}.context-foot b{font-size:9.5px}.context-foot small{font-size:8px;color:#939bad}

.content-shell{min-width:0;display:grid;grid-template-rows:60px minmax(0,1fr);background:#fff;overflow:hidden}
.content-topline{height:60px;display:flex;align-items:center;justify-content:space-between;padding:7px 16px 6px 18px;border-bottom:1px solid #e1e6eb;background:#fff}.content-title-wrap{display:flex;align-items:center;gap:9px;min-width:0}.context-toggle{width:30px;height:30px;border:1px solid #d6dbe6;background:#f8fafb;border-radius:3px;color:#5f6c88;cursor:pointer}.context-toggle:hover{color:#1994b7;background:#edf2fd}.content-title-wrap h1{font-size:18px;font-weight:500;color:#21a6cd;margin:0;line-height:1.15}.breadcrumb{height:auto!important;padding:2px 0 0!important;border:0!important;background:transparent!important;font-size:10.2px!important;color:#818ba0!important;display:flex;gap:5px;align-items:center}.breadcrumb a{color:#6f7b95}.breadcrumb b{font-weight:600;color:#6d778d}
.campus-meta{display:flex;align-items:center;gap:11px;font-size:10.5px}.campus-meta span{color:#197f9d;font-weight:700;background:#eff8ed;border:1px solid #d8dfef;padding:4px 7px;border-radius:3px}.campus-meta b{color:#1a82a0;text-decoration:underline;font-size:11.5px}
.view{overflow:auto;min-width:0;outline:0;padding:14px 16px 30px;background:#fff;scroll-behavior:smooth}

/* Generic operational pages: larger and cleaner ------------------------- */
.page-title-row{margin:0 0 12px}.page-title-row h1{font-size:20px!important;color:#34415b!important;font-weight:600!important}.page-title-row .sub{font-size:12.5px!important;color:#7f889c!important;margin-top:4px}
.card{border:1px solid #d8dde8!important;border-radius:5px!important;box-shadow:0 1px 2px rgba(36,49,77,.04)!important;padding:14px!important;background:#fff!important;margin-bottom:13px!important}.card-title{font-size:15px!important;color:#303f5e!important;font-weight:700!important;margin-bottom:13px!important;padding-bottom:9px!important;border-bottom:1px solid #dfe6eb!important}.card-title .title-icon{width:31px!important;height:31px!important;border-radius:4px!important;background:#e8eefc!important;color:#209fc3!important}.card-title .rule{background:#209fc3!important}
.form-grid{gap:10px 12px!important}.field label{font-size:12.4px!important;color:#404e6b!important;font-weight:650!important;margin-bottom:5px!important}.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],select,textarea{height:38px!important;border:1px solid #bfc6d6!important;border-radius:3px!important;background:#fff!important;padding:0 10px!important;font-size:13px!important;color:#34415d!important}.textarea,textarea{height:74px!important;padding-top:9px!important}.input:focus,.select:focus,select:focus,input:focus,textarea:focus{border-color:#22a9d0!important;box-shadow:0 0 0 2px rgba(35,173,213,.09)!important}.btn{border-radius:4px!important;min-height:36px!important;padding:8px 14px!important;font-size:12.4px!important;font-weight:700!important}.btn-primary{background:#189ec5!important}.btn-green{background:#23add5!important}.btn-dark{background:#626772!important}.btn-soft{background:#edf1f4!important;color:#535f79!important}.btn-outline{background:#fff!important;border:1px solid #c8cedc!important;color:#465472!important}.btn-sm{min-height:30px!important;font-size:11px!important;padding:5px 9px!important}.btn-icon{width:30px!important;height:30px!important;border-radius:50%!important;padding:0!important}.alert{font-size:12.2px!important;border-radius:4px!important;padding:10px 12px!important}.filters{gap:10px!important}.section-label{font-size:13.5px!important;color:#334364!important}.report-meta{font-size:12.4px!important}.related-panel{border-radius:4px!important}.related-panel h3{font-size:14px!important}.related-item{font-size:12px!important;padding:7px 5px!important}.profile-pairs{font-size:12px!important}
.table-wrap{border:1px solid #d3d9e5!important;border-radius:2px!important}.table-wrap table,table{font-size:12px!important}.table-wrap th,.table-wrap td,th,td{padding:7px 8px!important}.table-wrap th,th{background:#d5dcea!important;color:#32405d!important;font-weight:700!important}.table-wrap tbody tr:hover,tbody tr:hover{background:#eef7fc!important}.status{font-size:10.5px!important}

/* Workspace -------------------------------------------------------------- */
.eschool-workspace{max-width:none!important;border:0!important;box-shadow:none!important;padding:0!important;background:#fff!important}.workspace-heading{min-height:86px;border:1px solid #d8deec;background:#f3f9fd;display:flex;align-items:center;gap:13px;padding:13px 16px;margin-bottom:12px;border-radius:4px}.workspace-heading-icon{width:48px;height:48px;border-radius:5px;background:#23add5;color:#fff;display:grid;place-items:center;flex:0 0 auto}.workspace-heading-icon svg{width:27px;height:27px;fill:currentColor}.workspace-heading span{font-size:9.5px;color:#77839c;text-transform:uppercase;font-weight:700;letter-spacing:.05em}.workspace-heading h1{margin:2px 0 0;color:#187a96;font-size:21px}.workspace-heading p{margin:4px 0 0;color:#707c95;font-size:11.5px}.workspace-search{height:39px!important;border:1px solid #cfd5e2!important;border-radius:3px!important;background:#fff!important;margin-bottom:12px!important}.workspace-search input{height:37px!important;font-size:12px!important}.workspace-cols{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.workspace-card{padding:0!important;border-radius:3px!important;overflow:hidden!important}.eschool-widget-head{height:39px;background:#23add5;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-bottom:1px solid #188cad}.eschool-widget-head h2{font-size:13px;margin:0;color:#fff}.eschool-widget-head span{font-size:9.5px;color:#eaf1ff}.workspace-card-list{padding:6px 8px 10px}.workspace-item{min-height:37px!important;padding:7px 6px!important;border-bottom:1px solid #edf0f3!important;color:#53607b!important;font-size:12px!important}.workspace-item:hover{background:#eef7fd!important;color:#1992b5!important}.workspace-bullet{color:#23afd8!important}.workspace-arrow{color:#9aa4ba!important}

/* Dashboard -------------------------------------------------------------- */
.dashboard-school{max-width:1500px;margin:0 auto}.campus-notice{background:#e5eaf5;border:1px solid #d0d8ea;color:#465676;padding:10px 12px;margin-bottom:12px;font-size:11.5px;line-height:1.55}.campus-notice b{color:#187590}.dashboard-school-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.school-widget{border:1px solid #7bd1ea;background:#fff;min-height:235px;overflow:hidden}.school-widget.wide{grid-column:1/-1}.school-widget-head{height:34px;background:#23add5;color:#071229;display:flex;align-items:center;justify-content:space-between;padding:0 9px;border-bottom:1px solid #1c8dae}.school-widget-head h2{margin:0;font-size:12px;font-weight:650;color:#071229}.school-widget-head h2::before{content:'◉ ';font-size:10px}.school-widget-tools{display:flex;gap:5px;color:#fff;font-size:11px}.school-widget-body{padding:10px;min-height:190px}.school-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.school-kpi{border:1px solid #dce3e9;background:#fafcfd;padding:10px}.school-kpi b{display:block;font-size:22px;color:#1e98bb;line-height:1}.school-kpi span{display:block;margin-top:5px;color:#657189;font-size:10px}.school-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border-top:1px solid #d9dee3}.school-summary-item{padding:9px 6px;border-right:1px solid #d9dee3;border-bottom:1px solid #d9dee3}.school-summary-item:nth-child(even){border-right:0}.school-summary-item span{display:block;font-size:9.5px;color:#5b6882}.school-summary-item b{display:block;margin-top:2px;font-size:17px;font-weight:500;color:#374460}.school-program-list{display:flex;flex-direction:column;gap:9px}.school-program-row{display:grid;grid-template-columns:54px minmax(0,1fr) 30px;gap:8px;align-items:center}.school-program-row b{font-size:10.5px}.school-progress{height:8px;background:#edf1f4;border-radius:1px;overflow:hidden}.school-progress i{display:block;height:100%;background:#23add5}.school-program-row span{text-align:right;font-size:10px;color:#707b92}.school-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.school-action{border:1px solid #dce4e9;background:#f9fbfc;color:#4e5b75;padding:9px 7px;min-height:58px;display:flex;align-items:center;gap:8px}.school-action:hover{background:#eef7fd;color:#1892b5;border-color:#b9c9eb}.school-action-icon{width:29px;height:29px;background:#dfe8fb;color:#23add5;display:grid;place-items:center;border-radius:3px;flex:0 0 auto}.school-action b{font-size:10.7px;display:block}.school-action small{font-size:8.7px;color:#8c94a5;display:block;margin-top:2px}.activity-list.school .activity-row{grid-template-columns:42px 10px 1fr!important;padding:7px 0!important}.activity-list.school .activity-row b{font-size:10.5px!important}.activity-list.school .activity-row small{font-size:9px!important}.dashboard-campus-info{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;font-size:10.5px}.dashboard-campus-info b{color:#505e7a}.dashboard-campus-info span{color:#758096}

/* Dark theme ------------------------------------------------------------- */
body.theme-dark{--eschool-bg:#111722;--eschool-text:#d4dae6;--eschool-border:#343c4e;--eschool-border-soft:#283041;background:#111722;color:#d4dae6}
body.theme-dark .eschool-header,body.theme-dark .top-module-nav,body.theme-dark .header-utility,body.theme-dark .header-quick-nav,body.theme-dark .header-search-row{background:#171e2c;border-color:#2f3748}
body.theme-dark .eschool-brand,body.theme-dark .content-topline,body.theme-dark .content-shell,body.theme-dark .view,body.theme-dark .mega-card,body.theme-dark .mega-top,body.theme-dark .school-widget,body.theme-dark .card{background:#141b29!important;border-color:#333c4e!important;color:#d6dce8!important}
body.theme-dark .top-module{color:#b8c0d0}.top-module.active body.theme-dark{background:#1f293d}
body.theme-dark .top-module:hover,body.theme-dark .top-module[aria-expanded="true"],body.theme-dark .top-module.active{background:#202838;color:#71cde8;border-color:#333c4e}
body.theme-dark .context-sidebar,body.theme-dark .context-head,body.theme-dark .context-link,body.theme-dark .context-foot{background:#181f2d;border-color:#2e3647;color:#bdc4d3}.theme-dark .context-link:hover,.theme-dark .context-link.active{background:#232f47;color:#7bd4ee}.theme-dark .context-group-title{border-color:#293141;color:#828ea8}.theme-dark .global-search-wrap,.theme-dark .global-search-wrap input,.theme-dark .context-search,.theme-dark .context-search input{background:#111723!important;color:#d7dde8!important;border-color:#343d50!important}.theme-dark .mega-group{border-color:#2e3647}.theme-dark .mega-group-head{border-color:#2c364b}.theme-dark .mega-links a{color:#b8c0d1}.theme-dark .mega-links a:hover{background:#222f4a;color:#7cd5ef}.theme-dark .school-widget-body,.theme-dark .school-kpi,.theme-dark .school-action{background:#161d2d;border-color:#313a4c}.theme-dark .table-wrap,.theme-dark table,.theme-dark input,.theme-dark select,.theme-dark textarea{background:#141b29!important;color:#d7dde8!important;border-color:#404a5e!important}.theme-dark th{background:#263046!important;color:#d6dce8!important}.theme-dark tbody tr:hover{background:#202b43!important}

/* Responsive ------------------------------------------------------------- */
@media (max-width:1450px){
  :root{--context-w:190px}
  .eschool-header{grid-template-columns:180px minmax(620px,1fr) 285px}.mega-menu{left:180px;right:280px}.top-module{padding:0 7px;font-size:11.5px}.header-quick-nav a{padding:0 8px;font-size:10.5px}.eschool-brand{padding-left:8px}.eschool-brand-copy strong{font-size:12.5px}.eschool-brand-copy small{font-size:8px}
}
@media (max-width:1220px){
  .eschool-app{min-width:980px}.eschool-header{grid-template-columns:150px minmax(570px,1fr) 260px}.eschool-brand-copy{display:none}.eschool-brand{justify-content:center}.mega-menu{left:150px;right:255px}.top-module-icon{display:none}.top-module{padding:0 7px;font-size:10.8px}.header-quick-nav a:nth-child(n+6){display:none}.workspace-cols{grid-template-columns:1fr 1fr!important}.dashboard-school-grid{grid-template-columns:1fr}.school-widget.wide{grid-column:auto}
}
@media (max-width:1000px){
  .eschool-app{min-width:900px}.eschool-header{grid-template-columns:100px minmax(540px,1fr) 260px}.eschool-brand img{width:53px}.mega-menu{left:100px;right:250px}.top-module{font-size:10.2px;padding:0 5px}.context-sidebar{position:fixed;top:var(--eschool-head-h);bottom:0;left:0;width:210px;z-index:45;box-shadow:7px 0 22px rgba(32,44,68,.16)}body.context-hidden .context-sidebar{transform:translateX(-100%)}.eschool-body,body.context-hidden .eschool-body{grid-template-columns:1fr}.content-shell{grid-column:1}.school-kpi-row{grid-template-columns:repeat(2,1fr)}
}

@media print{
  body.eschool-layout{overflow:visible!important;background:#fff!important}.eschool-header,.context-sidebar,.content-topline,.mega-menu,.no-print,.action-float{display:none!important}.eschool-app,.eschool-body,.content-shell{display:block!important;height:auto!important;min-width:0!important}.view{overflow:visible!important;padding:0!important}.card,.school-widget{border:0!important;box-shadow:none!important}.print-only{display:block!important}.table-wrap{overflow:visible!important;border:0!important}table{font-size:9px!important}
}

/* Final interface refinements */
@media (min-width:1451px){
  .eschool-header{grid-template-columns:220px minmax(720px,1fr) 310px}
  .mega-menu{left:220px;right:300px;top:82px}
  .eschool-brand-copy strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.08;font-size:13.2px}
  .eschool-brand-copy small{white-space:normal;line-height:1.08}
}
@media (max-width:1450px) and (min-width:1221px){.mega-menu{top:82px}}
@media (max-width:1220px){.mega-menu{top:82px}}
.school-widget.wide{min-height:0}.school-widget.wide .school-widget-body{min-height:0;padding:10px}


/* ========================================================================
   READABILITY PASS — Dashboard + navigation refinement
   Larger, clearer typography while preserving the e-School inspired layout.
   ======================================================================== */
body.eschool-layout{
  font-size:13px;
  color:#313e5a;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Main navigation: larger click targets and clearer text */
.top-module{font-size:13.2px;font-weight:650;padding:0 11px;letter-spacing:.01em}
.header-quick-nav a{font-size:12px;font-weight:600;padding:0 12px}
.eschoool-brand-copy strong,.eschool-brand-copy strong{font-size:14.5px}
.eschoool-brand-copy small,.eschool-brand-copy small{font-size:9.8px}
.utility-link{font-size:11.8px}.self-service{font-size:10.8px}
.global-search-wrap input{font-size:12.5px!important}

/* Left quick/context menu */
.context-head b{font-size:13.5px}.context-head span{font-size:10.3px}
.context-search input{font-size:11.7px!important}
.context-group-title{font-size:9.8px;padding-top:9px}
.context-link{min-height:39px;font-size:12.1px;padding:8px 9px;line-height:1.2}
.context-foot b{font-size:10.8px}.context-foot small{font-size:9px}

/* Page top information */
.content-title-wrap h1{font-size:20px;font-weight:650;color:#1f99bc}
.breadcrumb{font-size:11.2px!important}
.campus-meta{font-size:11.5px}.campus-meta b{font-size:12.4px}.campus-meta span{font-size:11.5px}

/* Dashboard title */
.dashboard-school{max-width:1560px}
.dashboard-heading{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  border:1px solid #d6def0;background:linear-gradient(90deg,#f4faff 0%,#ffffff 68%);
  padding:16px 18px;margin-bottom:12px;border-radius:6px;
}
.dashboard-heading-copy{min-width:0}
.dashboard-eyebrow{display:block;color:#23add5;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.dashboard-heading h1{margin:0;color:#233b6e;font-size:25px;line-height:1.15;font-weight:750;letter-spacing:-.01em}
.dashboard-heading p{margin:6px 0 0;color:#6c7892;font-size:13px;line-height:1.45}
.dashboard-heading-meta{display:flex;gap:8px;flex:0 0 auto}
.dashboard-heading-meta>span{min-width:135px;border:1px solid #dce2ef;background:#fff;border-radius:5px;padding:8px 10px;box-shadow:0 1px 2px rgba(30,46,80,.04)}
.dashboard-heading-meta small{display:block;font-size:9.7px;color:#8b94a6;margin-bottom:3px}
.dashboard-heading-meta b{display:block;font-size:12.4px;color:#187792;white-space:nowrap}

/* Notice is informative, not tiny */
.campus-notice{font-size:13px;line-height:1.55;padding:11px 13px;border-radius:4px}

/* Dashboard cards */
.dashboard-school-grid{gap:14px}
.school-widget{border-color:#67cae6;border-radius:5px;min-height:245px;box-shadow:0 1px 3px rgba(31,53,99,.05)}
.school-widget-head{height:41px;padding:0 12px;background:#23add5;color:#fff}
.school-widget-head h2{font-size:14.5px;font-weight:750;color:#fff;letter-spacing:.005em}
.school-widget-head h2::before{font-size:11px;color:#fff}
.school-widget-tools{font-size:12.5px;color:#f5fbff;letter-spacing:.04em}
.school-widget-body{padding:13px;min-height:195px}

/* Campus overview KPIs */
.school-kpi-row{gap:10px}
.school-kpi{padding:14px 13px;border-color:#d8deeb;border-radius:4px;background:#fbfdff}
.school-kpi b{font-size:28px;font-weight:760;color:#1e97ba;line-height:1}
.school-kpi span{margin-top:7px;color:#52607d;font-size:12.2px;font-weight:600;line-height:1.25}

/* Summary blocks */
.school-summary-item{padding:12px 9px;min-height:66px}
.school-summary-item span{font-size:11.7px;color:#52607d;font-weight:600;line-height:1.25}
.school-summary-item b{margin-top:4px;font-size:21px;font-weight:650;color:#2e3f63}

/* Program list */
.school-program-list{gap:12px}
.school-program-row{grid-template-columns:74px minmax(0,1fr) 40px;gap:10px}
.school-program-row b{font-size:12.2px;color:#404e6b;font-weight:700}
.school-program-row span{font-size:11.7px;color:#596682;font-weight:700}
.school-progress{height:10px;border-radius:3px;background:#eaf0f5}.school-progress i{border-radius:3px}

/* Quick actions: easier to scan and click */
.school-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.school-action{min-height:67px;padding:10px 9px;border-radius:4px}
.school-action-icon{width:34px;height:34px;border-radius:4px;font-size:11.5px;font-weight:800}
.school-action b{font-size:12.1px;line-height:1.2}
.school-action small{font-size:10px;line-height:1.2;margin-top:3px}

/* Activity + campus details */
.activity-list.school .activity-row{grid-template-columns:52px 10px 1fr!important;padding:9px 0!important}
.activity-list.school .activity-row b{font-size:12px!important;line-height:1.25}
.activity-list.school .activity-row small{font-size:10.5px!important;margin-top:2px}
.activity-time{font-size:10.5px!important;color:#667696!important;font-weight:700}
.dashboard-campus-info{grid-template-columns:130px minmax(0,1fr);gap:9px 12px;font-size:12px;line-height:1.3}
.dashboard-campus-info b{font-size:11.8px;color:#425272}.dashboard-campus-info span{font-size:12px;color:#64708a}

/* Operational pages: slightly stronger text contrast */
.page-title-row h1{font-weight:700!important}.page-title-row .sub{font-size:13px!important}
.card-title{font-size:15.5px!important}
.field label{font-size:12.7px!important}
.table-wrap table,table{font-size:12.2px!important}

/* Dark mode support for new dashboard header */
body.theme-dark .dashboard-heading{background:#162035;border-color:#33415d}
body.theme-dark .dashboard-heading h1{color:#dce5f7}
body.theme-dark .dashboard-heading p,body.theme-dark .dashboard-eyebrow{color:#8dd7ec}
body.theme-dark .dashboard-heading-meta>span{background:#141b29;border-color:#343f56}
body.theme-dark .dashboard-heading-meta b{color:#cfd9ef}
body.theme-dark .school-widget-head{background:#1b88a8}
body.theme-dark .school-kpi span,body.theme-dark .school-summary-item span,body.theme-dark .school-program-row b,body.theme-dark .school-program-row span,body.theme-dark .dashboard-campus-info b,body.theme-dark .dashboard-campus-info span{color:#c2cada}

@media (max-width:1450px){
  .top-module{font-size:12.4px;padding:0 8px}
  .header-quick-nav a{font-size:11.3px;padding:0 9px}
  .dashboard-heading h1{font-size:23px}
  .dashboard-heading p{font-size:12.3px}
  .school-kpi b{font-size:26px}
}
@media (max-width:1220px){
  .dashboard-heading{align-items:flex-start}
  .dashboard-heading-meta{flex-direction:column}
  .dashboard-heading-meta>span{min-width:150px}
  .school-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px){
  .dashboard-heading{flex-direction:column}
  .dashboard-heading-meta{flex-direction:row;width:100%}
  .dashboard-heading-meta>span{flex:1}
}


/* ========================================================================
   FINAL DESKTOP POLISH — 2026-10-16
   Requested behavior:
   - only the e-School style top navigation remains fixed/sticky
   - duplicated dashboard caption/overview/notice blocks are removed
   - navigation, mega-menu, dashboard and quick-menu typography share
     a clearer, larger visual ratio
   - operational forms/tables retain their established readable sizes
   ======================================================================== */
:root{
  --eschool-head-h:94px;
  --context-w:228px;
  --ui-nav-font:14px;
  --ui-subnav-font:12.8px;
  --ui-menu-font:13px;
  --ui-widget-title:15.5px;
}

/* Top header is the only persistent top chrome. */
.eschool-header{
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  grid-template-columns:235px minmax(760px,1fr) 330px!important;
  grid-template-rows:48px 46px!important;
  min-height:var(--eschool-head-h)!important;
  background:#fbfbfb!important;
  border-bottom:1px solid #cfd5e1!important;
  box-shadow:0 2px 8px rgba(29,45,78,.07)!important;
}
.eschool-brand{padding:7px 13px!important;background:#fff!important}
.eschool-brand img{width:58px!important;height:58px!important}
.eschool-brand-copy strong{
  font-size:15.8px!important;line-height:1.08!important;font-weight:800!important;
  color:#1287a9!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
}
.eschool-brand-copy small{font-size:10.4px!important;line-height:1.2!important;margin-top:4px!important;color:#7b8497!important}

.top-module-nav{height:48px!important;padding-left:6px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
.top-module-nav::-webkit-scrollbar{display:none}
.top-module{
  height:48px!important;padding:0 10px!important;font-size:var(--ui-nav-font)!important;
  line-height:1!important;font-weight:650!important;gap:7px!important;letter-spacing:0!important;
}
.top-module-icon{width:18px!important;height:18px!important}
.top-module-icon svg{width:17px!important;height:17px!important}
.top-module i{font-size:10px!important;margin-left:2px!important}
.top-module.active{box-shadow:inset 0 -4px 0 var(--eschool-blue)!important;font-weight:760!important}

.header-utility{height:48px!important;padding:0 12px!important;gap:9px!important}
.utility-link{font-size:12.8px!important;height:30px!important}
.utility-link span{width:18px!important;height:18px!important;font-size:11px!important}
.self-service{height:29px!important;font-size:11.6px!important;border-radius:15px!important;padding:0 10px!important}
.utility-icon{width:31px!important;height:31px!important;font-size:16px!important}
.utility-avatar{width:33px!important;height:33px!important;font-size:10px!important}

.header-quick-nav{height:46px!important;padding:0 7px!important;background:#fcfcfc!important;overflow-x:auto!important;scrollbar-width:none}
.header-quick-nav::-webkit-scrollbar{display:none}
.header-quick-nav a{
  height:45px!important;padding:0 12px!important;font-size:var(--ui-subnav-font)!important;
  font-weight:600!important;color:#4b5874!important;
}
.header-quick-nav a:hover{background:#eef7fd!important;color:#1691b5!important}
.header-search-row{height:46px!important;padding:7px 10px!important;background:#fcfcfc!important}
.global-search-wrap{height:32px!important;border-radius:3px!important}
.global-search-wrap input{height:30px!important;font-size:12.7px!important;padding:0 10px!important}
.search-submit{height:31px!important;width:36px!important}
.header-square{width:32px!important;height:32px!important}

/* Remove the old duplicated page-level header strip entirely. */
.content-topline{display:none!important}
.content-shell{grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
.view{padding:18px 20px 34px!important;background:#fff!important}

/* Mega menu: larger type and better spacing; still compact enough to scan. */
.mega-menu{top:94px!important;left:235px!important;right:330px!important;z-index:85!important}
.mega-card{width:min(1120px,100%)!important;border-color:#ccd3e2!important;box-shadow:0 18px 42px rgba(31,46,76,.20)!important;border-radius:0 0 7px 7px!important}
.mega-top{height:56px!important;padding:8px 16px!important}
.mega-module-icon{width:36px!important;height:36px!important}
.mega-module-icon svg{width:20px!important;height:20px!important}
.mega-module small{font-size:10.3px!important}
.mega-module h2{font-size:16px!important;margin-top:4px!important}
.mega-home{font-size:11.8px!important;padding:7px 11px!important}
.mega-grid{padding:15px 17px 17px!important}
.mega-group{padding:0 16px 8px!important}
.mega-group:first-child{padding-left:3px!important}
.mega-group-head{gap:9px!important;margin-bottom:10px!important;padding-bottom:8px!important}
.mega-group-head>span{width:29px!important;height:29px!important;font-size:14px!important}
.mega-group-head b{font-size:13.8px!important;line-height:1.15!important}
.mega-group-head small{font-size:9.8px!important;line-height:1.2!important;margin-top:2px!important}
.mega-links.dense{column-gap:18px!important}
.mega-links a{
  padding:6px 5px!important;gap:7px!important;font-size:12.7px!important;
  line-height:1.3!important;border-radius:3px!important;color:#4d5b77!important;
}
.mega-links a>span{font-size:11px!important;margin-top:1px!important}

/* Left module quick menu — visible but secondary to the top navigation. */
.context-sidebar{background:#f8f9fa!important}
.context-head{height:68px!important;padding:11px 12px 9px!important;background:#fafafa!important}
.context-head b{font-size:14.4px!important;line-height:1.15!important;color:#27395f!important}
.context-head span{font-size:10.8px!important;margin-top:4px!important}
.context-head button{width:26px!important;height:26px!important;font-size:16px!important}
.context-search{height:35px!important;margin:9px 10px 7px!important}
.context-search>span{width:31px!important;font-size:14px!important}
.context-search input{height:33px!important;font-size:12.2px!important}
.context-group-title{font-size:10.8px!important;font-weight:800!important;letter-spacing:.045em!important;padding:11px 11px 6px!important}
.context-link{min-height:42px!important;padding:9px 11px!important;font-size:13px!important;line-height:1.25!important;color:#505e7b!important}
.context-link i{font-size:16px!important}
.context-link.active{font-weight:700!important;color:#1994b7!important;background:#e9effd!important}
.context-foot b{font-size:11.8px!important}.context-foot small{font-size:9.8px!important}

/* Module home/workspace typography. */
.workspace-heading{padding:15px 17px!important;margin-bottom:14px!important;gap:14px!important}
.workspace-heading-icon{width:52px!important;height:52px!important}
.workspace-heading span{font-size:10.5px!important}
.workspace-heading h1{font-size:23px!important;line-height:1.15!important}
.workspace-heading p{font-size:12.6px!important;line-height:1.45!important}
.workspace-search{height:43px!important;margin-bottom:14px!important}
.workspace-search input{height:41px!important;font-size:12.8px!important}
.workspace-cols{gap:14px!important}
.eschool-widget-head{height:43px!important;padding:0 13px!important}
.eschool-widget-head h2{font-size:14.5px!important;font-weight:750!important}
.eschool-widget-head span{font-size:10.5px!important}
.workspace-card-list{padding:8px 10px 12px!important}
.workspace-item{min-height:41px!important;padding:8px 7px!important;font-size:13px!important;line-height:1.25!important}

/* Dashboard starts directly with useful data; no duplicate title/notice block. */
.dashboard-school{max-width:1580px!important;margin:0 auto!important}
.dashboard-school-grid{gap:15px!important}
.school-widget{border-color:#68cae6!important;border-radius:6px!important;min-height:250px!important;box-shadow:0 2px 7px rgba(30,52,96,.06)!important}
.school-widget.wide{min-height:0!important}
.school-widget-head{height:43px!important;padding:0 13px!important;background:#23add5!important}
.school-widget-head h2{font-size:var(--ui-widget-title)!important;font-weight:750!important;color:#fff!important}
.school-widget-head h2::before{font-size:11px!important;color:#fff!important}
.school-widget-tools{font-size:12.8px!important}
.school-widget-body{padding:14px!important;min-height:200px!important}
.school-widget.wide .school-widget-body{min-height:0!important;padding:14px!important}
.school-kpi-row{gap:11px!important}
.school-kpi{padding:15px 14px!important;border-radius:5px!important;background:#fbfdff!important}
.school-kpi b{font-size:30px!important;font-weight:760!important;line-height:1!important}
.school-kpi span{font-size:12.8px!important;font-weight:600!important;line-height:1.28!important;margin-top:8px!important}
.school-summary-item{padding:13px 10px!important;min-height:70px!important}
.school-summary-item span{font-size:12.3px!important;font-weight:600!important;line-height:1.25!important}
.school-summary-item b{font-size:22px!important;font-weight:650!important;margin-top:5px!important}
.school-program-list{gap:13px!important}
.school-program-row{grid-template-columns:82px minmax(0,1fr) 42px!important;gap:11px!important}
.school-program-row b{font-size:12.7px!important;font-weight:700!important}
.school-program-row span{font-size:12px!important;font-weight:700!important}
.school-progress{height:10px!important;border-radius:3px!important}
.school-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.school-action{min-height:70px!important;padding:11px 10px!important;border-radius:5px!important}
.school-action-icon{width:36px!important;height:36px!important;font-size:11.8px!important;font-weight:800!important}
.school-action b{font-size:12.8px!important;line-height:1.2!important}
.school-action small{font-size:10.4px!important;line-height:1.25!important;margin-top:3px!important}
.activity-list.school .activity-row{grid-template-columns:55px 10px 1fr!important;padding:10px 0!important}
.activity-list.school .activity-row b{font-size:12.5px!important;line-height:1.25!important}
.activity-list.school .activity-row small{font-size:10.7px!important;line-height:1.25!important}
.activity-time{font-size:10.8px!important}
.dashboard-campus-info{grid-template-columns:138px minmax(0,1fr)!important;gap:10px 13px!important;font-size:12.4px!important;line-height:1.35!important}
.dashboard-campus-info b,.dashboard-campus-info span{font-size:12.3px!important}

/* Operational pages: keep font size, improve visual alignment and spacing. */
.page-title-row{margin:0 0 14px!important;padding:2px 1px 10px!important;border-bottom:1px solid #e7edf2!important;align-items:center!important}
.page-title-row h1{font-size:20px!important;font-weight:700!important;color:#314161!important}
.page-title-row .sub{font-size:12.8px!important;color:#7c8599!important;line-height:1.35!important}
.card{border-color:#d3dae7!important;border-radius:6px!important;box-shadow:0 1px 4px rgba(29,46,80,.045)!important;padding:15px!important;margin-bottom:14px!important}
.card-title{font-size:16px!important;color:#304061!important;margin-bottom:14px!important;padding-bottom:10px!important}
.card-title .title-icon{width:33px!important;height:33px!important}
.form-grid{gap:11px 13px!important}
.form-actions{margin-top:14px!important;gap:9px!important}
.table-wrap{border-color:#d5dbe7!important;border-radius:5px!important}
thead th{background:#dfe4ef!important;color:#344260!important;font-weight:750!important}
tbody tr:nth-child(even){background:#fbfcfd!important}
tbody tr:hover{background:#eef7fd!important}

/* Only header remains top-persistent; page-level chrome is ordinary content. */
.related-panel{top:10px!important}

body.theme-dark .eschool-header{background:#171e2c!important;border-color:#2f3748!important}
body.theme-dark .eschool-brand{background:#141b29!important}
body.theme-dark .header-quick-nav,body.theme-dark .header-search-row{background:#171e2c!important}
body.theme-dark .context-sidebar{background:#181f2d!important}
body.theme-dark .school-widget-head{background:#1c8dae!important}

@media (max-width:1450px){
  :root{--context-w:205px;--ui-nav-font:13px;--ui-subnav-font:11.8px;--ui-menu-font:12.3px}
  .eschool-header{grid-template-columns:200px minmax(650px,1fr) 295px!important}
  .mega-menu{left:200px!important;right:295px!important;top:94px!important}
  .eschool-brand-copy strong{font-size:14.1px!important}
  .eschool-brand-copy small{font-size:9.5px!important}
  .top-module{font-size:13px!important;padding:0 7px!important}
  .header-quick-nav a{font-size:11.8px!important;padding:0 9px!important}
  .context-link{font-size:12.3px!important}
}
@media (max-width:1220px){
  .eschool-header{grid-template-columns:150px minmax(600px,1fr) 270px!important}
  .mega-menu{left:150px!important;right:270px!important;top:94px!important}
  .eschool-brand-copy{display:none!important}.eschool-brand{justify-content:center!important}
  .top-module-icon{display:none!important}.top-module{font-size:12.5px!important;padding:0 7px!important}
  .header-quick-nav a:nth-child(n+6){display:none!important}
  .dashboard-school-grid{grid-template-columns:1fr!important}.school-widget.wide{grid-column:auto!important}
}
@media (max-width:1000px){
  .eschool-app{min-width:900px!important}
  .eschool-header{grid-template-columns:100px minmax(560px,1fr) 260px!important}
  .mega-menu{left:100px!important;right:260px!important;top:94px!important}
  .top-module{font-size:12px!important;padding:0 6px!important}
  .context-sidebar{top:var(--eschool-head-h)!important;width:220px!important}
  .school-kpi-row{grid-template-columns:repeat(2,1fr)!important}
}

@media print{
  .eschool-header,.context-sidebar,.mega-menu{display:none!important}
  .content-shell{display:block!important}
  .view{padding:0!important;overflow:visible!important}
}

/* ========================================================================
   COLLAPSIBLE LEFT MODULE RAIL — 2026-10-16
   - the icon column always stays visible on the left
   - it starts collapsed (icons only)
   - Expand reveals the module names
   - choosing a module opens its Create / Setup / Reports context menu to the
     right of the icon rail; that submenu can be closed independently
   - the e-School top header remains the only top-sticky navigation
   ======================================================================== */
:root{
  --module-rail-collapsed:78px;
  --module-rail-expanded:218px;
  --module-rail-w:var(--module-rail-collapsed);
  --context-w:244px;
}
body.rail-expanded{--module-rail-w:var(--module-rail-expanded)}

/* Three-column application body: icon rail | contextual submenu | page */
.eschool-body{
  grid-template-columns:var(--module-rail-w) var(--context-w) minmax(0,1fr)!important;
  transition:grid-template-columns .2s ease!important;
  min-width:0!important;
}
body.context-hidden .eschool-body{
  grid-template-columns:var(--module-rail-w) 0 minmax(0,1fr)!important;
}

.module-rail{
  grid-column:1;
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#f7f9fb;
  border-right:1px solid #d7dde8;
  box-shadow:1px 0 0 rgba(255,255,255,.75) inset;
  z-index:34;
}
.module-rail-top{
  flex:0 0 58px;
  display:flex;
  align-items:center;
  padding:8px 9px;
  border-bottom:1px solid #e0e6ec;
  background:#fbfcfd;
}
.module-rail-expand{
  width:100%;
  height:40px;
  border:1px solid #d4dae7;
  border-radius:5px;
  background:#fff;
  color:#505e7a;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:0 15px;
  cursor:pointer;
  font:inherit;
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.module-rail-expand:hover{background:#eef7fd;border-color:#b8c9ec;color:#1994b7;box-shadow:0 2px 7px rgba(24,120,148,.08)}
.module-rail-expand .hamburger{font-size:20px;line-height:1;width:26px;text-align:center;flex:0 0 26px}
.module-rail-scroll{min-height:0;overflow:auto;padding:7px 7px 10px;scrollbar-width:thin;scrollbar-color:#c5ccda transparent}
.module-rail-item{
  width:100%;min-height:57px;
  border:0;border-radius:5px;background:transparent;
  display:flex;align-items:center;gap:12px;
  padding:7px 14px;
  color:#525f7b;text-decoration:none;
  cursor:pointer;font:inherit;text-align:left;
  position:relative;white-space:nowrap;
  transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.module-rail-item:hover{background:#eaf0fb;color:#1994b7}
.module-rail-item.active{background:#169fc6;color:#fff;box-shadow:0 3px 10px rgba(20,133,166,.18)}
.module-rail-icon{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  color:#1499bf;
}
.module-rail-icon svg{width:25px;height:25px;fill:currentColor}
.module-rail-item.active .module-rail-icon{color:#fff}
.module-rail-label{
  min-width:0;
  opacity:0;
  transform:translateX(-4px);
  pointer-events:none;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:opacity .12s ease,transform .16s ease;
  font-size:13.4px;
  font-weight:700;
  line-height:1.15;
}
.module-rail-caret{margin-left:auto;opacity:0;font-size:18px;line-height:1;color:currentColor;transition:opacity .12s ease}
body.rail-expanded .module-rail-label,body.rail-expanded .module-rail-caret{opacity:1;transform:none;pointer-events:auto}
body:not(.rail-expanded) .module-rail-item,body:not(.rail-expanded) .module-rail-expand{justify-content:center;padding-left:7px;padding-right:7px;gap:0}
body:not(.rail-expanded) .module-rail-item .module-rail-icon{width:42px;height:42px;flex-basis:42px}
body:not(.rail-expanded) .module-rail-item .module-rail-icon svg{width:27px;height:27px}
body:not(.rail-expanded) .module-rail-expand .hamburger{width:30px;flex-basis:30px}
.module-rail-bottom{
  flex:0 0 56px;
  display:flex;align-items:center;gap:11px;
  padding:8px 16px;
  border-top:1px solid #dfe6ec;
  background:#f3f6f8;
  color:#64708a;
  overflow:hidden;
}
.rail-status-dot{width:10px;height:10px;border-radius:50%;background:#23add4;box-shadow:0 0 0 4px #dde4f2;flex:0 0 10px}
.module-rail-bottom .module-rail-label{display:flex;flex-direction:column;gap:2px;font-size:10.8px;font-weight:600}
.module-rail-bottom b{font-size:11.4px;color:#404e6c}.module-rail-bottom small{font-size:9.5px;color:#8c95a7}

/* The existing contextual submenu now lives to the right of the module rail. */
.context-sidebar{grid-column:2!important;min-width:0!important;z-index:33!important;transition:opacity .15s ease,transform .18s ease!important}
body.context-hidden .context-sidebar{opacity:0!important;pointer-events:none!important;transform:translateX(-12px)!important}
.content-shell{grid-column:3!important;min-width:0!important}
body.context-hidden .content-shell{grid-column:3!important}

/* Keep index/dashboard and operational pages visually balanced when the rail is present. */
.view{padding-left:20px!important;padding-right:20px!important}
.dashboard-school{max-width:1600px!important}

/* Dark mode for left rail. */
body.theme-dark .module-rail{background:#171e2c;border-color:#2f3748}
body.theme-dark .module-rail-top{background:#181f2e;border-color:#2f3748}
body.theme-dark .module-rail-expand{background:#141b29;border-color:#363f53;color:#b8c1d4}
body.theme-dark .module-rail-expand:hover{background:#202b43;color:#77d3ee;border-color:#187a96}
body.theme-dark .module-rail-item{color:#b8c0d1}
body.theme-dark .module-rail-item:hover{background:#202b43;color:#7bd4ee}
body.theme-dark .module-rail-item.active{background:#1991b3;color:#fff}
body.theme-dark .module-rail-bottom{background:#141b29;border-color:#2f3748}
body.theme-dark .module-rail-bottom b{color:#c8cfdd}

@media (max-width:1450px){
  :root{--module-rail-collapsed:74px;--module-rail-expanded:205px;--context-w:225px}
  .module-rail-item{min-height:54px;padding-left:12px;padding-right:12px}
  .module-rail-label{font-size:12.8px}
}
@media (max-width:1100px){
  :root{--module-rail-collapsed:70px;--module-rail-expanded:190px;--context-w:220px}
  .module-rail-item{min-height:52px}
  .module-rail-icon{width:31px;height:31px;flex-basis:31px}
  .module-rail-icon svg{width:23px;height:23px}
  .context-sidebar{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;width:auto!important;box-shadow:none!important}
  .eschool-body,body.context-hidden .eschool-body{min-width:0!important}
}

@media print{
  .module-rail{display:none!important}
  .eschool-body,body.context-hidden .eschool-body{display:block!important}
  .content-shell,body.context-hidden .content-shell{display:block!important;grid-column:auto!important}
}

/* ========================================================================
   FINAL VISUAL PASS — 2026-10-16
   User palette: #0b87ba + #e5463a
   Goals:
   - remove dark-blue accents
   - hide Help/Self Service/Quick Search area on Dashboard only
   - enlarge dashboard submenu/navigation type
   - tighten line-height across operational pages
   - keep every existing route and workflow unchanged
   ======================================================================== */
:root{
  --brand:#0b87ba;
  --brand-soft:#F2F3FA;
  --brand-line:#d9dfed;
  --accent:#e5463a;
  --accent-soft:#FFF1F2;
  --text-main:#3D3F46;
  --text-strong:#292B31;
  --text-muted:#6f7580;
  --ui-nav-font:14.2px;
  --ui-subnav-font:13.5px;
  --ui-menu-font:13.5px;
  --ui-widget-title:15px;
}

body.eschool-layout{
  color:var(--text-main)!important;
  font-size:13.4px!important;
  line-height:1.28!important;
  background:#fff!important;
}

/* Brand / accent normalization — no dark-blue UI accents */
a{color:inherit}
.eschoool-brand-copy strong,.eschool-brand-copy strong{color:var(--brand)!important}
.top-module{color:#444851!important}
.top-module:hover,.top-module[aria-expanded="true"]{color:var(--accent)!important;background:#fff!important}
.top-module.active{color:var(--accent)!important;box-shadow:inset 0 -4px 0 var(--accent)!important}
.top-module-icon,.dashboard-tab .top-module-icon{color:var(--brand)!important}
.top-module:hover .top-module-icon,.top-module.active .top-module-icon,.top-module[aria-expanded="true"] .top-module-icon{color:var(--accent)!important}

.header-quick-nav a{color:#50545C!important;font-size:var(--ui-subnav-font)!important;font-weight:650!important;line-height:1.1!important;padding:0 13px!important}
.header-quick-nav a:hover{color:var(--accent)!important;background:var(--accent-soft)!important;border-bottom-color:var(--accent)!important}

/* Right-side tools use the requested palette on operational pages. */
.utility-link{color:var(--brand)!important}
.utility-link span{background:var(--brand)!important}
.self-service{background:var(--brand)!important;color:#fff!important}
.utility-icon{color:var(--brand)!important}
.utility-icon i{background:var(--accent)!important}
.utility-avatar{background:var(--brand)!important}
.search-submit{background:var(--brand)!important}
.header-square:hover{color:var(--accent)!important;background:var(--accent-soft)!important}
.global-result:hover{background:var(--brand-soft)!important;color:var(--accent)!important}
.global-result-icon{background:var(--brand-soft)!important;color:var(--brand)!important}

/* Dashboard: remove the supplied right-side Help/Self Service/Quick Search area. */
body.dashboard-view .eschool-header{
  grid-template-columns:190px minmax(0,1fr)!important;
}
body.dashboard-view .header-utility,
body.dashboard-view .header-search-row{display:none!important}
body.dashboard-view .top-module-nav{grid-column:2!important}
body.dashboard-view .header-quick-nav{grid-column:2!important;padding-right:18px!important}

/* Top navigation is the only sticky top chrome. */
.eschoool-header,.eschool-header{
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  background:#FAFAFB!important;
  border-bottom:1px solid #DADDE4!important;
  box-shadow:0 2px 7px rgba(35,37,43,.06)!important;
}

/* Mega menu / submenus */
.mega-card{border-color:var(--brand-line)!important;box-shadow:0 16px 34px rgba(55,58,68,.16)!important}
.mega-module-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.mega-module h2{color:var(--text-strong)!important}
.mega-home{color:var(--accent)!important;background:var(--accent-soft)!important;border-color:#f3c8c4!important}
.mega-home:hover{background:#ffe9e7!important}
.mega-group-head{border-bottom-color:var(--brand-line)!important}
.mega-group-head>span{background:var(--brand-soft)!important;color:var(--brand)!important}
.mega-group-head b{color:var(--brand)!important;font-size:14.2px!important}
.mega-group-head small{font-size:10.4px!important;color:#777C86!important}
.mega-links a{font-size:13.4px!important;line-height:1.14!important;padding:6px 5px!important;color:#4E525A!important}
.mega-links a>span{color:var(--brand)!important}
.mega-links a:hover{background:var(--accent-soft)!important;color:var(--accent)!important}
.mega-links a:hover>span{color:var(--accent)!important}

/* Left icon rail and contextual submenu */
.module-rail{background:#FAFAFB!important;border-right-color:#DDE0E6!important}
.module-rail-top{background:#FCFCFD!important;border-color:#E3E5EA!important}
.module-rail-expand{border-color:#D8DBE3!important;color:#555A64!important;background:#fff!important}
.module-rail-expand:hover{background:var(--brand-soft)!important;border-color:var(--brand)!important;color:var(--accent)!important}
.module-rail-item{color:#555A64!important;line-height:1.08!important}
.module-rail-item:hover{background:var(--brand-soft)!important;color:var(--accent)!important}
.module-rail-item.active{background:var(--brand)!important;color:#fff!important;box-shadow:0 3px 9px rgba(103,202,230,.24)!important}
.module-rail-icon{color:var(--brand)!important}
.module-rail-item:hover .module-rail-icon{color:var(--accent)!important}
.module-rail-item.active .module-rail-icon{color:#fff!important}
.module-rail-label{font-size:14px!important;line-height:1.08!important}

.context-sidebar{background:#FAFAFB!important;border-right-color:#DEE1E7!important}
.context-head{background:#FCFCFD!important}
.context-head b{font-size:15px!important;color:var(--text-strong)!important;line-height:1.1!important}
.context-head span{font-size:11.3px!important;line-height:1.15!important}
.context-search{border-color:#D8DBE2!important}
.context-search input{font-size:12.8px!important;line-height:1.1!important}
.context-group-title{font-size:11.4px!important;color:var(--brand)!important;line-height:1.05!important;padding-top:10px!important}
.context-link{font-size:13.7px!important;line-height:1.12!important;min-height:40px!important;padding:8px 11px!important;color:#4C515A!important}
.context-link:hover{background:var(--accent-soft)!important;color:var(--accent)!important}
.context-link.active{background:var(--brand-soft)!important;color:var(--accent)!important;border-left:3px solid var(--accent)!important;font-weight:750!important}
.context-link i{color:var(--brand)!important}

/* Dashboard: larger, clearer menu and card typography. */
.dashboard-school{max-width:1600px!important}
.dashboard-school-grid{gap:13px!important}
.school-widget{border-color:var(--brand-line)!important;box-shadow:0 2px 7px rgba(61,63,70,.07)!important}
.school-widget-head{background:var(--brand)!important;height:42px!important;padding:0 13px!important}
.school-widget-head h2{font-size:15.4px!important;line-height:1.05!important;color:#fff!important;font-weight:760!important}
.school-widget-tools{color:#fff!important;font-size:13px!important}
.school-widget-body{padding:13px!important}
.school-kpi{background:#FCFCFE!important;border-color:#E1E3EA!important;padding:13px!important}
.school-kpi b{color:var(--accent)!important;font-size:29px!important}
.school-kpi span{font-size:13.3px!important;line-height:1.13!important;color:#535861!important}
.school-summary-item{padding:11px 10px!important;min-height:64px!important}
.school-summary-item span{font-size:13px!important;line-height:1.12!important;color:#535861!important}
.school-summary-item b{font-size:22px!important;line-height:1!important;color:var(--brand)!important}
.school-program-row b,.school-program-row span{font-size:13px!important;line-height:1.08!important;color:#50545C!important}
.school-progress{background:#ECEEF3!important}
.school-progress i{background:var(--brand)!important}
.school-action{min-height:66px!important;padding:9px 10px!important;border-color:#E0E3EA!important}
.school-action:hover{background:var(--accent-soft)!important;border-color:#f2beb9!important}
.school-action-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.school-action:hover .school-action-icon{background:#fff!important;color:var(--accent)!important}
.school-action b{font-size:13.6px!important;line-height:1.1!important;color:#444850!important}
.school-action small{font-size:11px!important;line-height:1.1!important;color:#7B8088!important}
.activity-list.school .activity-row{padding:8px 0!important}
.activity-list.school .activity-row b{font-size:13.1px!important;line-height:1.12!important;color:#454951!important}
.activity-list.school .activity-row small{font-size:11px!important;line-height:1.1!important}
.activity-time{font-size:11.2px!important;color:var(--accent)!important}
.activity-dot{background:var(--brand)!important}
.dashboard-campus-info{font-size:13px!important;line-height:1.14!important;gap:8px 12px!important}
.dashboard-campus-info b,.dashboard-campus-info span{font-size:13px!important;line-height:1.14!important}
.dashboard-campus-info b{color:#4B5059!important}.dashboard-campus-info span{color:#6A6F78!important}

/* Workspace / module home */
.workspace-heading{border-color:var(--brand-line)!important;background:#FCFCFE!important}
.workspace-heading-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.workspace-heading span{color:var(--accent)!important}
.workspace-heading h1{color:var(--text-strong)!important;line-height:1.08!important}
.workspace-heading p{line-height:1.25!important;color:#6E737C!important}
.workspace-search{border-color:#D9DCE4!important}
.workspace-item{font-size:13.5px!important;line-height:1.12!important;color:#4D525B!important}
.workspace-item:hover{color:var(--accent)!important;background:var(--accent-soft)!important}
.workspace-bullet,.workspace-arrow{color:var(--brand)!important}

/* All operational pages: tighter vertical rhythm and cleaner alignment. */
.view{padding:15px 18px 27px!important;line-height:1.25!important}
.page-title-row{margin-bottom:11px!important;padding-bottom:8px!important}
.page-title-row h1{font-size:19.5px!important;line-height:1.08!important;color:var(--text-strong)!important}
.page-title-row .sub{font-size:12.7px!important;line-height:1.18!important;color:#767B84!important}
.card{border-color:#D9DCE3!important;padding:13px!important;margin-bottom:12px!important;border-radius:5px!important}
.card-title{font-size:15.8px!important;line-height:1.08!important;color:#42464E!important;margin-bottom:11px!important;padding-bottom:8px!important}
.card-title .rule{background:var(--accent)!important}
.card-title .title-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.section-label{font-size:13px!important;line-height:1.08!important;color:#484C54!important}
.field label{font-size:12.7px!important;line-height:1.05!important;margin-bottom:4px!important;color:#4A4F57!important}
.form-grid{gap:9px 12px!important}
.filters{gap:9px 11px!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],select,textarea{
  min-height:35px!important;
  font-size:12.8px!important;
  line-height:1.15!important;
  border-color:#bcc1cc!important;
  border-radius:4px!important;
  color:#3F434A!important;
}
textarea,.textarea{min-height:62px!important}
.input:focus,.select:focus,.textarea:focus,input:focus,select:focus,textarea:focus{border-color:var(--brand)!important;box-shadow:0 0 0 2px rgba(103,202,230,.16)!important}
.btn{line-height:1.05!important;font-size:12.5px!important;min-height:34px!important}
.btn-primary,.btn-green{background:var(--brand)!important;color:#fff!important}
.btn-primary:hover,.btn-green:hover{background:var(--accent)!important}
.btn-danger{background:var(--accent)!important;color:#fff!important}
.btn-soft{background:var(--brand-soft)!important;color:#555a65!important}
.btn-outline{border-color:var(--brand-line)!important;color:#565B64!important}
.alert{font-size:12.5px!important;line-height:1.2!important}
.alert.info{border-color:var(--brand-line)!important;background:var(--brand-soft)!important;color:#4b5260!important}
.alert.success{border-color:var(--brand-line)!important;background:var(--brand-soft)!important;color:#4b5260!important}

/* Tables: compact line-height without making text too small. */
.table-wrap{border-color:#D9DCE3!important}
.table-wrap table,table{font-size:12.3px!important;line-height:1.15!important}
th,td{padding:6px 7px!important;line-height:1.15!important}
thead th{background:#E8EAF3!important;color:#42464E!important;font-weight:760!important;border-bottom-color:#d1d6e1!important}
tbody tr:nth-child(even){background:#FCFCFD!important}
tbody tr:hover{background:var(--brand-soft)!important}
tr.selected{background:#fcedeb!important}
.status{background:var(--brand-soft)!important;color:#556078!important;line-height:1.05!important}
.status::before{background:var(--brand)!important}
.status.no{background:var(--accent-soft)!important;color:#b6291b!important}.status.no::before{background:var(--accent)!important}
.status.blue{background:var(--brand-soft)!important;color:#556078!important}.status.blue::before{background:var(--brand)!important}
.related-item{font-size:12.3px!important;line-height:1.12!important}
.related-item:hover,.related-item.active{background:var(--brand-soft)!important;color:var(--accent)!important}

/* Keep modal/read-only screens consistent. */
.modal-header h2{color:var(--text-strong)!important;line-height:1.08!important}
.profile-pairs,.profile-grid,.report-meta{line-height:1.18!important}
.report-meta{font-size:11.7px!important}

/* Remove remaining visible strong-blue dashboard accents from legacy chart helpers. */
.chart-card h3{color:var(--brand)!important}
.bar{background:var(--brand)!important}.bar.red{background:var(--accent)!important}.bar.dark{background:#8B8F98!important}.bar.green,.bar.teal{background:var(--brand)!important}
.donut{background:conic-gradient(var(--accent) 0 68%,var(--brand) 68% 100%)!important}

/* Responsive dashboard header after dashboard-only utility removal. */
@media (max-width:1450px){
  body.dashboard-view .eschool-header{grid-template-columns:200px minmax(0,1fr)!important}
  .header-quick-nav a{font-size:13px!important;padding:0 10px!important}
  .context-link{font-size:13.3px!important}
}
@media (max-width:1220px){
  body.dashboard-view .eschool-header{grid-template-columns:150px minmax(0,1fr)!important}
}
@media (max-width:1000px){
  body.dashboard-view .eschool-header{grid-template-columns:100px minmax(0,1fr)!important}
}

/* This release intentionally uses a light interface. Dark mode is neutralized
   so the old dark-navy palette never reappears. */
body.theme-dark{background:#fff!important;color:var(--text-main)!important}
body.theme-dark .eschool-header,body.theme-dark .eschool-brand,body.theme-dark .header-quick-nav,body.theme-dark .header-search-row,
body.theme-dark .context-sidebar,body.theme-dark .module-rail,body.theme-dark .module-rail-top,body.theme-dark .module-rail-bottom{
  background:#FAFAFB!important;color:var(--text-main)!important;border-color:#DEE1E7!important
}
body.theme-dark .school-widget-head{background:var(--brand)!important}
body.theme-dark .module-rail-item{color:#555A64!important}
body.theme-dark .module-rail-item.active{background:var(--brand)!important;color:#fff!important}

/* ========================================================================
   FULL-WIDTH MEGA MENU + GLOBAL TYPOGRAPHY / SPACING PASS — 2026-10-16
   User requirements:
   - top module hover menu spans the complete viewport from left to right
   - hover submenu typography is larger and easier to scan
   - #0b87ba and #e5463a are the only chromatic accent colours
   - neutral white / grey / black remain for surfaces, borders and text
   - consistent font ratio, indentation and tighter line-height on every view
   ======================================================================== */
:root{
  --brand:#0b87ba;
  --accent:#e5463a;
  --brand-soft:#F4F5FB;
  --accent-soft:#FFF1F2;
  --neutral-950:#25272D;
  --neutral-800:#3F434B;
  --neutral-700:#525760;
  --neutral-600:#6D727C;
  --neutral-500:#858A93;
  --neutral-300:#D8DBE2;
  --neutral-200:#E7E9EE;
  --neutral-100:#F5F6F8;
  --surface:#FFFFFF;
  --menu-font:14.5px;
  --menu-small:11.2px;
  --page-font:13.3px;
  --page-line:1.18;
}

/* Overall text rhythm shared by every route/view. */
body.eschool-layout{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:var(--page-font)!important;
  line-height:var(--page-line)!important;
  color:var(--neutral-800)!important;
  letter-spacing:0!important;
}
button,input,select,textarea{font-family:inherit!important}

/* Top navigation: consistent readable ratio. */
.top-module{
  font-size:14.4px!important;
  line-height:1!important;
  font-weight:680!important;
  color:var(--neutral-800)!important;
}
.top-module.active,.top-module:hover,.top-module[aria-expanded="true"]{color:var(--accent)!important}
.top-module-icon,.dashboard-tab .top-module-icon{color:var(--brand)!important}
.header-quick-nav a{
  font-size:13.4px!important;
  line-height:1.08!important;
  font-weight:640!important;
  color:var(--neutral-800)!important;
}
.header-quick-nav a:hover{color:var(--accent)!important;background:var(--accent-soft)!important;border-bottom-color:var(--accent)!important}

/* Full-width hover dropdown.  It deliberately ignores brand/search column widths. */
.mega-menu{
  position:fixed!important;
  top:var(--eschool-head-h)!important;
  left:0!important;
  right:0!important;
  width:100vw!important;
  max-width:none!important;
  z-index:88!important;
  padding:0!important;
}
.mega-card{
  width:100%!important;
  max-width:none!important;
  border-left:0!important;
  border-right:0!important;
  border-top:1px solid var(--neutral-300)!important;
  border-bottom:1px solid var(--neutral-300)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 18px 36px rgba(37,39,45,.16)!important;
}
.mega-top{
  min-height:58px!important;
  height:auto!important;
  padding:9px clamp(22px,3vw,54px)!important;
  background:#FCFCFD!important;
  border-bottom:1px solid var(--neutral-200)!important;
}
.mega-module-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.mega-module small{font-size:10.8px!important;line-height:1.05!important;color:var(--neutral-500)!important}
.mega-module h2{font-size:17px!important;line-height:1.08!important;color:var(--neutral-950)!important;font-weight:760!important}
.mega-home{font-size:12.6px!important;line-height:1!important;color:var(--accent)!important;background:var(--accent-soft)!important;border-color:#f4c7c3!important}
.mega-home:hover{background:#ffeae8!important;color:var(--accent)!important}
.mega-grid{
  width:100%!important;
  max-width:1700px!important;
  margin:0 auto!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  padding:16px clamp(22px,3vw,54px) 18px!important;
}
.mega-group{padding:0 clamp(16px,2vw,30px) 8px!important;border-right:1px solid var(--neutral-200)!important}
.mega-group:first-child{padding-left:0!important}.mega-group:last-child{padding-right:0!important;border-right:0!important}
.mega-group-head{gap:10px!important;margin-bottom:10px!important;padding-bottom:9px!important;border-bottom:2px solid var(--brand-soft)!important}
.mega-group-head>span{width:31px!important;height:31px!important;font-size:15px!important;background:var(--brand-soft)!important;color:var(--brand)!important}
.mega-group-head b{font-size:15.2px!important;line-height:1.05!important;font-weight:760!important;color:var(--brand)!important}
.mega-group-head small{font-size:10.8px!important;line-height:1.12!important;color:var(--neutral-500)!important;margin-top:3px!important}
.mega-links{row-gap:1px!important}
.mega-links.dense{column-gap:26px!important}
.mega-links a{
  position:relative!important;
  min-height:33px!important;
  padding:7px 8px 7px 18px!important;
  gap:0!important;
  border-radius:4px!important;
  font-size:var(--menu-font)!important;
  line-height:1.16!important;
  font-weight:460!important;
  color:var(--neutral-700)!important;
  align-items:center!important;
}
.mega-links a>span{
  position:absolute!important;
  left:5px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  font-size:13px!important;
  color:var(--brand)!important;
}
.mega-links a:hover{background:var(--accent-soft)!important;color:var(--accent)!important}
.mega-links a:hover>span{color:var(--accent)!important}

/* Left quick navigation: same scale as the dropdown, with compact rhythm. */
.module-rail-label{font-size:14px!important;line-height:1.08!important}
.context-head b{font-size:15.2px!important;line-height:1.06!important;color:var(--neutral-950)!important}
.context-head span{font-size:11.3px!important;line-height:1.1!important;color:var(--neutral-500)!important}
.context-group-title{font-size:11.5px!important;line-height:1!important;color:var(--brand)!important}
.context-link{
  min-height:40px!important;
  padding:8px 11px 8px 15px!important;
  font-size:13.9px!important;
  line-height:1.12!important;
  color:var(--neutral-700)!important;
}
.context-link:hover,.context-link.active{color:var(--accent)!important;background:var(--accent-soft)!important}
.context-link.active{border-left-color:var(--accent)!important}
.context-link i{color:var(--brand)!important}
.context-search input{font-size:13px!important;line-height:1!important}

/* Module home cards / dashboard: one coherent font scale. */
.workspace-heading h1{font-size:23px!important;line-height:1.06!important;color:var(--neutral-950)!important}
.workspace-heading p{font-size:13px!important;line-height:1.22!important;color:var(--neutral-600)!important}
.eschool-widget-head,.school-widget-head{background:var(--brand)!important}
.eschool-widget-head h2,.school-widget-head h2{font-size:15.2px!important;line-height:1!important;color:#fff!important;font-weight:760!important}
.workspace-item{font-size:13.8px!important;line-height:1.12!important;color:var(--neutral-700)!important}
.workspace-item:hover{background:var(--accent-soft)!important;color:var(--accent)!important}
.workspace-bullet,.workspace-arrow{color:var(--brand)!important}
.school-kpi b{color:var(--accent)!important}.school-summary-item b{color:var(--brand)!important}
.school-progress i,.activity-dot{background:var(--brand)!important}

/* Page headings, cards, forms and reports across every generated HTML view. */
.view{line-height:var(--page-line)!important}
.page-title-row{gap:12px!important;margin:0 0 10px!important;padding:1px 1px 8px!important}
.page-title-row h1{font-size:19.5px!important;line-height:1.06!important;color:var(--neutral-950)!important}
.page-title-row .sub{font-size:12.7px!important;line-height:1.14!important;color:var(--neutral-600)!important}
.card{padding:12px 13px!important;margin-bottom:11px!important;border-color:var(--neutral-300)!important}
.card-title{font-size:15.9px!important;line-height:1.05!important;margin-bottom:10px!important;padding-bottom:8px!important;color:var(--neutral-800)!important}
.card-title .title-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.card-title .rule{background:var(--accent)!important}
.section-label{font-size:13px!important;line-height:1.05!important;color:var(--neutral-800)!important;margin:9px 0 6px!important}
.form-grid,.filters{row-gap:8px!important;column-gap:11px!important}
.field label{font-size:12.9px!important;line-height:1.03!important;margin-bottom:4px!important;color:var(--neutral-700)!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],select,textarea{
  min-height:34px!important;
  height:34px!important;
  padding:0 9px!important;
  font-size:13px!important;
  line-height:1.08!important;
  color:var(--neutral-800)!important;
  border-color:#BFC3CC!important;
}
textarea,.textarea{height:auto!important;min-height:58px!important;padding-top:7px!important;padding-bottom:7px!important}
.input:focus,.select:focus,.textarea:focus,input:focus,select:focus,textarea:focus{border-color:var(--brand)!important;box-shadow:0 0 0 2px rgba(103,202,230,.16)!important}
.form-actions{margin-top:11px!important;gap:8px!important}
.btn{min-height:33px!important;padding:7px 12px!important;font-size:12.8px!important;line-height:1!important}
.btn-primary,.btn-green{background:var(--brand)!important;color:#fff!important}.btn-primary:hover,.btn-green:hover{background:var(--accent)!important}
.btn-danger{background:var(--accent)!important;color:#fff!important}
.btn-soft{background:var(--brand-soft)!important;color:var(--neutral-700)!important}.btn-outline{border-color:var(--neutral-300)!important;color:var(--neutral-700)!important}

/* Tables/reports: compact but clear, with stronger indentation/alignment. */
.table-wrap table,table{font-size:12.6px!important;line-height:1.1!important}
th,td{padding:6px 8px!important;line-height:1.1!important;vertical-align:middle!important}
thead th{background:#ECEEF6!important;color:var(--neutral-800)!important;font-weight:760!important}
tbody tr:nth-child(even){background:#FCFCFD!important}tbody tr:hover{background:var(--brand-soft)!important}tr.selected{background:var(--accent-soft)!important}
.status,.status.blue{background:var(--brand-soft)!important;color:#556078!important}.status::before,.status.blue::before{background:var(--brand)!important}
.status.no{background:var(--accent-soft)!important;color:#b5291b!important}.status.no::before{background:var(--accent)!important}
.related-panel h3{font-size:13.2px!important;line-height:1.05!important}.related-item{font-size:12.6px!important;line-height:1.1!important;padding:6px 5px!important}.related-item:hover,.related-item.active{background:var(--brand-soft)!important;color:var(--accent)!important}
.report-meta{font-size:12px!important;line-height:1.12!important;padding:5px 0 8px!important}
.profile-pairs,.profile-grid{line-height:1.14!important}
.modal-header h2{font-size:16px!important;line-height:1.05!important;color:var(--neutral-950)!important}

/* Only the two requested chromatic accents are used below; other colours are neutral. */
.utility-link,.global-result-icon,.module-rail-icon,.workspace-heading-icon,.chart-card h3{color:var(--brand)!important}
.utility-link span,.self-service,.search-submit,.utility-avatar,.module-rail-item.active{background:var(--brand)!important}
.utility-icon i,.req,.activity-time{color:var(--accent)!important}.utility-icon i{background:var(--accent)!important;color:#fff!important}
.alert.info,.alert.success{background:var(--brand-soft)!important;border-color:var(--neutral-300)!important;color:var(--neutral-700)!important}
.alert.danger{background:var(--accent-soft)!important;border-color:#f2c8c4!important;color:#a82417!important}
.bar,.bar.green,.bar.teal{background:var(--brand)!important}.bar.red{background:var(--accent)!important}.bar.dark{background:#8A8E96!important}
.donut{background:conic-gradient(var(--accent) 0 68%,var(--brand) 68% 100%)!important}

/* Dashboard still hides the right utility/search block as requested earlier. */
body.dashboard-view .header-utility,body.dashboard-view .header-search-row{display:none!important}

/* Responsive: the dropdown remains edge-to-edge at every desktop width. */
@media (max-width:1450px){
  .mega-menu{left:0!important;right:0!important;width:100vw!important;top:var(--eschool-head-h)!important}
  .mega-card{width:100%!important;max-width:none!important}
  .mega-links a{font-size:14px!important}
  .mega-group-head b{font-size:14.8px!important}
}
@media (max-width:1220px){
  .mega-menu{left:0!important;right:0!important;width:100vw!important}
  .mega-grid{padding-left:18px!important;padding-right:18px!important}
  .mega-group{padding-left:14px!important;padding-right:14px!important}
}
@media (max-width:1000px){
  .mega-menu{left:0!important;right:0!important;width:100vw!important}
  .mega-links a{font-size:13.6px!important}
}

/* ========================================================================
   COMPACT CHROME + DENSE PAGE RHYTHM PASS — 2026-10-16
   Requested cleanup:
   - remove Help / Self Service / notification / avatar utility group
   - remove Quick Search / fullscreen / theme controls
   - remove the secondary horizontal quick-link strip on every route
   - keep only brand + primary module navigation in the sticky top header
   - tighten line-height, gaps and vertical paddings across every SPA view
   - preserve readable type and existing routes/workflows
   ======================================================================== */
:root{
  --eschool-head-h:56px;
  --page-font:12.9px;
  --page-line:1.08;
  --brand:#0b87ba;
  --accent:#e5463a;
  --brand-soft:#F4F5FB;
  --accent-soft:#FFF1F2;
  --neutral-950:#25272D;
  --neutral-800:#3F434B;
  --neutral-700:#525760;
  --neutral-600:#6D727C;
  --neutral-500:#858A93;
  --neutral-300:#D8DBE2;
  --neutral-200:#E7E9EE;
  --neutral-100:#F5F6F8;
}

/* The removed blocks stay hidden even if legacy markup is reintroduced later. */
.header-utility,
.header-quick-nav,
.header-search-row,
#headerQuickNav{
  display:none!important;
}

/* One-row sticky header on every page. */
.eschool-app{
  grid-template-rows:var(--eschool-head-h) minmax(0,1fr)!important;
}
.eschoool-header,.eschool-header{
  height:var(--eschool-head-h)!important;
  min-height:var(--eschool-head-h)!important;
  grid-template-columns:235px minmax(0,1fr)!important;
  grid-template-rows:var(--eschool-head-h)!important;
  align-items:stretch!important;
  background:#FAFAFB!important;
  border-bottom:1px solid var(--neutral-300)!important;
  box-shadow:0 2px 6px rgba(37,39,45,.05)!important;
  overflow:visible!important;
}
.eschool-brand{
  grid-column:1!important;
  grid-row:1!important;
  min-height:var(--eschool-head-h)!important;
  height:var(--eschool-head-h)!important;
  padding:4px 12px!important;
  gap:9px!important;
  border-right:1px solid var(--neutral-200)!important;
  background:#fff!important;
}
.eschool-brand img{width:46px!important;height:46px!important}
.eschool-brand-copy strong{font-size:14.2px!important;line-height:1.02!important;color:var(--brand)!important}
.eschool-brand-copy small{font-size:9.5px!important;line-height:1.05!important;margin-top:2px!important;color:var(--neutral-500)!important}
.top-module-nav{
  grid-column:2!important;
  grid-row:1!important;
  height:var(--eschool-head-h)!important;
  min-height:var(--eschool-head-h)!important;
  padding:0 8px!important;
  background:#FAFAFB!important;
  border:0!important;
}
.top-module{
  height:var(--eschool-head-h)!important;
  min-height:var(--eschool-head-h)!important;
  padding:0 10px!important;
  gap:6px!important;
  font-size:13.8px!important;
  line-height:1!important;
  font-weight:680!important;
}
.top-module-icon{width:17px!important;height:17px!important}
.top-module-icon svg{width:16px!important;height:16px!important}
.top-module i{font-size:9px!important}

/* Mega menu now starts immediately below the compact primary header. */
.mega-menu{
  top:var(--eschool-head-h)!important;
  left:0!important;
  right:0!important;
  width:100vw!important;
}
.mega-top{min-height:48px!important;height:48px!important;padding:6px clamp(18px,2.5vw,42px)!important}
.mega-module-icon{width:32px!important;height:32px!important}
.mega-module-icon svg{width:18px!important;height:18px!important}
.mega-module small{font-size:10.2px!important;line-height:1!important}
.mega-module h2{font-size:16.2px!important;line-height:1!important;margin-top:2px!important}
.mega-home{font-size:12.2px!important;min-height:31px!important;padding:6px 10px!important}
.mega-grid{padding:11px clamp(18px,2.5vw,42px) 13px!important}
.mega-group{padding-bottom:4px!important}
.mega-group-head{gap:8px!important;margin-bottom:6px!important;padding-bottom:6px!important}
.mega-group-head>span{width:27px!important;height:27px!important;font-size:13px!important}
.mega-group-head b{font-size:14.7px!important;line-height:1!important}
.mega-group-head small{font-size:10.3px!important;line-height:1.03!important;margin-top:2px!important}
.mega-links{row-gap:0!important}
.mega-links a{
  min-height:29px!important;
  padding:5px 7px 5px 17px!important;
  font-size:14px!important;
  line-height:1.05!important;
}
.mega-links a>span{font-size:12px!important;left:5px!important}

/* Main layout and side navigation: more content visible without shrinking text. */
.eschool-body{height:calc(100vh - var(--eschool-head-h))!important}
.module-rail-top{min-height:57px!important;padding:6px!important}
.module-rail-expand{min-height:44px!important;height:44px!important}
.module-rail-scroll{padding:4px 6px 7px!important}
.module-rail-item{min-height:48px!important;padding:5px 9px!important;gap:7px!important}
.module-rail-icon{width:31px!important;height:31px!important;flex-basis:31px!important}
.module-rail-icon svg{width:23px!important;height:23px!important}
.module-rail-label{font-size:13.2px!important;line-height:1!important}
.module-rail-bottom{min-height:42px!important;padding:6px 9px!important}

.context-head{min-height:52px!important;padding:7px 9px!important}
.context-head b{font-size:14.6px!important;line-height:1!important}
.context-head span{font-size:10.7px!important;line-height:1!important;margin-top:2px!important}
.context-search{height:42px!important;padding:5px 8px!important}
.context-search input{height:30px!important;min-height:30px!important;font-size:12.4px!important}
.context-scroll{padding:5px 7px 8px!important}
.context-group{margin-bottom:6px!important}
.context-group-title{font-size:10.8px!important;line-height:1!important;padding:6px 5px 4px!important}
.context-link{min-height:34px!important;padding:6px 9px 6px 12px!important;font-size:13.2px!important;line-height:1.03!important}
.context-foot{min-height:40px!important;padding:6px 9px!important}
.context-foot b{font-size:10.8px!important;line-height:1!important}.context-foot small{font-size:9.3px!important;line-height:1!important}

/* Shared density for ALL generated pages/routes. */
body.eschool-layout{
  font-size:var(--page-font)!important;
  line-height:var(--page-line)!important;
}
.view{
  padding:10px 13px 18px!important;
  line-height:var(--page-line)!important;
}
.page-grid{gap:8px!important}
.page-title-row{gap:8px!important;margin:0 0 7px!important;padding:0 1px 5px!important}
.page-title-row h1{font-size:18.5px!important;line-height:1!important}
.page-title-row .sub{font-size:12.1px!important;line-height:1.05!important;margin-top:2px!important}
.card{padding:9px 10px!important;margin-bottom:8px!important;border-radius:5px!important}
.card.compact{padding:7px!important}
.card-title{font-size:15.2px!important;line-height:1!important;margin-bottom:7px!important;padding-bottom:6px!important;gap:7px!important}
.card-title .title-icon{width:27px!important;height:27px!important;font-size:14px!important}
.card-title .rule{margin-top:32px!important}
.section-label{font-size:12.6px!important;line-height:1!important;margin:7px 0 4px!important}
.form-grid,.filters{row-gap:6px!important;column-gap:9px!important}
.field label{font-size:12.3px!important;line-height:1!important;margin-bottom:3px!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],select,textarea{
  min-height:31px!important;
  height:31px!important;
  padding:0 8px!important;
  font-size:12.7px!important;
  line-height:1!important;
}
textarea,.textarea{height:auto!important;min-height:52px!important;padding-top:5px!important;padding-bottom:5px!important;line-height:1.12!important}
.form-actions{margin-top:8px!important;gap:6px!important}
.btn{min-height:30px!important;padding:6px 10px!important;font-size:12.3px!important;line-height:1!important}
.btn-sm{min-height:26px!important;padding:4px 7px!important;font-size:10.8px!important}
.btn-icon{width:27px!important;height:27px!important;min-height:27px!important}
.alert{padding:7px 9px!important;font-size:12px!important;line-height:1.1!important}
.filters{gap:6px 8px!important}
.filters .filter-actions{gap:5px!important}

/* Tables and reports: compact rows; headers remain clear. */
.table-wrap table,table{font-size:12.2px!important;line-height:1.04!important}
th,td{padding:4.5px 6px!important;line-height:1.04!important}
thead th{line-height:1.03!important}
.status{font-size:10px!important;padding:2px 6px!important;line-height:1!important}
.report-meta{font-size:11.7px!important;line-height:1.06!important;padding:3px 0 5px!important}
.profile-pairs,.profile-grid{line-height:1.08!important}
.related-panel{padding:7px!important}
.related-panel h3{font-size:12.7px!important;line-height:1!important;margin-bottom:5px!important}
.related-search{margin-bottom:4px!important}
.related-item{font-size:12.1px!important;line-height:1.03!important;padding:4px 4px!important}

/* Workspaces / module home pages. */
.workspace{padding-bottom:14px!important;min-height:0!important}
.workspace-heading{min-height:68px!important;padding:9px 12px!important;margin-bottom:8px!important;gap:10px!important}
.workspace-heading-icon{width:39px!important;height:39px!important}
.workspace-heading-icon svg{width:22px!important;height:22px!important}
.workspace-heading span{font-size:9.3px!important;line-height:1!important}
.workspace-heading h1{font-size:20px!important;line-height:1!important;margin-top:1px!important}
.workspace-heading p{font-size:12.2px!important;line-height:1.1!important;margin-top:3px!important}
.workspace-search{height:33px!important;margin-bottom:8px!important}
.workspace-search input{height:31px!important;min-height:31px!important;font-size:12.3px!important}
.workspace-cols{gap:8px!important}
.eschool-widget-head{height:34px!important;padding:0 9px!important}
.eschool-widget-head h2{font-size:14px!important;line-height:1!important}
.workspace-card-list{padding:4px 6px 6px!important}
.workspace-item{min-height:31px!important;padding:5px 5px!important;font-size:13.1px!important;line-height:1.02!important}

/* Dashboard panels: dense but readable. */
.dashboard-school{max-width:none!important}
.dashboard-school-grid{gap:8px!important}
.school-widget{min-height:0!important}
.school-widget-head{height:32px!important;padding:0 9px!important}
.school-widget-head h2{font-size:14.5px!important;line-height:1!important}
.school-widget-body{padding:8px!important;min-height:0!important}
.school-kpi-row{gap:6px!important}
.school-kpi{padding:8px 9px!important}
.school-kpi b{font-size:23px!important;line-height:1!important}
.school-kpi span{margin-top:4px!important;font-size:12.3px!important;line-height:1.03!important}
.school-summary-item{padding:7px 6px!important;min-height:0!important}
.school-summary-item span{font-size:12px!important;line-height:1.03!important}
.school-summary-item b{font-size:19px!important;line-height:1!important;margin-top:2px!important}
.school-program-list{gap:7px!important}
.school-program-row{gap:7px!important}.school-program-row b,.school-program-row span{font-size:12.1px!important;line-height:1!important}
.school-action-grid{gap:6px!important}.school-action{min-height:52px!important;padding:7px!important;gap:7px!important}.school-action-icon{width:30px!important;height:30px!important}.school-action b{font-size:12.5px!important;line-height:1.04!important}.school-action small{font-size:10.3px!important;line-height:1.03!important;margin-top:2px!important}
.activity-list.school .activity-row{padding:6px 0!important}.activity-list.school .activity-row b{font-size:12.3px!important;line-height:1.04!important}.activity-list.school .activity-row small{font-size:10.2px!important;line-height:1.03!important}
.dashboard-campus-info{gap:5px 9px!important;font-size:12.1px!important;line-height:1.04!important}.dashboard-campus-info b,.dashboard-campus-info span{font-size:12.1px!important;line-height:1.04!important}

/* Modal content follows the same dense vertical rhythm. */
.modal-card{line-height:1.08!important}
.modal-header{padding:8px 10px!important}.modal-header h2{font-size:15.5px!important;line-height:1!important}
.modal-body{padding:9px 10px!important}.modal-footer{padding:7px 10px!important;gap:6px!important}

/* Requested palette: chromatic UI accents are only these two colours. */
.top-module.active,.top-module:hover,.top-module[aria-expanded='true'],.mega-links a:hover,.context-link:hover,.context-link.active,.workspace-item:hover,.related-item:hover,.related-item.active{color:var(--accent)!important}
.top-module-icon,.module-rail-icon,.mega-group-head b,.mega-links a>span,.context-link i,.workspace-bullet,.workspace-arrow{color:var(--brand)!important}
.btn-primary,.btn-green,.search-submit,.module-rail-item.active,.eschool-widget-head,.school-widget-head{background:var(--brand)!important;color:#fff!important}
.btn-danger{background:var(--accent)!important;color:#fff!important}
.req{color:var(--accent)!important}

/* Responsive one-row header. */
@media (max-width:1450px){
  .eschool-header{grid-template-columns:200px minmax(0,1fr)!important}
  .eschool-brand-copy strong{font-size:13.6px!important}
  .top-module{font-size:13.1px!important;padding:0 8px!important}
}
@media (max-width:1220px){
  .eschool-header{grid-template-columns:145px minmax(0,1fr)!important}
  .eschool-brand-copy{display:none!important}
  .top-module{font-size:12.6px!important;padding:0 7px!important}
}
@media (max-width:1000px){
  .eschool-header{grid-template-columns:90px minmax(0,1fr)!important}
  .top-module{font-size:12px!important;padding:0 6px!important}
}


/* ========================================================================
   PROFILE MENU + RESPONSIVE WRAPPING PASS — 2026-10-16
   - profile icon sits directly after INFR. MGMT in the primary top menu
   - click opens Profile / Change Password / Help / Logout
   - if primary items no longer fit, later items wrap cleanly to the next row
   - header height is synchronized in JS so content and mega menus never overlap
   - applies to every SPA route without changing any page data
   ======================================================================== */
:root{--eschool-head-h:56px;}

/* Header may grow to a second row only when the available width requires it. */
.eschool-app{
  grid-template-rows:var(--eschool-head-h) minmax(0,1fr)!important;
}
.eschoool-header,.eschool-header{
  height:auto!important;
  min-height:56px!important;
  grid-template-columns:235px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.eschoool-header .eschool-brand,.eschool-header .eschool-brand{
  height:auto!important;
  min-height:56px!important;
  align-self:stretch!important;
}
.top-module-nav{
  height:auto!important;
  min-height:56px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-content:flex-start!important;
  align-items:stretch!important;
  overflow:visible!important;
  padding:0 8px!important;
  gap:0!important;
}
.top-module{
  height:56px!important;
  min-height:56px!important;
  flex:0 0 auto!important;
}

/* Compact profile trigger immediately after the last main module. */
.top-profile{
  position:relative;
  flex:0 0 auto;
  height:56px;
  min-width:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:2px;
}
.top-profile-btn{
  width:38px;
  height:38px;
  border:1px solid var(--neutral-200);
  border-radius:50%;
  background:#fff;
  color:var(--brand);
  display:grid;
  place-items:center;
  cursor:pointer;
  padding:0;
  transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}
.top-profile-btn:hover,.top-profile-btn[aria-expanded='true']{
  color:var(--accent);
  background:var(--accent-soft);
  border-color:#e6bdb9;
  box-shadow:0 2px 8px rgba(37,39,45,.10);
}
.top-profile-icon{width:19px;height:19px;display:grid;place-items:center}
.top-profile-icon svg{width:19px;height:19px;fill:currentColor}

.top-profile-menu{
  position:absolute;
  z-index:120;
  top:calc(100% - 2px);
  right:0;
  width:190px;
  padding:5px 0;
  border:1px solid var(--neutral-300);
  border-radius:0 0 6px 6px;
  background:#fff;
  box-shadow:0 12px 28px rgba(37,39,45,.16);
}
.top-profile-menu[hidden]{display:none!important}
.top-profile-menu button{
  width:100%;
  min-height:37px;
  padding:7px 13px;
  border:0;
  background:#fff;
  color:var(--neutral-950);
  text-align:left;
  font:inherit;
  font-size:14px;
  line-height:1.05;
  cursor:pointer;
}
.top-profile-menu button:hover,.top-profile-menu button:focus{
  outline:0;
  background:var(--brand-soft);
  color:var(--accent);
}
.top-profile-separator{height:1px;background:var(--neutral-200);margin:4px 0}

/* Keep all route chrome aligned with the real wrapped header height. */
.eschool-body{height:calc(100vh - var(--eschool-head-h))!important}
.mega-menu{top:var(--eschool-head-h)!important}
.context-sidebar{top:var(--eschool-head-h)!important}

/* Slight final typography/spacing normalization across every generated view. */
.view{line-height:1.06!important}
.card,.school-widget,.workspace-card{line-height:1.06!important}
.card-title,.eschool-widget-head h2,.school-widget-head h2{letter-spacing:0!important}
.field label{line-height:1!important}
.form-grid,.filters{row-gap:5px!important}
th,td{line-height:1.02!important}
.mega-links a,.context-link,.workspace-item,.related-item{line-height:1.02!important}

/* Smaller widths: preserve readability and allow clean automatic wrapping. */
@media (max-width:1450px){
  .eschoool-header,.eschool-header{grid-template-columns:200px minmax(0,1fr)!important}
  .top-module{font-size:13px!important;padding:0 8px!important}
  .top-profile{min-width:48px!important}
}
@media (max-width:1220px){
  .eschoool-header,.eschool-header{grid-template-columns:145px minmax(0,1fr)!important}
  .top-module{font-size:12.6px!important;padding:0 7px!important}
}
@media (max-width:1000px){
  .eschoool-header,.eschool-header{grid-template-columns:90px minmax(0,1fr)!important}
  .top-module{font-size:12px!important;padding:0 6px!important}
}

@media print{
  .top-profile{display:none!important}
}

.top-profile-menu::before{content:'';position:absolute;top:-7px;right:12px;width:12px;height:12px;background:#fff;border-left:1px solid var(--neutral-300);border-top:1px solid var(--neutral-300);transform:rotate(45deg)}
.top-profile-menu button,.top-profile-separator{position:relative;z-index:1}

/* ========================================================================
   ACCOUNT + BILLING SPLIT — 2026-10-16
   Account = chart of accounts, vouchers, financial books/reports.
   Billing = fee setup, fee assignment, collection, dues and invoices.
   Custom mega menus use the same two campus accent colors only.
   ======================================================================== */
.mega-grid.custom-mega{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:start!important;
  max-width:1760px!important;
  padding-top:12px!important;
  padding-bottom:14px!important;
}
.mega-column{
  min-width:0;
  padding:0 clamp(13px,1.55vw,24px);
  border-right:1px solid var(--neutral-200);
}
.mega-column:first-child{padding-left:0}
.mega-column:last-child{padding-right:0;border-right:0}
.mega-column .mega-group{
  border-right:0!important;
  padding:0 0 8px!important;
}
.mega-column .mega-group+.mega-group{margin-top:7px!important;padding-top:6px!important}
.mega-column .mega-group-head{margin-bottom:5px!important;padding-bottom:5px!important}
.mega-column .mega-group-head>span{width:25px!important;height:25px!important;font-size:12px!important}
.mega-column .mega-group-head b{font-size:14.6px!important}
.mega-column .mega-group-head small{font-size:10px!important}
.mega-column .mega-links a{
  min-height:27px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  font-size:13.7px!important;
  line-height:1.06!important;
}
.report-total{
  display:flex;justify-content:flex-end;gap:22px;align-items:center;
  border-top:1px solid var(--neutral-200);padding:7px 8px 2px;margin-top:2px;
  color:var(--neutral-800);font-size:12.3px;line-height:1;
}
.fake-input{display:flex!important;align-items:center!important;background:#fff!important}

/* Account and Billing pages are data-dense: keep rows compact but legible. */
body.eschool-layout .kpi-grid{gap:7px!important}
body.eschool-layout .kpi{padding:8px 10px!important}
body.eschool-layout .kpi .value{font-size:18px!important;line-height:1!important}
body.eschool-layout .kpi .label{font-size:11.5px!important;line-height:1!important;margin-top:3px!important}

/* At narrower widths the 4-column finance/billing menu wraps without clipping. */
@media (max-width:1250px){
  .mega-grid.custom-mega{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mega-column:nth-child(2){border-right:0}
  .mega-column:nth-child(n+3){border-top:1px solid var(--neutral-200);padding-top:10px;margin-top:5px}
}
@media (max-width:820px){
  .mega-grid.custom-mega{grid-template-columns:1fr!important}
  .mega-column{border-right:0!important;border-top:1px solid var(--neutral-200);padding:9px 0!important;margin:0!important}
  .mega-column:first-child{border-top:0!important;padding-top:0!important}
}


/* ========================================================================
   PROFILE RIGHT + DENSE ALL-PAGES PASS — 2026-10-16
   Requested behavior:
   - profile control is permanently anchored at the far right of the header
   - module items may wrap to another row when they no longer fit
   - wrapped rows keep exactly the same header background
   - global vertical rhythm is tightened so more useful data fits on screen
   - no application/student/staff/marks/master data is changed
   ======================================================================== */
:root{
  --eschool-row-h:48px;
  --eschool-profile-w:58px;
  --dense-line:1.06;
}

/* Header: brand | wrapping modules | fixed-right profile. */
.eschool-header{
  position:sticky!important;
  top:0!important;
  z-index:80!important;
  display:grid!important;
  grid-template-columns:235px minmax(0,1fr) var(--eschool-profile-w)!important;
  grid-template-rows:auto!important;
  min-height:var(--eschool-row-h)!important;
  height:auto!important;
  align-items:stretch!important;
  overflow:visible!important;
  background:#FAFAFB!important;
  border-bottom:1px solid var(--neutral-300)!important;
  box-shadow:0 1px 5px rgba(37,39,45,.045)!important;
}
.eschool-brand{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  min-height:var(--eschool-row-h)!important;
  height:auto!important;
  padding:3px 10px!important;
  background:#FAFAFB!important;
  border-right:1px solid var(--neutral-200)!important;
}
.eschool-brand img{width:42px!important;height:42px!important}
.eschool-brand-copy{line-height:1.02!important}
.eschool-brand-copy strong{font-size:13.8px!important;line-height:1!important}
.eschool-brand-copy small{font-size:9.2px!important;line-height:1!important;margin-top:2px!important}

.top-module-nav{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-content:flex-start!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  min-height:var(--eschool-row-h)!important;
  height:auto!important;
  padding:0 2px!important;
  overflow:visible!important;
  background:#FAFAFB!important;
  border:0!important;
}
.top-module{
  flex:0 0 auto!important;
  height:var(--eschool-row-h)!important;
  min-height:var(--eschool-row-h)!important;
  padding:0 8px!important;
  gap:5px!important;
  font-size:13.2px!important;
  line-height:1!important;
  background:#FAFAFB!important;
}
.top-module:hover,.top-module.active,.top-module[aria-expanded='true']{background:#fff!important}
.top-module-icon{width:16px!important;height:16px!important}
.top-module-icon svg{width:15px!important;height:15px!important}

/* Dedicated profile column: never becomes a wrapped menu item. */
.header-profile-slot{
  grid-column:3!important;
  grid-row:1!important;
  align-self:start!important;
  justify-self:stretch!important;
  height:var(--eschool-row-h)!important;
  min-height:var(--eschool-row-h)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#FAFAFB!important;
  border-left:1px solid var(--neutral-200)!important;
  position:relative!important;
  z-index:85!important;
}
.top-profile{
  position:relative!important;
  width:100%!important;
  height:var(--eschool-row-h)!important;
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.top-profile-btn{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
}
.top-profile-icon,.top-profile-icon svg{width:17px!important;height:17px!important}
.top-profile-menu{
  top:calc(100% - 1px)!important;
  right:5px!important;
  width:184px!important;
}
.top-profile-menu button{min-height:34px!important;padding:6px 12px!important;font-size:13.5px!important;line-height:1!important}

/* JS writes the measured wrapped header height to --eschool-head-h. */
.eschool-app{grid-template-rows:var(--eschool-head-h) minmax(0,1fr)!important}
.eschool-body{height:calc(100vh - var(--eschool-head-h))!important}
.mega-menu{top:var(--eschool-head-h)!important}

/* Full-width mega menu stays readable but not wasteful vertically. */
.mega-top{height:42px!important;min-height:42px!important;padding:4px clamp(14px,2vw,32px)!important}
.mega-module-icon{width:29px!important;height:29px!important}
.mega-module h2{font-size:15px!important;line-height:1!important;margin-top:1px!important}
.mega-module small{font-size:9.6px!important;line-height:1!important}
.mega-home{font-size:11.5px!important;min-height:28px!important;padding:5px 9px!important}
.mega-grid{padding:8px clamp(14px,2vw,32px) 9px!important}
.mega-group{padding-bottom:3px!important}
.mega-group-head{margin-bottom:4px!important;padding-bottom:4px!important;gap:6px!important}
.mega-group-head>span{width:24px!important;height:24px!important;font-size:12px!important}
.mega-group-head b{font-size:13.8px!important;line-height:1!important}
.mega-group-head small{font-size:9.6px!important;line-height:1!important;margin-top:1px!important}
.mega-links a{min-height:25px!important;padding:3.5px 6px 3.5px 15px!important;font-size:13.2px!important;line-height:1.02!important}
.mega-column{padding-left:clamp(10px,1.25vw,18px)!important;padding-right:clamp(10px,1.25vw,18px)!important}
.mega-column .mega-group{padding-bottom:5px!important}
.mega-column .mega-group+.mega-group{margin-top:4px!important;padding-top:4px!important}
.mega-column .mega-group-head b{font-size:13.9px!important}
.mega-column .mega-group-head small{font-size:9.6px!important}
.mega-column .mega-links a{min-height:24px!important;padding-top:3px!important;padding-bottom:3px!important;font-size:13.1px!important;line-height:1.02!important}

/* Left icon rail/context: tighten vertical rhythm without shrinking usability. */
.module-rail-top{min-height:49px!important;padding:4px!important}
.module-rail-expand{height:40px!important;min-height:40px!important}
.module-rail-scroll{padding:3px 5px 5px!important}
.module-rail-item{min-height:43px!important;padding:4px 7px!important;gap:6px!important}
.module-rail-icon{width:29px!important;height:29px!important;flex-basis:29px!important}
.module-rail-icon svg{width:21px!important;height:21px!important}
.module-rail-label{font-size:12.5px!important;line-height:1!important}
.module-rail-bottom{min-height:36px!important;padding:4px 7px!important}

.context-head{min-height:46px!important;height:auto!important;padding:5px 8px!important}
.context-head b{font-size:13.7px!important;line-height:1!important}
.context-head span{font-size:10px!important;line-height:1!important;margin-top:2px!important}
.context-search{height:35px!important;margin:5px 6px 3px!important;padding:2px 5px!important}
.context-search input{height:27px!important;min-height:27px!important;font-size:11.8px!important;line-height:1!important}
.context-scroll{padding:2px 5px 5px!important}
.context-group{margin-bottom:3px!important}
.context-group-title{padding:5px 5px 3px!important;font-size:10.2px!important;line-height:1!important}
.context-link{min-height:29px!important;padding:4px 7px 4px 9px!important;font-size:12.5px!important;line-height:1.02!important}
.context-foot{min-height:34px!important;padding:4px 7px!important}

/* ------------------------------------------------------------------------
   UNIVERSAL DENSITY: these shared classes power every frontend route.
   ------------------------------------------------------------------------ */
body.eschool-layout{font-size:12.2px!important;line-height:var(--dense-line)!important}
.view{padding:7px 9px 12px!important;line-height:var(--dense-line)!important}
.page-grid{gap:6px!important}
.page-grid.two,.page-grid.three{gap:6px!important}
.page-title-row{gap:6px!important;margin:0 0 5px!important;padding:0 0 4px!important;min-height:0!important}
.page-title-row h1{font-size:17.5px!important;line-height:1!important;margin:0!important}
.page-title-row .sub{font-size:11.6px!important;line-height:1.03!important;margin-top:1px!important}
.section-label{font-size:12px!important;line-height:1!important;margin:5px 0 3px!important}

.card,.school-widget,.workspace-card{line-height:var(--dense-line)!important}
.card{padding:7px 8px!important;margin-bottom:6px!important;border-radius:5px!important}
.card.compact{padding:6px!important}
.card-title{font-size:14.4px!important;line-height:1!important;margin:0 0 5px!important;padding-bottom:5px!important;gap:6px!important}
.card-title .title-icon{width:25px!important;height:25px!important;font-size:13px!important}
.card-title .rule{margin-top:29px!important}

.form-grid,.filters{row-gap:4px!important;column-gap:7px!important}
.field label{font-size:11.7px!important;line-height:1!important;margin:0 0 2px!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],select,textarea{
  min-height:29px!important;
  height:29px!important;
  padding:0 7px!important;
  font-size:12.1px!important;
  line-height:1!important;
  border-radius:4px!important;
}
textarea,.textarea{height:auto!important;min-height:46px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:1.08!important}
input[type='file']{min-height:29px!important;padding:3px 5px!important}
.form-actions{margin-top:5px!important;gap:5px!important}
.filters{gap:4px 7px!important}
.filters .filter-actions{gap:4px!important}

.btn{min-height:28px!important;padding:5px 9px!important;font-size:11.8px!important;line-height:1!important;border-radius:4px!important}
.btn-sm{min-height:24px!important;padding:3px 6px!important;font-size:10.5px!important}
.btn-icon{width:25px!important;height:25px!important;min-height:25px!important;padding:0!important}
.alert{padding:5px 7px!important;margin:5px 0!important;font-size:11.5px!important;line-height:1.05!important}

.table-wrap{border-radius:4px!important}
.table-wrap table,table{font-size:11.7px!important;line-height:1.02!important}
th,td{padding:3.5px 5px!important;line-height:1.02!important;vertical-align:middle!important}
thead th{line-height:1!important}
.status{font-size:9.7px!important;padding:1.5px 5px!important;line-height:1!important}
.table-actions{gap:3px!important}
.pagination{gap:5px!important;margin-top:5px!important}
.pagination button{padding:4px 9px!important;line-height:1!important}
.report-meta{font-size:11.2px!important;line-height:1.03!important;padding:2px 0 4px!important;margin:0!important}
.report-total{padding:5px 6px 1px!important;margin-top:1px!important;font-size:11.5px!important;line-height:1!important}

.kpi-grid{gap:5px!important}
.kpi{padding:6px 8px!important}
.kpi .value{font-size:16.5px!important;line-height:1!important}
.kpi .label{font-size:10.8px!important;line-height:1!important;margin-top:2px!important}
.chart-grid{gap:6px!important}
.chart-card{padding:7px 8px!important}
.chart-card h3{margin:0 0 4px!important;line-height:1!important}

.student-layout{gap:7px!important}
.related-panel{padding:5px!important;top:5px!important}
.related-panel h3{font-size:12.2px!important;line-height:1!important;margin:0 0 4px!important}
.related-search{margin-bottom:3px!important}
.related-list{max-height:520px!important}
.related-item{font-size:11.7px!important;line-height:1.01!important;padding:3px 4px!important}
.profile-grid{gap:8px!important}
.profile-pairs{gap:3px 6px!important;font-size:11.5px!important;line-height:1.04!important}

/* Module home/workspace pages. */
.workspace{padding-bottom:8px!important}
.workspace-heading{min-height:58px!important;padding:7px 9px!important;margin-bottom:5px!important;gap:8px!important}
.workspace-heading-icon{width:34px!important;height:34px!important}
.workspace-heading-icon svg{width:19px!important;height:19px!important}
.workspace-heading span{font-size:8.8px!important;line-height:1!important}
.workspace-heading h1{font-size:18.5px!important;line-height:1!important;margin-top:0!important}
.workspace-heading p{font-size:11.5px!important;line-height:1.05!important;margin-top:2px!important}
.workspace-search{height:29px!important;margin-bottom:5px!important;padding:0 7px!important}
.workspace-search input{height:27px!important;min-height:27px!important;font-size:11.7px!important}
.workspace-cols{gap:6px!important}
.eschool-widget-head,.school-widget-head{height:30px!important;min-height:30px!important;padding:0 7px!important}
.eschool-widget-head h2,.school-widget-head h2{font-size:13.2px!important;line-height:1!important}
.eschool-widget-head span,.school-widget-head span{font-size:9.2px!important;line-height:1!important}
.workspace-card-list{padding:3px 5px 5px!important}
.workspace-item{min-height:27px!important;padding:3.5px 4px!important;font-size:12.3px!important;line-height:1.01!important}

/* Dashboard cards and activity lists. */
.dashboard-school,.dashboard-panel,.dashboard-kpi,.quick-actions-card,.calendar-card{line-height:1.04!important}
.dashboard-school-grid{gap:6px!important}
.school-kpi{padding:7px 8px!important}
.school-summary-grid{gap:5px!important}
.school-summary-item{padding:5px 7px!important}
.school-action-grid{gap:5px!important}
.school-action{padding:5px 7px!important;min-height:0!important}
.activity-row{padding:4px 5px!important;min-height:0!important}
.activity-list{gap:0!important}

/* Modal/edit dialogs: same compact rhythm as pages. */
.modal{line-height:1.05!important}
.modal-header{padding:7px 9px!important;margin-bottom:0!important}
.modal-header h2{font-size:14.4px!important;line-height:1!important}
.modal-body{padding:7px 8px!important;line-height:1.05!important}
.modal-footer{padding:5px 8px!important;gap:5px!important}

/* Common textual elements should not create unnecessary vertical whitespace. */
.view p,.card p,.modal p,.workspace p{margin-top:3px!important;margin-bottom:3px!important}
.view h2,.view h3,.card h2,.card h3{line-height:1.03!important}
hr{margin:5px 0!important}

/* Account/Billing finance mega menu remains four columns where space allows. */
.mega-grid.custom-mega{padding-top:8px!important;padding-bottom:9px!important}

/* Responsive brand widths while the profile column remains fixed right. */
@media (max-width:1450px){
  .eschool-header{grid-template-columns:195px minmax(0,1fr) var(--eschool-profile-w)!important}
  .top-module{font-size:12.8px!important;padding:0 7px!important}
}
@media (max-width:1220px){
  .eschool-header{grid-template-columns:138px minmax(0,1fr) var(--eschool-profile-w)!important}
  .eschool-brand-copy{display:none!important}
  .top-module{font-size:12.4px!important;padding:0 6px!important}
}
@media (max-width:1000px){
  .eschool-header{grid-template-columns:82px minmax(0,1fr) 52px!important}
  .top-module{font-size:11.9px!important;padding:0 5px!important}
}

@media print{
  .header-profile-slot{display:none!important}
}

/* ========================================================================
   NAVIGATION TYPOGRAPHY REBALANCE — 2026-10-16
   - restore a slightly larger, clearer font on the primary homepage/module nav
   - enlarge full-width hover mega-menu headings and links on every route
   - keep the compact page density introduced in the previous release
   - profile column/header wrapping behavior remains unchanged
   ======================================================================== */
:root{
  --top-nav-readable:14.3px;
  --mega-link-readable:14px;
  --mega-head-readable:14.8px;
  --mega-small-readable:10.1px;
  --context-readable:13px;
}

/* Primary navigation — shared globally, therefore applied to every page/view. */
.top-module{
  font-size:var(--top-nav-readable)!important;
  line-height:1.05!important;
  font-weight:690!important;
  letter-spacing:0!important;
  padding-left:9px!important;
  padding-right:9px!important;
}
.top-module i{font-size:9.5px!important}

/* Hover / full-width dropdown menu. */
.mega-module h2{
  font-size:15.8px!important;
  line-height:1.04!important;
  font-weight:760!important;
}
.mega-module small{
  font-size:10.1px!important;
  line-height:1.02!important;
}
.mega-home{
  font-size:11.9px!important;
  line-height:1.02!important;
}
.mega-group-head b,
.mega-column .mega-group-head b{
  font-size:var(--mega-head-readable)!important;
  line-height:1.04!important;
  font-weight:760!important;
}
.mega-group-head small,
.mega-column .mega-group-head small{
  font-size:var(--mega-small-readable)!important;
  line-height:1.04!important;
}
.mega-links a,
.mega-column .mega-links a{
  font-size:var(--mega-link-readable)!important;
  line-height:1.08!important;
  font-weight:500!important;
  min-height:27px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
.mega-links a>span{font-size:12.4px!important}

/* Left contextual submenu also receives the same readable ratio. */
.module-rail-label{font-size:13px!important;line-height:1.04!important}
.context-head b{font-size:14.2px!important;line-height:1.03!important}
.context-group-title{font-size:10.6px!important;line-height:1.02!important}
.context-link{
  font-size:var(--context-readable)!important;
  line-height:1.06!important;
  min-height:31px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

/* Keep the increase visible on common desktop widths without breaking wrapping. */
@media (max-width:1450px){
  .top-module{font-size:13.7px!important;padding-left:8px!important;padding-right:8px!important}
  .mega-links a,.mega-column .mega-links a{font-size:13.7px!important}
  .mega-group-head b,.mega-column .mega-group-head b{font-size:14.5px!important}
}
@media (max-width:1220px){
  .top-module{font-size:13.2px!important;padding-left:7px!important;padding-right:7px!important}
  .mega-links a,.mega-column .mega-links a{font-size:13.5px!important}
}
@media (max-width:1000px){
  .top-module{font-size:12.8px!important;padding-left:6px!important;padding-right:6px!important}
  .mega-links a,.mega-column .mega-links a{font-size:13.3px!important}
}

/* ========================================================================
   FINAL UNIFIED NAVBAR + TYPOGRAPHY + SELECT-ALL PASS — 2026-10-16
   - wrapped main modules remain inside one continuous navigation section
   - profile stays fixed at the far right of the header
   - homepage typography is reused throughout every generated route/page
   - compact vertical rhythm keeps more data visible without shrinking text
   - checkbox list tables receive a circular Select-All control in the header
   ======================================================================== */
:root{
  --brand:#0b87ba;
  --brand-soft:#F1F3FA;
  --accent:#e5463a;
  --accent-soft:#FFF0F1;
  --nav-bg:#FAFAFB;
  --nav-border:#D9DCE6;
  --page-text:#363A43;
  --page-muted:#727989;
  --page-font:13px;
  --page-line:1.10;
  --nav-row-h:49px;
}

/* One continuous header/navigation surface, including wrapped rows. */
.eschool-header{
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  display:grid!important;
  grid-template-columns:295px minmax(0,1fr) 62px!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
  min-height:var(--nav-row-h)!important;
  height:auto!important;
  background:var(--nav-bg)!important;
  border-bottom:1px solid var(--nav-border)!important;
  box-shadow:0 1px 5px rgba(35,40,51,.045)!important;
  overflow:visible!important;
}
.eschool-brand,
.top-module-nav,
.header-profile-slot,
.top-module{
  background:var(--nav-bg)!important;
}
.eschool-brand{
  align-self:stretch!important;
  height:100%!important;
  min-height:var(--nav-row-h)!important;
  padding:4px 12px!important;
  border-right:1px solid var(--nav-border)!important;
}
.eschool-brand img{width:43px!important;height:43px!important}
.eschool-brand-copy strong{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:15px!important;
  line-height:1.03!important;
  font-weight:750!important;
  color:var(--brand)!important;
}
.eschool-brand-copy small{
  font-size:9.8px!important;
  line-height:1.02!important;
  color:var(--page-muted)!important;
  margin-top:2px!important;
}

.top-module-nav{
  display:flex!important;
  flex-wrap:wrap!important;
  align-content:flex-start!important;
  align-items:stretch!important;
  min-width:0!important;
  width:100%!important;
  min-height:var(--nav-row-h)!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  overflow:visible!important;
  border:0!important;
}
.top-module{
  flex:0 0 auto!important;
  height:var(--nav-row-h)!important;
  min-height:var(--nav-row-h)!important;
  padding:0 10px!important;
  margin:0!important;
  gap:6px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:14.4px!important;
  line-height:1!important;
  font-weight:700!important;
  letter-spacing:0!important;
  color:#333842!important;
  box-shadow:none!important;
}
.top-module:hover,
.top-module[aria-expanded="true"]{
  color:var(--accent)!important;
  background:#FFF!important;
}
.top-module.active{
  color:var(--accent)!important;
  background:#FFF!important;
  border-bottom-color:var(--accent)!important;
}
.top-module-icon{width:18px!important;height:18px!important;color:var(--brand)!important}
.top-module-icon svg{width:17px!important;height:17px!important;fill:currentColor!important}
.top-module i{font-size:9px!important;color:var(--brand)!important;margin-left:1px!important}

/* The profile occupies its own last column and never wraps with menu items. */
.header-profile-slot{
  grid-column:3!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  height:auto!important;
  min-height:var(--nav-row-h)!important;
  padding:6px 0 0!important;
  border-left:1px solid var(--nav-border)!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  position:relative!important;
  z-index:95!important;
}
.top-profile{
  position:relative!important;
  width:100%!important;
  height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.top-profile-btn{
  width:36px!important;
  height:36px!important;
  border:1px solid #D7DBE6!important;
  background:#FFF!important;
  color:var(--brand)!important;
  border-radius:50%!important;
  box-shadow:0 1px 3px rgba(30,37,50,.06)!important;
}
.top-profile-btn:hover{color:var(--accent)!important;border-color:#f1bbb6!important;background:var(--accent-soft)!important}
.top-profile-menu{top:38px!important;right:6px!important;width:190px!important}
.top-profile-menu button{
  min-height:35px!important;
  padding:7px 13px!important;
  font-size:13.6px!important;
  line-height:1.02!important;
  font-family:inherit!important;
}

/* Keep page content exactly below the measured, possibly two-row navbar. */
.eschool-app{grid-template-rows:var(--eschool-head-h) minmax(0,1fr)!important}
.eschool-body{height:calc(100dvh - var(--eschool-head-h))!important}
.mega-menu{top:var(--eschool-head-h)!important}

/* Full-width hover menu remains tied to the same navigation system. */
.mega-menu{
  left:0!important;
  right:0!important;
  width:100vw!important;
}
.mega-card{
  width:100%!important;
  max-width:none!important;
  border-radius:0 0 7px 7px!important;
  border-top:1px solid var(--nav-border)!important;
}
.mega-top{padding:6px clamp(20px,2.4vw,40px)!important;min-height:44px!important;height:auto!important}
.mega-module h2{font-size:16.2px!important;line-height:1.02!important;font-weight:760!important}
.mega-module small{font-size:10.3px!important;line-height:1.04!important}
.mega-home{font-size:12.1px!important;line-height:1!important}
.mega-grid{padding:10px clamp(20px,2.4vw,40px) 12px!important}
.mega-group-head{margin-bottom:5px!important;padding-bottom:5px!important}
.mega-group-head b,.mega-column .mega-group-head b{font-size:15px!important;line-height:1.03!important;font-weight:760!important}
.mega-group-head small,.mega-column .mega-group-head small{font-size:10.3px!important;line-height:1.05!important}
.mega-links a,.mega-column .mega-links a{
  min-height:28px!important;
  padding:4.5px 7px 4.5px 17px!important;
  font-size:14px!important;
  line-height:1.08!important;
  font-weight:500!important;
}

/* Homepage font family/style is now the default for every generated page. */
body.eschool-layout,
.view,
.card,
.workspace,
.modal,
.table-wrap,
input,select,textarea,button{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  color:var(--page-text)!important;
  letter-spacing:0!important;
}
body.eschool-layout{font-size:var(--page-font)!important;line-height:var(--page-line)!important}
.view{line-height:var(--page-line)!important;padding:7px 9px 11px!important}
.page-title-row{margin:0 0 7px!important;padding:0 1px 6px!important;gap:9px!important}
.page-title-row h1{font-size:19px!important;line-height:1.03!important;font-weight:760!important}
.page-title-row .sub{font-size:12.5px!important;line-height:1.08!important;margin-top:2px!important}
.card{padding:8px 10px!important;margin-bottom:7px!important;border-radius:5px!important}
.card-title{font-size:15.2px!important;line-height:1.02!important;font-weight:740!important;margin:0 0 6px!important;padding-bottom:6px!important;gap:7px!important}
.card-title .title-icon{width:27px!important;height:27px!important;font-size:13px!important}
.section-label{font-size:12.7px!important;line-height:1.02!important;margin:6px 0 4px!important}
.form-grid,.filters{row-gap:5px!important;column-gap:8px!important}
.field label{font-size:12.4px!important;line-height:1.01!important;margin:0 0 2px!important;font-weight:620!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],select,textarea{
  min-height:31px!important;
  height:31px!important;
  padding:0 8px!important;
  font-size:12.6px!important;
  line-height:1.02!important;
}
textarea,.textarea{height:auto!important;min-height:48px!important;padding-top:5px!important;padding-bottom:5px!important;line-height:1.06!important}
.form-actions{margin-top:6px!important;gap:6px!important}
.btn{min-height:29px!important;padding:5px 9px!important;font-size:12.2px!important;line-height:1!important}
.alert{padding:6px 8px!important;margin:5px 0!important;font-size:12px!important;line-height:1.06!important}

/* Dense but readable data tables on all routes. */
.table-wrap table,table{font-size:12.1px!important;line-height:1.04!important}
th,td{padding:4px 6px!important;line-height:1.04!important;vertical-align:middle!important}
thead th{font-size:12.1px!important;line-height:1!important;font-weight:740!important}
.status{font-size:10px!important;line-height:1!important;padding:2px 5px!important}
.related-item{font-size:12.1px!important;line-height:1.04!important;padding:4px 5px!important}
.report-meta{font-size:11.7px!important;line-height:1.05!important;padding:3px 0 5px!important}

/* Left quick/context menu uses the same typography family and tighter rhythm. */
.module-rail-label{font-size:13.2px!important;line-height:1.02!important;font-weight:650!important}
.context-head b{font-size:14.4px!important;line-height:1.02!important;font-weight:750!important}
.context-head span{font-size:10.5px!important;line-height:1.03!important}
.context-group-title{font-size:10.7px!important;line-height:1!important}
.context-link{min-height:31px!important;padding:5px 8px 5px 10px!important;font-size:13px!important;line-height:1.04!important}
.workspace-heading h1{font-size:20px!important;line-height:1.03!important}
.workspace-heading p{font-size:12.2px!important;line-height:1.08!important}
.workspace-item{font-size:13px!important;line-height:1.04!important}

/* Circular Select-All dot + row selection dots for every checkbox list table. */
.table-select-all{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  margin:0 auto!important;
  cursor:pointer!important;
}
.table-select-all input{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  pointer-events:none!important;
}
.table-select-all span{
  display:block!important;
  width:15px!important;
  height:15px!important;
  border:1.5px solid var(--brand)!important;
  border-radius:50%!important;
  background:#FFF!important;
  box-shadow:inset 0 0 0 3px #FFF!important;
  transition:.12s ease!important;
}
.table-select-all:hover span{border-color:var(--accent)!important}
.table-select-all input:checked + span{background:var(--brand)!important;border-color:var(--brand)!important}
.table-select-all input:indeterminate + span{background:var(--accent)!important;border-color:var(--accent)!important}
.table-wrap table:has(.table-select-all-check) tbody td:first-child input[type='checkbox']{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:14px!important;
  height:14px!important;
  min-height:14px!important;
  padding:0!important;
  margin:0 auto!important;
  border:1.4px solid #aab2c4!important;
  border-radius:50%!important;
  background:#FFF!important;
  display:block!important;
  cursor:pointer!important;
  box-shadow:inset 0 0 0 3px #FFF!important;
}
.table-wrap table:has(.table-select-all-check) tbody td:first-child input[type='checkbox']:checked{
  background:var(--brand)!important;
  border-color:var(--brand)!important;
}
.table-wrap table:has(.table-select-all-check) tbody td:first-child input[type='checkbox']:hover{border-color:var(--accent)!important}

/* Responsive wrapping: the menu row stays part of the same background section. */
@media (max-width:1450px){
  .eschool-header{grid-template-columns:235px minmax(0,1fr) 58px!important}
  .top-module{font-size:13.8px!important;padding-left:8px!important;padding-right:8px!important}
}
@media (max-width:1220px){
  .eschool-header{grid-template-columns:155px minmax(0,1fr) 56px!important}
  .eschool-brand-copy{display:none!important}
  .eschool-brand{justify-content:center!important}
  .top-module{font-size:13.3px!important;padding-left:7px!important;padding-right:7px!important}
}
@media (max-width:1000px){
  .eschool-header{grid-template-columns:86px minmax(0,1fr) 52px!important}
  .top-module{font-size:12.8px!important;padding-left:6px!important;padding-right:6px!important}
  .top-module-icon{display:none!important}
}

@media print{
  .header-profile-slot,.table-select-all{display:none!important}
}

/* ========================================================================
   HEADER ALIGNMENT + COMPACT ALL-PAGES PASS — 2026-10-16
   Fixes the wrapped INFR. MGMT row so it remains inside the SAME navbar
   surface as Dashboard…HR; keeps profile fixed at far right; tightens
   vertical rhythm across every SPA route without touching application data.
   ======================================================================== */
:root{
  --nav-row-h:43px;
  --page-font:12.9px;
  --page-line:1.055;
  --nav-brand-w:295px;
  --nav-profile-w:58px;
}

/* One grid row whose height is determined by the wrapped navigation itself.
   Brand and profile stretch to the same total height, so a second menu line
   never looks like a detached bar. Reset old grid-row:1/3 rules explicitly. */
.eschool-header{
  display:grid!important;
  grid-template-columns:var(--nav-brand-w) minmax(0,1fr) var(--nav-profile-w)!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
  align-content:start!important;
  column-gap:0!important;
  row-gap:0!important;
  padding:0!important;
  margin:0!important;
  min-height:var(--nav-row-h)!important;
  height:auto!important;
  background:var(--nav-bg)!important;
  border-bottom:1px solid var(--nav-border)!important;
  box-shadow:0 1px 4px rgba(35,40,51,.04)!important;
  overflow:visible!important;
}
.eschool-brand{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  min-height:100%!important;
  height:auto!important;
  padding:3px 10px!important;
  margin:0!important;
  border-right:1px solid var(--nav-border)!important;
  border-bottom:0!important;
  background:var(--nav-bg)!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
}
.eschool-brand a{min-height:var(--nav-row-h)!important;align-items:center!important;gap:8px!important}
.eschool-brand img{width:39px!important;height:39px!important;flex:0 0 39px!important}
.eschool-brand-copy{line-height:1!important;padding-top:1px!important}
.eschool-brand-copy strong{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:14.4px!important;
  line-height:1.01!important;
  font-weight:760!important;
  letter-spacing:-.01em!important;
}
.eschool-brand-copy small{font-size:9.3px!important;line-height:1!important;margin-top:2px!important}

.top-module-nav{
  grid-column:2!important;
  grid-row:1!important;
  align-self:start!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-content:flex-start!important;
  align-items:flex-start!important;
  width:100%!important;
  min-width:0!important;
  min-height:var(--nav-row-h)!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  overflow:visible!important;
  background:var(--nav-bg)!important;
  border:0!important;
}
.top-module{
  flex:0 0 auto!important;
  height:var(--nav-row-h)!important;
  min-height:var(--nav-row-h)!important;
  padding:0 9px!important;
  margin:0!important;
  gap:6px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  background:var(--nav-bg)!important;
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:14.1px!important;
  line-height:1!important;
  font-weight:700!important;
  letter-spacing:-.005em!important;
  color:#30343c!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.top-module:hover,.top-module[aria-expanded="true"]{background:#fff!important;color:var(--accent)!important}
.top-module.active{background:#fff!important;color:var(--accent)!important;border-bottom-color:var(--accent)!important}
.top-module-icon{width:17px!important;height:17px!important;flex:0 0 17px!important}
.top-module-icon svg{width:16px!important;height:16px!important}
.top-module i{font-size:8px!important;margin-left:0!important}

.header-profile-slot{
  grid-column:3!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  min-height:100%!important;
  height:auto!important;
  padding:3px 0 0!important;
  margin:0!important;
  border-left:1px solid var(--nav-border)!important;
  border-bottom:0!important;
  background:var(--nav-bg)!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
.top-profile{height:37px!important}
.top-profile-btn{width:35px!important;height:35px!important}
.top-profile-menu{top:37px!important;right:5px!important}

/* The mega menu always starts exactly below however many nav rows wrapped. */
.mega-menu{top:var(--eschool-head-h)!important}

/* Global typography: same clean dashboard family/style on every route. */
html,body,button,input,select,textarea,table{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.eschool-layout{font-size:var(--page-font)!important;line-height:var(--page-line)!important;color:var(--page-text)!important}

/* Tighter page rhythm: more information visible before scrolling. */
.view{padding:5px 7px 8px!important;line-height:var(--page-line)!important}
.page-title-row{margin:0 0 5px!important;padding:0 1px 4px!important;gap:6px!important}
.page-title-row h1{font-size:18.2px!important;line-height:1.01!important;font-weight:750!important}
.page-title-row .sub{font-size:12px!important;line-height:1.03!important;margin-top:1px!important}

.card{padding:6px 8px!important;margin-bottom:5px!important;border-radius:4px!important}
.card-title{font-size:14.7px!important;line-height:1.01!important;margin:0 0 5px!important;padding-bottom:5px!important;gap:6px!important}
.card-title .title-icon{width:25px!important;height:25px!important}
.section-label{font-size:12.3px!important;line-height:1!important;margin:4px 0 3px!important;padding-left:6px!important}

.form-grid,.filters{row-gap:4px!important;column-gap:7px!important}
.field{min-width:0!important}
.field label{font-size:12.1px!important;line-height:1!important;margin:0 0 2px!important;font-weight:620!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],input[type='tel'],select,textarea{
  min-height:29px!important;
  height:29px!important;
  padding:0 7px!important;
  font-size:12.4px!important;
  line-height:1!important;
  border-radius:3px!important;
}
textarea,.textarea{height:auto!important;min-height:44px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:1.04!important}
.form-actions{margin-top:5px!important;gap:5px!important}
.btn{min-height:28px!important;padding:4px 8px!important;font-size:12px!important;line-height:1!important}
.alert{padding:5px 7px!important;margin:4px 0!important;font-size:11.8px!important;line-height:1.03!important}

/* Dense, aligned tables/reports while preserving readability. */
.table-wrap{border-radius:4px!important}
.table-wrap table,table{font-size:11.9px!important;line-height:1.02!important}
th,td{padding:3.5px 5px!important;line-height:1.02!important;vertical-align:middle!important}
thead th{font-size:11.9px!important;line-height:1!important;font-weight:730!important}
.status{font-size:9.8px!important;line-height:1!important;padding:2px 5px!important}
.report-meta{font-size:11.4px!important;line-height:1.02!important;padding:2px 0 4px!important}
.pagination{margin-top:5px!important;gap:5px!important}
.pagination button{padding:4px 9px!important;font-size:11.5px!important}

/* Compact supporting panels, lists and workspaces. */
.related-panel{padding:6px!important}
.related-list{max-height:520px!important}
.related-item{font-size:11.9px!important;line-height:1.02!important;padding:3px 5px!important}
.context-head{height:55px!important;padding:7px 9px 6px!important}
.context-head b{font-size:13.8px!important;line-height:1!important}
.context-head span{font-size:10.1px!important;line-height:1!important;margin-top:2px!important}
.context-search{height:31px!important;margin:5px 7px!important}
.context-search input{height:29px!important;font-size:11.9px!important}
.context-group-title{font-size:10.2px!important;line-height:1!important;padding:7px 8px 4px!important}
.context-link{min-height:29px!important;padding:4px 7px 4px 9px!important;font-size:12.5px!important;line-height:1.02!important}
.module-rail-top{flex-basis:49px!important;padding:5px 7px!important}
.module-rail-expand{height:36px!important;padding:0 12px!important}
.module-rail-item{min-height:50px!important;padding-top:5px!important;padding-bottom:5px!important}
.module-rail-label{font-size:12.8px!important;line-height:1!important}

.workspace-heading{padding:9px 11px!important;margin-bottom:7px!important;gap:9px!important}
.workspace-heading-icon{width:42px!important;height:42px!important}
.workspace-heading h1{font-size:19px!important;line-height:1.01!important}
.workspace-heading p{font-size:11.8px!important;line-height:1.04!important;margin-top:2px!important}
.workspace-search{height:35px!important;margin-bottom:7px!important}
.workspace-search input{height:33px!important;font-size:12.1px!important}
.workspace-cols{gap:7px!important}
.workspace-item{min-height:32px!important;padding:5px 6px!important;font-size:12.5px!important;line-height:1.02!important}
.eschool-widget-head{height:36px!important;padding:0 9px!important}
.eschool-widget-head h2{font-size:13.7px!important;line-height:1!important}
.eschool-widget-head span{font-size:10px!important}
.workspace-card-list{padding:5px 7px 7px!important}

/* Mega dropdown typography stays clear, but vertical whitespace is trimmed. */
.mega-top{padding:5px clamp(16px,2vw,32px)!important;min-height:41px!important}
.mega-module h2{font-size:15.8px!important;line-height:1!important}
.mega-module small{font-size:10px!important;line-height:1!important}
.mega-grid{padding:8px clamp(16px,2vw,32px) 10px!important}
.mega-group{padding-bottom:5px!important}
.mega-group-head{margin-bottom:4px!important;padding-bottom:4px!important}
.mega-group-head b,.mega-column .mega-group-head b{font-size:14.6px!important;line-height:1!important}
.mega-group-head small,.mega-column .mega-group-head small{font-size:10px!important;line-height:1.02!important;margin-top:1px!important}
.mega-links a,.mega-column .mega-links a{min-height:26px!important;padding:3.5px 6px 3.5px 15px!important;font-size:13.6px!important;line-height:1.04!important}

/* Dashboard widgets follow the same compact rhythm. */
.dashboard-school-grid{gap:7px!important}
.school-widget{min-height:0!important;border-radius:4px!important}
.school-widget-head{height:36px!important;padding:0 9px!important}
.school-widget-head h2{font-size:14.2px!important;line-height:1!important}
.school-widget-body{padding:8px!important;min-height:0!important}
.school-widget.wide .school-widget-body{padding:8px!important}
.school-kpi-row{gap:6px!important}
.school-kpi{padding:9px 8px!important}
.school-kpi b{font-size:24px!important}
.school-kpi span{font-size:11.7px!important;line-height:1.05!important;margin-top:4px!important}
.school-summary-item{padding:7px 6px!important;min-height:0!important}
.school-summary-item span{font-size:11.2px!important;line-height:1.03!important}
.school-summary-item b{font-size:18px!important;margin-top:3px!important}
.school-program-list{gap:7px!important}
.school-action-grid{gap:6px!important}
.school-action{min-height:52px!important;padding:7px!important}
.school-action b{font-size:11.9px!important;line-height:1.02!important}
.school-action small{font-size:9.8px!important;line-height:1.03!important;margin-top:2px!important}
.activity-list.school .activity-row{padding:6px 0!important}
.dashboard-campus-info{gap:5px 9px!important;font-size:11.6px!important;line-height:1.05!important}
.dashboard-campus-info b,.dashboard-campus-info span{font-size:11.6px!important}

/* Responsive menu widths: still one continuous surface when items wrap. */
@media (max-width:1450px){
  :root{--nav-brand-w:245px;--nav-profile-w:56px}
  .top-module{font-size:13.6px!important;padding-left:7px!important;padding-right:7px!important}
  .eschool-brand-copy strong{font-size:13.8px!important}
}
@media (max-width:1220px){
  :root{--nav-brand-w:155px;--nav-profile-w:54px}
  .eschool-brand-copy{display:none!important}
  .eschool-brand{justify-content:center!important}
  .top-module{font-size:13.1px!important;padding-left:6px!important;padding-right:6px!important}
}
@media (max-width:1000px){
  :root{--nav-brand-w:82px;--nav-profile-w:50px}
  .top-module{font-size:12.7px!important;padding-left:5px!important;padding-right:5px!important}
  .top-module-icon{display:none!important}
}

/* ========================================================================
   FINAL FULL-WIDTH UNIFIED HEADER + CENTERED PROFILE PASS — 2026-10-16
   User-requested finishing pass:
   - logo, all main modules, wrapped module rows and profile form ONE header surface
   - when modules wrap, the brand and profile columns span the full header height
   - profile icon remains at the far-right and is vertically centered
   - brand/logo remains vertically centered and visually balanced
   - no route data or application records are modified
   - all pages retain compact line-height/padding so more content fits on screen
   ======================================================================== */
:root{
  --final-header-bg:#FFFFFF;
  --final-header-border:#D9DCE6;
  --final-brand:#0b87ba;
  --final-accent:#e5463a;
  --final-nav-row:50px;
  --final-brand-w:300px;
  --final-profile-w:64px;
  --final-page-line:1.055;
}

/* One continuous rectangle from far-left logo to far-right profile. */
.eschool-header{
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  display:grid!important;
  grid-template-columns:var(--final-brand-w) minmax(0,1fr) var(--final-profile-w)!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
  min-height:var(--final-nav-row)!important;
  height:auto!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  background:var(--final-header-bg)!important;
  border:1px solid var(--final-header-border)!important;
  border-left:0!important;
  border-right:0!important;
  box-shadow:0 1px 5px rgba(35,40,51,.05)!important;
  overflow:visible!important;
}

/* Brand spans the complete wrapped header height and stays centered. */
.eschool-brand{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  min-height:var(--final-nav-row)!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:5px 13px!important;
  margin:0!important;
  background:var(--final-header-bg)!important;
  border-right:1px solid var(--final-header-border)!important;
  border-bottom:0!important;
}
.eschool-brand a{
  width:100%!important;
  min-height:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.eschool-brand img{
  width:50px!important;
  height:50px!important;
  object-fit:contain!important;
  flex:0 0 50px!important;
  margin:0!important;
}
.eschool-brand-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  line-height:1!important;
}
.eschool-brand-copy strong{
  margin:0!important;
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:15.5px!important;
  line-height:1.02!important;
  font-weight:760!important;
  color:var(--final-brand)!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.eschool-brand-copy small{
  margin-top:3px!important;
  font-size:10px!important;
  line-height:1!important;
  color:#737a89!important;
  white-space:nowrap!important;
}

/* Every wrapped navigation line belongs to exactly the same header section. */
.top-module-nav{
  grid-column:2!important;
  grid-row:1!important;
  align-self:stretch!important;
  display:flex!important;
  flex-flow:row wrap!important;
  align-content:flex-start!important;
  align-items:stretch!important;
  min-width:0!important;
  width:100%!important;
  min-height:var(--final-nav-row)!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  background:var(--final-header-bg)!important;
  border:0!important;
  overflow:visible!important;
}
.top-module{
  flex:0 0 auto!important;
  height:var(--final-nav-row)!important;
  min-height:var(--final-nav-row)!important;
  margin:0!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  background:var(--final-header-bg)!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#30343C!important;
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
  font-size:14.2px!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.top-module:hover,.top-module[aria-expanded='true']{
  background:#FFF!important;
  color:var(--final-accent)!important;
}
.top-module.active{
  background:#FFF!important;
  color:var(--final-accent)!important;
  border-bottom-color:var(--final-accent)!important;
}
.top-module-icon{width:17px!important;height:17px!important;flex:0 0 17px!important;color:var(--final-brand)!important}
.top-module-icon svg{width:16px!important;height:16px!important;fill:currentColor!important}
.top-module i{font-size:8px!important;line-height:1!important;margin-left:0!important;color:var(--final-brand)!important}

/* Right profile column spans full header height, icon exactly centered vertically. */
.header-profile-slot{
  grid-column:3!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  min-height:var(--final-nav-row)!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--final-header-bg)!important;
  border-left:1px solid var(--final-header-border)!important;
  border-bottom:0!important;
  position:relative!important;
  z-index:110!important;
}
.top-profile{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:var(--final-nav-row)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
}
.top-profile-btn{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #D7DBE6!important;
  border-radius:50%!important;
  background:#FFF!important;
  color:var(--final-brand)!important;
  box-shadow:0 1px 4px rgba(30,37,50,.07)!important;
  display:grid!important;
  place-items:center!important;
}
.top-profile-btn:hover,.top-profile-btn[aria-expanded='true']{
  color:var(--final-accent)!important;
  border-color:#f0bdb8!important;
  background:#FFF4F5!important;
}
.top-profile-icon,.top-profile-icon svg{width:20px!important;height:20px!important}
/* The popup starts under the whole header, not halfway through a wrapped nav row. */
.top-profile-menu{
  top:100%!important;
  right:6px!important;
  width:190px!important;
  margin-top:0!important;
  z-index:130!important;
}
.top-profile-menu::before{right:14px!important}

/* Keep the application body and hover mega-menu below the real measured header. */
.eschool-app{grid-template-rows:var(--eschool-head-h) minmax(0,1fr)!important}
.eschool-body{
  min-height:0!important;
  height:calc(100dvh - var(--eschool-head-h))!important;
}
.mega-menu{
  top:var(--eschool-head-h)!important;
  left:0!important;
  right:0!important;
  width:100vw!important;
}

/* Final all-pages density tuning: compact, but still comfortably readable. */
body.eschool-layout,
.view,.card,.workspace,.modal,.table-wrap,
input,select,textarea,button,table{
  font-family:"Segoe UI Variable","Segoe UI","Noto Sans Devanagari",Arial,sans-serif!important;
}
body.eschool-layout{line-height:var(--final-page-line)!important}
.view{padding:5px 7px 8px!important;line-height:var(--final-page-line)!important}
.page-grid,.page-grid.two,.page-grid.three{gap:6px!important}
.page-title-row{margin:0 0 5px!important;padding:0 1px 4px!important;gap:6px!important}
.page-title-row h1{font-size:18.2px!important;line-height:1!important}
.page-title-row .sub{font-size:12px!important;line-height:1.02!important;margin-top:1px!important}
.card{padding:6px 8px!important;margin-bottom:5px!important}
.card-title{margin:0 0 5px!important;padding-bottom:5px!important;line-height:1!important}
.section-label{margin:4px 0 3px!important;line-height:1!important}
.form-grid,.filters{row-gap:4px!important;column-gap:7px!important}
.field label{margin:0 0 2px!important;line-height:1!important}
.input,.select,.textarea,input[type='text'],input[type='number'],input[type='date'],input[type='email'],input[type='password'],input[type='search'],input[type='tel'],select,textarea{
  min-height:29px!important;
  height:29px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:1!important;
}
textarea,.textarea{height:auto!important;min-height:44px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:1.04!important}
.form-actions{margin-top:5px!important;gap:5px!important}
.btn{min-height:28px!important;padding:4px 8px!important;line-height:1!important}
.table-wrap table,table{line-height:1.015!important}
th,td{padding:3.4px 5px!important;line-height:1.015!important}
.report-meta{line-height:1.02!important;padding:2px 0 4px!important}
.related-item{padding:3px 5px!important;line-height:1.015!important}
.context-link{min-height:29px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:1.02!important}
.workspace-item{min-height:31px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:1.02!important}
.mega-links a,.mega-column .mega-links a{line-height:1.05!important}

/* Responsive: preserve the unified full-height brand/profile columns while nav wraps. */
@media (max-width:1550px){
  :root{--final-brand-w:260px;--final-profile-w:60px}
  .top-module{font-size:13.8px!important;padding-left:7px!important;padding-right:7px!important}
  .eschool-brand-copy strong{font-size:14.7px!important}
}
@media (max-width:1300px){
  :root{--final-brand-w:190px;--final-profile-w:58px}
  .eschool-brand img{width:46px!important;height:46px!important;flex-basis:46px!important}
  .eschool-brand-copy strong{font-size:13.8px!important}
  .eschool-brand-copy small{font-size:9.4px!important}
  .top-module{font-size:13.4px!important;padding-left:6px!important;padding-right:6px!important}
}
@media (max-width:1100px){
  :root{--final-brand-w:82px;--final-profile-w:54px}
  .eschool-brand{justify-content:center!important;padding-left:7px!important;padding-right:7px!important}
  .eschool-brand-copy{display:none!important}
  .top-module{font-size:12.9px!important;padding-left:5px!important;padding-right:5px!important}
  .top-module-icon{display:none!important}
  .top-profile-btn{width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important}
}

@media print{
  .eschool-header,.header-profile-slot{display:none!important}
}
