@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
:root{--brown:#7b2600;--brown2:#a93e08;--cream:#f7f6fb;--ink:#1c2735;--muted:#a9b3c0;--card:#fff;--green:#73dd3e;--cyan:#21c4df;--shadow:0 5px 16px rgba(32,42,58,.12)}
*{box-sizing:border-box}body{margin:0;font-family:'Poppins',Arial,Helvetica,sans-serif;background:var(--cream);color:#111}.app{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;margin:24px auto;width:min(92%,1100px);height:96px;background:white;border-radius:12px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.top-left,.top-right{display:flex;align-items:center;gap:28px}.icon{font-size:30px;cursor:pointer}.avatar{width:64px;height:64px;border-radius:50%;background:#d7d7d7;display:grid;place-items:center;font-size:38px;position:relative}.avatar:after{content:'';position:absolute;right:2px;bottom:3px;width:16px;height:16px;border-radius:50%;background:#64dc35;border:3px solid white}.layout{display:flex}.sidebar{width:300px;position:fixed;top:0;left:-315px;bottom:0;background:white;z-index:40;box-shadow:var(--shadow);padding:30px 20px;transition:.25s}.sidebar.open{left:0}.brand{display:flex;align-items:center;gap:12px;color:#9d6d5b;font-weight:700;font-size:21px;padding:25px 10px;border-bottom:1px solid #eee}.nav a{display:flex;gap:18px;align-items:center;padding:18px;border-radius:10px;color:#111;text-decoration:none;font-size:19px;margin-top:8px}.nav a:hover,.nav a.active{background:#efedff;color:var(--brown)}.backdrop{display:none;position:fixed;inset:0;background:rgba(35,55,75,.45);z-index:30}.backdrop.show{display:block}.content{width:min(92%,1100px);margin:70px auto 120px}.hero{padding:30px 0}.hero h1{font-size:42px;margin:0 0 20px}.hero p{font-size:22px;line-height:1.5}.staff-id{font-size:22px}.staff-id strong{display:block;color:var(--brown);font-size:32px;margin-top:6px}.contact-row{display:flex;align-items:center;gap:18px;margin:18px 0}.contact-box{width:76px;height:76px;border-radius:12px;display:grid;place-items:center;font-size:35px}.blue{background:#d8f7ff;color:#10bddb}.yellow{background:#fff0c7;color:#ffb000}.contact-row .value{font-size:25px;color:var(--cyan)}.section-title{font-size:29px;color:var(--brown);font-weight:700;margin:35px 0 22px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}.card{background:white;border-radius:14px;box-shadow:var(--shadow);padding:26px}.stat{text-align:center}.stat .label{color:var(--muted);font-weight:700;font-size:22px}.stat .value{font-size:34px;font-weight:700;margin-top:18px}.header-card{background:linear-gradient(135deg,var(--brown),var(--brown2));color:white;padding:24px;border-radius:12px;margin-bottom:28px}.header-card h2{margin:0 0 10px;font-size:30px}.form-card{background:#fff;padding:28px;border-radius:14px;box-shadow:var(--shadow);margin-bottom:25px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field label{display:block;font-size:16px;font-weight:700;margin-bottom:9px}.field input,.field select,.field textarea{width:100%;padding:15px;border:1px solid #d7dbe1;border-radius:10px;font-size:17px}.field textarea{min-height:150px}.btn{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:30px;padding:14px 28px;font-size:18px;cursor:pointer;text-decoration:none}.btn-primary{background:var(--brown);color:white}.btn-soft{background:#ad806f;color:white}.btn-outline{background:white;border:1px solid #aab3be;color:#66717f}.table-wrap{overflow:auto;background:#fff;border-radius:14px;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse}th,td{padding:14px;border-bottom:1px solid #eceff3;text-align:left;white-space:nowrap}th{background:#fafbfc}.badge{display:inline-block;border-radius:15px;padding:7px 12px;font-size:13px}.badge-green{background:#e9ffdf;color:#63ca33}.badge-blue{background:#d8f8ff;color:#13bcd6}.student-card{background:#fff;padding:24px;border-radius:14px;box-shadow:var(--shadow);margin:18px 0}.mark-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mark-grid input{width:100%;padding:13px;border:1px solid #d7dbe1;border-radius:8px}.login-page{min-height:100vh;background:white}.login-banner{height:310px;background:linear-gradient(rgba(109,38,4,.88),rgba(109,38,4,.88)),repeating-linear-gradient(45deg,#7e2a07,#7e2a07 12px,#8d340e 12px,#8d340e 24px);display:grid;place-items:center;color:white;text-align:center}.login-banner h1{font-size:38px;margin:0}.login-box{max-width:600px;margin:55px auto;padding:0 28px}.login-box h2{text-align:center;color:#7d3d18;font-size:34px}.notice{padding:13px 16px;border-radius:8px;margin:12px 0}.notice-success{background:#e7f9e2;color:#2d7c21}.notice-error{background:#ffe6e3;color:#a62c20}.result-sheet{background:white;padding:35px;border-radius:14px;box-shadow:var(--shadow)}.result-head{text-align:center;border-bottom:3px solid var(--brown);padding-bottom:18px}.result-head h1{color:var(--brown);margin:0}.no-print{display:block}@media(max-width:700px){.topbar{height:84px;padding:0 22px}.top-left,.top-right{gap:18px}.icon{font-size:25px}.content{margin-top:45px}.hero h1{font-size:31px}.hero p{font-size:18px}.form-grid,.mark-grid{grid-template-columns:1fr}.sidebar{width:78%}.login-banner{height:285px}.cards{grid-template-columns:1fr}.result-sheet{padding:18px}}@media print{.topbar,.sidebar,.backdrop,.no-print{display:none!important}.content{width:100%;margin:0}.result-sheet{box-shadow:none}}
.field small{display:block;color:#7b8794;margin-top:7px;line-height:1.4}.class-result-actions{width:min(96%,1400px);margin:18px auto;display:flex;gap:12px;justify-content:flex-end}.class-result-page{width:min(96%,1400px);margin:0 auto 30px;background:#fff;padding:24px 30px;box-shadow:var(--shadow)}.class-result-top{display:flex;justify-content:space-between;color:#555;font-size:12px}.class-result-header{text-align:center}.class-result-header h1{font-size:32px;margin:8px 0}.class-result-header h2{font-size:22px;font-weight:500;margin:0}.class-result-header p{font-size:12px}.school-seal{font-size:42px;margin:10px}.school-contact{display:flex;justify-content:space-between;border-bottom:2px solid #222;padding:8px 0;font-size:12px;line-height:1.5}.result-meta{padding:13px 0}.class-result-table{overflow:auto}.class-result-table table{font-size:12px}.class-result-table th,.class-result-table td{padding:8px 9px;text-align:center}.class-result-table th:first-child,.class-result-table td:first-child{text-align:left;min-width:210px}.print-footer{display:flex;justify-content:space-between;margin-top:35px;font-size:11px;color:#666}.student-portal{width:min(92%,1000px);margin:25px auto 80px}.student-portal-nav{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px 22px;display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.student-portal-nav a{text-decoration:none;color:var(--brown);font-weight:700}.student-welcome{margin:35px 0}.student-welcome h1{font-size:36px;margin-bottom:8px}.result-link{text-decoration:none;color:inherit;transition:.2s}.result-link:hover{transform:translateY(-3px)}.student-result-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0;align-items:center}.position-box{grid-row:span 2;background:#f7e8e1;border-radius:12px;padding:15px;text-align:center}.position-box strong{display:block;font-size:38px;color:var(--brown);margin-top:5px}
@media(max-width:700px){.class-result-page{padding:15px}.class-result-header h1{font-size:23px}.school-contact{font-size:10px}.student-result-summary{grid-template-columns:1fr}.position-box{grid-row:auto}.student-welcome h1{font-size:29px}}
@media print{@page{size:landscape;margin:10mm}.class-result-page{width:100%;margin:0;padding:0;box-shadow:none}.class-result-table table{font-size:10px}.class-result-table th,.class-result-table td{padding:5px 6px}.student-portal{width:100%;margin:0}.student-portal .result-sheet{box-shadow:none}}

/* 2026 visual refresh: navy, teal and amber */
:root{
 --brown:#15803d;
 --brown2:#16a34a;
 --cream:#f3f7fa;
 --ink:#132238;
 --muted:#7d8da1;
 --card:#ffffff;
 --green:#26a269;
 --cyan:#0b95a5;
 --accent:#f0a126;
 --shadow:0 10px 28px rgba(18,59,93,.12);
 --school-primary:#15803d;--school-primary-dark:#0f5f2e;--school-primary-darker:#0a3a1f;
 --school-primary-light:#e8f7ed;--school-primary-soft:#f3f7f9;--school-secondary:#16a34a;
 --school-accent:#f0a126;--school-on-primary:#ffffff;--school-on-secondary:#ffffff;
 --school-support:#16a34a;--school-support-dark:#0f7a35
}
/* School-controlled academic period fields */
input[readonly][aria-readonly="true"]{background:#f1f5f9!important;color:#334155!important;border-color:#cbd5e1!important;cursor:not-allowed!important;padding-right:38px!important;background-image:linear-gradient(45deg,transparent,transparent)!important}
.academic-context-card .badge i{margin-right:5px}
body{background:linear-gradient(180deg,#f7fafc 0,#eef4f7 100%);color:var(--ink)}
.topbar{border:1px solid rgba(18,59,93,.06);box-shadow:var(--shadow)}
.brand{color:var(--brown)}
.nav a:hover,.nav a.active{background:#e7f3f5;color:#0b6d78}
.header-card{background:linear-gradient(135deg,#15803d 0%,#16a34a 100%);box-shadow:0 12px 28px rgba(11,127,130,.18)}
.header-card:before{content:attr(data-school-label);display:block;font-size:11px;letter-spacing:1.8px;opacity:.78;margin-bottom:9px;text-transform:uppercase}
.btn{border-radius:10px;font-weight:700;transition:.18s transform,.18s box-shadow}
.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(18,59,93,.16)}
.btn-primary{background:linear-gradient(135deg,#16a34a,#0f7a35);color:#fff}
.btn-secondary{background:#15803d;color:#fff}
.btn-soft{background:#f0a126;color:#182637}
.form-card,.student-card,.card,.table-wrap,.result-sheet{border:1px solid rgba(18,59,93,.06)}
.field input,.field select,.field textarea,.mark-grid input{border:1px solid #cfdbe4;background:#fbfdff}
.field input:focus,.field select:focus,.field textarea:focus,.mark-grid input:focus{outline:none;border-color:#0b95a5;box-shadow:0 0 0 3px rgba(11,149,165,.12)}
th{background:#eaf2f6;color:#23435d;font-size:13px;text-transform:uppercase;letter-spacing:.35px}
.badge-green{background:#e2f7ed;color:#168451}.badge-blue{background:#def5f7;color:#087982}
.login-banner{background:linear-gradient(rgba(18,59,93,.91),rgba(11,127,130,.88)),repeating-linear-gradient(45deg,#15803d,#15803d 12px,#0f5270 12px,#0f5270 24px)}
.login-box h2,.section-title,.staff-id strong,.result-head h1{color:#15803d}
.max-label{color:#d96a10;font-size:13px;font-weight:700}
.input-error{min-height:18px;color:#c0392b!important;font-weight:700}
.mark-input.invalid{border-color:#d64545!important;background:#fff5f5!important;box-shadow:0 0 0 3px rgba(214,69,69,.10)!important}
.score-summary{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;padding:14px;border-radius:10px;background:#edf6f7;color:#24445d}
.score-summary span{padding:6px 10px;background:white;border-radius:8px;border:1px solid #d8e6eb}
.sticky-save{position:sticky;bottom:12px;display:flex;justify-content:flex-end;padding:14px;background:rgba(243,247,250,.92);backdrop-filter:blur(8px);border-radius:12px;z-index:10}
.notice-error{background:#ffebe8;color:#a72e22;border-left:4px solid #d64545}
.notice-success{background:#e5f7ee;color:#15784a;border-left:4px solid #26a269}
@media(max-width:700px){.header-card h2{font-size:25px}.score-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sticky-save .btn{width:100%}}

/* Modern sign-in, account security and loading states */
.modern-login-page{min-height:100vh;background:#f6f7f9;color:#202938}
.modern-login-shell{width:min(92%,660px);margin:0 auto;padding:0 0 26px;text-align:center}
.modern-login-brand{position:relative;padding:28px 10px 22px}
.modern-login-brand .school-logo{width:76px;height:76px;margin:-38px auto 18px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 8px 26px rgba(21,44,82,.18);font-size:36px}
.modern-login-brand h1{font-size:27px;line-height:1.25;margin:0;color:#101827;font-weight:800}
.modern-login-brand p{margin:7px 0 0;color:#687386;font-size:15px}
.modern-login-card{width:min(100%,450px);margin:0 auto;background:#fff;border-radius:11px;padding:26px 32px 30px;box-shadow:0 24px 50px rgba(23,36,60,.13);text-align:left}
.login-heading{text-align:center;margin-bottom:26px}.login-heading h2{margin:0;color:#26303f;font-size:20px}.login-heading p{margin:5px 0 0;color:#747f90}
.modern-field{margin-bottom:20px}.modern-field label{font-weight:500;font-size:14px;color:#293241}
.input-icon-wrap{position:relative}.input-icon-wrap input,.input-icon-wrap select{padding-left:40px;padding-right:42px;height:45px;background:#fafbfc;border-color:#d4dae3}
.field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:2;color:#788597;font-size:15px}
.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#748095;cursor:pointer;font-size:17px;padding:7px}
.modern-signin{width:100%;border-radius:7px;background:#244da3;box-shadow:0 8px 16px rgba(36,77,163,.23)}
.modern-signin:hover{background:#1d438f}.student-portal-link{text-align:center;margin-top:20px}.student-portal-link a{color:#244da3;text-decoration:none;font-weight:700;font-size:14px}
.modern-login-shell footer{font-size:12px;color:#697386;margin-top:25px}
.side-user{margin:16px 9px;padding:13px 14px;border-radius:10px;background:#edf5f8;display:flex;flex-direction:column;gap:3px}.side-user strong{font-size:14px;color:#163b5a}.side-user span{font-size:12px;color:#6f8190}
.password-card{max-width:650px}.password-card .field{margin-bottom:20px}.password-card .input-icon-wrap input{padding-left:15px}
.page-loader{position:fixed;inset:0;z-index:9999;background:rgba(244,248,251,.86);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.2s}
.page-loader.show{opacity:1;visibility:visible}.loader-card{min-width:190px;background:#fff;border:1px solid rgba(18,59,93,.08);border-radius:16px;padding:25px 28px;box-shadow:0 20px 50px rgba(18,59,93,.18);display:flex;align-items:center;flex-direction:column;gap:9px;color:#17324d}.loader-card span{font-size:13px;color:#75869a}
.spinner{width:42px;height:42px;border:4px solid #dce9ee;border-top-color:#16a34a;border-right-color:#244da3;border-radius:50%;animation:portalSpin .75s linear infinite}@keyframes portalSpin{to{transform:rotate(360deg)}}
.s-loader{position:relative;width:60px;height:60px;display:grid;place-items:center;margin-bottom:2px}
.s-loader svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.s-loader .s-track{fill:none;stroke:#e4edf2;stroke-width:4.5}
.s-loader .s-arc{fill:none;stroke:url(#sLoaderGradient);stroke-width:4.5;stroke-linecap:round;stroke-dasharray:169.6;stroke-dashoffset:127;transform-origin:50% 50%;animation:sArcSpin 1.5s cubic-bezier(.65,0,.35,1) infinite}
.s-loader .s-glyph{font-family:'Poppins',Arial,sans-serif;font-weight:800;font-size:24px;line-height:1;letter-spacing:-.5px;background:linear-gradient(120deg,var(--school-primary,#15803d),var(--school-secondary,#16a34a) 45%,var(--school-accent,#f0a126) 85%);background-size:220% 220%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sGlyphShimmer 2s ease-in-out infinite,sGlyphPulse 1.5s cubic-bezier(.45,0,.55,1) infinite}
@keyframes sArcSpin{0%{stroke-dashoffset:127;transform:rotate(0deg)}50%{stroke-dashoffset:34}100%{stroke-dashoffset:127;transform:rotate(360deg)}}
@keyframes sGlyphShimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes sGlyphPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.14);opacity:.85}}
@media(max-width:600px){.modern-login-shell{width:100%;padding:0 18px 25px}.modern-login-brand{padding-top:30px}.modern-login-brand h1{font-size:23px}.modern-login-card{padding:24px 22px 27px}.modern-login-brand .school-logo{margin-top:-18px}}
@media(prefers-reduced-motion:reduce){.spinner{animation-duration:1.5s}.page-loader{transition:none}.s-loader .s-arc{animation-duration:2.4s}.s-loader .s-glyph{animation:none}}


/* Sidebar scrolling and stronger loading feedback */
.sidebar{
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-bottom:42px;
}
.sidebar .nav{padding-bottom:36px}
.sidebar::-webkit-scrollbar{width:7px}
.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb{background:#c7d5df;border-radius:10px}
.sidebar::-webkit-scrollbar-thumb:hover{background:#9fb4c2}

.page-loader{display:flex!important}
.page-loader.show{opacity:1!important;visibility:visible!important;pointer-events:all}
.page-loader:not(.show){pointer-events:none}
.loader-card{animation:loaderPop .18s ease-out}
@keyframes loaderPop{from{transform:scale(.96);opacity:.5}to{transform:scale(1);opacity:1}}
.loading-dots::after{content:'';animation:loadingDots 1.2s steps(4,end) infinite}
@keyframes loadingDots{0%{content:''}25%{content:'.'}50%{content:'..'}75%,100%{content:'...'}}
@media(max-width:700px){
 .sidebar{max-height:100dvh;padding-bottom:60px}
 .sidebar .nav a{min-height:54px}
}

/* Login role selector: no leading icon, preventing clipped option text on mobile browsers. */
.role-select-wrap{position:relative}
.role-select-wrap select{width:100%;height:45px;padding:0 42px 0 15px;background:#fafbfc;border:1px solid #d4dae3;border-radius:10px;font-size:17px;color:#111827;appearance:auto;-webkit-appearance:menulist}
.role-select-wrap select:focus{outline:none;border-color:#0b95a5;box-shadow:0 0 0 3px rgba(11,149,165,.12)}

/* SaaS additions */
.modern-login-card{max-width:560px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sidebar{overflow-y:auto;overscroll-behavior:contain}.class-result-print{background:#fff;padding:24px}.print-school-head{text-align:center;margin-bottom:20px}@media(max-width:760px){.two-col{grid-template-columns:1fr}}
/* Dynamic assessment and grading */
.component-row,.grade-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:9px;margin-bottom:10px}.grade-row{grid-template-columns:1fr 1fr .8fr 1.4fr auto}.component-row input,.grade-row input{min-width:0;padding:11px;border:1px solid #cfdbe4;border-radius:8px}.remove-row{border:0;background:#fee9e7;color:#b53b2e;border-radius:8px;font-size:20px;cursor:pointer}.weight-total{padding:12px;margin:12px 0;background:#edf7f7;border-radius:9px}.check-row{display:flex;gap:9px;align-items:center;margin:12px 0}.scheme-summary{display:flex;gap:12px;flex-wrap:wrap;background:#eaf5f7;border:1px solid #d2e8eb;padding:14px 18px;border-radius:12px;margin-bottom:18px}.scheme-summary span{background:#fff;padding:6px 10px;border-radius:8px}.dynamic-mark-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.score-preview{margin-top:8px;padding:10px 12px;background:#f0f7fb;border-radius:9px;color:#24435b}@media(max-width:700px){.component-row,.grade-row{grid-template-columns:1fr 1fr}.component-row .remove-row,.grade-row .remove-row{grid-column:2}.dynamic-mark-grid{grid-template-columns:1fr}}

/* Production-ready UI layer */
:root{--surface:#fff;--surface-2:#f7fafc;--text:#132238;--border:#dbe5ec;--danger:#dc2626;--success:#168451;--warning:#b45309}
[data-theme="dark"]{--cream:#0f172a;--surface:#111c2e;--surface-2:#162337;--text:#e6edf5;--ink:#e6edf5;--muted:#9eb0c2;--border:#2a3b52;--card:#111c2e;--shadow:0 12px 30px rgba(0,0,0,.28)}
[data-theme="dark"] body{background:#0f172a;color:var(--text)}
[data-theme="dark"] .topbar,[data-theme="dark"] .sidebar,[data-theme="dark"] .card,[data-theme="dark"] .form-card,[data-theme="dark"] .table-wrap,[data-theme="dark"] .result-sheet,[data-theme="dark"] .student-card{background:var(--surface);color:var(--text);border-color:var(--border)}
[data-theme="dark"] th{background:#1b2b40;color:#dbe8f5}[data-theme="dark"] td{border-color:#27384d}[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea,[data-theme="dark"] .mark-grid input{background:#142235;color:#fff;border-color:#34465d}
.topbar{width:min(96%,1440px);margin:14px auto;height:78px;border-radius:14px;padding:0 22px}
.content{width:min(96%,1440px);margin:38px auto 100px}
.sidebar{width:290px;padding-top:18px}
.brand{padding:18px 10px;font-size:18px}.side-user{margin:12px 8px}.nav a{padding:13px 14px;font-size:16px;margin-top:5px}
.top-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--brown)}.top-brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#244da3,#16a34a);color:#fff;display:grid;place-items:center;font-size:13px;letter-spacing:.5px}
.top-actions{display:flex;align-items:center;gap:10px}.top-action-btn{border:1px solid var(--border);background:var(--surface);color:var(--text);width:40px;height:40px;border-radius:10px;cursor:pointer;display:grid;place-items:center}.user-mini{display:flex;align-items:center;gap:10px;padding-left:8px}.user-mini-text{line-height:1.15}.user-mini-text strong{display:block;font-size:14px}.user-mini-text span{font-size:12px;color:var(--muted)}
.dashboard-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.dashboard-header h1{margin:0 0 7px;font-size:31px}.dashboard-header p{margin:0;color:var(--muted)}
.metric-card{position:relative;overflow:hidden;text-align:left}.metric-card:after{content:'';position:absolute;width:90px;height:90px;border-radius:50%;right:-30px;top:-35px;background:rgba(11,127,130,.09)}.metric-icon{width:42px;height:42px;border-radius:11px;background:#e8f4f7;display:grid;place-items:center;font-size:20px;margin-bottom:18px}.metric-card .label{font-size:14px}.metric-card .value{font-size:31px;margin-top:7px}.metric-trend{font-size:12px;color:var(--success);margin-top:8px}
.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin-top:24px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-title h3{margin:0}.quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-link{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--border);border-radius:11px;text-decoration:none;color:var(--text);background:var(--surface-2)}.quick-link:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.table-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap}.table-search{min-width:260px;padding:11px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text)}th.sortable{cursor:pointer;user-select:none}th.sortable:after{content:' ↕';opacity:.45;font-size:11px}th.sortable[data-order="asc"]:after{content:' ↑'}th.sortable[data-order="desc"]:after{content:' ↓'}
.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:10000;display:flex;flex-direction:column;gap:10px}.toast{min-width:240px;max-width:360px;background:#16324f;color:#fff;padding:13px 16px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.22);opacity:0;transform:translateY(10px);transition:.25s}.toast.show{opacity:1;transform:none}.toast.success{background:#166534}.toast.error{background:#991b1b}.toast.warning{background:#92400e}
.empty-state{text-align:center;padding:44px 20px;color:var(--muted)}.empty-state .empty-icon{font-size:42px;margin-bottom:10px}
.security-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#166534;background:#dcfce7;padding:6px 9px;border-radius:999px}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.top-brand span:last-child{display:none}.user-mini-text{display:none}.content{width:min(94%,100%)}.dashboard-header{flex-direction:column}.quick-links{grid-template-columns:1fr}}

/* School application verification and Super Admin */
.signup-section-title{grid-column:1/-1;margin:12px 0 0;padding:12px 0 5px;border-bottom:1px solid var(--border);color:#173b5d}.signup-consent{grid-column:1/-1;padding:12px;border-radius:10px;background:#eef6fb}.signup-consent label{display:flex;gap:10px;align-items:flex-start}.signup-consent input{width:auto;margin-top:3px}
.super-topbar{min-height:72px;background:#102a43;color:#fff;padding:15px 4%;display:flex;justify-content:space-between;align-items:center;gap:20px}.super-topbar>div:first-child{display:flex;flex-direction:column;gap:3px}.super-topbar span{font-size:13px;color:#b7c9da}.super-topbar a{color:#dcecff}.super-content{width:min(94%,1400px);margin:30px auto 80px}.super-metrics{margin-bottom:20px}.super-metrics a{text-decoration:none;color:inherit}.application-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.application-tabs a{padding:9px 13px;border:1px solid var(--border);background:#fff;border-radius:9px;text-decoration:none;color:#24435b;font-weight:700}.application-card{background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:22px;margin:18px 0}.application-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border-bottom:1px solid var(--border);padding-bottom:15px}.application-card-head h2{margin:0 0 5px;color:#173b5d}.application-card-head p{margin:0;color:var(--muted)}.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.review-grid>div{background:#f7fafc;border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:5px}.review-grid strong{font-size:12px;color:#6d8093;text-transform:uppercase}.review-grid span{overflow-wrap:anywhere}.review-form{border-top:1px solid var(--border);padding-top:16px}.badge-red{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.review-grid{grid-template-columns:1fr 1fr}.application-card-head{flex-direction:column}}@media(max-width:600px){.review-grid{grid-template-columns:1fr}.super-topbar{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.signup-section-title,.signup-consent{grid-column:auto}}


/* Modern icon and typography upgrade */
.fa-icon{width:22px;text-align:center;font-size:17px;line-height:1;color:inherit;flex:0 0 22px}
.brand .fa-school,.top-brand .fa-graduation-cap{color:var(--primary,#244da3)}
.nav a{font-weight:500;letter-spacing:-.01em}
.nav a .fa-icon{opacity:.82;transition:.2s}
.nav a:hover .fa-icon,.nav a.active .fa-icon{opacity:1;transform:scale(1.05)}
.metric-icon i{font-size:19px}
.quick-link i{width:22px;text-align:center;color:var(--primary,#244da3)}
.school-logo{font-size:0!important}
.school-logo i{font-size:38px;color:#fff}
.modern-login-brand .school-logo i{filter:drop-shadow(0 8px 16px rgba(0,0,0,.18))}
.security-chip i{font-size:11px}.avatar i{font-size:20px}.top-action-btn i{font-size:16px}
.super-topbar strong{display:flex;align-items:center;gap:9px}.super-topbar strong i{color:#8dd7ff}
.empty-icon i{font-size:40px;color:#91a3b6}
.btn i{margin-right:7px}.btn.icon-only i{margin-right:0}
h1,h2,h3,.brand,.top-brand,.value{letter-spacing:-.025em}
body{font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* 2026-07 localhost compatibility and responsive layout fixes */
html,body{max-width:100%;overflow-x:hidden}
.fa-solid,.fa-regular,.fa-brands{font-style:normal}
.topbar,.content,.form-card,.card,.table-wrap,.dashboard-grid,.cards,.form-grid,.mark-grid{min-width:0}
.form-grid>* ,.cards>* ,.dashboard-grid>* ,.mark-grid>*{min-width:0;max-width:100%}
.field,.field input,.field select,.field textarea{min-width:0;max-width:100%}
.field select{white-space:normal;text-overflow:ellipsis}
textarea{resize:vertical;overflow-wrap:anywhere}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.card,.form-card,.student-card,.panel,.application-card{max-width:100%;overflow:hidden}

/* Keep page content inside the viewport even when forms contain long options. */
@media (min-width:901px){
  .content{width:min(calc(100% - 48px),1440px);padding-inline:0}
  .cards{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1100px){
  .content{width:calc(100% - 28px)}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .cards{grid-template-columns:1fr}
  .topbar{width:calc(100% - 20px);margin:10px auto;padding:0 14px}
  .content{width:calc(100% - 20px);margin-top:24px}
  .top-left,.top-right{gap:12px}
  .btn{max-width:100%;white-space:normal;text-align:center}
}

/* Visible icon containers when Font Awesome is loading. */
.metric-icon,.top-icon,.menu-button,.theme-button,.avatar,.brand .fa-icon{flex:0 0 auto}
.metric-icon i,.top-icon i,.menu-button i,.theme-button i,.avatar i,.brand i,.nav i{display:inline-block;min-width:1em;text-align:center}

/* Trial, grace-period, subscription, and form-spacing update */
.subscription-banner{width:min(96%,1440px);margin:0 auto 14px;padding:14px 18px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 8px 20px rgba(15,39,66,.08)}
.subscription-banner>div{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.subscription-banner span{font-size:13px}.subscription-banner i{font-size:18px}.subscription-trial{background:#eaf4ff;color:#174f89;border:1px solid #c7e0f8}.subscription-grace{background:#fff7df;color:#8a5400;border:1px solid #f4d787}.subscription-expired{background:#fff0f0;color:#991b1b;border:1px solid #fecaca}.btn-light{background:#fff;color:inherit;border:1px solid rgba(0,0,0,.1);text-decoration:none;white-space:nowrap}
.subscription-cards{margin-bottom:22px}.subscription-value{font-size:20px!important;line-height:1.35;overflow-wrap:anywhere}.subscription-layout{align-items:start}.subscription-steps{margin:0;padding-left:22px;display:grid;gap:12px;line-height:1.55}.form-help{color:var(--muted);line-height:1.65;margin:0 0 18px}

/* Consistent production form rhythm */
form{max-width:100%}.form-card{padding:clamp(20px,3vw,30px)}.form-stack{display:grid;gap:18px}.form-grid{gap:20px 22px}.field{margin:0;display:flex;flex-direction:column;gap:8px}.field label{margin:0;font-size:14px;font-weight:600;line-height:1.35;color:var(--text,#132238)}.field small{display:block;margin-top:2px;color:var(--muted);line-height:1.45}.field input,.field select,.field textarea{width:100%;min-height:48px;padding:12px 14px;border-radius:10px;line-height:1.45}.field textarea{min-height:110px;padding-top:13px}.actions{margin-top:4px;padding-top:4px;gap:12px}.actions .btn{min-height:44px;padding-inline:18px}.review-form{display:grid;gap:18px}.review-form .signup-consent{margin:0}.application-card{padding:clamp(18px,2.5vw,28px)}.table-toolbar{padding:16px 18px 0}.table-toolbar h3{margin:0}.panel-title{gap:12px}

@media(max-width:700px){.subscription-banner{width:calc(100% - 20px);align-items:flex-start;flex-direction:column}.subscription-banner .btn{width:100%}.form-card{padding:18px}.form-grid{gap:16px}.actions{justify-content:stretch}.actions .btn{flex:1 1 100%;width:100%}.application-card{padding:17px}}

/* Classes and subjects layout refinement */
.class-subject-grid{align-items:stretch;gap:28px;margin-bottom:28px}
.class-subject-card{display:flex;flex-direction:column;min-height:620px;padding:32px}
.form-card-heading{display:flex;align-items:flex-start;gap:16px;padding-bottom:22px;margin-bottom:8px;border-bottom:1px solid #e4ebf1}
.form-card-heading.compact{margin-bottom:2px}
.form-card-heading h3{margin:0 0 5px;font-size:22px;line-height:1.25;color:var(--ink)}
.form-card-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.form-card-icon{width:52px;height:52px;border-radius:13px;display:grid;place-items:center;flex:0 0 52px;background:linear-gradient(135deg,#16a34a,#0a9294);color:#fff;font-size:21px;box-shadow:0 8px 18px rgba(11,127,130,.2)}
.required{color:#d92d20;margin-left:3px}.form-card-spacer{flex:1}.form-card-actions{justify-content:flex-start;margin-top:auto;padding-top:18px}
.field-label-row{display:flex;justify-content:space-between;align-items:center;gap:14px}.field-label-row label{margin:0}.text-button{border:0;background:transparent;color:#16a34a;padding:2px 0;font-size:13px;font-weight:700;cursor:pointer}.text-button:hover{text-decoration:underline}
.checkbox-list{border:1px solid #cfdbe4;border-radius:11px;background:#fbfdff;max-height:245px;overflow-y:auto;padding:10px;display:grid;gap:4px;-webkit-overflow-scrolling:touch}
.checkbox-list.compact-list{max-height:190px}.checkbox-option{display:flex!important;flex-direction:row!important;align-items:center;gap:11px;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:15px!important;font-weight:500!important;line-height:1.35!important;margin:0!important}.checkbox-option:hover{background:#edf7f8}.checkbox-option input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#16a34a;flex:0 0 18px}.checkbox-option span{min-width:0;overflow-wrap:anywhere}
.empty-inline{padding:14px 16px;border:1px dashed #cbd7e1;border-radius:10px;background:#f8fafc;color:var(--muted);font-size:14px;line-height:1.5}.manage-subjects-card{margin-bottom:28px}.subject-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.inline-form{display:inline-flex}.subject-badge{border:0;cursor:pointer;background:#e5f5f2;color:#0a6f69;padding:8px 11px}.subject-badge:hover{background:#fee2e2;color:#b42318}.subject-badge i{margin-left:5px}.muted-text{color:var(--muted);font-size:14px}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.header-card p{margin:0;opacity:.88;line-height:1.55}

@media(max-width:900px){
 .class-subject-grid{grid-template-columns:1fr;gap:20px}
 .class-subject-card{min-height:0;padding:24px}
 .form-card-spacer{display:none}
 .form-card-actions{margin-top:8px}
}
@media(max-width:600px){
 .class-subject-card{padding:19px}
 .form-card-heading{gap:12px;padding-bottom:18px}
 .form-card-icon{width:44px;height:44px;flex-basis:44px;font-size:18px}
 .form-card-heading h3{font-size:19px}
 .checkbox-list{max-height:220px}
 .field-label-row{align-items:flex-end}
}

/* ============================================================
   TK EduSuite dark-sidebar dashboard theme
   ============================================================ */
:root{
  --theme-dark:#181d22;
  --theme-dark-2:#222a31;
  --theme-red:#ef3b35;
  --theme-page:#f4f6f8;
  --theme-border:#dfe5eb;
  --theme-text:#2b3440;
}
body{background:var(--theme-page);color:var(--theme-text)}
.topbar{
  position:fixed;top:0;right:0;left:270px;width:auto;height:64px;margin:0;border-radius:0;
  background:linear-gradient(90deg,#181d22,#101417);color:#fff;box-shadow:0 1px 8px rgba(0,0,0,.24);
  padding:0 26px;z-index:45
}
.top-brand{display:none}.top-action-btn{color:#fff!important;background:transparent!important}.top-action-btn:hover{background:rgba(255,255,255,.08)!important}
.security-chip{background:rgba(255,255,255,.08)!important;color:#dce5ec!important;border:1px solid rgba(255,255,255,.08)!important}
.user-mini-text strong,.user-mini-text span{color:#fff}.user-mini-text span{opacity:.68}.topbar .avatar{width:38px;height:38px;font-size:16px;background:#fff;color:#5d6874}.topbar .avatar:after{display:none}
.sidebar{
  width:270px;left:0;top:0;bottom:0;padding:0;background:linear-gradient(180deg,#20272d,#181e23);color:#d8dde2;
  box-shadow:2px 0 10px rgba(0,0,0,.2);overflow-y:auto;z-index:50
}
.sidebar .brand{height:64px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;font-size:18px;background:#171b1f}
.sidebar .brand i{color:var(--theme-red)}.sidebar .side-user{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar .side-user strong{display:block;color:#fff;font-size:14px}.sidebar .side-user span{display:block;color:#9da9b4;font-size:12px;margin-top:3px}
.sidebar .nav{padding:8px 0 24px}.sidebar .nav a{margin:0;border-radius:0;padding:13px 18px;color:#c4cbd2;font-size:14px;border-left:4px solid transparent;gap:12px}
.sidebar .nav a i{width:20px;color:#9ca7b1}.sidebar .nav a:hover{background:#29323a;color:#fff}.sidebar .nav a.active{background:linear-gradient(90deg,#ef443d,#e5332d);color:#fff;border-left-color:#ffb1ad}.sidebar .nav a.active i{color:#fff}
.content{width:auto;max-width:none;margin:0 0 80px 270px;padding:94px 28px 40px;min-height:100vh}
.subscription-banner{width:auto;margin:76px 22px 0 292px}
.backdrop{z-index:48}

.dashboard-page{background:#f5f6f7}
.dashboard-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:12px}.dashboard-title-row h1{font-size:32px;font-weight:500;margin:0;color:#2f3740}.dashboard-title-row p{margin:4px 0 0;color:#798592;font-size:13px}.dashboard-clock{font-size:12px;color:#5e6874;display:flex;align-items:center;gap:8px}
.dashboard-breadcrumb{height:38px;border-radius:3px;background:linear-gradient(90deg,#d9dcdf,#cfd2d5);display:flex;align-items:center;gap:8px;padding:0 14px;font-size:12px;margin-bottom:18px;color:#303840}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-bottom:18px}.dashboard-metric{min-height:132px;color:#fff;border-radius:3px;display:flex;align-items:center;padding:18px 20px;position:relative;overflow:hidden;box-shadow:0 3px 9px rgba(0,0,0,.12)}
.dashboard-metric:after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 60%)}.metric-blue{background:linear-gradient(135deg,#2782c8,#1e6eaf)}.metric-red{background:linear-gradient(135deg,#ef5558,#e8373c)}.metric-teal{background:linear-gradient(135deg,#20bcae,#10a495)}.metric-purple{background:linear-gradient(135deg,#8e68c4,#7352ad)}
.dashboard-metric-icon{width:76px;height:76px;border:2px solid rgba(255,255,255,.65);border-radius:50%;display:grid;place-items:center;font-size:32px;opacity:.88;flex:0 0 76px;z-index:1}.dashboard-metric-copy{margin-left:auto;text-align:right;z-index:1}.dashboard-metric-copy strong{display:block;font-size:31px;line-height:1}.dashboard-metric-copy span{display:block;font-size:17px;margin-top:9px}.dashboard-metric-copy small{display:block;font-size:9px;margin-top:7px;opacity:.9;letter-spacing:.25px}
.dashboard-panel{background:#fff;border:1px solid #dde3e8;border-radius:4px;box-shadow:0 2px 8px rgba(24,36,50,.08);overflow:hidden}.dashboard-panel-head{height:42px;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:14px;font-weight:600}.dashboard-panel-head>div{display:flex;align-items:center;gap:9px}.panel-green{background:linear-gradient(90deg,#2dbf46,#22a83c)}.panel-blue{background:linear-gradient(90deg,#348fe2,#2679c2)}.panel-orange{background:linear-gradient(90deg,#f5a20c,#ec9000)}
.chart-shell{padding:14px 16px 10px;min-height:405px}.chart-shell canvas{display:block;max-width:100%}.chart-legend{text-align:center;color:#66717d;font-size:12px;margin-top:2px}.chart-legend span{display:inline-block;width:35px;height:4px;border-radius:3px;background:#348fe2;margin-right:8px;vertical-align:middle}.empty-chart{height:340px;display:grid;place-content:center;text-align:center;color:#8793a0}.empty-chart i{font-size:48px;color:#c2ccd5;margin-bottom:10px}.empty-chart p{margin:5px 0 0;font-size:13px}
.dashboard-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:18px}.activity-list{padding:8px 16px 14px}.activity-list>div{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf0f2;font-size:12px}.activity-list>div:last-child{border-bottom:0}.activity-list time{color:#7f8b97}.activity-green{color:#29aa53}.activity-blue{color:#348fe2}.activity-purple{color:#8565bd}.activity-teal{color:#12a796}
.dashboard-quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px}.dashboard-quick-links a{min-height:82px;border:1px solid #e0e5ea;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;color:#384450;font-size:12px;background:#fafbfc;transition:.2s}.dashboard-quick-links a:hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(34,50,70,.10);border-color:#cbd7e2}.dashboard-quick-links i{font-size:24px;color:#348fe2;margin-bottom:8px}.dashboard-quick-links a:nth-child(2) i{color:#31aa55}.dashboard-quick-links a:nth-child(3) i{color:#8162b9}.dashboard-quick-links a:nth-child(4) i{color:#f5a20c}.dashboard-quick-links a:nth-child(5) i{color:#ef3b35}.dashboard-quick-links a:nth-child(6) i{color:#13a798}

/* Restyle common content panels to fit the new dashboard shell. */
.header-card{border-radius:4px;background:linear-gradient(90deg,#155a78,#117f87);box-shadow:0 3px 10px rgba(18,73,92,.18)}
.form-card,.card,.student-card,.table-wrap,.result-sheet{border-radius:5px}.btn{border-radius:4px}.btn-primary{background:#0c8389}.btn-primary:hover{background:#096d72}.section-title{color:#173f67}

@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-bottom-grid{grid-template-columns:1fr}.content{padding-left:22px;padding-right:22px}}
@media(max-width:900px){
 .topbar{left:0}.sidebar{left:-285px;transition:left .25s}.sidebar.open{left:0}.content{margin-left:0;padding-top:88px}.subscription-banner{margin:76px 10px 0;width:calc(100% - 20px)}
 .top-brand{display:flex}.topbar .security-chip,.user-mini-text{display:none}.dashboard-title-row{align-items:flex-start;flex-direction:column}.dashboard-clock{display:none}
}
@media(max-width:640px){.dashboard-metrics{grid-template-columns:1fr;gap:14px}.dashboard-metric{min-height:116px}.dashboard-metric-icon{width:64px;height:64px;flex-basis:64px;font-size:27px}.dashboard-metric-copy strong{font-size:27px}.dashboard-quick-links{grid-template-columns:repeat(2,1fr)}.content{padding:86px 12px 28px}.chart-shell{padding:8px 4px;min-height:365px}.dashboard-title-row h1{font-size:27px}}

/* Sidebar remains expanded on first load and only collapses after the user clicks the menu button. */
body.nav-collapsed .sidebar{left:-285px!important}
body.nav-collapsed .topbar{left:0!important}
body.nav-collapsed .content{margin-left:0!important}
body.nav-collapsed .subscription-banner{margin-left:22px!important}
@media(max-width:900px){
  .sidebar{left:0!important;transition:left .25s ease}
  body.nav-collapsed .sidebar{left:-285px!important}
  body.nav-collapsed .backdrop{display:none!important}
}
/* ===== Super Admin Control Center ===== */
.sa-body{background:#f3f6fa;color:#172033}.sa-topbar{height:70px;position:fixed;top:0;left:260px;right:0;z-index:80;background:#fff;border-bottom:1px solid #e3e9f0;display:flex;align-items:center;padding:0 22px;gap:16px}.sa-menu{border:0;background:#edf3f8;width:40px;height:40px;border-radius:8px;cursor:pointer}.sa-top-title{display:flex;flex-direction:column}.sa-top-title strong{font-size:17px;color:#14324e}.sa-top-title span{font-size:12px;color:#788697}.sa-user{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:13px}.sa-user i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:#2763c4}.sa-user a{color:#b42318;text-decoration:none;font-weight:700}.sa-sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:linear-gradient(180deg,#102a43,#0d2237);z-index:90;color:#d9e5ef;overflow-y:auto}.sa-brand{height:70px;padding:0 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08)}.sa-brand-mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#2f6fed,#0f8b83);display:grid;place-items:center;color:#fff;font-weight:800}.sa-brand strong,.sa-brand small{display:block}.sa-brand small{font-size:11px;color:#92a8bc}.sa-sidebar nav{padding:14px 10px 30px}.sa-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:9px;color:#cbd8e4;text-decoration:none;font-size:13px;margin:3px 0}.sa-sidebar nav a i{width:18px;text-align:center}.sa-sidebar nav a:hover,.sa-sidebar nav a.active{background:#1f496e;color:#fff}.sa-content{margin-left:260px;padding:96px 24px 50px;min-height:100vh}.sa-page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.sa-page-heading h1{margin:0;color:#14324e;font-size:29px}.sa-page-heading p{margin:5px 0 0;color:#748296;font-size:13px}.sa-overlay{display:none}.sa-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sa-metric{background:#fff;border:1px solid #e4eaf0;border-radius:12px;padding:18px;box-shadow:0 4px 16px rgba(28,45,70,.07)}.sa-metric .sa-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#e8f2ff;color:#2563eb;font-size:19px}.sa-metric strong{display:block;font-size:28px;color:#102a43;margin-top:12px}.sa-metric span{font-size:12px;color:#77869a}.sa-dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:18px}.sa-panel{background:#fff;border:1px solid #e3e9ef;border-radius:12px;box-shadow:0 4px 16px rgba(28,45,70,.07);overflow:hidden}.sa-panel-head{padding:15px 18px;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center}.sa-panel-head h3{margin:0;font-size:15px;color:#173a5b}.sa-panel-body{padding:18px}.sa-bar-chart{height:260px;display:flex;align-items:flex-end;gap:14px;border-left:1px solid #dfe6ed;border-bottom:1px solid #dfe6ed;padding:18px 16px 0}.sa-bar{flex:1;min-width:20px;background:linear-gradient(180deg,#2f6fed,#0f8b83);border-radius:6px 6px 0 0;position:relative}.sa-bar b{position:absolute;top:-24px;left:50%;transform:translateX(-50%);font-size:10px}.sa-bar span{position:absolute;bottom:-29px;left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap;color:#6f7e90}.sa-donut{width:190px;height:190px;border-radius:50%;margin:10px auto;background:conic-gradient(#16a34a 0 48%,#f59e0b 48% 68%,#dc2626 68% 82%,#2563eb 82% 100%);position:relative}.sa-donut:after{content:'';position:absolute;inset:38px;background:white;border-radius:50%}.sa-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px}.sa-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:6px}.sa-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}.sa-toolbar .field{margin:0;min-width:170px}.sa-table{width:100%;border-collapse:collapse}.sa-table th,.sa-table td{padding:12px 13px;border-bottom:1px solid #edf1f4;text-align:left;font-size:12px}.sa-table th{background:#f8fafc;color:#5f6f82}.sa-table a{color:#2563eb;text-decoration:none;font-weight:700}.sa-actions{display:flex;gap:8px;flex-wrap:wrap}.sa-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sa-info{background:#f8fafc;border:1px solid #e4eaf0;border-radius:10px;padding:13px}.sa-info strong{display:block;font-size:11px;color:#788697;text-transform:uppercase;letter-spacing:.3px}.sa-info span{display:block;margin-top:4px;font-size:13px}.sa-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sa-check{padding:11px;border:1px solid #dfe6ed;border-radius:9px;background:#fff;font-size:12px}.sa-check.ok{border-color:#bbefca;background:#f0fdf4}.sa-check.warn{border-color:#fed7aa;background:#fff7ed}.sa-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sa-code{font-family:ui-monospace,Consolas,monospace;background:#0f172a;color:#d1fae5;padding:12px;border-radius:8px;overflow:auto}.sa-health{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.sa-health .sa-info span{font-size:18px;font-weight:700}.sa-danger-zone{border:1px solid #fecaca;background:#fff7f7}.sa-empty{text-align:center;padding:40px;color:#7b899a}.sa-pagination{display:flex;gap:6px;justify-content:flex-end;margin-top:14px}.sa-pagination a{padding:7px 10px;border:1px solid #dfe6ed;border-radius:7px;text-decoration:none;color:#34465a}.impersonation-banner{position:fixed;left:0;right:0;top:0;z-index:1000;background:#8a2c0d;color:#fff;padding:10px 18px;text-align:center;font-weight:700}.impersonation-banner a{color:#fff;text-decoration:underline;margin-left:15px}
@media(max-width:1050px){.sa-metrics{grid-template-columns:repeat(2,1fr)}.sa-dashboard-grid,.sa-grid-2{grid-template-columns:1fr}.sa-profile-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sa-topbar{left:0}.sa-sidebar{left:-270px;transition:left .25s}.sa-nav-open .sa-sidebar{left:0}.sa-nav-open .sa-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:85}.sa-content{margin-left:0;padding:92px 14px 35px}.sa-user span{display:none}.sa-profile-grid,.sa-checklist,.sa-health{grid-template-columns:1fr}.sa-table th,.sa-table td{padding:10px 8px}.sa-content .table-wrap{overflow:auto}}
@media(max-width:520px){.sa-metrics{grid-template-columns:1fr}.sa-toolbar{display:block}.sa-toolbar .field{margin:10px 0}.sa-page-heading h1{font-size:24px}}

.optional-label{font-weight:500;color:#7b8798;font-size:.9em;margin-left:4px}.field small{display:block;margin-top:8px;line-height:1.45}


/* ============================================================
   TK EduSuite unified emerald + gold visual system
   Applied throughout school admin, teacher, student and super admin
   ============================================================ */
:root{
  --tk-green-950:#032f25;
  --tk-green-900:#044b38;
  --tk-green-800:#056447;
  --tk-green-700:#07835d;
  --tk-green-600:#0a9b70;
  --tk-green-100:#e8f7f1;
  --tk-green-50:#f4fbf8;
  --tk-gold:#f5b800;
  --tk-page:#f5f8f7;
  --tk-border:#dce8e3;
  --tk-text:#10231d;
  --tk-muted:#74847e;
  --tk-shadow:0 8px 24px rgba(3,75,56,.10);
  --brown:var(--tk-green-900);
  --brown2:var(--tk-green-700);
  --cream:var(--tk-page);
  --ink:var(--tk-text);
  --muted:var(--tk-muted);
  --cyan:var(--tk-green-600);
  --accent:var(--tk-gold);
  --shadow:var(--tk-shadow);
}
body{background:linear-gradient(180deg,#fbfdfc 0%,var(--tk-page) 100%);color:var(--tk-text)}
.topbar{background:linear-gradient(90deg,var(--tk-green-950),var(--tk-green-900));border:0;color:#fff}
.sidebar{background:linear-gradient(180deg,var(--tk-green-950),#02271f);color:#e8f4ef}
.sidebar .brand{background:#02271f;color:#fff;border-bottom-color:rgba(255,255,255,.09)}
.sidebar .brand i{color:var(--tk-gold)}
.sidebar .nav a{color:#d9e8e2;border-left-color:transparent}
.sidebar .nav a i{color:#b8d0c7}
.sidebar .nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.sidebar .nav a.active{background:linear-gradient(90deg,var(--tk-green-700),var(--tk-green-600));border-left-color:var(--tk-gold);color:#fff}
.sidebar .nav a.active i{color:#fff}
.header-card{background:linear-gradient(135deg,var(--tk-green-900),var(--tk-green-700));box-shadow:0 12px 28px rgba(4,75,56,.18)}
.btn-primary{background:linear-gradient(135deg,var(--tk-green-700),var(--tk-green-900));color:#fff}
.btn-primary:hover{background:linear-gradient(135deg,var(--tk-green-600),var(--tk-green-800))}
.btn-outline{background:#fff;border:1px solid #aebdb7;color:#42534d}
.btn-outline:hover{border-color:var(--tk-green-700);color:var(--tk-green-800);background:var(--tk-green-50)}
.btn-secondary{background:var(--tk-green-950);color:#fff}
.btn-soft{background:var(--tk-gold);color:#17251f}
.form-card,.card,.student-card,.table-wrap,.result-sheet,.application-card,.sa-panel,.sa-metric{border:1px solid var(--tk-border);box-shadow:var(--tk-shadow);background:#fff}
.field input,.field select,.field textarea,.mark-grid input,.component-row input,.grade-row input{border:1px solid #c9d9d2;background:#fff;color:var(--tk-text)}
.field input:focus,.field select:focus,.field textarea:focus,.mark-grid input:focus,.component-row input:focus,.grade-row input:focus{outline:none;border-color:var(--tk-green-600);box-shadow:0 0 0 3px rgba(10,155,112,.13)}
th{background:#eef7f3;color:#24483c}
.notice-success{background:#e7f8f0;color:#176847}.badge-green{background:#e4f7ee;color:#147653}.badge-blue{background:#eaf6f2;color:#176d58}
.metric-icon,.dashboard-metric-icon{background:var(--tk-green-100);color:var(--tk-green-700)}
.section-title,.application-card-head h2,.sa-page-heading h1,.sa-panel-head h3{color:var(--tk-green-900)}
.checkbox-option:hover{background:var(--tk-green-50)}
.checkbox-option input{accent-color:var(--tk-green-700)}
.subject-badge{background:#e8f7f1;color:#086646}
.text-button{color:var(--tk-green-700)}

/* Grade form: keep action buttons clearly separated and responsive. */
.grade-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:24px;padding-top:22px;border-top:1px solid var(--tk-border)}
.grade-form-actions .btn{min-height:50px;padding:13px 22px;gap:9px;flex:0 1 auto}
.grade-row{gap:14px;margin-bottom:14px;align-items:center}
.grade-row input{min-height:48px;padding:12px 14px}
.grade-row .remove-row{width:46px;height:46px;display:grid;place-items:center}
@media(max-width:760px){
  .grade-form-actions{align-items:stretch;justify-content:stretch;gap:12px}
  .grade-form-actions .btn{width:100%;flex:1 1 100%}
  .grade-row{grid-template-columns:1fr 1fr;gap:12px}
  .grade-row .remove-row{grid-column:2;justify-self:end}
}

/* Super Admin follows the same product colours. */
.sa-body{background:var(--tk-page);color:var(--tk-text)}
.sa-sidebar{background:linear-gradient(180deg,var(--tk-green-950),#02271f)}
.sa-brand-mark{background:linear-gradient(135deg,var(--tk-green-700),var(--tk-green-900));color:var(--tk-gold)}
.sa-sidebar nav a:hover,.sa-sidebar nav a.active{background:var(--tk-green-700);color:#fff}
.sa-topbar{border-bottom-color:var(--tk-border)}
.sa-metric .sa-icon{background:var(--tk-green-100);color:var(--tk-green-700)}
.sa-table th{background:#eef7f3;color:#315447}
.sa-table a{color:var(--tk-green-700)}
.sa-bar{background:linear-gradient(180deg,var(--tk-green-600),var(--tk-green-900))}
.super-topbar{background:var(--tk-green-950)}

/* Login and student portal accents. */
.login-banner{background:linear-gradient(rgba(3,47,37,.92),rgba(4,75,56,.9)),repeating-linear-gradient(45deg,#043c2e,#043c2e 12px,#075d45 12px,#075d45 24px)}
.login-box h2,.student-portal-nav a,.result-head h1{color:var(--tk-green-900)}
.result-head{border-bottom-color:var(--tk-green-700)}
.position-box{background:var(--tk-green-100)}
.position-box strong{color:var(--tk-green-800)}

/* Result publishing safety states */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ============================================================
   v1.0 Release Candidate polish layer
   Consistent spacing, premium empty states, setup wizard, help,
   smoother transitions and mobile-first controls.
   ============================================================ */
:root{
  --ui-space-1:6px;--ui-space-2:10px;--ui-space-3:14px;--ui-space-4:18px;
  --ui-space-5:24px;--ui-space-6:32px;--ui-radius-sm:9px;--ui-radius:14px;
  --ui-radius-lg:18px;--ui-focus:0 0 0 4px rgba(15,122,80,.14);
}
body{line-height:1.55}
.content,.sa-content{animation:page-enter .22s ease both}
@keyframes page-enter{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.content,.sa-content{animation:none}}

/* Unified headings and content rhythm */
.header-card,.dashboard-title-row,.sa-page-heading{margin-bottom:var(--ui-space-5)}
.header-card h2,.page-title,h1{line-height:1.2}
.form-card,.card,.dashboard-panel,.sa-panel{border-radius:var(--ui-radius);}
.form-card+.form-card,.table-wrap+.form-card,.form-card+.table-wrap{margin-top:var(--ui-space-5)}
.form-grid{gap:var(--ui-space-5)}
.form-stack{gap:var(--ui-space-5)}
.field{gap:var(--ui-space-2)}
.field label{font-size:14px;letter-spacing:-.01em}
.field input,.field select,.field textarea,.mark-grid input{
  min-height:50px;padding:13px 15px;border-radius:11px;transition:border-color .16s,box-shadow .16s,background .16s
}
.field input:focus,.field select:focus,.field textarea:focus,.mark-grid input:focus{box-shadow:var(--ui-focus)}
.actions,.form-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:var(--ui-space-5);padding-top:var(--ui-space-2)}
.actions .btn,.form-card-actions .btn{min-height:46px}
.btn{border-radius:11px;padding:12px 19px;font-size:14px;gap:8px}
.btn i{margin-right:0}

/* Premium tables */
.table-wrap{border-radius:var(--ui-radius);position:relative}
table tbody tr{transition:background .14s}
table tbody tr:hover{background:#f7fbf8}
th{position:sticky;top:0;z-index:1}
.table-search-bar{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e5ece8;background:#fff}
.table-search-bar .search-box{position:relative;flex:1;max-width:390px}
.table-search-bar .search-box i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#84928b}
.table-search-bar input{width:100%;min-height:43px;padding:10px 14px 10px 40px;border:1px solid #d5dfda;border-radius:10px;outline:none}
.table-search-bar input:focus{border-color:var(--tk-green-600,#0f7a50);box-shadow:var(--ui-focus)}

/* Empty states */
.empty-state,.empty-chart,.sa-empty{
  min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:36px 22px;color:#74827a;background:linear-gradient(180deg,#fff,#f8fbf9)
}
.empty-state i,.empty-chart i{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#eaf6ef;color:#0f7a50;font-size:27px;margin-bottom:16px}
.empty-state strong,.empty-chart strong{font-size:18px;color:#263b31;margin-bottom:6px}
.empty-state p,.empty-chart p{max-width:480px;margin:0 0 18px;line-height:1.6}

/* Guided onboarding */
.setup-wizard{background:#fff;border:1px solid #dfe9e3;border-radius:var(--ui-radius-lg);box-shadow:0 12px 30px rgba(15,63,43,.08);margin-bottom:24px;overflow:hidden}
.setup-wizard-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px 24px;background:linear-gradient(135deg,var(--school-primary,#15803d),var(--school-primary-dark,#0f5f2e));color:var(--school-on-primary,#fff)}
.setup-wizard-head h2{margin:0 0 4px;font-size:21px}.setup-wizard-head p{margin:0;opacity:.82;font-size:13px}
.setup-progress{min-width:180px;text-align:right}.setup-progress strong{font-size:24px}.setup-progress-bar{height:8px;background:rgba(255,255,255,.2);border-radius:99px;margin-top:8px;overflow:hidden}.setup-progress-bar span{display:block;height:100%;background:var(--school-accent,#4b9bc0);border-radius:inherit}
.setup-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#e8efeb}
.setup-step{background:#fff;padding:18px;display:flex;gap:12px;align-items:flex-start;text-decoration:none;color:#27372f;min-height:100px;transition:.18s}
.setup-step:hover{background:#f5fbf7}.setup-step .step-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eef3f0;color:#7b8981;flex:0 0 38px}.setup-step.done .step-icon{background:#dcfce7;color:#168451}.setup-step.pending .step-icon{background:#fff6d9;color:#9a6800}.setup-step strong{display:block;font-size:13px}.setup-step small{display:block;color:#7c8982;margin-top:3px;line-height:1.4}

/* Notifications */
.notification-dot{position:relative}.notification-dot:after{content:'';position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:#f4c542;border:2px solid #173026}

/* Toast polish */
.toast{border-radius:12px!important;box-shadow:0 16px 36px rgba(15,35,25,.22)!important}

@media(max-width:1050px){.setup-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .setup-wizard-head{align-items:flex-start;flex-direction:column}.setup-progress{width:100%;text-align:left}.setup-steps{grid-template-columns:1fr}
 .setup-step{min-height:82px}
 .table-search-bar{align-items:stretch;flex-direction:column}.table-search-bar .search-box{max-width:none}
}

/* Platform announcements */
.notification-dot.has-count:after{display:none}
.notification-count{position:absolute;right:2px;top:1px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#ef4444;color:#fff;border:2px solid #173026;display:grid;place-items:center;font-size:10px;font-weight:800;line-height:1}
.announcement-panel{position:fixed;right:0;top:0;width:min(430px,92vw);height:100vh;background:#fff;z-index:140;box-shadow:-18px 0 45px rgba(10,35,24,.22);transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column}
.announcement-panel.show{transform:translateX(0)}
.announcement-backdrop{position:fixed;inset:0;background:rgba(5,25,17,.42);z-index:139;opacity:0;visibility:hidden;transition:.2s}.announcement-backdrop.show{opacity:1;visibility:visible}
.announcement-panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e2ebe6;background:linear-gradient(135deg,#0d3b2d,#0f6b4c);color:#fff}
.announcement-panel-head>div{display:flex;flex-direction:column}.announcement-panel-head strong{font-size:18px}.announcement-panel-head span{font-size:12px;opacity:.8}.announcement-panel-head button{width:38px;height:38px;border:0;border-radius:10px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.announcement-panel-body{padding:16px;overflow:auto;display:grid;gap:12px}
.announcement-item{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:15px;border:1px solid #dfe9e3;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,63,43,.06)}
.announcement-item-icon,.announcement-badge{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e7f6ee;color:#0f7a50;flex:0 0 42px}
.announcement-item strong{display:block;color:#173c2d;margin-bottom:2px}.announcement-item small{display:block;color:#849189;font-size:11px;margin-bottom:7px}.announcement-item p{margin:0;color:#52645a;font-size:13px;line-height:1.55;white-space:normal}
.announcement-empty{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7c8982;padding:24px}.announcement-empty i{font-size:34px;color:#0f7a50;margin-bottom:12px}.announcement-empty strong{color:#274238}.announcement-empty p{max-width:280px}
.dashboard-announcements{margin-bottom:24px;border:1px solid #dce8e1;border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(15,63,43,.07);overflow:hidden}
.dashboard-announcements>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:linear-gradient(135deg,#0d3b2d,#0f6b4c);color:#fff}.dashboard-announcements>header>div{display:flex;align-items:center;gap:10px;font-weight:700}.dashboard-announcements>header button{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;padding:8px 12px;border-radius:9px;cursor:pointer}
.dashboard-announcement-list{display:grid;gap:1px;background:#e6eee9}.dashboard-announcement-list article{background:#fff;padding:16px 18px;display:grid;grid-template-columns:42px 1fr;gap:12px}.dashboard-announcement-list strong{color:#173c2d}.dashboard-announcement-list p{margin:4px 0 6px;color:#53655b;font-size:13px;line-height:1.55}.dashboard-announcement-list small{color:#89958e;font-size:11px}
@media(max-width:700px){.dashboard-announcements>header{align-items:flex-start;flex-direction:column}.dashboard-announcement-list article{padding:14px}.announcement-panel{width:94vw}}

/* Grading templates */
.grading-template-note{margin:0 0 18px}
.grade-row-head{padding:0 2px 8px;color:var(--muted,#667085);font-size:.82rem;align-items:end}
.grade-row-head strong{font-weight:700}
.helper-text{display:block;margin-top:7px;color:var(--muted,#667085);line-height:1.45}
@media(max-width:760px){
  .grade-row-head{display:none}
}

/* School profile and professional report cards */
.profile-layout{display:grid;grid-template-columns:1.45fr .75fr;gap:24px}.profile-logo-preview{display:block;width:110px;height:110px;object-fit:contain;margin-top:12px;border:1px solid var(--tk-border,#dbe5e2);padding:8px}.report-option-grid{display:grid;gap:10px;margin:18px 0}.report-option{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce7e3;border-radius:8px;background:#fbfdfc}.school-report-header{display:flex;align-items:center;justify-content:center;gap:24px;text-align:center;border-bottom:2px solid #075b3c;padding:12px 16px 18px;margin-bottom:18px}.report-logo{width:105px;height:105px;object-fit:contain}.report-school-copy h1{margin:0;color:#075b3c;font-size:28px}.report-motto{font-style:italic;color:#315b4d;margin:4px 0}.report-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;font-size:12px}.report-extra{font-size:12px;margin-top:6px}.report-title{text-align:center;background:#075b3c;color:#fff;padding:10px;margin:12px 0}.report-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;border:1px solid #d9e2df;padding:12px;margin-bottom:12px}.report-side-grid{display:grid;grid-template-columns:1fr 250px;gap:18px}.report-box{border:1px solid #cfdcd7;border-radius:6px;padding:12px;margin-bottom:12px}.report-box h3{margin:-12px -12px 10px;padding:8px;background:#075b3c;color:#fff;font-size:14px}.grading-mini{font-size:11px}.signature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:32px;text-align:center}.signature-line{border-top:1px dotted #333;padding-top:7px}.report-remarks{display:grid;gap:10px}.result-sheet{page-break-after:always}@media(max-width:900px){.profile-layout,.report-side-grid{grid-template-columns:1fr}.report-summary-grid{grid-template-columns:1fr 1fr}}@media print{.school-report-header{break-inside:avoid}.report-side-grid{grid-template-columns:1fr 220px}.result-sheet{border:none!important;padding:12px!important}}
/* Role-based platform notifications */
.recipient-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}.recipient-checks label{display:flex;align-items:center;gap:9px;border:1px solid #dfe9e3;border-radius:11px;padding:11px 12px;background:#fff;color:#274238}.recipient-checks label.disabled{opacity:.58;background:#f5f7f6}.recipient-checks input{width:17px;height:17px;accent-color:#0f7a50}.announcement-item.is-unread{border-left:4px solid #f4b400;background:#fffdf5}.announcement-item.priority-critical{border-color:#fecaca}.announcement-item.priority-critical .announcement-item-icon{background:#fee2e2;color:#b91c1c}.announcement-item.priority-important .announcement-item-icon{background:#fef3c7;color:#b45309}.announcement-history.priority-critical{border-left:4px solid #dc2626}.announcement-history.priority-important{border-left:4px solid #d97706}.announcement-history.priority-information{border-left:4px solid #0f7a50}.student-announcements{margin:20px 0;display:grid;gap:12px}.student-announcement{padding:15px;border:1px solid #dfe9e3;border-radius:14px;background:#fff}.student-announcement strong{display:block;color:#173c2d}.student-announcement small{color:#849189}.student-announcement p{margin:6px 0 0;color:#52645a}@media(max-width:700px){.recipient-checks{grid-template-columns:1fr}}


/* ============================================================
   Chelmsford Academy unified emerald interface — 2026 production theme
   ============================================================ */
:root{
 --chelmsford-green:#003f2f;--chelmsford-green-2:#006b48;--chelmsford-active:#079455;
 --chelmsford-gold:#f4b400;--chelmsford-page:#f7f9fa;--chelmsford-border:#e3e8ec;
 --chelmsford-ink:#101828;--chelmsford-muted:#667085;--chelmsford-card:#fff;
 --chelmsford-radius:14px;--chelmsford-shadow:0 8px 28px rgba(16,24,40,.07);
 --brown:#006b48;--brown2:#079455;--ink:#101828;--muted:#667085;--cream:#f7f9fa;
}
body{background:var(--chelmsford-page)!important;color:var(--chelmsford-ink);font-family:'Poppins',Arial,sans-serif}
.sidebar{width:250px!important;background:linear-gradient(180deg,#062f27 0%,#003f2f 100%)!important;box-shadow:none!important;border-right:1px solid rgba(255,255,255,.06)!important}
.sidebar .brand{height:72px!important;background:transparent!important;border-bottom:1px solid rgba(255,255,255,.09)!important;color:#fff!important;font-size:22px!important}
.sidebar .brand i{color:var(--chelmsford-gold)!important}.sidebar .side-user{background:rgba(255,255,255,.025)!important}
.sidebar .brand.sidebar-brand{display:flex!important;align-items:center;gap:10px;padding:0 18px!important}
.sidebar .brand .brand-logo-img{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;flex:0 0 28px;object-fit:contain;border-radius:8px;background:#fff;padding:2px;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.sidebar .brand .brand-logo-fallback{width:28px;height:28px;flex:0 0 auto;border-radius:8px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:14px;color:var(--chelmsford-gold)}
.sidebar .brand .brand-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.sidebar .brand .brand-name{font-size:14px!important;font-weight:700;line-height:1.25;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .brand .brand-location{display:flex;align-items:center;gap:4px;font-size:11px;color:#b8d0c7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .brand .brand-location i{font-size:10px;color:var(--chelmsford-gold);flex:0 0 auto}
.sidebar .nav{padding:12px 10px 30px!important}.sidebar .nav a{border:0!important;border-radius:10px!important;margin:4px 0!important;color:#e7f3ef!important;padding:12px 14px!important}
.sidebar .nav a i{color:#d8eee6!important}.sidebar .nav a:hover{background:rgba(255,255,255,.08)!important}.sidebar .nav a.active{background:#079455!important;color:#fff!important}
.topbar{left:250px!important;height:72px!important;background:#fff!important;color:var(--chelmsford-ink)!important;border-bottom:1px solid var(--chelmsford-border)!important;box-shadow:0 1px 4px rgba(16,24,40,.04)!important;padding:0 28px!important}
.top-action-btn{color:#344054!important}.top-action-btn:hover{background:#f2f4f7!important}.security-chip{background:#ecfdf3!important;color:#027a48!important;border-color:#abefc6!important}
.user-mini-link{text-decoration:none}.user-mini-text strong{color:#101828!important}.user-mini-text span{color:#667085!important;opacity:1!important}.topbar .avatar{overflow:hidden;background:#e7f3ef!important;color:#006b48!important;border:2px solid #fff;box-shadow:0 0 0 1px #d0d5dd}.avatar img,.sa-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.content{margin-left:250px!important;padding:104px 30px 48px!important;background:#f7f9fa!important}
.card,.form-card,.table-wrap,.student-card,.panel,.application-card,.sa-card{border:1px solid var(--chelmsford-border)!important;border-radius:var(--chelmsford-radius)!important;box-shadow:var(--chelmsford-shadow)!important;background:#fff!important}
.header-card{background:linear-gradient(135deg,#006b48,#079455)!important;border-radius:14px!important}.btn{border-radius:8px!important;font-weight:600!important;min-height:42px}.btn-primary{background:#067647!important;color:#fff!important}.btn-primary:hover{background:#05603a!important}.btn-soft{background:#ecfdf3!important;color:#067647!important}.btn-outline{background:#fff!important;border:1px solid #d0d5dd!important;color:#344054!important}
.field input,.field select,.field textarea{border:1px solid #d0d5dd!important;border-radius:9px!important;background:#fff!important;color:#101828!important}.field input:focus,.field select:focus,.field textarea:focus{outline:none!important;border-color:#12b76a!important;box-shadow:0 0 0 4px rgba(18,183,106,.12)!important}
table th{background:#f2f4f7!important;color:#344054!important}table tr:hover td{background:#f9fafb}
.page-title-block{display:flex;align-items:center;gap:14px;margin:0 0 24px}.page-title-block h1{margin:0;font-size:28px}.page-title-block p{margin:4px 0 0;color:#667085}.page-title-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:#e7f6ef;color:#067647;font-size:20px}
.profile-settings-card{max-width:900px}.profile-settings-grid{display:grid;grid-template-columns:220px 1fr;gap:32px;align-items:start}.profile-photo-column{text-align:center;display:grid;justify-items:center;gap:12px}.profile-photo-large{width:150px;height:150px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e7f3ef;color:#067647;font-size:54px;border:5px solid #fff;box-shadow:0 0 0 1px #d0d5dd,0 10px 25px rgba(16,24,40,.12)}.profile-photo-large img{width:100%;height:100%;object-fit:cover}.upload-photo-btn{cursor:pointer}.profile-photo-column small{color:#667085;font-size:12px}
/* Super admin alignment */
.sa-sidebar{background:linear-gradient(180deg,#062f27,#003f2f)!important;width:250px!important}.sa-brand-mark{background:#079455!important;color:#fdbb05!important}.sa-sidebar nav a{border-radius:9px!important;margin:3px 10px!important;color:#e7f3ef!important}.sa-sidebar nav a.active,.sa-sidebar nav a:hover{background:#079455!important;color:#fff!important}.sa-topbar{left:250px!important;background:#fff!important;border-bottom:1px solid #e4e7ec!important}.sa-content{margin-left:250px!important;background:#f7f9fa!important}.sa-user{display:flex;align-items:center;gap:12px}.sa-avatar-link{display:flex;align-items:center;gap:9px;text-decoration:none;color:#101828}.sa-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#e7f3ef;color:#067647;border:1px solid #d0d5dd}
/* Login and signup use the same design system */
.modern-login-page{background:linear-gradient(135deg,#f8fafb 0%,#edf5f1 100%)!important;min-height:100vh}.modern-login-shell{min-height:100vh!important;display:grid!important;grid-template-columns:minmax(340px,44%) minmax(420px,56%)!important;max-width:none!important;margin:0!important}.modern-login-brand{background:linear-gradient(155deg,#073f32,#00563e 60%,#067647)!important;color:#fff!important;padding:clamp(46px,7vw,100px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;text-align:left!important}.modern-login-brand h1{font-size:clamp(38px,5vw,64px)!important;margin:18px 0 8px!important;color:#fff!important}.modern-login-brand p{font-size:17px!important;color:#d7f4e8!important}.modern-login-brand .school-logo{width:86px;height:86px;border-radius:22px;background:rgba(255,255,255,.12);display:grid;place-items:center}.modern-login-brand .school-logo i{font-size:38px!important;color:#fdbb05!important}.modern-login-card{align-self:center!important;justify-self:center!important;width:min(90%,620px)!important;background:#fff!important;border:1px solid #e4e7ec!important;border-radius:18px!important;padding:clamp(28px,4vw,48px)!important;box-shadow:0 22px 70px rgba(16,24,40,.12)!important}.modern-login-card .login-heading h2{color:#101828!important}.modern-signin{width:100%!important}.signup-section-title{grid-column:1/-1;color:#067647!important;border-bottom:1px solid #e4e7ec;padding-bottom:10px}
@media(max-width:900px){.topbar{left:0!important}.content{margin-left:0!important}.sidebar{left:-260px!important}.modern-login-shell{grid-template-columns:1fr!important}.modern-login-brand{min-height:280px!important;padding:40px 28px!important}.modern-login-card{margin:28px auto!important}.sa-topbar{left:0!important}.sa-content{margin-left:0!important}.profile-settings-grid{grid-template-columns:1fr}.profile-photo-column{margin-bottom:12px}}

/* Collapsible sidebar nav groups */
.sidebar .nav-group{margin:0}
.sidebar .nav-group-toggle{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;border-radius:10px!important;margin:4px 0!important;padding:12px 14px!important;color:#e7f3ef;font-family:inherit;font-size:14px;cursor:pointer}
.sidebar .nav-group-toggle:hover{background:rgba(255,255,255,.08)}
.sidebar .nav-group-toggle .fa-icon{width:20px;color:#d8eee6}
.sidebar .nav-group-toggle span{flex:1;text-align:left}
.sidebar .nav-group-chevron{font-size:11px!important;width:auto!important;color:#b8d0c7;transition:transform .2s ease}
.sidebar .nav-group.nav-group-open>.nav-group-toggle{background:rgba(255,255,255,.06);color:#fff}
.sidebar .nav-group.nav-group-open>.nav-group-toggle .nav-group-chevron{transform:rotate(180deg)}
.sidebar .nav-group-items{max-height:0;overflow:hidden;transition:max-height .25s ease}
.sidebar .nav-group.nav-group-open>.nav-group-items{max-height:800px}
.sidebar .nav-group-items a{padding:11px 14px 11px 42px!important;font-size:13.5px!important;margin:2px 0!important}
@media(max-width:600px){.modern-login-card{width:calc(100% - 24px)!important;padding:24px 18px!important}.modern-login-brand h1{font-size:36px!important}.content{padding:96px 14px 32px!important}.page-title-block h1{font-size:24px}}

/* Student result portal reliability update */
.result-empty-state{text-align:center;max-width:680px;margin:32px auto;padding:42px 28px}.result-empty-state h2{margin:0 0 10px}.result-empty-state p{max-width:560px;margin:0 auto 22px;color:var(--muted,#667085)}.position-box small{display:block;font-size:12px;font-weight:500;margin-top:2px}.result-sheet .table-responsive{overflow-x:auto}.result-sheet table{min-width:720px}

/* Chelmsford Academy school-admin dashboard: light cards, emerald charts and gold accents. */
.dashboard-page{background:#f4f8f6}
.modern-admin-metrics{gap:18px;margin-bottom:20px}
.modern-admin-metrics .dashboard-metric{min-height:128px;background:#fff!important;color:#14251d;border:1px solid #e2ebe6;border-radius:14px;padding:18px;box-shadow:0 8px 22px rgba(12,67,45,.07);display:block;position:relative}
.modern-admin-metrics .dashboard-metric:after{content:'';position:absolute;right:-22px;top:-28px;width:86px;height:86px;border-radius:50%;background:#edf7f2}
.modern-admin-metrics .dashboard-metric-icon{width:42px;height:42px;border:0;border-radius:10px;background:#e5f5ee;color:#07835a;font-size:18px;position:relative;z-index:1}
.modern-admin-metrics .dashboard-metric-copy{margin:15px 0 0;text-align:left;position:relative;z-index:1}
.modern-admin-metrics .dashboard-metric-copy span{display:block;font-size:13px;color:#52645b;margin:0 0 7px}
.modern-admin-metrics .dashboard-metric-copy strong{font-size:29px;line-height:1.05;color:#15261e}
.modern-admin-metrics .dashboard-metric-copy small{font-size:10px;color:#16835d;margin-top:8px;letter-spacing:0;text-transform:none}
.modern-admin-metrics .metric-teachers .dashboard-metric-icon{background:#edf2ff;color:#355ab7}
.modern-admin-metrics .metric-attendance .dashboard-metric-icon{background:#fff5d8;color:#c98a00}
.modern-admin-metrics .metric-subjects .dashboard-metric-icon{background:#edf7f7;color:#197d7d}
.admin-overview-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:18px;margin-bottom:20px}
.overview-card{background:#fff;border:1px solid #e1ebe5;border-radius:14px;box-shadow:0 8px 22px rgba(12,67,45,.07);padding:20px;min-width:0;overflow:hidden}
.overview-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.overview-card>header div{display:flex;flex-direction:column;min-width:0}.overview-card>header strong{font-size:15px;color:#172820;overflow-wrap:anywhere}.overview-card>header span{font-size:11px;color:#7b8b82;margin-top:3px;overflow-wrap:anywhere}.overview-card>header>i{width:37px;height:37px;min-width:37px;border-radius:9px;display:grid;place-items:center;background:#e9f6ef;color:#08754f}
.overview-canvas-wrap{height:270px;min-width:0}.overview-canvas-wrap canvas{display:block;max-width:100%}
.attendance-overview-layout{min-height:270px;width:100%;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;gap:18px;overflow:hidden}
.donut-wrap{position:relative;display:grid;place-items:center;width:min(100%,240px);aspect-ratio:1/1;min-width:0;justify-self:center}.donut-wrap canvas{display:block;width:100%!important;height:100%!important;max-width:none}.donut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}.donut-center strong{font-size:27px;color:#172820;line-height:1}.donut-center span{font-size:10px;color:#718078;margin-top:5px}
.attendance-key{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:min(100%,220px);min-width:0;justify-self:center}.attendance-key>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;font-size:12px;color:#52645b}.attendance-key i{width:10px;height:10px;border-radius:3px}.attendance-key span{white-space:normal;overflow-wrap:anywhere}.attendance-key strong{color:#172820}.key-complete{background:#07883f}.key-pending{background:#f4b400}.key-present{background:#08754f}.key-absent{background:#ef4444}.key-late{background:#f4b400}
@media(max-width:1050px){.admin-overview-grid{grid-template-columns:1fr}.attendance-overview-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.modern-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.modern-admin-metrics .dashboard-metric{min-height:118px;padding:15px}.modern-admin-metrics .dashboard-metric-copy strong{font-size:24px}.attendance-overview-layout{grid-template-columns:minmax(0,1fr)}.attendance-key{grid-template-columns:minmax(0,1fr)}.attendance-key>div{grid-template-columns:10px minmax(0,1fr) auto;gap:6px}.attendance-key strong{grid-column:auto}.overview-card{padding:15px}}

/* Student login layout fix: prevent branding overflow and keep form controls separated. */
.modern-login-shell{
  grid-template-columns:minmax(0,44%) minmax(0,56%)!important;
  overflow:hidden;
}
.modern-login-brand,
.modern-login-card{
  min-width:0;
}
.modern-login-brand h1{
  width:100%;
  max-width:100%;
  font-size:clamp(36px,4.4vw,58px)!important;
  line-height:1.38!important;
  overflow-wrap:break-word;
  word-break:normal;
}
.modern-login-card form{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.modern-login-card form .field{
  margin:0!important;
}
.modern-login-card form .btn{
  margin-top:4px;
  min-height:50px;
}
.modern-login-card > p{
  margin:18px 0 0!important;
}
@media(max-width:900px){
  .modern-login-shell{overflow:visible}
  .modern-login-brand h1{font-size:clamp(34px,9vw,48px)!important;line-height:1.25!important}
}

/* Student portal branding panel width and title fit fix. */
@media (min-width:700px){
  body.modern-login-page .modern-login-shell{
    grid-template-columns:minmax(420px,46%) minmax(360px,54%)!important;
    width:100%!important;
    max-width:none!important;
  }
  body.modern-login-page .modern-login-brand{
    min-width:420px!important;
    padding:clamp(38px,5vw,76px)!important;
    overflow:hidden!important;
  }
  body.modern-login-page .modern-login-brand h1{
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    font-size:clamp(34px,4.3vw,62px)!important;
    line-height:1.08!important;
    letter-spacing:-1.5px!important;
  }
}
@media (max-width:699px){
  body.modern-login-page .modern-login-shell{
    grid-template-columns:1fr!important;
    overflow:visible!important;
  }
  body.modern-login-page .modern-login-brand{
    width:100%!important;
    min-width:0!important;
    min-height:245px!important;
    padding:34px 26px!important;
    align-items:center!important;
    text-align:center!important;
  }
  body.modern-login-page .modern-login-brand h1{
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    font-size:clamp(36px,12vw,52px)!important;
    line-height:1.08!important;
    letter-spacing:-1px!important;
  }
  body.modern-login-page .modern-login-card{
    width:calc(100% - 28px)!important;
    margin:22px auto!important;
  }
}

/* v1.8.5: consistent authentication form sizing and school registration wizard */
body.modern-login-page.auth-standard-page,
body.modern-login-page{min-height:100vh;background:linear-gradient(135deg,#f8fafb,#edf5f1)!important}
body.modern-login-page .modern-login-shell.auth-standard-shell,
body.modern-login-page .modern-login-shell{
  width:min(100% - 32px,520px)!important;max-width:520px!important;min-height:auto!important;margin:36px auto!important;padding:0!important;display:block!important;text-align:center!important
}
body.modern-login-page .modern-login-brand.auth-standard-brand,
body.modern-login-page .modern-login-brand{
  min-height:0!important;background:transparent!important;color:var(--tk-text)!important;padding:0 12px 20px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important
}
body.modern-login-page .modern-login-brand .school-logo{width:64px!important;height:64px!important;margin:0 auto 12px!important;border-radius:18px!important;background:linear-gradient(135deg,var(--tk-green-900),var(--tk-green-700))!important;box-shadow:0 10px 25px rgba(4,75,56,.18)!important}
body.modern-login-page .modern-login-brand .school-logo i{font-size:28px!important;color:var(--tk-gold)!important}
body.modern-login-page .modern-login-brand h1{font-size:28px!important;line-height:1.2!important;margin:0!important;color:var(--tk-green-950)!important}
body.modern-login-page .modern-login-brand p{font-size:14px!important;color:var(--tk-muted)!important;margin:6px 0 0!important}
body.modern-login-page .modern-login-card.auth-standard-card,
body.modern-login-page .modern-login-card{
  width:100%!important;max-width:520px!important;margin:0 auto!important;padding:28px!important;border-radius:16px!important;box-sizing:border-box!important;align-self:auto!important;justify-self:auto!important
}
body.modern-login-page .modern-login-card form{max-width:100%!important;margin:0!important}
body.modern-login-page .modern-login-card .field{margin-bottom:16px!important}
body.modern-login-page .modern-login-card input,
body.modern-login-page .modern-login-card select,
body.modern-login-page .modern-login-card textarea{min-height:46px!important;width:100%!important;box-sizing:border-box!important}
body.modern-login-page .modern-login-card textarea{min-height:94px!important}
body.modern-login-page .modern-signin,
.auth-full-button{width:100%!important;min-height:48px!important}
.auth-footer-links{text-align:center;margin:20px 0 0;font-size:13px;line-height:1.7}
.signup-wizard-card{overflow:hidden}
.wizard-progress{margin:18px 0 24px}
.wizard-progress-bar{height:7px;background:#e8efec;border-radius:999px;overflow:hidden}
.wizard-progress-bar span{display:block;height:100%;width:25%;background:linear-gradient(90deg,var(--tk-green-700),var(--tk-green-600));border-radius:inherit;transition:width .25s ease}
.wizard-step-labels{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:9px;font-size:11px;color:#8a9892;text-align:center}
.wizard-step-labels span.active{color:var(--tk-green-800);font-weight:700}
.signup-wizard-form .wizard-step{display:none}
.signup-wizard-form .wizard-step.active{display:block;animation:wizardFade .18s ease}
@keyframes wizardFade{from{opacity:.3;transform:translateX(7px)}to{opacity:1;transform:none}}
.signup-wizard-form .signup-section-title{margin:0 0 18px;padding-bottom:10px;text-align:left}
.wizard-info-box{background:var(--tk-green-50);border:1px solid var(--tk-border);border-radius:12px;padding:15px;text-align:left;color:#345047}
.wizard-info-box p{margin:5px 0 0;font-size:13px;line-height:1.5}
.wizard-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--tk-border)}
.wizard-actions .btn{min-width:120px;flex:1}
.signup-consent{font-size:13px;line-height:1.5;text-align:left;background:#f8faf9;border:1px solid var(--tk-border);border-radius:10px;padding:13px}
.signup-consent input{width:auto!important;min-height:auto!important;margin-right:7px}
@media(max-width:600px){body.modern-login-page .modern-login-shell{width:min(100% - 20px,520px)!important;margin:18px auto!important}body.modern-login-page .modern-login-card{padding:22px 18px!important}.wizard-step-labels{font-size:10px}.wizard-actions{flex-direction:column-reverse}.wizard-actions .btn{width:100%}.modern-login-brand h1{font-size:25px!important}}

/* Chelmsford Academy v1.8.6 — advertised navy dashboard interface */
:root{
  --chelmsford-navy:#00182d;
  --chelmsford-navy-deep:#001322;
  --chelmsford-green:#078a35;
  --chelmsford-green-dark:#006b2d;
  --chelmsford-yellow:#ffd000;
  --chelmsford-page:#f5f7f9;
  --chelmsford-border:#e6e9ed;
  --chelmsford-text:#101722;
}
body{background:var(--chelmsford-page);color:var(--chelmsford-text)}
.topbar{background:linear-gradient(90deg,var(--chelmsford-navy-deep),var(--chelmsford-navy));color:#fff;border:0;border-radius:0;box-shadow:0 3px 12px rgba(0,18,35,.18)}
.top-brand{color:#fff}.top-brand-mark{background:transparent!important;color:var(--chelmsford-yellow)!important;border:2px solid rgba(255,255,255,.88);box-shadow:none!important}.top-brand-mark i{font-size:17px}
.top-action-btn{color:#fff!important;background:transparent!important;border-color:rgba(255,255,255,.18)!important}.top-action-btn:hover{background:rgba(255,255,255,.1)!important}
.security-chip{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.16)!important}
.user-mini-text strong,.user-mini-text span{color:#fff!important}.topbar .avatar{border-color:rgba(255,255,255,.8)!important;background:rgba(255,255,255,.10)!important;color:#fff!important}
.sidebar{background:linear-gradient(180deg,var(--chelmsford-navy),var(--chelmsford-navy-deep));color:#fff;box-shadow:5px 0 18px rgba(0,18,35,.16)}
.sidebar .brand{background:transparent;color:#fff;border-bottom:1px solid rgba(255,255,255,.10)}
.sidebar .brand i{color:var(--chelmsford-yellow)}
.side-user{color:#fff;border-color:rgba(255,255,255,.1)!important}.side-user span{color:#b8c5d1!important}
.sidebar .nav a{color:#fff;border-radius:3px;border-left:0!important}
.sidebar .nav a i{color:#fff}
.sidebar .nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.sidebar .nav a.active{background:linear-gradient(90deg,var(--chelmsford-green),#079a3d);color:#fff;box-shadow:none}
.sidebar .nav a.active i{color:#fff}
.content{background:var(--chelmsford-page)}
.dashboard-title-row h1,.section-title{color:var(--chelmsford-text)}
.modern-admin-metrics{gap:12px}
.modern-admin-metrics .dashboard-metric{background:#fff!important;border:1px solid var(--chelmsford-border);border-radius:10px;box-shadow:0 3px 12px rgba(0,24,45,.06);min-height:142px;padding:22px}
.modern-admin-metrics .dashboard-metric:after{display:none}
.modern-admin-metrics .dashboard-metric-icon{display:none}
.modern-admin-metrics .dashboard-metric-copy{margin:0;text-align:left}
.modern-admin-metrics .dashboard-metric-copy span{font-size:16px;color:#111827;margin:0 0 20px}
.modern-admin-metrics .dashboard-metric-copy strong{font-size:34px;color:#101722}
.modern-admin-metrics .dashboard-metric-copy small{font-size:11px;color:var(--chelmsford-green);margin-top:17px}
.admin-overview-grid{gap:14px}
.overview-card{border:1px solid var(--chelmsford-border);border-radius:10px;box-shadow:0 3px 12px rgba(0,24,45,.06);padding:24px}
.overview-card>header strong{font-size:18px;color:#111827}.overview-card>header span{color:#6b7280}
.overview-card>header>i{display:none}
.donut-wrap{aspect-ratio:1/1;max-width:250px;width:100%;margin:auto}.donut-wrap canvas{display:block;aspect-ratio:1/1}
.attendance-key i{border-radius:3px}.key-present{background:var(--chelmsford-green)!important}.key-absent{background:#ef2b2d!important}
.dashboard-panel{border-radius:10px;border-color:var(--chelmsford-border);box-shadow:0 3px 12px rgba(0,24,45,.06)}
.btn-primary{background:var(--chelmsford-green);color:#fff}.btn-primary:hover{background:var(--chelmsford-green-dark)}
.header-card{background:linear-gradient(135deg,var(--chelmsford-navy),#002a47);box-shadow:0 8px 20px rgba(0,24,45,.15)}
.field input:focus,.field select:focus,.field textarea:focus,.mark-grid input:focus,.component-row input:focus,.grade-row input:focus{border-color:var(--chelmsford-green);box-shadow:0 0 0 3px rgba(7,138,53,.12)}
@media(max-width:900px){.topbar{border-radius:0}.security-chip{display:none}.sidebar{background:linear-gradient(180deg,var(--chelmsford-navy),var(--chelmsford-navy-deep))}}

/* Chelmsford Academy v1.8.7 — compact auth forms, three-step signup, navy navigation correction */
body.modern-login-page .modern-login-shell,
body.modern-login-page .modern-login-shell.auth-standard-shell{width:min(100% - 28px,440px)!important;max-width:440px!important;margin:24px auto!important}
body.modern-login-page .modern-login-card,
body.modern-login-page .modern-login-card.auth-standard-card{max-width:440px!important;padding:22px 24px!important;border-radius:14px!important}
body.modern-login-page .modern-login-brand,
body.modern-login-page .modern-login-brand.auth-standard-brand{padding:0 8px 14px!important}
body.modern-login-page .modern-login-brand .school-logo{width:54px!important;height:54px!important;border-radius:14px!important;background:linear-gradient(135deg,var(--chelmsford-navy),#002a47)!important}
body.modern-login-page .modern-login-brand .school-logo i{font-size:23px!important;color:var(--chelmsford-yellow)!important}
body.modern-login-page .modern-login-brand h1{font-size:24px!important;color:var(--chelmsford-navy)!important}
body.modern-login-page .modern-login-brand p{font-size:13px!important}
body.modern-login-page .modern-login-card .login-heading h2{font-size:23px!important;margin-bottom:5px!important}
body.modern-login-page .modern-login-card .login-heading p{font-size:13px!important;margin-top:0!important}
body.modern-login-page .modern-login-card form{gap:0!important}
body.modern-login-page .modern-login-card .field{margin-bottom:13px!important}
body.modern-login-page .modern-login-card input,
body.modern-login-page .modern-login-card select{min-height:42px!important;padding:10px 12px!important;font-size:15px!important}
body.modern-login-page .modern-login-card textarea{min-height:78px!important;padding:10px 12px!important}
body.modern-login-page .modern-login-card .btn{min-height:43px!important;padding:10px 18px!important;font-size:15px!important}
.wizard-step-labels.three-steps{grid-template-columns:repeat(3,1fr)!important}
.signup-wizard-form .signup-section-title{color:var(--chelmsford-navy)!important;font-size:17px!important;margin-bottom:14px!important}
.wizard-progress-bar span{background:linear-gradient(90deg,var(--chelmsford-navy),var(--chelmsford-green))!important}
.wizard-step-labels span.active{color:var(--chelmsford-navy)!important}
/* Keep the application navigation navy; prevent older white rules overriding it. */
body:not(.modern-login-page) .topbar{background:linear-gradient(90deg,var(--chelmsford-navy-deep),var(--chelmsford-navy))!important;color:#fff!important}
body:not(.modern-login-page) .sidebar{background:linear-gradient(180deg,var(--chelmsford-navy),var(--chelmsford-navy-deep))!important;color:#fff!important}
body:not(.modern-login-page) .sidebar .brand,
body:not(.modern-login-page) .sidebar .nav a,
body:not(.modern-login-page) .top-brand,
body:not(.modern-login-page) .top-action-btn{color:#fff!important}
@media(max-width:600px){body.modern-login-page .modern-login-shell{width:min(100% - 18px,440px)!important;margin:14px auto!important}body.modern-login-page .modern-login-card{padding:20px 16px!important}.wizard-actions{gap:9px}}

/* Chelmsford Academy v1.8.8 — finished navy product UI */
:root{
  --product-navy:#00182d;
  --product-navy-2:#002a47;
  --product-navy-soft:#eaf0f5;
  --product-page:#f4f6f8;
  --product-card:#ffffff;
  --product-border:#dfe5eb;
  --product-text:#111827;
  --product-muted:#64748b;
  --product-radius:12px;
  --product-shadow:0 8px 24px rgba(0,24,45,.08);
}
body{background:var(--product-page)!important;color:var(--product-text)!important}

/* Authentication screens: one consistent compact product frame */
body.modern-login-page{
  background:linear-gradient(160deg,#edf2f6 0%,#f7f9fb 52%,#e8eef3 100%)!important;
}
body.modern-login-page .modern-login-shell,
body.modern-login-page .modern-login-shell.auth-standard-shell{
  width:min(calc(100% - 28px),460px)!important;
  max-width:460px!important;
  margin:28px auto!important;
}
body.modern-login-page .modern-login-brand,
body.modern-login-page .modern-login-brand.auth-standard-brand{
  background:var(--product-navy)!important;
  color:#fff!important;
  padding:22px 24px!important;
  border-radius:var(--product-radius) var(--product-radius) 0 0!important;
  min-height:0!important;
  box-shadow:var(--product-shadow)!important;
}
body.modern-login-page .modern-login-brand .school-logo{
  width:52px!important;height:52px!important;margin:0 auto 9px!important;
  border-radius:13px!important;background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important;
}
body.modern-login-page .modern-login-brand .school-logo i{font-size:23px!important;color:var(--chelmsford-yellow)!important}
body.modern-login-page .modern-login-brand h1{font-size:24px!important;color:#fff!important;margin:0!important;letter-spacing:-.3px!important}
body.modern-login-page .modern-login-brand p{font-size:13px!important;color:#cbd5e1!important;margin:5px 0 0!important}
body.modern-login-page .modern-login-card,
body.modern-login-page .modern-login-card.auth-standard-card{
  width:100%!important;max-width:460px!important;margin:0!important;
  padding:24px!important;border:1px solid var(--product-border)!important;
  border-top:0!important;border-radius:0 0 var(--product-radius) var(--product-radius)!important;
  box-shadow:var(--product-shadow)!important;background:#fff!important;
}
body.modern-login-page .login-heading{text-align:left;margin-bottom:18px!important}
body.modern-login-page .login-heading h2{font-size:22px!important;color:var(--product-navy)!important;margin:0 0 5px!important}
body.modern-login-page .login-heading p{font-size:13px!important;color:var(--product-muted)!important;margin:0!important}
body.modern-login-page .field label{color:var(--product-navy)!important;font-weight:600!important;font-size:13px!important}
body.modern-login-page .field input,
body.modern-login-page .field select,
body.modern-login-page .field textarea{
  min-height:44px!important;border:1px solid #cfd8e1!important;border-radius:8px!important;
  background:#fff!important;color:var(--product-text)!important;padding:10px 12px!important;
}
body.modern-login-page .field input:focus,
body.modern-login-page .field select:focus,
body.modern-login-page .field textarea:focus{
  border-color:var(--product-navy)!important;box-shadow:0 0 0 3px rgba(0,24,45,.10)!important;
}
body.modern-login-page .btn-primary,
body.modern-login-page .modern-signin{
  background:var(--product-navy)!important;border-color:var(--product-navy)!important;
  color:#fff!important;border-radius:8px!important;min-height:44px!important;
}
body.modern-login-page .btn-primary:hover,
body.modern-login-page .modern-signin:hover{background:var(--product-navy-2)!important}
body.modern-login-page .btn-outline,
body.modern-login-page .btn-soft{border-color:var(--product-navy)!important;color:var(--product-navy)!important;background:#fff!important;border-radius:8px!important}
body.modern-login-page .student-portal-link,
body.modern-login-page .auth-footer-links,
body.modern-login-page .modern-login-card>p{text-align:center!important;font-size:12.5px!important;color:var(--product-muted)!important;margin:17px 0 0!important}
body.modern-login-page .student-portal-link{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}
body.modern-login-page a{color:var(--product-navy)!important;font-weight:600;text-decoration:none}
body.modern-login-page a:hover{text-decoration:underline}
.password-toggle{color:var(--product-navy)!important}
.wizard-progress-bar{background:#dfe6ec!important}
.wizard-progress-bar span{background:linear-gradient(90deg,var(--chelmsford-green),#16a34a)!important}
.wizard-step-labels span{color:#7a8794!important}.wizard-step-labels span.active{color:var(--product-navy)!important}
.signup-wizard-form .signup-section-title{color:var(--product-navy)!important}
.signup-consent,.wizard-info-box{background:#f7f9fb!important;border-color:var(--product-border)!important;color:#334155!important}

/* Product-wide standard surfaces and dimensions */
.form-card,.card,.dashboard-panel,.overview-card,.table-card,.settings-card,.content-card,.panel,
.admin-card,.profile-card,.setup-card,.management-card{
  background:var(--product-card)!important;border:1px solid var(--product-border)!important;
  border-radius:var(--product-radius)!important;box-shadow:var(--product-shadow)!important;
}
.form-card,.settings-card,.content-card,.panel,.admin-card,.profile-card,.setup-card,.management-card{padding:22px!important}
.cards,.modern-admin-metrics,.admin-overview-grid{align-items:stretch!important}
.cards>.card,.modern-admin-metrics>*{height:100%!important;min-height:140px!important}
.form-card form,.settings-card form{max-width:100%!important}
.field input,.field select,.field textarea{border-radius:8px!important}
.header-card,.page-header,.section-header{background:linear-gradient(135deg,var(--product-navy),var(--product-navy-2))!important;color:#fff!important;border-radius:var(--product-radius)!important}
.header-card h1,.header-card h2,.header-card p,.page-header h1,.page-header h2,.page-header p{color:#fff!important}
.btn-primary{background:var(--product-navy)!important;border-color:var(--product-navy)!important}.btn-primary:hover{background:var(--product-navy-2)!important}
.btn-success,.progress-fill,.status-progress{background:var(--chelmsford-green)!important}

/* Super Admin uses the same navy product shell */
.sa-sidebar{background:linear-gradient(180deg,var(--product-navy),#00111f)!important}
.sa-sidebar nav a.active,.sa-sidebar nav a:hover{background:rgba(255,255,255,.10)!important;border-left:3px solid var(--chelmsford-yellow)!important}
.sa-brand-mark{background:rgba(255,255,255,.08)!important;color:var(--chelmsford-yellow)!important}
.sa-topbar{background:var(--product-navy)!important;color:#fff!important;border-bottom:0!important}
.sa-topbar strong,.sa-topbar span,.sa-user a,.sa-avatar-link{color:#fff!important}
.sa-content{background:var(--product-page)!important}

@media(max-width:600px){
 body.modern-login-page .modern-login-shell{width:calc(100% - 18px)!important;margin:12px auto!important}
 body.modern-login-page .modern-login-brand{padding:18px!important}
 body.modern-login-page .modern-login-card{padding:20px 16px!important}
 .form-card,.settings-card,.content-card,.panel,.admin-card,.profile-card,.setup-card,.management-card{padding:16px!important}
}

/* v1.8.9 validation polish */
.optional-label{font-size:.78em;font-weight:600;opacity:.72}
.field input:invalid:not(:placeholder-shown),.field select:invalid{border-color:#b42318}
.field input:focus:invalid{box-shadow:0 0 0 3px rgba(180,35,24,.12)}
.field small{display:block;margin-top:6px;line-height:1.35}

/* v1.8.10 reliable responsive navigation and compact authentication */
@media (max-width:900px){
  body:not(.modern-login-page) .sidebar{
    left:-270px!important;
    width:min(84vw,270px)!important;
    transform:none!important;
    transition:left .24s ease!important;
    z-index:60!important;
  }
  body:not(.modern-login-page).mobile-nav-open .sidebar,
  body:not(.modern-login-page) .sidebar.open{
    left:0!important;
  }
  body:not(.modern-login-page).mobile-nav-open .backdrop,
  body:not(.modern-login-page) .backdrop.show{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    z-index:55!important;
  }
  body:not(.modern-login-page) .topbar{
    left:0!important;
    width:100%!important;
    margin:0!important;
    border-radius:0!important;
  }
}
@media (min-width:901px){
  body:not(.modern-login-page):not(.nav-collapsed) .sidebar{left:0!important}
  body:not(.modern-login-page).nav-collapsed .sidebar{left:-250px!important}
}

body.modern-login-page .modern-login-shell,
body.modern-login-page .modern-login-shell.auth-standard-shell{
  width:min(calc(100% - 24px),400px)!important;
  max-width:400px!important;
  margin:18px auto!important;
  min-height:0!important;
}
body.modern-login-page .modern-login-brand,
body.modern-login-page .modern-login-brand.auth-standard-brand{
  padding:15px 18px!important;
}
body.modern-login-page .modern-login-brand .school-logo{
  width:42px!important;height:42px!important;margin-bottom:6px!important;
}
body.modern-login-page .modern-login-brand .school-logo i{font-size:19px!important}
body.modern-login-page .modern-login-brand h1{font-size:20px!important}
body.modern-login-page .modern-login-brand p{font-size:11.5px!important;margin-top:3px!important}
body.modern-login-page .modern-login-card,
body.modern-login-page .modern-login-card.auth-standard-card{
  max-width:400px!important;padding:17px 19px!important;
}
body.modern-login-page .login-heading{margin-bottom:12px!important}
body.modern-login-page .login-heading h2{font-size:19px!important}
body.modern-login-page .login-heading p{font-size:12px!important}
body.modern-login-page .modern-login-card .field{margin-bottom:10px!important}
body.modern-login-page .field label{font-size:12.5px!important;margin-bottom:5px!important}
body.modern-login-page .field input,
body.modern-login-page .field select{min-height:39px!important;padding:8px 10px!important;font-size:14px!important}
body.modern-login-page .field textarea{min-height:68px!important}
body.modern-login-page .btn-primary,
body.modern-login-page .modern-signin,
body.modern-login-page .btn{min-height:39px!important;padding:8px 14px!important;font-size:14px!important}
body.modern-login-page .student-portal-link,
body.modern-login-page .modern-login-card>p{margin-top:12px!important;font-size:11.5px!important}
body.modern-login-page .wizard-progress{margin-bottom:12px!important}
body.modern-login-page .wizard-actions{margin-top:12px!important}

@media(max-width:600px){
  body.modern-login-page .modern-login-shell,
  body.modern-login-page .modern-login-shell.auth-standard-shell{
    width:calc(100% - 16px)!important;margin:8px auto!important;
  }
  body.modern-login-page .modern-login-brand{padding:12px 14px!important}
  body.modern-login-page .modern-login-card{padding:15px 14px!important}
  body.modern-login-page .modern-login-brand h1{font-size:18px!important}
  body.modern-login-page .modern-login-brand p{display:none!important}
  body.modern-login-page .modern-login-brand .school-logo{width:36px!important;height:36px!important}
}

/* v1.8.11 performance and large-list optimizations */
.student-list-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 12px}.student-list-tools .field{flex:1 1 260px;margin:0}.student-list-tools .compact-field{flex:0 0 110px}.list-summary{font-size:.88rem;color:var(--muted,#64748b);margin:0 0 10px}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0}.table-wrap{content-visibility:auto;contain-intrinsic-size:600px}.dashboard-bottom-grid,.admin-overview-grid{content-visibility:auto;contain-intrinsic-size:500px}@media(max-width:640px){.student-list-tools{display:grid;grid-template-columns:1fr 96px}.student-list-tools .btn{width:100%}.pagination{justify-content:space-between}}
/* v1.8.13 classic Ghana report and signatories */
.classic-report{max-width:900px;margin:18px auto;background:#fff;color:#111;padding:28px 34px;font-size:12px;border:1px solid #bbb}.classic-report .school-report-header{border-bottom:2px solid #222;padding-bottom:10px;margin-bottom:10px}.classic-report .school-report-header h1{font-size:25px;color:#111;margin:0}.classic-report .report-title{text-align:center;border:1px solid #555;padding:6px;margin:10px 0;font-size:14px}.classic-student-info{display:grid;grid-template-columns:1.5fr 1fr;gap:8px 24px;padding:8px 4px}.classic-summary,.classic-bottom-summary{display:flex;border:1px solid #555;margin:8px 0}.classic-summary span,.classic-bottom-summary span{flex:1;text-align:center;padding:6px;border-right:1px solid #555}.classic-summary span:last-child,.classic-bottom-summary span:last-child{border-right:0}.classic-result-table{width:100%;border-collapse:collapse}.classic-result-table th,.classic-result-table td{border:1px solid #555;padding:6px;text-align:center}.classic-result-table td:first-child{text-align:left}.classic-remarks{line-height:1.7;margin-top:8px}.official-signatures{display:flex;justify-content:center;gap:55px;flex-wrap:wrap;margin-top:28px}.official-signature{text-align:center;min-width:180px}.official-signature img{height:58px;max-width:150px;object-fit:contain;display:block;margin:auto}.signature-rule{width:60%;margin:8px auto 0;border-top:1px solid #222}.official-signature span{display:block}.profile-layout{align-items:start}@media(max-width:700px){.classic-report{padding:14px;font-size:10px}.classic-student-info{grid-template-columns:1fr}.classic-summary,.classic-bottom-summary{flex-direction:column}.classic-summary span,.classic-bottom-summary span{border-right:0;border-bottom:1px solid #555}.classic-result-table{font-size:9px}.official-signatures{gap:24px}}
@media print{.classic-report{border:0;margin:0 auto;page-break-after:always;box-shadow:none}.no-print{display:none!important}}
/* v1.8.13 automatic report remarks */
.remarks-filter{align-items:end}.remarks-filter .field-action{align-self:end}.remark-owner-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.status-chip,.score-pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:#e8f0ff;color:#0b1f3a;font-weight:700}.remarks-table{min-width:1320px}.remarks-table th{position:sticky;top:0;z-index:2}.remarks-table td{vertical-align:top}.remarks-table input,.remarks-table textarea{width:100%;min-width:145px}.remarks-table textarea{resize:vertical}.sticky-form-actions{position:sticky;bottom:12px;display:flex;gap:10px;flex-wrap:wrap;padding:12px;margin-top:14px;background:rgba(255,255,255,.96);border:1px solid #d9e2ef;border-radius:14px;box-shadow:0 8px 24px rgba(11,31,58,.12);z-index:3}@media(max-width:700px){.remarks-table{min-width:1120px}.sticky-form-actions{bottom:6px}.remark-owner-grid{grid-template-columns:1fr}}


/* v1.8.14 report, announcements, support workflow and spacing polish */
:root{--ui-gap:22px;--ui-gap-sm:14px}
.content>*,.content section,.dashboard-grid,.dashboard-bottom-grid,.cards,.form-grid{box-sizing:border-box}
.content>*.form-card+.form-card,.content>section+section,.content>.table-wrap+.form-card,.content>.form-card+.table-wrap{margin-top:var(--ui-gap)}
.form-card,.dashboard-panel,.dashboard-announcements,.support-ticket,.table-wrap{margin-bottom:0}
.dashboard-grid,.dashboard-bottom-grid,.cards,.form-grid,.profile-layout,.class-subject-grid{gap:var(--ui-gap)!important}
.dashboard-announcements>header,.announcement-panel-head{background:#0b223f!important}
.announcement-badge,.announcement-item-icon{background:#e8eef6!important;color:#0b223f!important}
.dashboard-announcement-list strong,.announcement-item strong{color:#0b223f!important}
.centered-logo-header{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:3px!important;padding:0 0 5px!important;border-bottom:1px solid #1b2c40!important}
.centered-logo-header .report-logo{width:auto!important;height:auto!important;max-width:92px!important;max-height:74px!important;object-fit:contain!important;margin:0 auto 2px!important}
.centered-logo-header .report-motto{font-size:9px!important;font-style:italic!important;margin:0!important}
.centered-logo-header .report-meta{display:flex!important;justify-content:center!important;gap:6px 12px!important;flex-wrap:wrap!important;font-size:8px!important;line-height:1.2!important}
.result-sheet.classic-report{width:210mm!important;min-height:0!important;height:287mm!important;max-height:287mm!important;margin:0 auto!important;padding:7mm 8mm 6mm!important;box-sizing:border-box!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important;font-size:9px!important}
.result-sheet.classic-report:last-of-type{page-break-after:auto!important;break-after:auto!important}
.classic-report .report-title{margin:3px 0!important;padding:3px!important;font-size:11px!important}
.classic-report .classic-student-info{gap:2px 10px!important;padding:4px 0!important;font-size:8.5px!important}
.classic-report .classic-summary,.classic-report .classic-bottom-summary{padding:4px 0!important;gap:4px 12px!important;font-size:8.5px!important}
.classic-report .classic-result-table{font-size:8px!important;margin:3px 0!important;table-layout:fixed!important}
.classic-report .classic-result-table th,.classic-report .classic-result-table td{padding:2px 3px!important;line-height:1.15!important}
.classic-report .classic-remarks{gap:3px!important;margin-top:3px!important;font-size:8px!important}
.classic-report .classic-remarks>div{padding:3px 5px!important;min-height:0!important}
.classic-report .report-signatures{margin-top:4px!important;gap:8px!important}
.classic-report .report-signature{min-height:42px!important;font-size:7.5px!important}
.classic-report .report-signature img{max-height:24px!important}
.classic-report .grading-key{font-size:7px!important;margin-top:3px!important}
.support-list{display:grid;gap:var(--ui-gap)}
.support-ticket{background:#fff;border:1px solid var(--border,#dbe3eb);border-radius:10px;padding:20px;box-shadow:0 4px 14px rgba(15,39,66,.07)}
.support-ticket>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--border,#e1e7ed)}
.support-ticket h3{margin:6px 0 3px;color:#0b223f}.support-ticket>p{line-height:1.65}
.status-badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#edf2f7;color:#34495e}
.status-open{background:#fff1cf;color:#7a5100}.status-in-progress{background:#e6f1ff;color:#1e5792}.status-resolved{background:#e5f7eb;color:#176b36}.status-closed{background:#edf0f3;color:#54606c}
.ticket-thread{display:grid;gap:10px;margin:15px 0}.thread-message{max-width:78%;padding:11px 13px;border-radius:12px;background:#f3f6f9}.thread-message.from-admin{margin-left:auto;background:#e7eef8;border:1px solid #cad9eb}.thread-message p{margin:4px 0}.thread-message small{font-size:10px;color:#74808c}.ticket-reply{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.ticket-reply textarea{min-height:70px}.status-form select{min-height:38px;padding:7px 10px}.compact-support-form{max-width:920px}.full-span{grid-column:1/-1}.nav-count{margin-left:auto;background:#f5b700;color:#0b223f;border-radius:999px;padding:1px 7px;font-size:10px}
@media print{body{background:#fff!important}.no-print,.topbar,.sidebar,.backdrop,.page-loader,.subscription-banner{display:none!important}.result-sheet.classic-report{box-shadow:none!important;border:0!important;margin:0!important;width:210mm!important;height:287mm!important;max-height:287mm!important}}
@media(max-width:700px){:root{--ui-gap:16px}.support-ticket{padding:15px}.support-ticket>header{flex-direction:column}.ticket-reply{grid-template-columns:1fr}.thread-message{max-width:92%}.dashboard-grid,.dashboard-bottom-grid,.cards,.form-grid,.profile-layout,.class-subject-grid{gap:16px!important}}


/* v1.8.15: school-controlled academic context */
.academic-context-card{display:flex;align-items:center;gap:28px;flex-wrap:wrap;padding:16px 20px}
.academic-context-card>div{display:flex;flex-direction:column;gap:3px;min-width:150px}
.academic-context-card .label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#64748b)}
.academic-context-card strong{font-size:18px;color:var(--navy,#0b1f3a)}
input[readonly]{background:#f1f5f9;color:#334155;cursor:not-allowed}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:600px){.academic-context-card{gap:14px}.academic-context-card>div{min-width:calc(50% - 8px)}.academic-context-card .badge{width:100%;text-align:center}}
.policy-unlock-confirm{display:flex;align-items:flex-start;gap:11px;margin:16px 0;padding:14px;border:1px solid #e9b7b7;border-radius:12px;background:#fff6f6;color:#7f1d1d;line-height:1.42;cursor:pointer}.policy-unlock-confirm input{width:18px;height:18px;min-width:18px;margin-top:2px;accent-color:#b42318}.policy-unlock-confirm strong{display:block;margin-bottom:2px}.policy-unlock-confirm:has(input:checked){border-color:#86c9a5;background:#f0fff6;color:#12633b}
.academic-correction-dialog{width:min(540px,calc(100% - 24px));border:0;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(0,0,0,.35)}.academic-correction-dialog::backdrop{background:rgba(5,15,28,.72);backdrop-filter:blur(3px)}.academic-correction-head{padding:20px 22px;background:#0b1f3a;color:#fff}.academic-correction-head h3{margin:0 0 5px}.academic-correction-head p{margin:0;color:#dbe7f2}.academic-correction-body{padding:22px}.academic-correction-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}@media(max-width:600px){.academic-correction-actions .btn{width:100%}}

.support-ticket.has-unread-response{border:2px solid #f5b700;box-shadow:0 6px 18px rgba(245,183,0,.16)}
.new-response-badge{display:inline-flex;align-items:center;gap:6px;background:#f5b700;color:#0b223f;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;margin-right:7px}
/* v1.8.18 smart per-school branding */
:root{--school-primary:#15803d;--school-primary-dark:#0f5f2e;--school-primary-darker:#0a3a1f;--school-primary-light:#e8f7ed;--school-primary-soft:#f3f7f9;--school-secondary:#16a34a;--school-accent:#f0a126;--school-on-primary:#fff;--school-on-secondary:#fff}
body:not(.modern-login-page) .topbar,body:not(.modern-login-page) .sidebar,body:not(.modern-login-page) .announcement-panel-head{background:var(--school-primary-dark)!important;color:var(--school-on-primary)!important}
body:not(.modern-login-page) .sidebar .nav a:hover,body:not(.modern-login-page) .sidebar .nav a.active,body:not(.modern-login-page) .btn-primary,body:not(.modern-login-page) .report-title,body:not(.modern-login-page) .report-box h3,body:not(.modern-login-page) table th{background:var(--school-primary)!important;color:var(--school-on-primary)!important}
body:not(.modern-login-page) .header-card{border-left-color:var(--school-primary)!important}
body:not(.modern-login-page) input:focus,body:not(.modern-login-page) select:focus,body:not(.modern-login-page) textarea:focus{border-color:var(--school-primary)!important;box-shadow:0 0 0 3px var(--school-primary-light)!important}
body:not(.modern-login-page) .progress-fill,body:not(.modern-login-page) .setup-progress-fill{background:var(--school-primary)!important}
.school-report-header{border-bottom-color:var(--school-primary)!important}.classic-report table th,.class-result-sheet table th{background:var(--school-primary)!important;color:var(--school-on-primary)!important}.classic-report .report-title,.class-result-sheet .sheet-title{background:var(--school-primary)!important;color:var(--school-on-primary)!important}.signature-line{border-top-color:var(--school-primary)!important}
.school-theme-card{grid-column:1/-1}.theme-mode-row{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 16px}.theme-color-grid{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:14px}.theme-color-grid label{display:grid;gap:7px;font-weight:700}.theme-color-grid input[type=color]{width:100%;height:48px;padding:4px;border:1px solid #cfd8e3;border-radius:10px;background:#fff}.theme-live-preview{--preview-primary:#15803d;--preview-dark:#0f5f2e;--preview-light:#e6edf1;border:1px solid #d8e0e8;border-radius:14px;overflow:hidden;margin-top:18px;background:#fff}.theme-preview-nav{background:var(--preview-dark);color:#fff;padding:12px 16px;font-weight:800}.theme-preview-body{padding:16px;background:var(--preview-light);display:grid;grid-template-columns:1fr 1fr;gap:14px}.theme-preview-card,.theme-preview-report{background:#fff;border-radius:10px;padding:15px;display:grid;gap:8px;border:1px solid rgba(0,0,0,.08)}.theme-preview-card button{border:0;border-radius:8px;background:var(--preview-primary);color:#fff;padding:9px 12px;width:max-content}.theme-preview-report{border-top:5px solid var(--preview-primary)}
@media(max-width:700px){.theme-color-grid,.theme-preview-body{grid-template-columns:1fr}.theme-mode-row{gap:10px;flex-direction:column}}
@media print{.school-report-header,.classic-report,.class-result-sheet{--school-primary:#222!important;--school-primary-dark:#222!important;--school-on-primary:#fff!important}.classic-report.use-school-print-color,.class-result-sheet.use-school-print-color{--school-primary:var(--school-primary)!important}}
\n\n/* v1.8.19: compact, overflow-safe report-card columns */\n.classic-report .classic-result-table{width:100%!important;max-width:100%!important;table-layout:fixed!important}\n.classic-report .classic-result-table th{\n  font-size:6.6px!important;line-height:1.05!important;font-weight:800!important;\n  letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere!important;\n  word-break:normal!important;hyphens:auto!important;vertical-align:middle!important;\n  padding:2px 1.5px!important;box-sizing:border-box!important;overflow:hidden!important\n}\n.classic-report .classic-result-table td{\n  font-size:7.4px!important;line-height:1.08!important;white-space:normal!important;\n  overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;\n  box-sizing:border-box!important;overflow:hidden!important;vertical-align:middle!important\n}\n.classic-report .classic-result-table .col-subject{width:23%!important;text-align:left!important}\n.classic-report .classic-result-table th.col-subject{text-align:center!important}\n.classic-report .classic-result-table .col-score{width:11%!important}\n.classic-report .classic-result-table .col-exam{width:13%!important}\n.classic-report .classic-result-table .col-total{width:11%!important}\n.classic-report .classic-result-table .col-grade{width:8%!important}\n.classic-report .classic-result-table .col-position{width:9%!important}\n.classic-report .classic-result-table .col-interpretation{width:25%!important}\n.classic-report .classic-result-table td.col-interpretation{font-size:6.8px!important;text-align:left!important}\n@media(max-width:700px){\n .classic-report .classic-result-table th{font-size:6px!important;padding:2px 1px!important}\n .classic-report .classic-result-table td{font-size:6.8px!important;padding:2px 1px!important}\n .classic-report .classic-result-table td.col-interpretation{font-size:6.2px!important}\n}\n@media print{\n .classic-report .classic-result-table th{font-size:6.4px!important}\n .classic-report .classic-result-table td{font-size:7.1px!important}\n .classic-report .classic-result-table td.col-interpretation{font-size:6.5px!important}\n}\n

/* v1.8.20: show configured assessment weights without overflowing report cells */
.classic-report .classic-result-table th .heading-weight{
  display:block!important;font-size:5.8px!important;line-height:1!important;font-weight:700!important;
  white-space:nowrap!important;margin-top:1px!important
}
@media(max-width:700px){.classic-report .classic-result-table th .heading-weight{font-size:5.2px!important}}
@media print{.classic-report .classic-result-table th .heading-weight{font-size:5.5px!important}}

/* Aggregate and explicit grade-point configuration */
.grade-row{grid-template-columns:90px 90px 90px 80px minmax(150px,1fr) 42px!important}.aggregate-settings-card{margin:24px 0}.aggregate-settings-card .report-option-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:700px){.grade-row{grid-template-columns:1fr 1fr!important}.grade-row>*{min-width:0}.grade-row-head{display:none!important}}


/* v1.8.22: instant school branding, report typography and zero-mark grading UI */
body:not(.modern-login-page) .header-card,
body:not(.modern-login-page) .page-header,
body:not(.modern-login-page) .section-header{
  background:linear-gradient(135deg,var(--school-primary),var(--school-primary-dark))!important;
  border-color:var(--school-primary)!important;
  color:var(--school-on-primary)!important;
}
body:not(.modern-login-page) .header-card h1,
body:not(.modern-login-page) .header-card h2,
body:not(.modern-login-page) .header-card p,
body:not(.modern-login-page) .page-header h1,
body:not(.modern-login-page) .page-header h2,
body:not(.modern-login-page) .section-header h1,
body:not(.modern-login-page) .section-header h2{color:var(--school-on-primary)!important}

/* All report-card and header-preview text uses the requested typeface and size. */
.classic-report,
.classic-report *,
.school-report-header,
.school-report-header *,
.form-card .school-report-header,
.form-card .school-report-header *{
  font-family:var(--chelmsford-print-font)!important;
  font-size:14px!important;
}
.classic-report .report-school-copy h1,
.school-report-header .report-school-copy h1{font-size:14px!important}
.classic-report .classic-result-table th,
.classic-report .classic-result-table td,
.classic-report .classic-result-table td.col-interpretation,
.classic-report .classic-result-table th .heading-weight{
  font-family:var(--chelmsford-print-font)!important;
  font-size:14px!important;
  line-height:1.08!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media print{
  .classic-report,.classic-report *,
  .school-report-header,.school-report-header *{font-family:var(--chelmsford-print-font)!important;font-size:14px!important}
  .classic-report .classic-result-table th,
  .classic-report .classic-result-table td,
  .classic-report .classic-result-table td.col-interpretation,
  .classic-report .classic-result-table th .heading-weight{font-size:14px!important}
}

/* v1.8.23: academic-settings-driven teacher marks entry */
.marks-entry-card h3{font-size:22px;margin:0 0 22px}
.component-entry-grid,.calculated-score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.component-entry-grid .field label{font-size:15px;line-height:1.25}
.component-entry-grid .max-label{color:#e7472e;font-weight:700;white-space:nowrap}
.calculated-score-grid{margin-top:18px}
.calculated-field{min-width:0}
.calculated-field>span{display:block;font-size:15px;font-weight:700;margin-bottom:9px}
.calculated-field>strong{display:flex;align-items:center;min-height:52px;width:100%;padding:13px 15px;border:1px solid #d7dbe1;border-radius:8px;background:#eef0f3;font-size:18px;font-weight:500}
.calculated-field.text-field>strong{background:transparent;border-color:transparent;padding-left:0;font-size:21px}
.calculated-field.remark-field{grid-column:1/-1}
.calculated-field.remark-field>strong{font-size:20px}
@media(max-width:520px){
 .marks-entry-card{padding:20px 16px}
 .component-entry-grid,.calculated-score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .component-entry-grid .field label,.calculated-field>span{font-size:12.5px}
 .component-entry-grid .field input,.calculated-field>strong{font-size:16px;padding:12px 10px}
 .component-entry-grid .max-label{display:inline}
}

/* v1.8.24: teacher-friendly grouped marks entry */
.score-entry-section,.final-result-section{margin-top:18px;border:1px solid #d9e1e7;border-radius:14px;overflow:hidden;background:#fff}
.score-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:color-mix(in srgb,var(--primary,#0c7c59) 10%,#fff);border-bottom:1px solid #d9e1e7}
.score-section-heading h4{margin:2px 0 0;font-size:17px}.section-kicker{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--primary,#0c7c59)}
.section-badge{font-size:12px;font-weight:700;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #d4dde4;white-space:nowrap}
.score-entry-section .component-entry-grid{padding:16px}.section-calculation-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px;background:#f6f8fa;border-top:1px solid #e1e6ea}
.section-calculation-row>div,.final-result-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border-radius:10px;background:#fff;border:1px solid #dce3e8}.section-calculation-row span,.final-result-item span{font-size:13px;font-weight:700}.section-calculation-row strong,.final-result-item strong{font-size:20px}
.final-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.final-result-item{min-height:66px}.total-result strong{font-size:27px}.remark-result{grid-column:1/-1}.remark-result strong{text-align:right}
@media(max-width:700px){.score-section-heading{align-items:flex-start}.section-badge{font-size:10.5px}.section-calculation-row,.final-result-grid{grid-template-columns:1fr 1fr}.score-entry-section .component-entry-grid{padding:14px}.section-calculation-row>div,.final-result-item{padding:10px}.section-calculation-row span,.final-result-item span{font-size:11.5px}.section-calculation-row strong,.final-result-item strong{font-size:18px}}

/* v1.8.28: GES classic report layout, proportional columns and configurable signatories */
.classic-ges-header{
  display:block!important;
  text-align:center!important;
  border-bottom:1.5px solid #222!important;
  padding:0 0 7px!important;
  margin:0 0 8px!important;
  color:#111!important;
}
.classic-ges-header .report-authority{font-size:20px!important;font-weight:800!important;line-height:1.05!important;letter-spacing:.2px!important}
.classic-ges-header .report-school-name{font-size:16px!important;font-weight:800!important;line-height:1.15!important;margin-top:2px!important}
.classic-ges-header .report-motto{font-size:10px!important;font-style:normal!important;font-weight:600!important;margin:2px 0 4px!important;color:#111!important}
.classic-ges-header .report-logo{display:block!important;width:auto!important;height:auto!important;max-width:58px!important;max-height:48px!important;object-fit:contain!important;margin:2px auto!important}
.classic-ges-header .report-contact-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;align-items:end!important;text-align:left!important;font-size:9px!important;line-height:1.2!important;margin-top:2px!important}
.classic-ges-header .report-contact-grid *{font-size:9px!important}
.classic-ges-header .report-contact-left,.classic-ges-header .report-contact-right{display:flex!important;flex-direction:column!important;gap:1px!important}
.classic-ges-header .report-contact-right{text-align:right!important}
.classic-report .classic-result-table .col-subject{width:25%!important}
.classic-report .classic-result-table .col-score{width:12%!important}
.classic-report .classic-result-table .col-exam{width:13%!important}
.classic-report .classic-result-table .col-total{width:12%!important}
.classic-report .classic-result-table .col-grade{width:7%!important}
.classic-report .classic-result-table .col-position{width:8%!important}
.classic-report .classic-result-table .col-interpretation{width:23%!important}
.classic-report .classic-result-table td.col-subject,
.classic-report .classic-result-table td.col-interpretation{text-align:left!important;overflow-wrap:break-word!important;word-break:normal!important}
.classic-report .official-signatures{display:grid!important;grid-template-columns:repeat(2,minmax(180px,1fr))!important;justify-content:center!important;align-items:end!important;max-width:620px!important;margin:18px auto 0!important;gap:52px!important}
.classic-report .official-signatures .official-signature:only-child{grid-column:1/-1!important;justify-self:center!important;width:260px!important}
.classic-report .official-signature{min-width:0!important}
.classic-report .classic-remarks b{white-space:nowrap!important}
@media(max-width:700px){
 .classic-ges-header .report-authority{font-size:17px!important}
 .classic-ges-header .report-school-name{font-size:14px!important}
 .classic-ges-header .report-contact-grid{grid-template-columns:1fr!important;text-align:center!important}
 .classic-ges-header .report-contact-right{text-align:center!important}
 .classic-report .official-signatures{grid-template-columns:1fr!important;gap:22px!important}
 .classic-report .official-signatures .official-signature:only-child{grid-column:auto!important}
}
@media print{
 .classic-ges-header .report-authority{font-size:20px!important}
 .classic-ges-header .report-school-name{font-size:16px!important}
 .classic-ges-header .report-motto{font-size:10px!important}
 .classic-ges-header .report-contact-grid,.classic-ges-header .report-contact-grid *{font-size:9px!important}
}
/* Smart attendance v1.8.31 */
.attendance-filter{grid-template-columns:minmax(220px,1fr) minmax(180px,.65fr) auto;align-items:end}.attendance-auto-status{display:flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;border-radius:12px;background:color-mix(in srgb,var(--school-primary,#08754f) 10%,#fff);color:var(--school-primary,#08754f);font-weight:700;font-size:13px}.attendance-filter.is-loading{opacity:.65;pointer-events:none}.attendance-existing{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.attendance-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:18px 0}.attendance-summary{display:flex;gap:10px;flex-wrap:wrap}.attendance-summary>div{min-width:92px;background:#fff;border:1px solid #e2e9e4;border-radius:14px;padding:10px 14px;display:flex;align-items:end;justify-content:space-between;gap:12px}.attendance-summary span{font-size:12px;color:#68786f}.attendance-summary strong{font-size:22px}.attendance-summary .present strong{color:#08754f}.attendance-summary .absent strong{color:#d33}.attendance-actions{display:flex;gap:8px;flex-wrap:wrap}.attendance-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.attendance-student-card{background:#fff;border:1px solid #e2e9e4;border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:15px;transition:.2s}.attendance-student-card[data-status="present"]{border-left:4px solid #08754f}.attendance-student-card[data-status="absent"]{border-left:4px solid #dc3545}.attendance-student-name{display:flex;align-items:center;gap:10px;min-width:0}.attendance-student-name strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-student-name small{color:#7b8981}.student-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--school-primary,#08754f);color:var(--school-on-primary,#fff);font-weight:700;flex:0 0 auto}.attendance-choice{display:flex;gap:8px}.attendance-option input{position:absolute;opacity:0}.attendance-option span{display:flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid #d9e2dc;border-radius:10px;cursor:pointer;font-size:13px;font-weight:700;white-space:nowrap}.attendance-option.present input:checked+span{background:#e9f7ef;border-color:#08754f;color:#08754f}.attendance-option.absent input:checked+span{background:#fff0f1;border-color:#dc3545;color:#b4232f}.sticky-save-bar{position:sticky;bottom:10px;z-index:4;margin-top:18px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid #dfe7e2;border-radius:15px;box-shadow:0 10px 30px rgba(20,40,28,.12);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.sticky-save-bar strong,.sticky-save-bar span{display:block}.sticky-save-bar span{font-size:12px;color:#718078}@media(max-width:820px){.attendance-filter{grid-template-columns:1fr}.attendance-toolbar{align-items:stretch;flex-direction:column}.attendance-student-grid{grid-template-columns:1fr}.attendance-student-card{align-items:flex-start;flex-direction:column}.attendance-choice{width:100%}.attendance-option{flex:1}.attendance-option span{justify-content:center}.sticky-save-bar{bottom:6px}.attendance-actions .btn{flex:1}}@media(max-width:430px){.attendance-summary{display:grid;grid-template-columns:repeat(3,1fr)}.attendance-summary>div{min-width:0;padding:9px}.attendance-summary strong{font-size:18px}.attendance-actions{display:grid;grid-template-columns:1fr 1fr}.attendance-actions .btn{font-size:12px;padding:10px 8px}}

/* v1.8.32: keep controls readable inside coloured page headers */
.header-card .btn-light,
.header-card a.btn-light,
.header-card button.btn-light {
  background:#fff !important;
  color:#101828 !important;
  border-color:rgba(16,24,40,.18) !important;
}
.header-card .btn-light:hover,
.header-card a.btn-light:hover,
.header-card button.btn-light:hover {
  background:#f2f4f7 !important;
  color:#00182d !important;
}
.header-card input,
.header-card select,
.header-card textarea {
  background:#fff !important;
  color:#101828 !important;
  -webkit-text-fill-color:#101828 !important;
}
.header-card input::placeholder,
.header-card textarea::placeholder {
  color:#667085 !important;
  opacity:1 !important;
}
.header-card select option {
  background:#fff !important;
  color:#101828 !important;
}

/* v1.8.33 Academic Year form spacing */
.academic-year-create-form .academic-year-form-actions{margin-top:24px;padding-top:4px;display:flex;align-items:center;}
.academic-year-create-form .academic-year-form-actions .btn{min-height:46px;}
@media(max-width:700px){.academic-year-create-form .academic-year-form-actions{margin-top:22px;}.academic-year-create-form .academic-year-form-actions .btn{width:100%;}}

/* v1.8.34: School officials form spacing */
.school-official-form{align-items:end;row-gap:24px!important;margin-bottom:24px}.school-official-form .official-sign-option{justify-content:flex-end;min-height:48px;padding-bottom:4px}.school-official-form .official-sign-option label{display:flex;align-items:center;gap:10px;margin:0}.school-official-form .official-sign-option input{width:auto;min-height:auto}.school-official-form .official-submit{grid-column:1/-1;margin-top:4px;padding-top:8px;border-top:1px solid #edf1ef}.school-official-form .official-submit .btn{min-height:48px;min-width:180px}
@media(max-width:700px){.school-official-form{row-gap:18px!important}.school-official-form .official-submit{margin-top:8px;padding-top:18px}.school-official-form .official-submit .btn{width:100%}}

/* v1.8.35: consistent spacing for subject and aggregate action buttons */
.subject-setup-actions,
.aggregate-settings-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
  padding-top:4px;
}
.subject-setup-actions .btn,
.aggregate-settings-actions .btn{
  min-height:46px;
}
.aggregate-settings-card #aggregateSubjects{
  margin-bottom:0;
}
@media(max-width:700px){
  .subject-setup-actions,
  .aggregate-settings-actions{
    margin-top:22px;
  }
  .subject-setup-actions .btn,
  .aggregate-settings-actions .btn{
    width:100%;
  }
}


/* v1.8.36: report header hierarchy and compact grade/position columns */
.classic-ges-header .report-school-name{margin-bottom:3px!important}
.classic-ges-header .report-logo{margin:3px auto 3px!important}
.classic-ges-header .report-motto{margin:0 0 4px!important}
.classic-report .classic-result-table th.col-grade,
.classic-report .classic-result-table td.col-grade,
.classic-report .classic-result-table th.col-position,
.classic-report .classic-result-table td.col-position{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
  hyphens:none!important;
  padding-left:2px!important;
  padding-right:2px!important;
}
.classic-report .classic-result-table .col-grade{width:8%!important}
.classic-report .classic-result-table .col-position{width:10%!important}
.classic-report .classic-result-table .col-subject{width:24%!important}
.classic-report .classic-result-table .col-interpretation{width:21%!important}
@media(max-width:700px){
 .classic-report .classic-result-table th.col-grade,
 .classic-report .classic-result-table td.col-grade,
 .classic-report .classic-result-table th.col-position,
 .classic-report .classic-result-table td.col-position{font-size:12px!important}
}

/* v1.8.37: report cards are intentionally black and white for clean printing. */
.result-sheet.classic-report,
.result-sheet.classic-report .school-report-header,
.result-sheet.classic-report .report-title,
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary,
.result-sheet.classic-report .classic-result-table,
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td,
.result-sheet.classic-report .classic-remarks,
.result-sheet.classic-report .official-signatures {
  color:#000!important;
}
.result-sheet.classic-report,
.result-sheet.classic-report .school-report-header,
.result-sheet.classic-report .report-title,
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary,
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td,
.result-sheet.classic-report .classic-remarks>div {
  background:#fff!important;
  background-image:none!important;
}
.result-sheet.classic-report .report-authority,
.result-sheet.classic-report .report-school-name,
.result-sheet.classic-report .report-motto,
.result-sheet.classic-report .report-contact-grid,
.result-sheet.classic-report .report-school-copy h1,
.result-sheet.classic-report .heading-weight,
.result-sheet.classic-report .official-signature,
.result-sheet.classic-report .official-signature strong,
.result-sheet.classic-report .official-signature span {
  color:#000!important;
}
.result-sheet.classic-report .school-report-header,
.result-sheet.classic-report .report-title,
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary,
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td,
.result-sheet.classic-report .signature-rule {
  border-color:#000!important;
}
@media print{
  .result-sheet.classic-report,
  .result-sheet.classic-report *{
    -webkit-print-color-adjust:economy!important;
    print-color-adjust:economy!important;
  }
}


/* v1.8.38: keep every student report on one A4 portrait page when printing */
@page report-card-page{
  size:A4 portrait;
  margin:4mm;
}
@media print{
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  body{width:auto!important}
  .result-sheet.classic-report{
    page:report-card-page;
    width:202mm!important;
    height:289mm!important;
    max-height:289mm!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:3.5mm 5mm 3mm!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
    break-after:page!important;
    page-break-after:always!important;
  }
  .result-sheet.classic-report:last-of-type{
    break-after:auto!important;
    page-break-after:auto!important;
  }
  .classic-report .classic-ges-header{margin-bottom:4px!important;padding-bottom:4px!important}
  .classic-report .classic-ges-header .report-logo{max-width:50px!important;max-height:40px!important;margin:1px auto!important}
  .classic-report .report-title{margin:2px 0!important;padding:2px 3px!important}
  .classic-report .classic-student-info{padding:2px 0!important;gap:1px 8px!important}
  .classic-report .classic-summary,.classic-report .classic-bottom-summary{margin:3px 0!important}
  .classic-report .classic-summary span,.classic-report .classic-bottom-summary span{padding:3px 2px!important}
  .classic-report .classic-result-table{margin:2px 0!important}
  .classic-report .classic-result-table th,.classic-report .classic-result-table td{padding:2px 2px!important;line-height:1.02!important}
  .classic-report .classic-remarks{margin-top:2px!important;line-height:1.15!important;gap:1px!important}
  .classic-report .classic-remarks>div{padding:2px 3px!important}
  .classic-report .official-signatures{margin-top:6px!important;gap:28px!important}
  .classic-report .official-signature img{height:30px!important;max-height:30px!important}
  .classic-report .signature-rule{margin-top:2px!important;padding-top:2px!important}

  /* More subjects require denser rows, but retain the system font and readable labels. */
  .classic-report.report-density-medium,
  .classic-report.report-density-medium *{font-size:12px!important}
  .classic-report.report-density-medium .classic-ges-header .report-authority{font-size:17px!important}
  .classic-report.report-density-medium .classic-ges-header .report-school-name{font-size:14px!important}
  .classic-report.report-density-medium .classic-result-table th,
  .classic-report.report-density-medium .classic-result-table td{font-size:11px!important;padding:1.5px 2px!important}

  .classic-report.report-density-high,
  .classic-report.report-density-high *{font-size:10.5px!important}
  .classic-report.report-density-high .classic-ges-header .report-authority{font-size:16px!important}
  .classic-report.report-density-high .classic-ges-header .report-school-name{font-size:13px!important}
  .classic-report.report-density-high .classic-result-table th,
  .classic-report.report-density-high .classic-result-table td{font-size:9.5px!important;padding:1px 1.5px!important;line-height:1!important}
  .classic-report.report-density-high .official-signatures{margin-top:3px!important}
}


/* v1.8.41 school-aware authentication branding */
body.school-auth-branded .modern-login-brand .school-logo{background:var(--auth-primary,#15803d)!important;}
body.school-auth-branded .modern-login-brand .school-logo i{color:#fff!important;}
body.school-auth-branded .modern-login-brand .school-logo img{width:100%;height:100%;object-fit:contain;border-radius:inherit;background:#fff;padding:5px;box-sizing:border-box;}
body.school-auth-branded .modern-signin,body.school-auth-branded .modern-login-card .btn-primary{background:var(--auth-primary,#15803d)!important;border-color:var(--auth-primary,#15803d)!important;}
body.school-auth-branded .modern-login-card a,body.school-auth-branded .student-portal-link a{color:var(--auth-primary,#15803d)!important;}
body.school-auth-branded .modern-login-card input:focus,body.school-auth-branded .modern-login-card select:focus{border-color:var(--auth-primary,#15803d)!important;box-shadow:0 0 0 3px rgba(0,59,99,.12)!important;}
body.school-auth-branded .modern-login-brand h1{color:#fff!important;}
body.modern-login-page .modern-login-brand h1,
body.school-auth-branded .modern-login-brand h1{color:#fff!important;}
body.modern-login-page .modern-login-brand p,
body.school-auth-branded .modern-login-brand p{color:#fff!important;opacity:.92;}
@media(max-width:600px){body.modern-login-page .modern-login-brand p,body.school-auth-branded .modern-login-brand p{display:block!important;color:#fff!important;font-size:11.5px!important;margin-top:4px!important;}}



/* v1.8.42: safe report-table spacing and print/screen layout parity */
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  box-sizing:border-box!important;
}
.result-sheet.classic-report .classic-result-table th.col-position,
.result-sheet.classic-report .classic-result-table td.col-position{
  padding-left:5px!important;
  padding-right:6px!important;
}
.result-sheet.classic-report .classic-result-table th.col-interpretation,
.result-sheet.classic-report .classic-result-table td.col-interpretation{
  padding-left:7px!important;
  padding-right:5px!important;
}
.result-sheet.classic-report .classic-result-table th.col-grade,
.result-sheet.classic-report .classic-result-table td.col-grade{
  padding-left:4px!important;
  padding-right:4px!important;
}
@media print{
  /* Preserve the same table proportions, spacing and typography shown on the individual result. */
  .result-sheet.classic-report .classic-result-table{
    table-layout:fixed!important;
  }
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{
    font-family:var(--chelmsford-print-font)!important;
    font-size:14px!important;
    line-height:1.08!important;
    vertical-align:middle!important;
  }
  .result-sheet.classic-report .classic-result-table th.col-position,
  .result-sheet.classic-report .classic-result-table td.col-position{
    padding-left:5px!important;
    padding-right:6px!important;
  }
  .result-sheet.classic-report .classic-result-table th.col-interpretation,
  .result-sheet.classic-report .classic-result-table td.col-interpretation{
    padding-left:7px!important;
    padding-right:5px!important;
  }
  .result-sheet.classic-report.report-density-medium .classic-result-table th,
  .result-sheet.classic-report.report-density-medium .classic-result-table td,
  .result-sheet.classic-report.report-density-high .classic-result-table th,
  .result-sheet.classic-report.report-density-high .classic-result-table td{
    font-size:14px!important;
    line-height:1.08!important;
  }
}

/* v1.8.43: continuous report borders and safe text clearance.
   Use separate borders instead of collapsed borders because Chromium/PDF printing
   can drop or split collapsed lines when the page is scaled. */
.result-sheet.classic-report .classic-result-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-top:1px solid #000!important;
  border-left:1px solid #000!important;
  background:#fff!important;
}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  border:0!important;
  border-right:1px solid #000!important;
  border-bottom:1px solid #000!important;
  background:#fff!important;
  color:#000!important;
  padding:5px 6px!important;
  line-height:1.12!important;
  vertical-align:middle!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
/* Give compact labels enough real width without changing the table structure. */
.result-sheet.classic-report .classic-result-table .col-subject{width:23%!important}
.result-sheet.classic-report .classic-result-table .col-score{width:11%!important}
.result-sheet.classic-report .classic-result-table .col-exam{width:13%!important}
.result-sheet.classic-report .classic-result-table .col-total{width:11.5%!important}
.result-sheet.classic-report .classic-result-table .col-grade{width:8%!important}
.result-sheet.classic-report .classic-result-table .col-position{width:11%!important}
.result-sheet.classic-report .classic-result-table .col-interpretation{width:22.5%!important}
.result-sheet.classic-report .classic-result-table th.col-grade,
.result-sheet.classic-report .classic-result-table td.col-grade,
.result-sheet.classic-report .classic-result-table th.col-position,
.result-sheet.classic-report .classic-result-table td.col-position{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  padding-left:7px!important;
  padding-right:7px!important;
}
.result-sheet.classic-report .classic-result-table th.col-interpretation,
.result-sheet.classic-report .classic-result-table td.col-interpretation{
  padding-left:9px!important;
  padding-right:7px!important;
}
@media print{
  .result-sheet.classic-report .classic-result-table{
    border-collapse:separate!important;
    border-spacing:0!important;
    border-top:1px solid #000!important;
    border-left:1px solid #000!important;
    transform:none!important;
  }
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{
    border:0!important;
    border-right:1px solid #000!important;
    border-bottom:1px solid #000!important;
    padding:4px 6px!important;
    line-height:1.1!important;
    overflow:visible!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .result-sheet.classic-report .classic-result-table th.col-grade,
  .result-sheet.classic-report .classic-result-table td.col-grade,
  .result-sheet.classic-report .classic-result-table th.col-position,
  .result-sheet.classic-report .classic-result-table td.col-position{
    padding-left:7px!important;
    padding-right:7px!important;
  }
  .result-sheet.classic-report .classic-result-table th.col-interpretation,
  .result-sheet.classic-report .classic-result-table td.col-interpretation{
    padding-left:9px!important;
    padding-right:7px!important;
  }
}

/* v1.8.47: Mobile spacing for student import controls */
.student-import-upload .student-import-actions{margin-top:24px;padding-top:0;}
@media(max-width:700px){.student-import-upload .form-grid{row-gap:22px!important}.student-import-upload .student-import-actions{margin-top:26px!important}.student-import-upload .student-import-actions .btn{width:100%;min-height:48px}}


/* v1.8.48: Separate student template action buttons on small screens */
.student-template-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px;}
.student-template-actions .btn{margin:0!important;}
@media(max-width:700px){.student-template-actions{display:grid;grid-template-columns:1fr;gap:14px!important;margin-top:22px}.student-template-actions .btn{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;text-align:center;white-space:normal}}

/* v1.8.49: Responsive on-screen report preview. The printed report keeps its original dimensions. */
@media screen {
  .responsive-report-viewport {
    width:100%;
    overflow:hidden;
    display:block;
    margin:0 auto 18px;
  }
  .responsive-report-viewport > .result-sheet.classic-report {
    transform-origin:top left;
    margin:0;
  }
}
@media print {
  .responsive-report-viewport {
    width:auto!important;
    height:auto!important;
    overflow:visible!important;
    margin:0!important;
  }
  .responsive-report-viewport > .result-sheet.classic-report {
    transform:none!important;
    width:auto!important;
    margin:0!important;
  }
}

/* v1.8.50: final border continuity and text-clearance rules for result sheets. */
:root{--report-line:#000;--report-screen-line:2px;--report-print-line:1px}

/* Individual report card: draw every edge explicitly so no joint disappears. */
@media screen{
  .result-sheet.classic-report .classic-result-table,
  .result-sheet.classic-report .classic-summary,
  .result-sheet.classic-report .classic-bottom-summary,
  .result-sheet.classic-report .report-title{
    border-color:var(--report-line)!important;
  }
  .result-sheet.classic-report .classic-result-table{
    border-top:var(--report-screen-line) solid var(--report-line)!important;
    border-left:var(--report-screen-line) solid var(--report-line)!important;
  }
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{
    border-right:var(--report-screen-line) solid var(--report-line)!important;
    border-bottom:var(--report-screen-line) solid var(--report-line)!important;
    padding:6px 8px!important;
    line-height:1.2!important;
    background-clip:padding-box!important;
  }
  .result-sheet.classic-report .classic-summary,
  .result-sheet.classic-report .classic-bottom-summary,
  .result-sheet.classic-report .report-title{border-width:var(--report-screen-line)!important}
  .result-sheet.classic-report .classic-summary span,
  .result-sheet.classic-report .classic-bottom-summary span{border-right-width:var(--report-screen-line)!important;padding:7px 9px!important}
}

.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  min-width:0!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.result-sheet.classic-report .classic-result-table th.col-grade,
.result-sheet.classic-report .classic-result-table td.col-grade,
.result-sheet.classic-report .classic-result-table th.col-position,
.result-sheet.classic-report .classic-result-table td.col-position{
  padding-left:10px!important;
  padding-right:10px!important;
  white-space:nowrap!important;
}
.result-sheet.classic-report .classic-result-table th.col-interpretation,
.result-sheet.classic-report .classic-result-table td.col-interpretation{
  padding-left:12px!important;
  padding-right:10px!important;
}

/* Class result sheet: one continuous grid on screen and paper. */
.class-result-table{overflow:auto;-webkit-overflow-scrolling:touch}
.class-result-table table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-top:1px solid var(--report-line)!important;
  border-left:1px solid var(--report-line)!important;
  background:#fff!important;
}
.class-result-table th,.class-result-table td{
  border:0!important;
  border-right:1px solid var(--report-line)!important;
  border-bottom:1px solid var(--report-line)!important;
  padding:7px 9px!important;
  line-height:1.2!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  background:#fff!important;
  color:#000!important;
}

@media print{
  .result-sheet.classic-report .classic-result-table{
    border-top:var(--report-print-line) solid var(--report-line)!important;
    border-left:var(--report-print-line) solid var(--report-line)!important;
  }
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{
    border-right:var(--report-print-line) solid var(--report-line)!important;
    border-bottom:var(--report-print-line) solid var(--report-line)!important;
    padding:4px 6px!important;
    line-height:1.12!important;
  }
  .result-sheet.classic-report .classic-result-table th.col-grade,
  .result-sheet.classic-report .classic-result-table td.col-grade,
  .result-sheet.classic-report .classic-result-table th.col-position,
  .result-sheet.classic-report .classic-result-table td.col-position{padding-left:8px!important;padding-right:8px!important}
  .result-sheet.classic-report .classic-result-table th.col-interpretation,
  .result-sheet.classic-report .classic-result-table td.col-interpretation{padding-left:10px!important;padding-right:8px!important}
  .class-result-table table{border-top:1px solid #000!important;border-left:1px solid #000!important}
  .class-result-table th,.class-result-table td{border-right:1px solid #000!important;border-bottom:1px solid #000!important;padding:5px 6px!important}
  .class-result-table tr,.class-result-table th,.class-result-table td{break-inside:avoid!important;page-break-inside:avoid!important}
}

/* v1.8.55: reference-aligned GES report layout and reliable promotion workflow. */
.result-sheet.classic-report{
  width:210mm!important;max-width:210mm!important;min-height:287mm!important;
  padding:10mm 10mm 7mm!important;font-family:var(--chelmsford-print-font)!important;
  color:#000!important;background:#fff!important;box-sizing:border-box!important;
}
.result-sheet.classic-report .classic-ges-header{
  display:block!important;text-align:center!important;border-bottom:1.2px solid #000!important;
  padding:0 0 5px!important;margin:0 0 6px!important;position:relative!important;
}
.result-sheet.classic-report .report-authority{font-size:20px!important;font-weight:700!important;line-height:1.05!important;margin:0!important}
.result-sheet.classic-report .report-school-name{font-size:15px!important;font-weight:700!important;line-height:1.1!important;margin:3px 0 0!important}
.result-sheet.classic-report .report-logo{display:block!important;width:46px!important;height:46px!important;object-fit:contain!important;margin:5px auto 2px!important}
.result-sheet.classic-report .report-motto{font-size:8.5px!important;font-style:normal!important;font-weight:600!important;line-height:1.1!important;margin:0 0 3px!important;color:#000!important}
.result-sheet.classic-report .report-contact-grid{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:end!important;gap:20px!important;text-align:left!important;font-size:8px!important;line-height:1.15!important;margin-top:-2px!important}
.result-sheet.classic-report .report-contact-right{text-align:right!important;display:flex!important;flex-direction:column!important}
.result-sheet.classic-report .report-title{background:#fff!important;color:#000!important;border:1px solid #000!important;padding:3px 5px!important;margin:7px 0 8px!important;font-size:11px!important}
.result-sheet.classic-report .classic-student-info{display:grid!important;grid-template-columns:1fr 1fr!important;grid-auto-flow:row!important;gap:5px 24px!important;padding:4px 3px 6px!important;font-size:9px!important;line-height:1.15!important}
.result-sheet.classic-report .classic-summary,.result-sheet.classic-report .classic-bottom-summary{display:flex!important;border:1px solid #000!important;margin:4px 0!important;font-size:8px!important}
.result-sheet.classic-report .classic-summary span,.result-sheet.classic-report .classic-bottom-summary span{padding:4px 5px!important;border-right:1px solid #000!important;white-space:nowrap!important}
.result-sheet.classic-report .classic-result-table{border-collapse:collapse!important;border:1px solid #000!important;table-layout:fixed!important;margin:4px 0!important}
.result-sheet.classic-report .classic-result-table th,.result-sheet.classic-report .classic-result-table td{border:1px solid #000!important;padding:4px 5px!important;font-size:8px!important;line-height:1.1!important;background:#fff!important;color:#000!important;overflow:visible!important}
.result-sheet.classic-report .classic-result-table .col-subject{width:25%!important}.result-sheet.classic-report .classic-result-table .col-score{width:12%!important}.result-sheet.classic-report .classic-result-table .col-exam{width:14%!important}.result-sheet.classic-report .classic-result-table .col-total{width:13%!important}.result-sheet.classic-report .classic-result-table .col-grade{width:7%!important}.result-sheet.classic-report .classic-result-table .col-position{width:9%!important}.result-sheet.classic-report .classic-result-table .col-interpretation{width:20%!important}
.result-sheet.classic-report .classic-result-table th.col-grade,.result-sheet.classic-report .classic-result-table td.col-grade,.result-sheet.classic-report .classic-result-table th.col-position,.result-sheet.classic-report .classic-result-table td.col-position{white-space:nowrap!important;padding-left:6px!important;padding-right:6px!important}
.result-sheet.classic-report .classic-result-table th.col-interpretation,.result-sheet.classic-report .classic-result-table td.col-interpretation{padding-left:8px!important;padding-right:6px!important}
.result-sheet.classic-report .classic-remarks{font-size:8.5px!important;line-height:1.35!important;margin-top:6px!important}.result-sheet.classic-report .classic-remarks>div{padding:1px 2px!important}
.result-sheet.classic-report .official-signatures{margin-top:18px!important;gap:70px!important;align-items:end!important}.result-sheet.classic-report .official-signature{min-width:170px!important;font-size:8.5px!important}.result-sheet.classic-report .official-signature img{height:48px!important}.result-sheet.classic-report .signature-rule{border-top:1px solid #000!important;margin-top:2px!important}
.promotion-form{margin-top:22px}.promotion-actions{margin-top:24px;display:flex;justify-content:flex-end}.promotion-check{width:20px;height:20px}
@media(max-width:700px){.promotion-actions .btn{width:100%}.result-sheet.classic-report{padding:10mm!important}}
@media print{
 @page{size:A4 portrait;margin:0}
 .result-sheet.classic-report{width:210mm!important;height:297mm!important;max-height:297mm!important;min-height:297mm!important;padding:8mm 10mm 6mm!important;margin:0!important;overflow:hidden!important;transform:none!important}
 .result-sheet.classic-report .classic-result-table{border-collapse:collapse!important;border:1px solid #000!important}
 .result-sheet.classic-report .classic-result-table th,.result-sheet.classic-report .classic-result-table td{border:1px solid #000!important;padding:3px 5px!important}
}

/* v1.8.58: 13px report-card typography and fully joined grid lines. */
.result-sheet.classic-report,
.result-sheet.classic-report *{
  font-family:var(--chelmsford-print-font)!important;
  font-size:13px!important;
}
.result-sheet.classic-report{
  line-height:1.15!important;
}
.result-sheet.classic-report .classic-ges-header,
.result-sheet.classic-report .report-title,
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary,
.result-sheet.classic-report .classic-result-table{
  box-sizing:border-box!important;
}
.result-sheet.classic-report .classic-result-table{
  width:100%!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  border:1px solid #000!important;
  outline:0!important;
}
.result-sheet.classic-report .classic-result-table tr{
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  border:1px solid #000!important;
  padding:4px 7px!important;
  line-height:1.12!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
  background:#fff!important;
  color:#000!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.result-sheet.classic-report .classic-result-table th.col-grade,
.result-sheet.classic-report .classic-result-table td.col-grade,
.result-sheet.classic-report .classic-result-table th.col-position,
.result-sheet.classic-report .classic-result-table td.col-position{
  white-space:nowrap!important;
  padding-left:8px!important;
  padding-right:8px!important;
}
.result-sheet.classic-report .classic-result-table th.col-interpretation,
.result-sheet.classic-report .classic-result-table td.col-interpretation{
  padding-left:10px!important;
  padding-right:8px!important;
}
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary{
  display:flex!important;
  width:100%!important;
  border:1px solid #000!important;
  border-collapse:collapse!important;
  gap:0!important;
}
.result-sheet.classic-report .classic-summary span,
.result-sheet.classic-report .classic-bottom-summary span{
  flex:1 1 0!important;
  border:0!important;
  border-right:1px solid #000!important;
  padding:4px 7px!important;
  box-sizing:border-box!important;
}
.result-sheet.classic-report .classic-summary span:last-child,
.result-sheet.classic-report .classic-bottom-summary span:last-child{
  border-right:0!important;
}
.result-sheet.classic-report .report-title{
  border:1px solid #000!important;
}
@media print{
  .result-sheet.classic-report,
  .result-sheet.classic-report *{font-size:13px!important}
  .result-sheet.classic-report .classic-result-table{
    border-collapse:collapse!important;
    border-spacing:0!important;
    border:1px solid #000!important;
  }
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{
    border:1px solid #000!important;
    padding:3px 6px!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}
/* v1.8.59 Smart Zero Confirmation */
.mark-input.unconfirmed-zero{background:#fff7e6!important;border-color:#e89b18!important;box-shadow:0 0 0 2px rgba(232,155,24,.12)}
.zero-confirmation-panel{margin:18px 0;padding:18px;border:1px solid #e89b18;border-radius:12px;background:#fffaf0}
.zero-confirmation-list{max-height:260px;overflow:auto;margin:12px 0;padding:10px;background:#fff;border:1px solid #ead8b3;border-radius:8px}
.zero-confirmation-list>div{padding:8px 4px;border-bottom:1px solid #eee}.zero-confirmation-list>div:last-child{border-bottom:0}
.zero-confirmation-actions{display:flex;gap:12px;flex-wrap:wrap}@media(max-width:640px){.zero-confirmation-actions .btn{width:100%}}

/* v1.8.62 Accessible password visibility controls */
.password-field-wrap{position:relative;display:block;width:100%}
.password-field-wrap>input[type="password"],.password-field-wrap>input[type="text"]{width:100%;padding-right:46px!important;box-sizing:border-box}
.password-field-wrap>.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#4b5563;cursor:pointer;z-index:2;font-size:16px;line-height:1}
.password-field-wrap>.password-toggle:hover,.password-field-wrap>.password-toggle:focus-visible{background:#eef2f7;color:#111827;outline:2px solid rgba(37,99,235,.28);outline-offset:1px}
.password-field-wrap>.password-toggle i{pointer-events:none}

/* v1.8.63 Safe impersonation form spacing */
.safe-impersonation-form{display:grid;gap:20px;max-width:100%}
.safe-impersonation-form .field{margin:0}
.safe-impersonation-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:2px}
@media(max-width:520px){.safe-impersonation-form{gap:22px}.safe-impersonation-actions .btn{width:100%;min-height:48px}}

/* v1.8.64 Super Admin school profile long-text containment */
.sa-profile-grid > *,
.sa-info,
.sa-info span {
  min-width: 0;
  max-width: 100%;
}
.sa-info span,
.sa-table th,
.sa-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sa-info span {
  line-height: 1.45;
}
@media (max-width: 800px) {
  .sa-info {
    overflow: hidden;
  }
  .sa-table {
    table-layout: fixed;
  }
}

.initial-academic-setup-form h3{margin:24px 0 12px}.initial-academic-setup-form .form-actions{margin-top:24px}.initial-academic-setup-form small{display:block;margin-top:6px;color:#64748b}@media(max-width:640px){.initial-academic-setup-form .form-actions .btn{width:100%}}


/* v1.8.71 Production UI and print-ready report system */
:root{
  --prod-radius:14px;
  --prod-border:#d9e1e8;
  --prod-shadow:0 10px 28px rgba(15,23,42,.08);
  --prod-gap:22px;
}
.form-card,.card,.dashboard-panel,.dashboard-announcements,.support-ticket,
.content-card,.panel,.admin-card,.profile-card,.setup-card,.management-card{
  border:1px solid var(--prod-border)!important;
  border-radius:var(--prod-radius)!important;
  box-shadow:var(--prod-shadow)!important;
  padding:24px!important;
  min-width:0!important;
}
.cards,.dashboard-grid,.dashboard-bottom-grid,.admin-overview-grid,.profile-layout,.form-grid{
  align-items:stretch!important;
  gap:var(--prod-gap)!important;
}
.cards>.card,.dashboard-grid>*,.dashboard-bottom-grid>*,.admin-overview-grid>*{
  height:100%!important;
  min-height:150px;
  display:flex;
  flex-direction:column;
}
.form-grid>.field{min-width:0;margin:0!important}
.field input,.field select,.field textarea{
  min-height:46px;
  line-height:1.35;
  background:#fff;
  color:#17212b;
}
.form-actions,.field-action,.action-row,.aggregate-settings-actions,.official-submit{
  margin-top:20px!important;
  display:flex!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
.table-wrap{border:1px solid var(--prod-border)!important;box-shadow:var(--prod-shadow)!important}
.table-wrap table{width:100%;border-collapse:separate;border-spacing:0}
.table-wrap th,.table-wrap td{border-bottom:1px solid #e5eaf0}
.table-wrap tr:last-child td{border-bottom:0}
@media(max-width:700px){
  .form-card,.card,.dashboard-panel,.dashboard-announcements,.support-ticket,
  .content-card,.panel,.admin-card,.profile-card,.setup-card,.management-card{padding:18px!important}
  .cards>.card,.dashboard-grid>*,.dashboard-bottom-grid>*,.admin-overview-grid>*{min-height:0}
  .form-actions .btn,.field-action .btn,.action-row .btn,.aggregate-settings-actions .btn,.official-submit .btn{width:100%}
}

/* Report card: one authoritative visual system for screen and print */
body.report-page{margin:0;background:#e9edf2;color:#000}
.report-page>.no-print{display:flex;justify-content:center;gap:10px;padding:14px;position:sticky;top:0;z-index:5;background:rgba(255,255,255,.96);border-bottom:1px solid #d8dee6}
.responsive-report-viewport{margin:18px auto 28px;overflow:visible;position:relative}
.result-sheet.classic-report{
  width:210mm!important;
  max-width:none!important;
  min-height:277mm!important;
  height:auto!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:7mm 8mm!important;
  overflow:visible!important;
  box-sizing:border-box!important;
  background:#fff!important;
  color:#000!important;
  border:1px solid #000!important;
  border-radius:0!important;
  box-shadow:0 10px 34px rgba(15,23,42,.18)!important;
  font-family:var(--chelmsford-print-font)!important;
  font-size:13px!important;
  line-height:1.18!important;
}
.result-sheet.classic-report,.result-sheet.classic-report *{
  font-family:var(--chelmsford-print-font)!important;
  color:#000!important;
  box-sizing:border-box!important;
}
.classic-report .school-report-header{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  text-align:center!important;
  border:0!important;
  border-bottom:1.5px solid #000!important;
  padding:0 0 6px!important;
  margin:0 0 6px!important;
}
.classic-report .report-authority{font-size:13px!important;font-weight:700!important;line-height:1.1!important}
.classic-report .report-school-name{font-size:18px!important;font-weight:800!important;line-height:1.1!important}
.classic-report .report-logo{display:block!important;width:auto!important;height:auto!important;max-width:76px!important;max-height:68px!important;object-fit:contain!important;margin:2px auto!important}
.classic-report .report-motto{font-size:13px!important;font-style:italic!important;margin:0!important;line-height:1.1!important}
.classic-report .report-contact-grid{
  width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;
  margin-top:3px!important;font-size:13px!important;line-height:1.15!important;text-align:left!important
}
.classic-report .report-contact-right{text-align:right!important;min-width:0!important}
.classic-report .report-contact-left,.classic-report .report-contact-right{overflow-wrap:anywhere!important}
.classic-report .report-contact-grid span{display:block!important}
.classic-report .report-title{
  margin:5px 0!important;padding:4px 8px!important;border:1px solid #000!important;
  background:#fff!important;color:#000!important;text-align:center!important;font-size:13px!important;line-height:1.1!important
}
.classic-report .classic-student-info{
  display:grid!important;grid-template-columns:1.5fr 1fr!important;gap:4px 18px!important;
  padding:4px 3px!important;font-size:13px!important;line-height:1.2!important
}
.classic-report .classic-summary,.classic-report .classic-bottom-summary{
  display:flex!important;width:100%!important;margin:5px 0!important;padding:0!important;
  border:1px solid #000!important;border-collapse:separate!important;gap:0!important;background:#fff!important
}
.classic-report .classic-summary span,.classic-report .classic-bottom-summary span{
  flex:1 1 0!important;min-width:0!important;padding:4px 6px!important;text-align:center!important;
  border:0!important;border-right:1px solid #000!important;font-size:13px!important;line-height:1.15!important;
  overflow-wrap:anywhere!important
}
.classic-report .classic-summary span:last-child,.classic-report .classic-bottom-summary span:last-child{border-right:0!important}
.classic-report .classic-result-table{
  width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
  border-right:1px solid #000!important;border-bottom:1px solid #000!important;margin:0!important;background:#fff!important
}
.classic-report .classic-result-table th,.classic-report .classic-result-table td{
  border:0!important;border-left:1px solid #000!important;border-top:1px solid #000!important;
  padding:4px 5px!important;font-size:13px!important;line-height:1.13!important;vertical-align:middle!important;
  text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
  background:#fff!important
}
.classic-report .classic-result-table th{font-weight:700!important}
.classic-report .classic-result-table td.col-subject{text-align:left!important;padding-left:7px!important}
.classic-report .classic-result-table .col-subject{width:23%!important}
.classic-report .classic-result-table .col-score{width:12%!important}
.classic-report .classic-result-table .col-exam{width:14%!important}
.classic-report .classic-result-table .col-total{width:12%!important}
.classic-report .classic-result-table .col-grade{width:8%!important;white-space:nowrap!important;padding-left:5px!important;padding-right:5px!important}
.classic-report .classic-result-table .col-position{width:10%!important;white-space:nowrap!important;padding-left:7px!important;padding-right:7px!important}
.classic-report .classic-result-table .col-interpretation{width:21%!important;text-align:left!important;padding-left:8px!important;padding-right:8px!important}
.classic-report .heading-weight{font-size:13px!important;font-weight:400!important}
.classic-report .classic-remarks{margin-top:5px!important;font-size:13px!important;line-height:1.25!important}
.classic-report .classic-remarks>div{margin:2px 0!important;min-height:16px!important}
.classic-report .official-signatures{display:flex!important;justify-content:center!important;align-items:flex-end!important;gap:48px!important;flex-wrap:nowrap!important;margin-top:18px!important}
.classic-report .official-signature{min-width:190px!important;text-align:center!important;font-size:13px!important}
.classic-report .official-signature img{height:42px!important;max-width:145px!important;object-fit:contain!important;margin:0 auto!important}
.classic-report .signature-rule{border-top:1px solid #000!important;margin-top:5px!important;padding-top:4px!important}
.classic-report.report-density-medium .classic-result-table th,.classic-report.report-density-medium .classic-result-table td,
.classic-report.report-density-high .classic-result-table th,.classic-report.report-density-high .classic-result-table td{font-size:13px!important;padding-top:3px!important;padding-bottom:3px!important}
.classic-report.report-density-high{padding-top:5mm!important;padding-bottom:5mm!important}
.classic-report.report-density-high .school-report-header{padding-bottom:4px!important;margin-bottom:4px!important}
.classic-report.report-density-high .official-signatures{margin-top:10px!important}

/* Class result sheet: complete professional grid */
.class-sheet-paper{border:1px solid #000!important;box-shadow:0 10px 30px rgba(15,23,42,.12)!important}
table.class-sheet-table{border-collapse:separate!important;border-spacing:0!important;border-right:1px solid #000!important;border-bottom:1px solid #000!important;font-family:var(--chelmsford-print-font)!important}
.class-sheet-table th,.class-sheet-table td{
  border:0!important;border-left:1px solid #000!important;border-top:1px solid #000!important;
  padding:5px 4px!important;color:#000!important;background:#fff!important
}
.class-sheet-table thead th{border-top:1px solid #000!important;border-bottom:0!important}

@media(max-width:760px){
  body.report-page{background:#fff}
  .report-page>.no-print{justify-content:flex-start}
  .result-sheet.classic-report{box-shadow:none!important}
}
@media print{
  @page{size:A4 portrait;margin:6mm}
  body.report-page{background:#fff!important}
  .report-page>.no-print{display:none!important}
  .responsive-report-viewport{width:auto!important;height:auto!important;margin:0!important;overflow:visible!important}
  .result-sheet.classic-report{
    width:198mm!important;min-height:0!important;height:auto!important;margin:0 auto!important;padding:4mm 5mm!important;
    border:0!important;box-shadow:none!important;transform:none!important;page-break-after:always!important;break-after:page!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important
  }
  .result-sheet.classic-report:last-of-type{page-break-after:auto!important;break-after:auto!important}
  .result-sheet.classic-report,.result-sheet.classic-report *{font-size:13px!important}
  .classic-report .classic-result-table{border-right:1px solid #000!important;border-bottom:1px solid #000!important}
  .classic-report .classic-result-table th,.classic-report .classic-result-table td{border-left:1px solid #000!important;border-top:1px solid #000!important}
  .class-sheet-paper{border:0!important;box-shadow:none!important}
  table.class-sheet-table{border-right:1px solid #000!important;border-bottom:1px solid #000!important}
  .class-sheet-table th,.class-sheet-table td{border-left:1px solid #000!important;border-top:1px solid #000!important}
}

/* v1.8.75: deterministic A4 report printing. This final block intentionally overrides all earlier report rules. */
:root{--report-ink:#000;--report-line:1px}
.result-sheet.classic-report,
.result-sheet.classic-report *{
  font-family:var(--chelmsford-print-font)!important;
  font-size:13px!important;
  box-sizing:border-box!important;
}
.result-sheet.classic-report{
  width:210mm!important;
  max-width:210mm!important;
  min-width:210mm!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:7mm 8mm!important;
  margin:0 auto 18px!important;
  overflow:visible!important;
  background:#fff!important;
  color:var(--report-ink)!important;
  border:1px solid var(--report-ink)!important;
  border-radius:0!important;
}
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:1fr!important;
  gap:0!important;
  width:100%!important;
  border:var(--report-line) solid var(--report-ink)!important;
  border-radius:0!important;
  overflow:hidden!important;
}
.result-sheet.classic-report .classic-summary>span,
.result-sheet.classic-report .classic-bottom-summary>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  padding:4px 6px!important;
  margin:0!important;
  border:0!important;
  border-right:var(--report-line) solid var(--report-ink)!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.result-sheet.classic-report .classic-summary>span:last-child,
.result-sheet.classic-report .classic-bottom-summary>span:last-child{border-right:0!important}
.result-sheet.classic-report .classic-result-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  border:var(--report-line) solid var(--report-ink)!important;
  margin:5px 0!important;
  background:#fff!important;
}
.result-sheet.classic-report .classic-result-table thead,
.result-sheet.classic-report .classic-result-table tbody,
.result-sheet.classic-report .classic-result-table tr{width:100%!important}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  border:var(--report-line) solid var(--report-ink)!important;
  padding:4px 6px!important;
  line-height:1.12!important;
  vertical-align:middle!important;
  background:#fff!important;
  color:#000!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.result-sheet.classic-report .classic-result-table th{font-weight:700!important;text-align:center!important}
.result-sheet.classic-report .classic-result-table td{text-align:center!important}
.result-sheet.classic-report .classic-result-table td.col-subject{text-align:left!important;padding-left:7px!important}
.result-sheet.classic-report .classic-result-table .col-grade,
.result-sheet.classic-report .classic-result-table .col-position{white-space:nowrap!important;padding-left:8px!important;padding-right:8px!important}
.result-sheet.classic-report .classic-result-table .col-interpretation{text-align:left!important;padding-left:9px!important;padding-right:8px!important}
.result-sheet.classic-report .classic-result-table tr,
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.result-sheet.classic-report .classic-remarks{margin-top:6px!important;line-height:1.22!important}
.result-sheet.classic-report .classic-remarks>div{min-height:18px!important;margin:2px 0!important}
/* Reserve clear handwriting room above the signature rules. */
.result-sheet.classic-report .official-signatures{
  display:flex!important;
  justify-content:space-evenly!important;
  align-items:flex-end!important;
  gap:32px!important;
  margin-top:12mm!important;
  padding-top:0!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.result-sheet.classic-report .official-signature{
  flex:0 1 72mm!important;
  min-width:0!important;
  max-width:72mm!important;
  text-align:center!important;
}
.result-sheet.classic-report .official-signature img{
  display:block!important;
  height:13mm!important;
  max-width:55mm!important;
  object-fit:contain!important;
  margin:0 auto 1mm!important;
}
.result-sheet.classic-report .signature-rule{
  width:100%!important;
  border:0!important;
  border-top:var(--report-line) solid var(--report-ink)!important;
  margin:0 0 3px!important;
  padding-top:4px!important;
}

@media screen and (max-width:900px){
  .responsive-report-viewport{overflow:hidden!important;margin:12px auto 22px!important}
}

@media print{
  @page{size:A4 portrait;margin:5mm!important}
  html,body{width:100%!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  body.report-page{background:#fff!important}
  body.report-page>*:not(.responsive-report-viewport):not(.result-sheet){display:none!important}
  .report-page>.no-print,.topbar,.sidebar,.backdrop,.page-loader,.subscription-banner{display:none!important}
  .responsive-report-viewport{
    display:block!important;
    width:200mm!important;
    height:auto!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
  }
  .result-sheet.classic-report{
    display:block!important;
    width:200mm!important;
    min-width:200mm!important;
    max-width:200mm!important;
    min-height:287mm!important;
    height:287mm!important;
    max-height:287mm!important;
    padding:5mm 6mm!important;
    margin:0 auto!important;
    overflow:hidden!important;
    border:0!important;
    box-shadow:none!important;
    transform:none!important;
    transform-origin:top left!important;
    page-break-before:auto!important;
    page-break-after:always!important;
    break-after:page!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .responsive-report-viewport:last-child .result-sheet.classic-report,
  .result-sheet.classic-report:last-of-type{page-break-after:auto!important;break-after:auto!important}
  .result-sheet.classic-report,
  .result-sheet.classic-report *{font-size:13px!important}
  .result-sheet.classic-report .school-report-header{margin-bottom:4px!important;padding-bottom:4px!important;gap:1px!important}
  .result-sheet.classic-report .report-logo{max-width:18mm!important;max-height:16mm!important;margin:1px auto!important}
  .result-sheet.classic-report .report-title{margin:3px 0!important;padding:3px 6px!important}
  .result-sheet.classic-report .classic-student-info{gap:2px 12px!important;padding:2px!important;line-height:1.12!important}
  .result-sheet.classic-report .classic-summary,
  .result-sheet.classic-report .classic-bottom-summary{margin:3px 0!important}
  .result-sheet.classic-report .classic-summary>span,
  .result-sheet.classic-report .classic-bottom-summary>span{padding:3px 4px!important}
  .result-sheet.classic-report .classic-result-table{margin:3px 0!important}
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td{padding:3px 5px!important;line-height:1.08!important}
  .result-sheet.classic-report .classic-remarks{margin-top:3px!important;line-height:1.16!important}
  .result-sheet.classic-report .classic-remarks>div{min-height:16px!important;margin:1px 0!important}
  .result-sheet.classic-report .official-signatures{margin-top:8mm!important}
  .result-sheet.classic-report .official-signature img{height:10mm!important}
}
/* v1.8.80 fast global and record search */
.table-search-summary{font-size:12px;color:var(--muted,#687386);margin-left:auto;white-space:nowrap}.table-search-bar{display:flex;align-items:center;gap:12px;justify-content:space-between}.table-search-bar .search-box{flex:1;max-width:520px}

/* v1.8.81: improve readability of all text inside report-card boxes and cells. */
.result-sheet.classic-report .classic-student-info,
.result-sheet.classic-report .classic-student-info *,
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-summary *,
.result-sheet.classic-report .classic-bottom-summary,
.result-sheet.classic-report .classic-bottom-summary *,
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td,
.result-sheet.classic-report .classic-result-table th *,
.result-sheet.classic-report .classic-result-table td *,
.result-sheet.classic-report .classic-remarks,
.result-sheet.classic-report .classic-remarks *,
.result-sheet.classic-report .official-signature,
.result-sheet.classic-report .official-signature *{
  font-family:var(--chelmsford-print-font)!important;
  font-size:14px!important;
  line-height:1.2!important;
}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  padding-top:4px!important;
  padding-bottom:4px!important;
}
@media print{
  .result-sheet.classic-report .classic-student-info,
  .result-sheet.classic-report .classic-student-info *,
  .result-sheet.classic-report .classic-summary,
  .result-sheet.classic-report .classic-summary *,
  .result-sheet.classic-report .classic-bottom-summary,
  .result-sheet.classic-report .classic-bottom-summary *,
  .result-sheet.classic-report .classic-result-table th,
  .result-sheet.classic-report .classic-result-table td,
  .result-sheet.classic-report .classic-result-table th *,
  .result-sheet.classic-report .classic-result-table td *,
  .result-sheet.classic-report .classic-remarks,
  .result-sheet.classic-report .classic-remarks *,
  .result-sheet.classic-report .official-signature,
  .result-sheet.classic-report .official-signature *{
    font-size:14px!important;
    line-height:1.16!important;
  }
}


/* v1.8.93: unified production print system */
:root{
  --chelmsford-print-font:'Poppins', Arial, Helvetica, sans-serif;
  --chelmsford-print-text:#000;
  --chelmsford-print-border:#000;
}

/* Shared document appearance for every printable module. */
.bill-sheet,
.receipt,
.receipt-sheet,
.statement,
.print-area,
.class-sheet-paper,
.result-sheet.classic-report,
.collection-report-table,
.debtor-table,
.print-table{
  font-family:var(--chelmsford-print-font)!important;
  color:var(--chelmsford-print-text)!important;
}

.bill-sheet table,
.receipt table,
.receipt-sheet table,
.statement table,
.print-area table,
.class-sheet-paper table,
.result-sheet.classic-report table,
.collection-report-table,
.debtor-table,
.print-table{
  border-collapse:collapse!important;
  border-spacing:0!important;
}

.bill-sheet th,.bill-sheet td,
.receipt th,.receipt td,
.receipt-sheet th,.receipt-sheet td,
.statement th,.statement td,
.print-area th,.print-area td,
.class-sheet-paper th,.class-sheet-paper td,
.result-sheet.classic-report th,.result-sheet.classic-report td,
.collection-report-table th,.collection-report-table td,
.debtor-table th,.debtor-table td,
.print-table th,.print-table td{
  border:1px solid var(--chelmsford-print-border)!important;
  color:#000!important;
  background:#fff!important;
  vertical-align:middle!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

@media print{
  html,body{background:#fff!important;color:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .no-print,.topbar,.sidebar,.backdrop,.page-loader,.subscription-banner,.class-sheet-toolbar,.fee-actions{display:none!important}

  /* Every printable document uses the same clean white paper treatment. */
  .bill-sheet,.receipt,.receipt-sheet,.statement,.print-area,.class-sheet-paper,.result-sheet.classic-report{
    background:#fff!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
  }

  /* Individual report cards: exactly one report per A4 sheet. */
  body.report-page{@page{size:A4 portrait;margin:7mm}}
  body.report-page .responsive-report-viewport{
    display:block!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    page-break-after:always!important;
    break-after:page!important;
  }
  body.report-page .responsive-report-viewport:last-child{
    page-break-after:auto!important;
    break-after:auto!important;
  }
  body.report-page .result-sheet.classic-report{
    width:196mm!important;
    max-width:196mm!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:0 auto!important;
    padding:5mm!important;
    transform:none!important;
    transform-origin:top left!important;
    zoom:var(--report-print-scale,1)!important;
    page-break-inside:avoid!important;
    break-inside:avoid-page!important;
    page-break-after:auto!important;
    overflow:visible!important;
  }
  body.report-page .result-sheet.classic-report *{
    font-family:var(--chelmsford-print-font)!important;
  }
  body.report-page .classic-result-table,
  body.report-page .classic-result-table thead,
  body.report-page .classic-result-table tbody,
  body.report-page .classic-result-table tr{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
  body.report-page .classic-result-table th,
  body.report-page .classic-result-table td{
    padding:3px 4px!important;
    line-height:1.08!important;
  }
  body.report-page .classic-student-info,
  body.report-page .classic-summary,
  body.report-page .classic-bottom-summary,
  body.report-page .classic-remarks,
  body.report-page .official-signatures{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }

  /* Uniform report and finance tables. */
  .class-sheet-paper th,.class-sheet-paper td,
  .collection-report-table th,.collection-report-table td,
  .debtor-table th,.debtor-table td,
  .print-table th,.print-table td{
    padding:6px!important;
    line-height:1.15!important;
  }
}

/* v1.8.94: make the student report card use the same clean paper language as the Student Bill. */
.result-sheet.classic-report{
  background:#fff!important;
  color:#000!important;
  border:1px solid #000!important;
  box-shadow:none!important;
  border-radius:0!important;
  font-family:var(--chelmsford-print-font)!important;
}
.result-sheet.classic-report,
.result-sheet.classic-report *{
  color:#000!important;
  font-family:var(--chelmsford-print-font)!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.result-sheet.classic-report .school-report-header{
  background:#fff!important;
  border:0!important;
  border-bottom:1.5px solid #000!important;
  border-radius:0!important;
  padding-bottom:4mm!important;
  margin-bottom:3mm!important;
}
.result-sheet.classic-report .school-report-header *,
.result-sheet.classic-report .report-title,
.result-sheet.classic-report .report-title *{
  background:transparent!important;
  color:#000!important;
}
.result-sheet.classic-report .report-title{
  border:0!important;
  border-bottom:1px solid #000!important;
  border-radius:0!important;
  text-align:center!important;
  padding:2.5mm 0 1.7mm!important;
  margin:0 0 2.5mm!important;
}
.result-sheet.classic-report .classic-student-info{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:1.2mm 7mm!important;
  background:#ededed!important;
  border:0!important;
  border-radius:0!important;
  padding:3mm 4mm!important;
  margin:0 0 3mm!important;
  line-height:1.25!important;
}
.result-sheet.classic-report .classic-student-info>div{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary{
  border:1px solid #000!important;
  background:#fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  margin:0 0 3mm!important;
}
.result-sheet.classic-report .classic-summary>span,
.result-sheet.classic-report .classic-bottom-summary>span{
  background:#fff!important;
  border-right:1px solid #000!important;
  padding:2.2mm 2.5mm!important;
}
.result-sheet.classic-report .classic-summary>span:last-child,
.result-sheet.classic-report .classic-bottom-summary>span:last-child{border-right:0!important}
.result-sheet.classic-report .classic-result-table{
  border-collapse:collapse!important;
  border-spacing:0!important;
  border:1px solid #000!important;
  background:#fff!important;
  box-shadow:none!important;
  margin:0 0 3mm!important;
}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  border:1px solid #000!important;
  background:#fff!important;
  padding:1.7mm 2mm!important;
  line-height:1.15!important;
}
.result-sheet.classic-report .classic-result-table thead th{
  background:#ededed!important;
  font-weight:700!important;
}
.result-sheet.classic-report .classic-remarks{
  border:1px solid #000!important;
  background:#fff!important;
  border-radius:0!important;
  padding:2.2mm 3mm!important;
  margin:0!important;
}
.result-sheet.classic-report .classic-remarks>div{
  border-bottom:1px solid #aaa!important;
  margin:0!important;
  padding:1.5mm 0!important;
  min-height:7mm!important;
}
.result-sheet.classic-report .classic-remarks>div:last-child{border-bottom:0!important}
.result-sheet.classic-report .official-signatures{
  margin-top:10mm!important;
  padding-top:0!important;
}
.result-sheet.classic-report .signature-rule{
  border-top:1px solid #000!important;
}

@media print{
  @page{size:A4 portrait;margin:5mm!important}
  body.report-page{margin:0!important;padding:0!important;background:#fff!important}
  body.report-page .responsive-report-viewport{
    display:block!important;
    width:200mm!important;
    height:287mm!important;
    min-height:287mm!important;
    max-height:287mm!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:hidden!important;
    page-break-after:always!important;
    break-after:page!important;
    page-break-inside:avoid!important;
    break-inside:avoid-page!important;
  }
  body.report-page .responsive-report-viewport:last-child{
    page-break-after:auto!important;
    break-after:auto!important;
  }
  body.report-page .result-sheet.classic-report{
    width:200mm!important;
    max-width:200mm!important;
    min-width:200mm!important;
    min-height:287mm!important;
    max-height:287mm!important;
    height:287mm!important;
    margin:0!important;
    padding:6mm 7mm!important;
    border:1px solid #000!important;
    overflow:hidden!important;
    transform:none!important;
    zoom:var(--report-print-scale,1)!important;
    page-break-inside:avoid!important;
    break-inside:avoid-page!important;
    page-break-after:auto!important;
  }
  body.report-page .result-sheet.classic-report,
  body.report-page .result-sheet.classic-report *{
    font-family:var(--chelmsford-print-font)!important;
  }
  body.report-page .result-sheet.classic-report .classic-student-info,
  body.report-page .result-sheet.classic-report .classic-result-table thead th{
    background:#ededed!important;
  }
  body.report-page .result-sheet.classic-report .classic-result-table,
  body.report-page .result-sheet.classic-report .classic-result-table tr,
  body.report-page .result-sheet.classic-report .classic-result-table th,
  body.report-page .result-sheet.classic-report .classic-result-table td,
  body.report-page .result-sheet.classic-report .classic-summary,
  body.report-page .result-sheet.classic-report .classic-bottom-summary,
  body.report-page .result-sheet.classic-report .classic-remarks,
  body.report-page .result-sheet.classic-report .official-signatures{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
}

/* v1.8.94: make the student report card visually match the student bill. */
.result-sheet.classic-report{
  --report-ink:#000;
  --report-soft:#ededed;
  --report-line:1px;
  font-family:var(--chelmsford-print-font)!important;
  color:#000!important;
  background:#fff!important;
}
.result-sheet.classic-report,
.result-sheet.classic-report *{
  color:#000!important;
  font-family:var(--chelmsford-print-font)!important;
  box-sizing:border-box!important;
}
.result-sheet.classic-report .school-report-header{
  display:block!important;
  text-align:center!important;
  border:0!important;
  border-bottom:1.5px solid #000!important;
  border-radius:0!important;
  background:#fff!important;
  padding:0 0 4mm!important;
  margin:0 0 4mm!important;
}
.result-sheet.classic-report .report-authority{
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.2px!important;
  margin:0 0 1mm!important;
}
.result-sheet.classic-report .report-school-name{
  font-size:18px!important;
  line-height:1.1!important;
  font-weight:700!important;
  margin:0 0 1.5mm!important;
}
.result-sheet.classic-report .report-logo{
  display:block!important;
  width:16mm!important;
  height:16mm!important;
  max-width:16mm!important;
  max-height:16mm!important;
  object-fit:contain!important;
  margin:1mm auto!important;
}
.result-sheet.classic-report .report-motto{
  font-size:13px!important;
  line-height:1.15!important;
  font-style:italic!important;
  margin:1mm 0!important;
}
.result-sheet.classic-report .report-contact-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8mm!important;
  width:100%!important;
  margin-top:2mm!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.result-sheet.classic-report .report-contact-left{text-align:left!important}
.result-sheet.classic-report .report-contact-right{text-align:right!important}
.result-sheet.classic-report .report-contact-right span{display:block!important}
.result-sheet.classic-report .report-title{
  background:#fff!important;
  color:#000!important;
  border:0!important;
  text-align:center!important;
  font-size:16px!important;
  line-height:1.15!important;
  letter-spacing:.3px!important;
  padding:0!important;
  margin:0 0 3mm!important;
}
.result-sheet.classic-report .classic-student-info{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:1.8mm 8mm!important;
  background:#ededed!important;
  border:0!important;
  border-radius:0!important;
  padding:3.5mm 4mm!important;
  margin:0 0 4mm!important;
  font-size:14px!important;
  line-height:1.25!important;
}
.result-sheet.classic-report .classic-summary,
.result-sheet.classic-report .classic-bottom-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  border:1px solid #000!important;
  border-radius:0!important;
  background:#fff!important;
  margin:0 0 3mm!important;
  padding:0!important;
}
.result-sheet.classic-report .classic-summary>span,
.result-sheet.classic-report .classic-bottom-summary>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:9mm!important;
  padding:2mm 2.5mm!important;
  border:0!important;
  border-right:1px solid #000!important;
  background:#fff!important;
  text-align:center!important;
  font-size:14px!important;
  line-height:1.15!important;
  overflow-wrap:anywhere!important;
}
.result-sheet.classic-report .classic-summary>span:last-child,
.result-sheet.classic-report .classic-bottom-summary>span:last-child{border-right:0!important}
.result-sheet.classic-report .classic-result-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  border:1px solid #000!important;
  margin:0 0 3mm!important;
  background:#fff!important;
}
.result-sheet.classic-report .classic-result-table th,
.result-sheet.classic-report .classic-result-table td{
  border:1px solid #000!important;
  background:#fff!important;
  color:#000!important;
  padding:1.7mm 1.8mm!important;
  font-size:14px!important;
  line-height:1.12!important;
  vertical-align:middle!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.result-sheet.classic-report .classic-result-table th{
  background:#ededed!important;
  font-weight:700!important;
  text-align:center!important;
}
.result-sheet.classic-report .classic-result-table td.col-subject,
.result-sheet.classic-report .classic-result-table td.col-interpretation{text-align:left!important}
.result-sheet.classic-report .classic-result-table td:not(.col-subject):not(.col-interpretation){text-align:center!important}
.result-sheet.classic-report .classic-result-table .heading-weight{font-size:12px!important;line-height:1!important}
.result-sheet.classic-report .classic-remarks{
  display:block!important;
  border:1px solid #000!important;
  border-radius:0!important;
  background:#fff!important;
  margin:0!important;
  padding:0!important;
}
.result-sheet.classic-report .classic-remarks>div{
  min-height:8mm!important;
  padding:2mm 3mm!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid #000!important;
  background:#fff!important;
  font-size:14px!important;
  line-height:1.18!important;
}
.result-sheet.classic-report .classic-remarks>div:last-child{border-bottom:0!important}
.result-sheet.classic-report .official-signatures{
  display:flex!important;
  justify-content:space-around!important;
  align-items:flex-end!important;
  gap:16mm!important;
  min-height:28mm!important;
  margin:7mm 8mm 0!important;
  padding-top:8mm!important;
}
.result-sheet.classic-report .official-signature{
  flex:1 1 0!important;
  max-width:72mm!important;
  text-align:center!important;
  font-size:13px!important;
  line-height:1.15!important;
}
.result-sheet.classic-report .signature-rule{
  width:60%!important;
  border:0!important;
  border-top:1px solid #000!important;
  margin:0 auto 1.5mm!important;
  padding-top:1.5mm!important;
}

@media print{
  @page{size:A4 portrait;margin:7mm!important}
  body.report-page{margin:0!important;background:#fff!important}
  body.report-page>.no-print,
  body.report-page .topbar,
  body.report-page .sidebar,
  body.report-page .backdrop,
  body.report-page .page-loader,
  body.report-page .subscription-banner{display:none!important}
  body.report-page .responsive-report-viewport{
    display:block!important;
    width:196mm!important;
    height:283mm!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:hidden!important;
    page-break-after:always!important;
    break-after:page!important;
  }
  body.report-page .responsive-report-viewport:last-child{
    page-break-after:auto!important;
    break-after:auto!important;
  }
  body.report-page .result-sheet.classic-report{
    display:block!important;
    width:196mm!important;
    min-width:196mm!important;
    max-width:196mm!important;
    min-height:283mm!important;
    height:283mm!important;
    max-height:283mm!important;
    margin:0!important;
    padding:5mm!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    transform:none!important;
    zoom:var(--report-print-scale,1)!important;
    page-break-inside:avoid!important;
    break-inside:avoid-page!important;
    page-break-after:auto!important;
  }
  body.report-page .result-sheet.classic-report,
  body.report-page .result-sheet.classic-report *{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.report-page .classic-student-info,
  body.report-page .classic-result-table th{
    background:#ededed!important;
  }
  body.report-page .classic-result-table tr,
  body.report-page .classic-summary,
  body.report-page .classic-bottom-summary,
  body.report-page .classic-remarks,
  body.report-page .official-signatures{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
}
.dashboard-welcome-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding:20px 22px;border-radius:14px;background:linear-gradient(135deg,var(--school-primary,#15803d),var(--school-primary-dark,#0f5f2e));color:#fff;box-shadow:0 10px 26px rgba(0,38,64,.14)}.dashboard-welcome-card small,.dashboard-welcome-card h2,.dashboard-welcome-card p{color:#fff;margin:0}.dashboard-welcome-card small{display:block;font-size:12px;opacity:.82;text-transform:uppercase;letter-spacing:.06em}.dashboard-welcome-card h2{margin-top:4px;font-size:24px}.dashboard-welcome-card p{margin-top:5px;font-size:13px;opacity:.9}.dashboard-welcome-card>i{font-size:30px;opacity:.85}.sa-dashboard-welcome{background:linear-gradient(135deg,#063f32,#07835a)}@media(max-width:520px){.dashboard-welcome-card{padding:17px}.dashboard-welcome-card h2{font-size:20px}.dashboard-welcome-card>i{font-size:24px}}
.ghana-flag{vertical-align:middle;margin-left:2px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.custom-fields-card #customFieldsList{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.custom-fields-card .custom-field-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}
.custom-fields-card .custom-field-row input{width:100%}
.btn-small{padding:6px 10px;font-size:12px}
@media(max-width:600px){.custom-fields-card .custom-field-row{grid-template-columns:1fr}}

/* V3 professional icon + responsive print foundation */
.fa,.fas,.far,.fal,.fab,.fa-solid,.fa-regular,.fa-brands{line-height:1;vertical-align:-0.08em}
.btn i,.button i,.nav i,.nav-link i,.action-btn i,.icon-btn i{margin-right:.45em}
.btn,.button,.action-btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem}
button.btn,.btn{white-space:nowrap}
.icon-btn{width:40px;height:40px;padding:0;border-radius:9px}
@media(max-width:700px){
  .btn,.button,.action-btn{max-width:100%;white-space:normal}
}
/* Shared document safety: text must never collide with borders. */
.print-sheet,.bill-sheet,.receipt,.result-sheet,.finance-doc-head,.finance-person,
.finance-table,.finance-table th,.finance-table td,.fee-list,.fee-list td,
.purchase-table,.purchase-table th,.purchase-table td,.student-panel,
.total-due,.section-heading,.bill-meta-footer{
  box-sizing:border-box;
}
.finance-table th,.finance-table td,.fee-list td,.purchase-table th,.purchase-table td{
  padding:2.2mm 2.6mm!important;
  line-height:1.3!important;
  vertical-align:middle!important;
}
.auth-background-preview{margin-top:10px;width:min(100%,520px);height:180px;border:1px solid #dfe4ea;border-radius:12px;overflow:hidden;background:#f6f8fa}.auth-background-preview img{width:100%;height:100%;object-fit:cover;display:block}


/* School branding distribution: authentication and public portal surfaces */
/* Removed: a self-referencing --school-primary here created a CSS variable cycle that made it invalid on every auth page. */
.auth-code-page .auth-top{background:linear-gradient(135deg,var(--school-primary-dark),var(--school-primary))!important;color:var(--school-on-primary)!important}
.auth-code-page .auth-tabs a{color:var(--school-on-primary)!important;border-color:transparent!important}
.auth-code-page .auth-tabs a.active,.auth-code-page .auth-tabs a:hover{background:var(--school-primary)!important;color:var(--school-on-primary)!important}

.auth-code-page .auth-btn,.auth-code-page #continueBtn{background:linear-gradient(135deg,var(--school-primary),var(--school-primary-dark))!important;border-color:var(--school-primary)!important;color:var(--school-on-primary)!important}
.auth-code-page .auth-btn:hover,.auth-code-page #continueBtn:hover{background:linear-gradient(135deg,var(--school-primary-dark),var(--school-primary-darker))!important}
.auth-code-page .auth-links a,.auth-code-page .auth-help,.auth-code-page .auth-status{color:var(--school-primary)!important}
.auth-code-page .auth-field input:focus,.auth-code-page .auth-field select:focus{border-color:var(--school-primary)!important;box-shadow:0 0 0 3px var(--school-primary-light)!important}
.auth-code-page .auth-school-logo,.auth-code-page .school-crest{border-color:var(--school-secondary)!important}
.auth-code-page .auth-footer{border-top-color:var(--school-secondary)!important}
.auth-code-page .verification-modal-icon{background:var(--school-primary-soft)!important;color:var(--school-primary)!important}
.auth-code-page .verification-modal .auth-btn{background:var(--school-primary)!important;color:var(--school-on-primary)!important}
/* School dashboard/application surfaces */
body:not(.modern-login-page) .sidebar-help-card{border:1px solid var(--school-primary,#087b5f)!important;background:var(--school-primary-dark,#075c4d)!important;box-shadow:0 8px 22px rgba(0,0,0,.14)!important;background-image:none!important}
body:not(.modern-login-page) .sidebar-help-icon{background:var(--school-primary)!important;color:var(--school-on-primary)!important}
body:not(.modern-login-page) .sidebar-help-btn{background:var(--school-primary)!important;color:var(--school-on-primary)!important;border-color:var(--school-primary)!important}
body:not(.modern-login-page) .nav-group-toggle:hover,body:not(.modern-login-page) .nav-group-toggle[aria-expanded="true"]{color:var(--school-primary)!important}
body:not(.modern-login-page) .nav-group-items a:hover{background:var(--school-primary-soft)!important;color:var(--school-primary)!important}
body:not(.modern-login-page) .badge,.status-badge{border-color:var(--school-secondary)!important}


/* Chelmsford Academy unified confirmation dialog and long student-list pagination */
.student-pagination,.student-card-pagination{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px 0 4px;padding:13px 15px;border:1px solid var(--border,#dbe3ea);border-radius:12px;background:var(--surface,#fff)}.pagination-count{font-size:13px;color:var(--muted,#667085);font-weight:600}.pagination-actions{display:flex;gap:9px;align-items:center}.student-card-pagination{margin:20px 0}.student-card-pagination[hidden]{display:none}@media(max-width:560px){.student-pagination,.student-card-pagination{align-items:stretch}.pagination-actions{width:100%}.pagination-actions .btn{flex:1}}

/* Teacher-only activity notification for administrators */
.teacher-activity-notification{position:relative;display:inline-flex;align-items:center}
.teacher-activity-trigger{position:relative;display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#20342b;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:8px 10px;border-radius:8px}
.teacher-activity-trigger:hover{background:#f3f7f5}
.teacher-activity-icon{font-size:18px;line-height:1;color:inherit}
.teacher-activity-panel{position:absolute;top:calc(100% + 10px);right:0;width:360px;background:#fff;border:1px solid #e5ebe8;border-radius:14px;box-shadow:0 16px 38px rgba(26,56,43,.16);z-index:3000;display:none;overflow:hidden}
.teacher-activity-panel.open{display:block}
.teacher-activity-head{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;background:#f7faf8;border-bottom:1px solid #e8eeeb;color:#20342b}
.teacher-activity-head strong{display:block;font-size:14px;font-weight:800;color:#182c23}
.teacher-activity-head span{display:block;margin-top:3px;font-size:10px;color:#78877f}
.teacher-activity-head>i{font-size:18px;color:#25834e}
.teacher-activity-list{max-height:420px;overflow:auto}
.teacher-activity-item{display:flex;gap:11px;padding:13px 15px;border-bottom:1px solid #edf1ef;background:#fff}
.teacher-activity-item:last-child{border-bottom:0}
.teacher-activity-item-icon{width:34px;height:34px;flex:0 0 34px;border-radius:9px;display:grid;place-items:center;background:#edf7f1;color:#25834e;font-size:13px}
.teacher-activity-copy{min-width:0}
.teacher-activity-copy strong{display:block;color:#1e3028;font-size:12px;font-weight:800;line-height:1.35}
.teacher-activity-copy span{display:block;margin-top:2px;color:#56675e;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teacher-activity-copy small{display:block;margin-top:3px;color:#8a9690;font-size:9px}
.teacher-activity-empty{padding:28px 18px;text-align:center;color:#77857e}
.teacher-activity-empty i{display:block;font-size:25px;margin-bottom:8px;color:#9aa8a1}
.teacher-activity-empty strong{display:block;font-size:12px;color:#45564e}
.teacher-activity-empty span{display:block;margin-top:4px;font-size:10px}
@media(max-width:600px){.teacher-activity-panel{position:fixed;top:64px;right:10px;left:10px;width:auto}.teacher-activity-list{max-height:65vh}}

/* New teacher activity badge */
.teacher-activity-trigger.has-new{background:#f3f7f5}
.teacher-activity-new-badge{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:20px;padding:0 7px;border-radius:10px;background:#25834e;color:#fff;font-size:10px;font-weight:800;line-height:20px;white-space:nowrap}
.teacher-activity-title{display:flex;align-items:center;gap:6px}
.teacher-activity-new-label{display:inline-flex!important;align-items:center;height:16px;padding:0 6px;border-radius:8px;background:#eaf7ef;color:#25834e;font-size:8px!important;font-weight:800!important;text-transform:uppercase}

/* Ensure Recent Activity icon is always visible in the admin top bar */
.teacher-activity-notification{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px;height:42px;margin-left:4px;z-index:20}
.teacher-activity-trigger{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important}
.teacher-activity-icon{display:inline-block!important;font-family:"Font Awesome 6 Free"!important;font-weight:900!important;font-size:20px!important;line-height:1!important;visibility:visible!important;opacity:1!important;color:#25834e!important}
.teacher-activity-new-badge{position:absolute;top:-2px;right:-10px;min-width:42px}

/* Recent Activity: clean white icon box */
.teacher-activity-notification{min-width:46px!important;height:46px!important;margin-left:6px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.teacher-activity-trigger{width:42px!important;height:42px!important;min-width:42px!important;background:#fff!important;border:1px solid #e2e9e5!important;border-radius:9px!important;box-shadow:0 2px 7px rgba(25,55,42,.08)!important;color:#25834e!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.teacher-activity-trigger:hover{background:#fff!important;border-color:#cfdad4!important;box-shadow:0 4px 10px rgba(25,55,42,.12)!important}
.teacher-activity-icon{font-size:20px!important;color:#25834e!important}
.teacher-activity-new-badge{top:-7px!important;right:-16px!important;min-width:42px!important;height:19px!important;padding:0 6px!important;border-radius:10px!important;font-size:9px!important;line-height:19px!important;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* AI Assisted Remarks: white text on the coloured card */
body:not(.modern-login-page) .sidebar-help-copy strong,
body:not(.modern-login-page) .sidebar-help-copy span{color:#fff!important}

/* v1.9.07 default colour: Chelmsford Academy green. brand-default is added by includes/header.php only for schools WITHOUT custom colours. */
body.brand-default{--chelmsford-navy:#0a3a1f;--chelmsford-navy-deep:#06280f}
body.brand-default .topbar{box-shadow:0 3px 12px rgba(6,40,15,.22)!important}
body.brand-default .sidebar{box-shadow:5px 0 18px rgba(6,40,15,.2)!important}
body.brand-default .header-card{background:linear-gradient(135deg,#0f5f2e,#0a3a1f)}
body.brand-default.modern-login-page .modern-login-brand h1,body.brand-default .signup-wizard-form .signup-section-title,body.brand-default .wizard-step-labels span.active{color:#0a3a1f!important}

/* Destructive / credential-reset actions: always red (reset student password, reset parent password, delete student). */
.btn.btn-red,button.btn-red,a.btn.btn-red{background:#d92d20!important;border:1px solid #b42318!important;color:#fff!important;box-shadow:none!important}
.btn.btn-red:hover,.btn.btn-red:focus-visible,button.btn-red:hover,a.btn.btn-red:hover{background:#b42318!important;border-color:#912018!important;color:#fff!important}
.btn.btn-red:focus-visible{outline:3px solid rgba(217,45,32,.35)!important;outline-offset:2px}

/* Support form: keep the Send Request button clear of the Details box */
.compact-support-form .form-grid{margin-bottom:16px}
.compact-support-form>.btn{margin-top:6px}


/* Add Student buttons: always green, whatever the school theme colour is */
.btn.btn-add-student,a.btn-add-student.btn-primary{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#15803d!important;color:#fff!important}
.btn.btn-add-student:hover,.btn.btn-add-student:focus-visible{background:linear-gradient(135deg,#15803d,#166534)!important;color:#fff!important}
.btn.btn-add-student i{color:inherit!important}
.admin-quick-action.btn-add-student{background:#e8f7ed!important;border-color:#16a34a!important}
.admin-quick-action.btn-add-student strong{color:#15803d!important}

/* Consistent table heading treatment across all modules */
table th, table thead th, .table th, .sa-table th { text-transform: uppercase !important; font-weight: 800 !important; letter-spacing: .035em; }

/* Table readability: slightly stronger body text for clearer scanning. */
:where(table, .table, .dataTable, .data-table) tbody td {
    font-weight: 600;
}

:where(table, .table, .dataTable, .data-table) tbody td :where(span, a, p, strong, small, label) {
    font-weight: inherit;
}
