@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#23362f;background:#f5f7f6;font-size:14px;--green:#21634f;--muted:#798780;--border:#e4eae6}*{box-sizing:border-box}body{margin:0}aside{width:250px;background:#153f33;color:#e0ebe5;position:fixed;inset:0 auto 0 0;padding:30px 20px;display:flex;flex-direction:column}.brand{font-family:Manrope,Arial;font-weight:800;display:flex;gap:10px;align-items:center;font-size:17px}.mark{background:#c8e4a0;color:#153f33;padding:7px 12px;border-radius:10px;font-size:23px}small{display:block;font-weight:400;font-size:11px;line-height:1.6}.brand small{color:#9fb9ad;font-size:10px}.school{font-size:10px;letter-spacing:1px;border-top:1px solid #355a4c;border-bottom:1px solid #355a4c;margin:30px 0 22px;padding:18px 0;line-height:1.8}.school small{letter-spacing:0;color:#a6bfb2}nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;color:#b8cfc2;background:none;text-align:left;padding:13px 15px;margin:3px 0;border-radius:8px;font:inherit;cursor:pointer}nav button.active{color:white;background:#2e5948}nav button:hover{background:#284f41}nav .symbol{font-size:18px;width:20px;text-align:center}.aside-bottom{margin-top:auto;color:#c4d3cb;font-size:12px}.aside-bottom small{margin:7px 0;color:#8ea99b}.dot{display:inline-block;width:7px;height:7px;background:#b5dc82;border-radius:50%;margin-right:8px}.workspace{margin-left:250px}header{height:80px;background:white;border-bottom:1px solid var(--border);padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}header span{margin:0 14px}.profile{display:flex;align-items:center}.term{background:#f4f7f3;padding:8px 13px;color:#4c675b;border:1px solid var(--border);border-radius:6px}.avatar{background:#e2e9db;border-radius:50%;padding:11px;color:#496241;font-weight:bold;margin-right:0}main{padding:32px 38px;min-height:calc(100vh - 128px)}h1,h2,h3{font-family:Manrope,Arial;margin:0}h1{font-size:27px;font-weight:800;letter-spacing:-.8px}h2{font-size:18px}h3{font-size:14px}p{color:var(--muted);line-height:1.6}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:14px}.heading p{margin:7px 0 0}.eyebrow{font-size:10px;color:#68816e;font-weight:700;letter-spacing:1.8px;margin-bottom:9px}button,.button{font:inherit;cursor:pointer;background:white;border:1px solid #dce4dd;border-radius:7px;padding:10px 15px;color:#345246;text-decoration:none;display:inline-block}button:hover{filter:brightness(.96)}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#a94343}button.icon{border:0;padding:3px 8px;font-size:24px}.actions{display:flex;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat,.panel{background:white;border:1px solid var(--border);border-radius:10px}.stat{padding:21px}.stat label{font-size:12px;color:#6e8176}.stat strong{display:block;font-family:Manrope;font-size:27px;margin:13px 0 9px;letter-spacing:-.7px}.stat small{color:#88958d}.stat .badge-icon{float:right;color:#427552;background:#eef5e9;padding:7px;border-radius:7px}.grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-bottom:22px}.panel{padding:22px;overflow:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head small{color:var(--muted);margin-top:5px}.tag{display:inline-block;font-size:11px;padding:5px 9px;border-radius:5px;background:#edf5eb;color:#4a7540}.tag.amber{background:#fbf1dc;color:#96713a}.tag.red{background:#fbecea;color:#a95b53}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#829086;background:#f7f9f7;padding:12px}td{padding:14px 12px;border-bottom:1px solid #edf0ec;font-size:12px}td:first-child{font-weight:600}tbody tr:last-child td{border-bottom:0}.studentname small{color:#90a094}.bars{display:flex;gap:17px;align-items:end;height:160px;padding:15px 12px 0;border-bottom:1px solid var(--border)}.bar{flex:1;background:#78a88a;border-radius:5px 5px 0 0;min-height:3px;position:relative}.bar span{position:absolute;bottom:-27px;left:50%;transform:translateX(-50%);font-size:10px;color:#809287}.chart-bottom{margin-top:35px;color:#819088;font-size:11px}.collection{display:flex;justify-content:space-between;margin:18px 0}.collection strong{font-size:20px}.progress{height:8px;background:#eaf0e9;border-radius:6px;overflow:hidden}.progress i{height:100%;display:block;background:#7b9e64}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick button{text-align:left;padding:17px 12px;background:#fafcf9}.quick button span{display:block;color:#7c9082;font-size:10px;margin-top:6px}.note{padding:13px 17px;border:1px solid #e4e9db;background:#f2f5ec;border-radius:8px;color:#637456;font-size:12px;line-height:1.6;margin:18px 0}.toolbar{display:flex;gap:12px;margin-bottom:18px;align-items:center;flex-wrap:wrap}input,select,textarea{font:inherit;background:white;border:1px solid #dce4dd;border-radius:6px;padding:10px 12px;color:#294438;max-width:100%}input[type=search]{min-width:260px}textarea{width:100%;min-height:110px}.empty{text-align:center;padding:35px;color:#8a978e}.summary{display:flex;gap:25px;color:#748478;font-size:12px;margin:20px 0}.summary b{color:#274b39}footer{padding:16px 38px;border-top:1px solid var(--border);font-size:10px;color:#8e9d93}footer span{float:right}dialog{border:1px solid var(--border);border-radius:13px;padding:25px;width:520px;max-width:94vw;color:#294438}dialog::backdrop{background:#173b3266}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}form label{display:block;font-size:12px;margin-bottom:14px}form label input,form label select{width:100%;display:block;margin-top:7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.report{max-width:850px;margin:auto}.report-head{text-align:center;border-bottom:2px solid #21634f;padding-bottom:20px;margin-bottom:20px}.report-head p{margin:5px}.report-info{display:flex;justify-content:space-between;margin:20px 0}.report-signatures{display:flex;justify-content:space-between;margin-top:60px}.checks{font-size:12px;line-height:2.5}#toast{position:fixed;bottom:25px;right:25px;background:#183f32;color:white;padding:13px 23px;border-radius:7px;display:none;z-index:20}.message{background:#f8faf6;border-radius:8px;padding:18px;white-space:pre-wrap;line-height:1.8;margin:15px 0}.setting-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--border)}.setting-row p{margin:5px 0;font-size:12px}@media(max-width:1100px){aside{width:210px;padding:25px 14px}.workspace{margin-left:210px}main{padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}header{padding:0 25px}.brand{font-size:14px}}@media(max-width:700px){aside{position:static;width:100%;padding:15px}.school,.aside-bottom{display:none}nav{display:flex;overflow:auto;margin-top:15px}nav button{width:auto;white-space:nowrap;padding:8px 12px}nav .symbol{display:none}.workspace{margin:0}header{height:60px;padding:0 16px}.term{display:none}main{padding:22px 16px}.heading{align-items:flex-start;flex-direction:column}h1{font-size:24px}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:22px}.quick{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}footer{padding:15px}footer span{display:block;float:none;margin-top:6px}}@media print{aside,header,footer,.heading,.toolbar,.actions,.note,dialog,#toast,.no-print{display:none!important}.workspace{margin:0}main{padding:0}.panel{border:0;padding:0}body{background:white}.report{max-width:none}}

/* Professional school workspace theme */
:root{color:#20324b;background:#f2f5fa;--green:#087e83;--muted:#65758b;--border:#e0e7f0}
body{background:#f2f5fa}
aside{background:linear-gradient(165deg,#142d4e 0%,#0c1c34 100%);color:#e5edf8;box-shadow:4px 0 22px #122b4810;overflow-y:auto}
.brand{letter-spacing:.3px}.brand small{color:#a7b8d1}.mark{background:#e9bd62;color:#172c48;box-shadow:0 3px 12px #0002}
.school{border-color:#ffffff1c;color:#e9eff8}.school small{color:#a7b8d1}
nav button{color:#becce0;border:1px solid transparent;transition:background .18s,color .18s}
nav button.active{background:#087e83;color:#fff;border-color:#1d959b;box-shadow:0 4px 12px #0002}
nav button:hover{background:#ffffff12;color:#fff}nav button.active:hover{background:#096f75}
.aside-bottom{color:#d1deee;padding-top:22px}.aside-bottom small{color:#a7b8d1}.dot{background:#4cd1b3}
header{background:#ffffffee;color:#64748b}.term{background:#eff6fa;color:#244a65;border-color:#dbe8f0;border-radius:20px}.avatar{background:#e6f3f2;color:#08777d}
h1{color:#152c4b;font-size:29px;letter-spacing:-.9px}h2{color:#203652;font-size:17px}.eyebrow{color:#087e83}
button,.button{color:#2e4866;border-color:#d7e1ed;border-radius:9px;font-weight:600;transition:box-shadow .18s,background .18s}
button:hover{filter:none;background:#f1f6fa;box-shadow:0 2px 7px #2036520c}button.primary{background:#087e83;border-color:#087e83;box-shadow:0 3px 8px #087e831c}button.primary:hover{background:#066a70;color:white}
button.danger{background:#fff7f6;color:#b34040;border-color:#f0d4d1}button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #26a4aa66;outline-offset:3px}
.stat,.panel{border-radius:14px;border-color:#e1e8f1;box-shadow:0 4px 18px #17315205}
.stat{position:relative;padding:23px;border-top:3px solid #4681c7;overflow:hidden}.stat:nth-child(2){border-top-color:#07868b}.stat:nth-child(3){border-top-color:#d4a34c}.stat:nth-child(4){border-top-color:#7b6bc0}
.stat label{color:#536780;font-weight:600}.stat strong{color:#1b3455;font-size:29px;margin:17px 0 8px;font-variant-numeric:tabular-nums}.stat small{color:#6b7e95}
.stat .badge-icon{background:#edf3fd;color:#3f70ad;border-radius:10px}.stat:nth-child(2) .badge-icon{background:#e8f6f4;color:#087e83}.stat:nth-child(3) .badge-icon{background:#fff5df;color:#94631e}.stat:nth-child(4) .badge-icon{background:#f0ecfb;color:#705daf}
.panel-head{padding-bottom:15px;border-bottom:1px solid #edf1f6}.panel-head button{font-size:11px}
.tag{background:#e8f6f2;color:#226b5c;border-radius:6px;font-weight:600}.tag.amber{background:#fff3db;color:#92631b}.tag.red{background:#fff0ee;color:#b14036}
th{background:#f3f6fb;color:#5c708a;padding:13px 12px}td{border-color:#edf1f7;padding:15px 12px;color:#354b65}tbody tr:hover{background:#f8fbff}td small,.studentname small{color:#718198}td button{padding:7px 10px;font-size:11px;margin:2px}
.bar{background:linear-gradient(0deg,#087e83,#36adaf);border-radius:7px 7px 0 0}.bar span{color:#65778f}.chart-bottom{color:#6c7f96}.collection strong{color:#1f3c5d;font-variant-numeric:tabular-nums}.progress{height:10px;background:#e9eff6}.progress i{background:linear-gradient(90deg,#087e83,#43b7ad)}
.quick button{background:#f7fafe;border-color:#e0e9f3;padding:20px 16px;color:#24466a}.quick button:hover{background:#edf5fa;border-color:#b8d4e5}.quick button span{color:#667d97;font-size:11px;line-height:1.6}
.note{background:#eff6fa;border-color:#d8e7f0;color:#46647f;border-left:3px solid #368dba;border-radius:9px}
input,select,textarea{color:#243e5d;border-color:#d7e1ed;border-radius:8px}input::placeholder{color:#8493a6}.summary{color:#6c7f96}.summary b{color:#254566}.empty{color:#6b7e96}
dialog{color:#203652;border-radius:16px;box-shadow:0 24px 80px #091d4140}dialog::backdrop{background:#0d213b80;backdrop-filter:blur(3px)}#toast{background:#193756;border:1px solid #385673;box-shadow:0 6px 24px #0d213b30}.message{background:#f4f8fc}.report-head{border-color:#087e83}footer{color:#75859b}
@media(max-width:700px){h1{font-size:25px}.stat{padding:16px}.stat strong{font-size:23px}aside{box-shadow:none}.heading .actions{width:100%}header span{margin:0 5px}}
@media(prefers-reduced-motion:reduce){button,.button,nav button{transition:none}}
@media print{body{background:white}.stat,.panel{box-shadow:none}h1,h2,.collection strong{color:#20324b}}

/* Shared administrator-selected branding palettes */
:root{--theme-sidebar:#142d4e;--theme-sidebar-end:#0c1c34;--theme-primary:#087e83;--theme-hover:#066a70;--theme-accent:#e9bd62}
:root[data-theme="Forest green"]{--theme-sidebar:#183e35;--theme-sidebar-end:#102a25;--theme-primary:#247456;--theme-hover:#195a41;--theme-accent:#dfc27d}
:root[data-theme="Royal blue"]{--theme-sidebar:#173777;--theme-sidebar-end:#10234e;--theme-primary:#315ebe;--theme-hover:#244993;--theme-accent:#adcaff}
:root[data-theme="Burgundy & gold"]{--theme-sidebar:#582c41;--theme-sidebar-end:#321b2b;--theme-primary:#8b3c5d;--theme-hover:#6e2d49;--theme-accent:#e8c378}
aside{background:linear-gradient(165deg,var(--theme-sidebar),var(--theme-sidebar-end))}.mark{background:var(--theme-accent)}
nav button.active,button.primary{background:var(--theme-primary);border-color:var(--theme-primary)}nav button.active:hover,button.primary:hover{background:var(--theme-hover)}
.eyebrow{color:var(--theme-primary)}.bar{background:var(--theme-primary)}.progress i{background:var(--theme-primary)}.stat:nth-child(2){border-top-color:var(--theme-primary)}.report-head{border-color:var(--theme-primary)}

/* Spacious responsive navigation and gentle motion */
@media(min-width:1101px){aside{width:280px;padding:28px 20px}.workspace{margin-left:280px}}
nav{padding:3px 0 12px}
nav button{min-height:48px;padding:13px 16px;font-size:15px;gap:14px;margin:5px 0;border-radius:11px;transition:background .2s,color .2s,transform .2s,box-shadow .2s}
nav .symbol{font-size:21px;width:24px;flex-shrink:0}
nav button:hover{transform:translateX(3px)}nav button.active{box-shadow:inset 3px 0 0 var(--theme-accent),0 4px 12px #0002}
nav button:active{transform:scale(.98)}
#main>.heading{animation:schoolmaster-enter .3s ease-out both}
#main>.stats,#main>.grid,#main>.panel{animation:schoolmaster-enter .38s ease-out both}
#main>.stats{animation-delay:.04s}#main>.grid{animation-delay:.08s}
@keyframes schoolmaster-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:701px) and (max-width:1100px){aside{width:240px;padding:24px 14px}.workspace{margin-left:240px}nav button{font-size:14px;padding:12px;gap:10px}main{padding:24px 20px}.brand{font-size:15px}}
@media(max-width:700px){aside{width:100%;position:static;padding:18px 16px}.workspace{margin-left:0}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px;overflow:visible;padding-bottom:0}nav button{width:100%;min-height:48px;margin:0;padding:11px 12px;font-size:13px;white-space:normal;line-height:1.4;gap:8px;background:#ffffff08}nav .symbol{display:inline-block;width:20px;font-size:18px}nav button:hover{transform:translateY(-2px)}.brand{font-size:17px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{overflow-wrap:anywhere}header{height:auto;min-height:60px;gap:12px;flex-wrap:wrap;padding:14px 16px}.setting-row{flex-wrap:wrap}.toolbar input[type=search]{min-width:0;width:100%}}
@media(max-width:360px){nav{grid-template-columns:1fr}.stats{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){nav button{transition:none}nav button:hover,nav button:active{transform:none}#main>.heading,#main>.stats,#main>.grid,#main>.panel{animation:none}}
@media print{#main>.heading,#main>.stats,#main>.grid,#main>.panel{animation:none}.workspace{margin:0}}

/* Full-screen daily feeding entry */
dialog.feeding-fullscreen{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;inset:0;border:0;border-radius:0;padding:32px clamp(20px,5vw,80px);background:#f2f5fa;overflow-y:auto}
.feeding-fullscreen .dialog-head{max-width:1050px;margin:0 auto 28px;padding:0 0 22px;border-bottom:1px solid var(--border)}
.feeding-fullscreen .dialog-head h2{font-size:27px;color:#1b3455}.feeding-fullscreen #close{background:white;border:1px solid var(--border);min-width:48px;min-height:48px;border-radius:12px}
.feeding-fullscreen #form{max-width:1050px;margin:auto;background:white;padding:clamp(20px,4vw,44px);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 32px #17315208}
.feeding-fullscreen form label{font-size:15px;font-weight:600;margin-bottom:24px;color:#2e4866}
.feeding-fullscreen input,.feeding-fullscreen select{min-height:54px;font-size:17px;margin-top:10px;padding:14px}
.feeding-fullscreen .form-grid{gap:0 24px}.feeding-fullscreen .note{font-size:14px;padding:18px 20px}
.feeding-fullscreen .form-actions{border-top:1px solid var(--border);padding-top:24px;margin-top:28px}.feeding-fullscreen .form-actions button{min-height:50px;min-width:140px;font-size:15px}
@media(max-width:700px){dialog.feeding-fullscreen{padding:20px 14px}.feeding-fullscreen .dialog-head h2{font-size:22px}.feeding-fullscreen .form-actions{display:grid;grid-template-columns:1fr 1fr}.feeding-fullscreen .form-actions button{min-width:0;width:100%}}
.student-profile-head{display:flex;align-items:center;gap:22px;margin:0 0 24px}.student-profile-head p{margin:8px 0}.student-photo{width:112px;height:112px;object-fit:cover;border-radius:16px;border:3px solid #e1eaf3;flex-shrink:0}.student-photo.placeholder{display:grid;place-items:center;background:#edf4fa;color:var(--theme-primary);font-size:42px;font-weight:700}.profile-details{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0;padding-top:20px;border-top:1px solid var(--border)}.profile-details small{color:var(--muted);margin-bottom:6px}.profile-details b{font-size:13px;overflow-wrap:anywhere}.student-profile-head h2{overflow-wrap:anywhere}@media(max-width:450px){.student-profile-head{flex-direction:column;align-items:flex-start}.profile-details{grid-template-columns:1fr}}
.portal-picker{max-width:1000px;margin:40px auto;padding:24px}.portal-card{padding:24px;border:1px solid var(--border);border-radius:14px;background:white;margin:18px 0;box-shadow:0 4px 18px #17315208}.portal-card h2{margin-bottom:18px}.portal-card button{margin:4px 8px 4px 0}

/* Mobile and tablet layout */
.mobile-menu{display:none}.workspace,main,.grid>*{min-width:0}.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-scroll:focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}.collection{gap:16px;flex-wrap:wrap}.collection>div{min-width:0}.collection strong{overflow-wrap:anywhere}.panel-head{gap:12px;flex-wrap:wrap}dialog{max-height:90dvh;overflow-y:auto}#modalTitle{min-width:0;overflow-wrap:anywhere}.dialog-head #close{flex-shrink:0;min-width:44px;min-height:44px}.profile{flex-wrap:wrap;gap:8px}.profile-details>*{min-width:0}
@media screen and (max-width:900px){
 aside{position:static;width:100%;padding:16px;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;overflow:visible}.brand{flex:1;min-width:0;font-size:16px}.brand small{font-size:11px}.school{display:none}.workspace{margin-left:0}.mobile-menu{display:block;min-height:44px;background:#ffffff15;color:white;border-color:#ffffff40;padding:10px 14px}aside nav{display:none;width:100%;margin:0;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}aside.menu-open nav{display:grid}aside nav button{width:100%;margin:0;white-space:normal;min-height:48px;font-size:14px;padding:12px;gap:10px}aside nav .symbol{display:inline-block}aside nav button:hover{transform:none}.aside-bottom{display:none;width:100%;margin:0;padding:12px 0 0;border-top:1px solid #ffffff25}aside.menu-open .aside-bottom{display:block}.aside-bottom small{display:none}.aside-bottom #logout{margin-top:8px;min-height:44px}header{height:auto;min-height:60px;padding:14px 16px;gap:10px;flex-wrap:wrap}header span{margin:0}.term{display:inline-block;font-size:11px}main{padding:22px 16px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.heading{align-items:flex-start;flex-direction:column}.heading .actions{width:100%;gap:8px}.heading .actions button{flex:1 1 140px;min-height:44px}.panel{padding:18px;overflow:visible}.toolbar{gap:10px}.toolbar>label{display:flex;flex-direction:column;gap:6px;flex:1 1 140px}.toolbar>input,.toolbar>select{flex:1 1 160px;min-width:0}.toolbar input[type=search]{min-width:0;width:100%}.toolbar button{min-height:44px}.table-scroll td button{min-height:44px;font-size:13px;padding:10px 12px}.table-scroll{border-radius:8px}.setting-row{flex-wrap:wrap}.setting-row>div{min-width:0;flex:1 1 220px}.setting-row input[type=file]{width:100%}.portal-picker{margin:16px auto;padding:16px}.portal-card{padding:18px}.portal-card button{min-height:44px}footer{padding:16px}
}
@media screen and (max-width:600px){
 input,select,textarea{font-size:16px;min-height:46px}button{min-height:44px}h1{font-size:24px}.stat{padding:14px}.stat strong{font-size:22px}.stat .badge-icon{float:none;display:inline-block;margin-bottom:8px}.stats{gap:10px}.quick{grid-template-columns:1fr}.form-grid,.profile-details{grid-template-columns:1fr}.summary{flex-wrap:wrap;gap:12px}.report-info,.report-signatures{flex-wrap:wrap;gap:18px}.student-profile-head{flex-direction:column;align-items:flex-start}.form-actions{display:flex;flex-wrap:wrap}.form-actions button{flex:1;min-width:110px}.dialog-head{position:sticky;top:-18px;background:white;z-index:1;padding:8px 0 12px;border-bottom:1px solid var(--border);gap:12px}dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:18px;margin:auto}.feeding-fullscreen .dialog-head{top:-16px;background:#f2f5fa}.feeding-fullscreen #form{padding:18px}.feeding-fullscreen .form-actions{display:flex}.feeding-fullscreen .form-actions button{min-width:110px}#toast{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:14px 16px;overflow-wrap:anywhere}#login{padding:16px!important;min-height:100dvh!important}#login>.panel{padding:24px!important}#login h1{font-size:27px}.checks{overflow-wrap:anywhere}
}
@media screen and (max-width:360px){.stats{grid-template-columns:1fr}aside nav{grid-template-columns:1fr}.brand{font-size:14px}.brand small{display:none}}
@media print{.mobile-menu{display:none!important}.table-scroll{overflow:visible}}

/* Colourful responsive operations dashboard */
.dashboard{background:radial-gradient(ellipse at top left,#e9f4fb 0,transparent 55%),radial-gradient(ellipse at top right,#eaf7f3 0,transparent 55%)}
.dashboard>.heading{padding:25px 28px;border-radius:18px;background:linear-gradient(115deg,var(--theme-sidebar),var(--theme-primary));color:white;box-shadow:0 10px 26px #163b5518}.dashboard>.heading h1{color:white;letter-spacing:-.5px}.dashboard>.heading p{color:#e0edf7;max-width:540px}.dashboard>.heading .eyebrow{color:var(--theme-accent)}.dashboard>.heading button.primary{background:white;color:var(--theme-sidebar);border-color:white;min-height:46px}
.dashboard .stats{gap:16px}.dashboard .stat{border:0;border-radius:18px;background:linear-gradient(135deg,#2854a0,#497bca);box-shadow:0 8px 22px #254e9c20;padding:22px;min-width:0}.dashboard .stat:nth-child(2){background:linear-gradient(135deg,#086c69,#13958c)}.dashboard .stat:nth-child(3){background:linear-gradient(135deg,#9b541c,#be752e)}.dashboard .stat:nth-child(4){background:linear-gradient(135deg,#6741a4,#8865c0)}.dashboard .stat label{color:#fff;font-weight:600;font-size:13px}.dashboard .stat strong{color:white;font-size:clamp(22px,2.4vw,32px);margin:18px 0 8px;overflow-wrap:anywhere}.dashboard .stat small{color:#fff;opacity:.9}.dashboard .stat .badge-icon{background:#ffffff22;color:white;border:1px solid #ffffff35;font-size:18px}
.dashboard .grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.dashboard .panel{border:1px solid #e1e8f2;border-radius:18px;box-shadow:0 6px 22px #20365208;min-width:0}.dashboard .panel-head h2{font-size:17px}.dashboard .grid>.panel:first-child{border-top:4px solid #397cc1}.dashboard .grid>.panel:nth-child(2){border-top:4px solid #169387}.dashboard>.panel{border-top:4px solid #8361bb}.dashboard .collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard .collection>div{padding:14px;background:#f1f6fc;border-radius:12px}.dashboard .collection>div:nth-child(2){background:#eef7f4}.dashboard .collection small{color:#566b83}.dashboard .collection strong{display:block;font-size:clamp(18px,2vw,24px);margin-top:5px}.dashboard .bars{gap:clamp(7px,1.5vw,18px)}.dashboard .bar{background:linear-gradient(0deg,#198f91,#62c5c3)}.dashboard .bar:nth-child(2n){background:linear-gradient(0deg,#3b6eb0,#89b2e6)}.dashboard .bar:nth-child(3n){background:linear-gradient(0deg,#8762b6,#bda0df)}.dashboard .quick button{border-radius:13px;min-height:98px;background:#eef5ff;border-color:#dce8fa;color:#214f87}.dashboard .quick button:nth-child(2){background:#edf8f5;border-color:#d2eee5;color:#1b6856}.dashboard .quick button:nth-child(3){background:#f6f0fd;border-color:#e9dcf7;color:#71439a}.dashboard .quick button:hover{box-shadow:0 5px 14px #20365212}.dashboard .quick button span{color:#536880}
@media screen and (max-width:1200px){.dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .grid{grid-template-columns:1fr}.dashboard .quick{grid-template-columns:1fr}}
@media screen and (max-width:600px){.dashboard{padding:18px 12px}.dashboard>.heading{padding:22px 18px;border-radius:15px;gap:16px}.dashboard>.heading h1{font-size:25px;line-height:1.25}.dashboard>.heading .actions button{width:100%;flex-basis:100%}.dashboard .stats{gap:10px}.dashboard .stat{padding:16px;border-radius:14px}.dashboard .stat .badge-icon{float:none;margin-bottom:10px}.dashboard .stat label{display:block;font-size:12px}.dashboard .stat strong{font-size:23px;margin-top:12px}.dashboard .stat small{font-size:11px}.dashboard .panel{padding:16px;border-radius:14px}.dashboard .panel-head{align-items:flex-start}.dashboard .collection>div{padding:12px}.dashboard .collection strong{font-size:19px}.dashboard .quick{gap:10px}.dashboard .quick button{min-height:82px}.dashboard .grid{gap:16px;margin-bottom:16px}}
@media screen and (max-width:360px){.dashboard .stats{grid-template-columns:1fr}.dashboard .collection{grid-template-columns:1fr}}
@media print{.dashboard{background:white}.dashboard .stat{background:white!important;box-shadow:none;border:1px solid #ddd}.dashboard .stat label,.dashboard .stat strong,.dashboard .stat small{color:#20324b}.dashboard .panel{box-shadow:none}}

.dashboard>.heading h1{font-weight:800;overflow-wrap:anywhere}.dashboard>.heading>div:first-child{min-width:0}

.fee-category-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:14px}.fee-category-row label{margin:0}.fee-category-row button{min-height:44px}@media(max-width:600px){.fee-category-row{grid-template-columns:1fr 1fr}.fee-category-row button{grid-column:1/-1}}

.school-logo{width:88px;height:88px;object-fit:contain;display:block;margin:0 auto 12px}.brand .mark:has(.school-logo){padding:4px;background:white}.brand .school-logo{width:38px;height:38px;margin:0}.dashboard .heading .school-logo{margin:0 0 14px;padding:5px;background:white;border-radius:10px}.student-profile-head .school-logo{width:48px;height:48px;margin:10px 0 0}@media print{.school-logo{display:block!important}}

/* Compact terminal reports and class printing. */
.report th{padding:7px 10px}.report td{padding:7px 10px;line-height:1.3}
.report .report-head{padding-bottom:12px;margin-bottom:12px}.report .report-info{margin:12px 0;gap:12px}
.report .summary{margin:12px 0;gap:16px;flex-wrap:wrap}.report .report-comment{margin:6px 0;line-height:1.35}
.report .report-signatures{margin-top:30px}.class-reports .report{margin-bottom:24px}
@media print{
 .class-reports .report{break-before:page;page-break-before:always;margin:0;}
 .class-reports .report:first-child{break-before:auto;page-break-before:auto;}
 .report .table-scroll{min-width:0;overflow:visible}.report table{white-space:normal}
 .report tr,.report .report-head,.report .report-info,.report .report-comment,.report .report-signatures{break-inside:avoid;page-break-inside:avoid}
 .report th,.report td{padding:5px 8px}.report .school-logo{width:64px;height:64px;margin-bottom:8px}
}

.analytics-grid{margin-top:20px;grid-template-columns:1fr 1fr}.analytics-bar-row{display:grid;grid-template-columns:minmax(100px,180px) minmax(60px,1fr) 58px;gap:12px;align-items:center;margin:14px 0;font-size:12px}.analytics-track{height:15px;border-radius:8px;background:#edf1f7;overflow:hidden}.analytics-track i{display:block;height:100%;border-radius:8px;transition:width .4s ease}.analytics-bar-row b{text-align:right}.analytics-subject{padding:16px 0;border-bottom:1px solid var(--border)}.analytics-subject p{font-size:12px;margin:10px 0}.analytics-legend{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0;font-size:12px}.analytics-legend span:nth-child(1){color:#4263d9}.analytics-legend span:nth-child(2){color:#168b86}.analytics-legend span:nth-child(3){color:#b97516}@media(max-width:900px){.analytics-grid{grid-template-columns:1fr}}@media(max-width:600px){.analytics-bar-row{grid-template-columns:minmax(90px,120px) minmax(40px,1fr) 48px;gap:8px}.analytics-track{height:12px}}@media(prefers-reduced-motion:reduce){.analytics-track i{transition:none}}

.report-analytics{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:8px}.report-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:10px}.report-chart-grid h3{font-size:11px}.report-chart-grid .analytics-bar-row{grid-template-columns:minmax(75px,110px) minmax(30px,1fr) 42px;font-size:10px;gap:6px;margin:8px 0}.report-chart-grid .analytics-track{height:10px}.report-chart-grid small{font-size:9px;margin-top:5px;line-height:1.3}@media(max-width:600px){.report-chart-grid{grid-template-columns:1fr}}@media print{.report-chart-grid{grid-template-columns:1fr 1fr}.report-analytics{break-inside:avoid;page-break-inside:avoid;margin:10px 0;padding:8px}.report-analytics,.report-analytics *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-chart-grid .analytics-track{border:1px solid #ddd}}

.performance-observation{margin-top:10px;border-top:1px solid var(--border);padding-top:8px;font-size:10px}.performance-observation p{margin:5px 0;line-height:1.45;color:#344457}.generated-remark-label{font-size:9px;color:#64748b;margin-top:4px}@media print{.performance-observation{break-inside:avoid;page-break-inside:avoid}}

.report-signatures>div{text-align:center;min-width:130px}.report-signature-image{display:block;width:140px;height:42px;object-fit:contain;margin:0 auto 3px}.signature-line{display:block;height:42px;padding-top:20px}#signaturePreview{padding:12px;background:#f7f9fc;margin-bottom:12px}.report{font-size:12px}.report .report-head{padding-bottom:8px;margin-bottom:8px}.report .report-info{margin:8px 0}.report .summary{margin:8px 0}.report .report-comment{font-size:11px;margin:4px 0;line-height:1.3}.report .report-signatures{margin-top:14px}.report-analytics{margin:8px 0;padding:8px}.report .school-logo{width:60px;height:60px;margin-bottom:6px}
@page{size:A4 portrait;margin:10mm}
@media print{
 .report{font-size:10px;line-height:1.2}.report h2{font-size:16px}.report .eyebrow{font-size:8px;margin-bottom:4px}.report .report-head p{font-size:10px;margin:3px}.report .report-head small{font-size:9px}.report .school-logo{width:48px;height:48px;margin-bottom:4px}.report th,.report td{padding:4px 7px;font-size:9px}.report th{letter-spacing:.3px}.report .report-info{margin:7px 0;gap:8px}.report .report-info small,.report .summary{font-size:9px}.report .report-comment{font-size:9px;margin:4px 0;line-height:1.25}.report .report-signatures{margin-top:10px}.report-signature-image{height:30px;width:120px}.signature-line{height:30px;padding-top:12px}.report-analytics h3{font-size:10px}.report-chart-grid{gap:12px;margin-top:6px}.report-chart-grid h3{font-size:9px}.report-chart-grid .analytics-bar-row{font-size:8px;margin:5px 0}.report-chart-grid small{font-size:8px}.performance-observation{font-size:8px;margin-top:6px;padding-top:5px}.report-analytics{margin:7px 0;padding:6px}.report .report-signatures small{font-size:9px}
}

.report .report-school-header{display:flex;align-items:flex-start;gap:16px;text-align:left}.report .report-school-header .school-logo{flex:0 0 auto;width:76px;height:76px;margin:0;object-fit:contain}.report-school-details{flex:1;min-width:0}.report .report-school-details h2{font-size:25px;line-height:1.15;font-weight:800;overflow-wrap:anywhere}.report .report-school-details .report-school-address{font-size:14px;line-height:1.3;color:#344457;margin:6px 0}.report .report-school-details .report-title{font-size:11px;font-weight:700;margin:6px 0 3px}.report-motto{text-align:center;border-top:1px solid var(--border);margin-top:12px;padding-top:6px;font-style:italic;font-weight:600;font-size:11px;color:#345246}@media(max-width:600px){.report .report-school-header{gap:10px}.report .report-school-header .school-logo{width:58px;height:58px}.report .report-school-details h2{font-size:20px}.report .report-school-details .report-school-address{font-size:12px}}@media print{.report .report-school-header{gap:12px}.report .report-school-header .school-logo{width:60px;height:60px;margin:0}.report .report-school-details h2{font-size:21px}.report .report-school-details .report-school-address{font-size:11px;margin:4px 0}.report .report-school-details .report-title{font-size:9px;margin:4px 0 2px}.report-motto{font-size:9px;margin-top:8px;padding-top:5px;break-inside:avoid}}

.report-title-band{text-align:center;font-family:Manrope,Arial,sans-serif;font-size:15px;font-weight:800;letter-spacing:1px;color:#fff;background:var(--green);padding:9px 12px;border-radius:4px;margin:10px 0 12px;line-height:1.3}@media print{.report-title-band{font-size:12px;padding:6px 10px;margin:7px 0 9px;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Balanced report layout for screen and A4. */
.report{padding:28px;border:1px solid #dbe3eb;border-radius:8px;background:#fff;color:#24364b}.report .report-school-header{padding-bottom:16px;margin-bottom:14px;border-bottom:2px solid var(--green)}.report .report-school-details h2{font-size:27px}.report .report-school-header .school-logo{width:82px;height:82px}.report-title-band{padding:11px 14px;margin:12px 0 18px;font-size:16px}.report .report-info{background:#f4f7fa;border:1px solid #e0e7ee;border-radius:5px;padding:11px 13px;margin:14px 0;font-size:13px}.report .report-info small{font-size:11px;margin-top:4px}.report th{background:#eaf0f5;color:#30465a;padding:10px;font-size:11px}.report td{padding:10px;font-size:12px;border-bottom:1px solid #dfe7ee}.report tbody tr:nth-child(even){background:#f8fafc}.report .summary{background:#edf5f3;border-left:3px solid var(--green);padding:11px 13px;gap:22px;margin:14px 0;font-size:12px}.report-analytics{padding:13px;margin:16px 0;background:#f8fafc;border-color:#dce5ed}.report-analytics>h3{font-size:13px;margin-bottom:10px}.report-chart-grid{gap:24px}.report-chart-grid h3{font-size:12px}.report-chart-grid .analytics-bar-row{font-size:11px;margin:11px 0;grid-template-columns:minmax(80px,120px) minmax(30px,1fr) 45px}.report-chart-grid .analytics-track{height:12px}.report-chart-grid small{font-size:10px}.performance-observation{font-size:11px;padding-top:9px;margin-top:12px}.report .report-comment{font-size:12px;line-height:1.5;margin:9px 0;padding-bottom:7px;border-bottom:1px solid #edf1f5}.report .report-signatures{margin-top:22px;padding-top:12px}.report-signature-image{height:46px;width:150px}.report-motto{margin-top:18px;padding-top:10px;font-size:12px;letter-spacing:.5px}
@media print{
 .report{padding:0;border:0;border-radius:0;font-size:11px;line-height:1.3}.report .report-school-header{padding-bottom:12px;margin-bottom:10px}.report .report-school-header .school-logo{width:70px;height:70px}.report .report-school-details h2{font-size:24px}.report .report-school-details .report-school-address{font-size:12px}.report-title-band{font-size:14px;padding:8px 12px;margin:10px 0 13px}.report .report-info{font-size:11px;padding:8px 11px;margin:11px 0}.report .report-info small{font-size:10px}.report th{font-size:10px;padding:7px 9px}.report td{font-size:11px;padding:7px 9px}.report .summary{font-size:10px;padding:9px 11px;margin:11px 0}.report-analytics{padding:10px;margin:12px 0}.report-analytics>h3{font-size:12px;margin-bottom:7px}.report-chart-grid h3{font-size:10px}.report-chart-grid .analytics-bar-row{font-size:9px;margin:8px 0}.report-chart-grid small{font-size:9px}.performance-observation{font-size:9px;margin-top:9px;padding-top:7px}.report .report-comment{font-size:10px;line-height:1.4;margin:7px 0;padding-bottom:5px}.report .report-signatures{margin-top:16px;padding-top:8px}.report-signature-image{width:140px;height:38px}.report .report-signatures small{font-size:10px}.report-motto{margin-top:12px;padding-top:8px;font-size:10px}.report .report-info,.report .summary,.report th,.report tbody tr:nth-child(even){-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media(max-width:600px){.report{padding:16px}.report .report-school-details h2{font-size:20px}.report .report-school-header .school-logo{width:58px;height:58px}.report .report-info{font-size:12px}.report-chart-grid{gap:14px}}

.grade-interpretation{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 12px;margin-top:8px;border:1px solid #e0e7ee;background:#f8fafc;border-radius:5px;font-size:10px;line-height:1.4}.grade-interpretation>b{width:100%;color:#30465a}.grade-interpretation span{white-space:nowrap}@media print{.grade-interpretation{font-size:8px;padding:7px 9px;gap:4px 12px;break-inside:avoid;page-break-inside:avoid}}

.grade-scale-row{display:grid;grid-template-columns:65px 90px minmax(100px,1fr) auto;gap:8px;align-items:end;border-bottom:1px solid var(--border);padding:10px 0}.grade-scale-row label{margin:0;font-size:10px}.grade-scale-row input{padding:8px;min-width:0}.grade-scale-row button{padding:8px;font-size:11px}#gradeScaleError{color:#a33333}@media(max-width:600px){.grade-scale-row{grid-template-columns:1fr 1fr}.grade-scale-row label:nth-child(3){grid-column:1/-1}}

.grade-scale-row{grid-template-columns:55px 75px 75px minmax(95px,1fr) auto}.report td:last-child{white-space:normal;min-width:85px}@media(max-width:600px){.grade-scale-row{grid-template-columns:1fr 1fr}.grade-scale-row label:nth-child(3){grid-column:auto}.grade-scale-row label:nth-child(4){grid-column:1/-1}}

.core-subject-option{display:flex;align-items:center;gap:10px;padding:7px 0}.core-subject-option input{width:18px;height:18px;margin:0}#coreError{color:#a33333}.aggregate-subjects{font-size:10px;color:#536579;margin-top:8px;line-height:1.4}@media print{.aggregate-subjects{font-size:8px}}

.promotion-decision{padding:9px 12px;background:#edf5f3;border-left:3px solid var(--green);margin:10px 0;font-size:12px}#promotionError{color:#a33333}@media print{.promotion-decision{font-size:10px;padding:7px 10px;margin:8px 0;break-inside:avoid}}

.fee-chart-panel{margin-top:22px}.fee-chart-layout{display:flex;align-items:center;justify-content:center;gap:40px;padding:18px 0}.fee-pie{width:210px;height:210px;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 7px #f5f7f6}.fee-chart-legend>div{display:flex;gap:12px;align-items:flex-start;margin:18px 0}.fee-chart-legend strong{display:block;font-size:22px;margin-top:5px}.fee-chart-legend p strong{display:inline;font-size:14px}.fee-swatch{width:14px;height:14px;border-radius:4px;margin-top:3px;flex-shrink:0}.fee-swatch.collected{background:var(--green)}.fee-swatch.outstanding{background:#e7b45b}@media(max-width:600px){.fee-chart-layout{flex-direction:column;gap:16px}.fee-pie{width:180px;height:180px}.fee-chart-legend{width:100%}}

.attendance-summary{margin:18px 0}.attendance-totals{display:flex;flex-wrap:wrap;gap:18px;padding:16px 0}.attendance-totals b{display:block;font-size:22px}.attendance-chart-row{display:grid;grid-template-columns:120px 1fr 110px;gap:12px;align-items:center;margin:12px 0}.attendance-stack{display:flex;background:#e4eae6;border-radius:6px;overflow:hidden;min-height:30px}.attendance-stack span{display:flex;justify-content:center;align-items:center;color:#fff;font-size:12px;min-width:0}.attendance-stack .att-present{background:#24745b}.attendance-stack .att-late{background:#a06f13}.attendance-stack .att-absent{background:#b94747}.attendance-stack .att-excused{background:#477bba}.attendance-stack .att-unmarked{background:#dbe1e8;color:#263b51}.attendance-legend .att-present{color:#24745b}.attendance-legend .att-late{color:#a06f13}.attendance-legend .att-absent{color:#b94747}.attendance-legend .att-excused{color:#477bba}.news-post{margin-bottom:18px}.news-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.news-post h2{overflow-wrap:anywhere}#form textarea{width:100%;font:inherit;padding:10px;border:1px solid var(--border);border-radius:6px}@media(max-width:600px){.attendance-chart-row{grid-template-columns:90px 1fr}.attendance-chart-row>small{grid-column:2}.attendance-totals{gap:14px}.attendance-totals b{font-size:19px}}

.attendance-summary{padding:0;overflow:hidden;border:1px solid #dce5f0;box-shadow:0 10px 32px rgba(25,52,88,.06)}.attendance-summary-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;background:linear-gradient(120deg,#142e52,#155d76 65%,#117a7a);color:#fff}.attendance-summary-head h2{color:#fff;font-size:25px;margin:5px 0}.attendance-summary-head p{color:#d6e8f0;margin:8px 0 0}.attendance-summary-head small{color:#b2e9e8;font-weight:700;letter-spacing:2px}.attendance-rate{display:flex;flex-direction:column;align-items:center;padding:12px 20px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:16px}.attendance-rate strong{font-size:32px}.attendance-rate span{font-size:11px;color:#d8f0ee}.attendance-summary .attendance-totals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:22px 24px}.attendance-card{position:relative;border-radius:14px;padding:16px;border:1px solid transparent;min-width:0;display:flex;flex-direction:column;gap:9px}.attendance-card>span:not(.attendance-card-icon){font-size:12px;font-weight:600}.attendance-card b{font-size:28px;line-height:1.15}.attendance-card-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.65);font-weight:700}.attendance-card-roll,.attendance-count-roll{background:#eaf0ff;color:#3456a3;border-color:#d5dfff}.attendance-card-present,.attendance-count-present{background:#e5f7ee;color:#14784b;border-color:#c4ebd7}.attendance-card-late,.attendance-count-late{background:#fff4db;color:#98610b;border-color:#f5e1b3}.attendance-card-absent,.attendance-count-absent{background:#ffeded;color:#b13b48;border-color:#f6ced3}.attendance-card-excused,.attendance-count-excused{background:#efeaff;color:#7351a9;border-color:#ded4fa}.attendance-card-unmarked,.attendance-count-unmarked{background:#eef2f6;color:#617083;border-color:#dde5ee}.attendance-summary>.table-scroll{padding:0 24px 22px}.attendance-summary thead th{background:#eef3fa;color:#425874;font-size:10px;letter-spacing:.7px}.attendance-summary tbody tr:nth-child(even){background:#f8fafc}.attendance-summary tbody tr:hover{background:#edf7fa}.attendance-summary tbody td:first-child{border-left:3px solid #6d9cbe}.attendance-count{display:inline-block;min-width:38px;text-align:center;font-weight:700;padding:7px 10px;border-radius:8px;font-variant-numeric:tabular-nums}.class-rate-track{width:90px;max-width:100%;height:6px;background:#e4ebf2;border-radius:8px;overflow:hidden}.class-rate-track i{display:block;height:100%;background:linear-gradient(90deg,#2e91b8,#28b386)}.attendance-summary>h3,.attendance-summary>.attendance-legend,.attendance-summary>.attendance-chart{margin-left:24px;margin-right:24px}.attendance-summary>.attendance-chart{margin-bottom:24px}.attendance-chart-row{padding:8px 10px;background:#f7fafc;border-radius:9px}.attendance-summary .attendance-stack{min-height:32px}.attendance-summary .attendance-stack .att-excused{background:#8460ba}@media(max-width:1000px){.attendance-summary .attendance-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.attendance-summary-head{padding:18px 16px}.attendance-summary-head h2{font-size:20px}.attendance-rate{padding:10px}.attendance-rate strong{font-size:25px}.attendance-summary .attendance-totals{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:10px}.attendance-card{padding:13px}.attendance-card b{font-size:25px}.attendance-summary>.table-scroll{padding:0 12px 16px}}
.dashboard .attendance-summary{padding:0}

.promotion-select-all{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;white-space:nowrap}.promotion-select-all input{width:16px;height:16px;margin:0}#promotionSelectionCount{font-size:12px;color:#536579;margin:0 0 14px}

.schoolmaster-loading{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 20% 15%,#194a68,transparent 55%),radial-gradient(ellipse at 85% 90%,#0b6470,transparent 55%),#0e203a;color:white}.schoolmaster-loading[hidden]{display:none!important}.loading-card{text-align:center;width:min(480px,100%);padding:40px 30px;border:1px solid #ffffff26;border-radius:26px;background:#ffffff09;box-shadow:0 25px 80px #0003}.loading-emblem{width:88px;height:88px;margin:0 auto 26px;display:grid;place-items:center;border-radius:25px;background:linear-gradient(135deg,#1ccbb7,#4aa6ff);font:bold 46px Arial;color:#fff;box-shadow:0 0 45px #29c4be33}.loading-kicker{font-size:10px;letter-spacing:2px;color:#8ddfd7}.loading-card h1{font-size:30px;color:#fff;margin:12px 0}.loading-card p{color:#d7e5f4;font-size:14px;line-height:1.6;min-height:44px}.loading-card small{color:#a1b8ce;font-size:11px;margin-top:28px}.loading-dots{display:flex;justify-content:center;gap:9px;margin:24px 0}.loading-dots i{width:9px;height:9px;border-radius:50%;background:#62dccd;animation:schoolmaster-pulse 1.2s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.15s;background:#6db8fa}.loading-dots i:nth-child(3){animation-delay:.3s;background:#efd177}#loadingRetry{background:#e6f8f5;color:#143a4b;border:0;margin:12px auto}#loadingRetry[hidden]{display:none}@keyframes schoolmaster-pulse{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-8px);opacity:1}}@media(prefers-reduced-motion:reduce){.loading-dots i{animation:none}}

.feeding-breakdown-overview{margin:24px 0}.feeding-breakdown-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:16px 0}.feeding-breakdown-tile{position:relative;padding:23px;border-radius:17px;border:1px solid #dbe6ed;box-shadow:0 6px 22px #18365308;display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}.feeding-breakdown-tile>span:not(.feeding-tile-symbol){font-size:13px;font-weight:700;padding-right:35px}.feeding-breakdown-tile strong{font-size:27px;line-height:1.2;font-variant-numeric:tabular-nums}.feeding-breakdown-tile small{font-size:11px;opacity:.8}.feeding-tile-symbol{position:absolute;right:19px;top:19px;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#ffffffa6}.feeding-tile-0{background:linear-gradient(130deg,#edf5ff,#e2edff);color:#244e90;border-top:4px solid #4c86d4}.feeding-tile-1{background:linear-gradient(130deg,#e7faf4,#d9f2ed);color:#196b58;border-top:4px solid #22a080}.feeding-tile-2{background:linear-gradient(130deg,#fff8e5,#fceecd);color:#865a13;border-top:4px solid #dcab45}.feeding-tile-3{background:linear-gradient(130deg,#f2edff,#e9e1fb);color:#67509b;border-top:4px solid #8a6ac6}.feeding-tile-4{background:linear-gradient(130deg,#f5f7fa,#e9eef4);color:#52647a;border-top:4px solid #91a1b5}.feeding-settings-panel{margin:18px 0}.feeding-settings-panel p{font-size:12px}@media(max-width:600px){.feeding-breakdown-tiles{grid-template-columns:1fr}.feeding-breakdown-tile{padding:19px}.feeding-breakdown-overview>.panel-head{align-items:flex-start;gap:12px;flex-wrap:wrap}}

/* Refined feeding workspace */
.feeding-summary{grid-template-columns:1.5fr 1fr 1fr;gap:16px;margin-bottom:28px}
.feeding-summary>div:first-child{background:linear-gradient(120deg,#075e67,#079298);color:white;border-color:transparent;box-shadow:0 8px 24px #087f8c20}
.feeding-summary>div:first-child small,.feeding-summary>div:first-child p{color:#d5f4f1}
.feeding-summary>div:first-child strong{color:white}
.feeding-breakdown-overview .panel-head{margin-bottom:16px}
.feeding-breakdown-overview .panel-head h2{font-size:18px;margin-bottom:5px}
.feeding-breakdown-tiles{gap:16px;margin-bottom:18px}
.feeding-breakdown-tile{padding:20px 23px;min-height:130px;border-top-width:3px;box-shadow:none}
.feeding-breakdown-tile strong{font-size:26px;margin:9px 0 6px}
.feeding-settings-panel{padding:0!important;margin-bottom:26px;border:1px solid #dbe5ee;box-shadow:none}
.feeding-settings-panel summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;cursor:pointer;list-style:none;font-weight:650}
.feeding-settings-panel summary:after{content:'＋';font-size:21px;color:#07838b}
.feeding-settings-panel[open] summary:after{content:'−'}
.feeding-settings-panel summary small{margin-left:auto;font-weight:400;color:#71839c}
.feeding-settings-content{padding:0 22px 16px;border-top:1px solid #edf1f6}
.feeding-settings-content p{font-size:12px;color:#71839c}
.payment-history-panel .panel-head h2{font-size:18px;margin-bottom:5px}
@media(max-width:720px){.feeding-summary{grid-template-columns:1fr}.feeding-settings-panel summary small{display:none}}

.feeding-summary>div:first-child label{color:#d5f4f1}

.feeding-fund-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}.feeding-fund-stats .stat{background:#fff;color:#193852;border-top:3px solid #159e95}.feeding-fund-stats .stat label{color:#516b83}.feeding-fund-stats .stat strong{color:#193852;font-size:27px}.feeding-fund-stats .stat small{color:#6b8198}.feeding-fund-stats .stat:last-child{background:linear-gradient(120deg,#076d69,#119990);border:0;color:#fff}.feeding-fund-stats .stat:last-child strong,.feeding-fund-stats .stat:last-child label{color:#fff}.feeding-fund-stats .stat:last-child small{color:#d4f1ec}@media(max-width:720px){.feeding-fund-stats{grid-template-columns:1fr}}

/* Clear, consistent dashboard financial cards */
.dashboard .stats .stat{background:#fff;border:1px solid #dce6ef;border-top:3px solid #3974b9;border-radius:14px;box-shadow:0 3px 12px #183e6410;padding:22px;}
.dashboard .stats .stat:nth-child(2){border-top-color:#07867f}
.dashboard .stats .stat:nth-child(3){border-top-color:#be802f}
.dashboard .stats .stat:nth-child(4){border-top-color:#8062b5}
.dashboard .stats .stat label{color:#486079;font-size:12px;font-weight:600;display:block;padding-right:38px;line-height:1.5}
.dashboard .stats .stat strong{color:#173751;font-size:clamp(22px,2vw,29px);letter-spacing:-.6px;margin:16px 0 8px;line-height:1.25;overflow-wrap:normal}
.dashboard .stats .stat small{color:#60758b;opacity:1}
.dashboard .stats .stat .badge-icon{background:#eef4fa;color:#376b99;border:0;width:34px;height:34px;display:grid;place-items:center;position:absolute;right:20px;top:19px;font-size:17px}
.dashboard .feeding-fund-stats{padding:20px;background:#edf4f7;border:1px solid #d7e3e9;border-radius:16px;gap:14px}
.dashboard .feeding-fund-stats .stat{box-shadow:none;border-top:0;min-width:0;padding:20px}
.dashboard .feeding-fund-stats .stat:nth-child(2){background:#fff9ee;border-color:#eedfc5}
.dashboard .feeding-fund-stats .stat:nth-child(2) label{color:#815822}
.dashboard .feeding-fund-stats .stat:nth-child(2) strong{color:#734b18}
.dashboard .feeding-fund-stats .stat:nth-child(2) small{color:#786346}
.dashboard .feeding-fund-stats .stat:last-child{background:#086f6b;border-color:#086f6b}
.dashboard .feeding-fund-stats .stat:last-child label,.dashboard .feeding-fund-stats .stat:last-child strong{color:#fff}
.dashboard .feeding-fund-stats .stat:last-child small{color:#d9eeeb}
.dashboard .feeding-fund-stats .stat:last-child .badge-icon{background:#ffffff20;color:#fff}
@media(max-width:1000px){.dashboard .stats:not(.feeding-fund-stats){grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .feeding-fund-stats{grid-template-columns:1fr}.dashboard .stats .stat strong{font-size:25px}}
@media(max-width:600px){.dashboard .stats .stat{padding:18px}.dashboard .feeding-fund-stats{padding:12px}.dashboard .stats .stat .badge-icon{display:none}.dashboard .stats .stat label{padding-right:0}.dashboard .stats .stat strong{font-size:22px}}

/* Dashboard composition: restrained cards and a single feeding account */
.dashboard{background:#f5f7fa}
.dashboard>.heading{background:#fff;border:1px solid #e0e7ee;box-shadow:none;color:#163750;padding:24px 28px;border-radius:14px;position:relative;border-left:5px solid var(--theme-primary)}
.dashboard>.heading h1{color:#17364e;font-size:clamp(20px,2vw,27px);line-height:1.3}
.dashboard>.heading p{color:#64778a;font-size:13px}
.dashboard>.heading .eyebrow{color:var(--theme-primary)}
.dashboard>.heading img{width:58px!important;height:58px!important;object-fit:contain;float:left;margin:0 18px 0 0!important;border-radius:8px}
.dashboard>.heading button.primary{background:var(--theme-primary);color:white;border-color:var(--theme-primary)}
.dashboard .stats .stat{border-top:0;border-radius:12px;padding:22px;box-shadow:none}
.dashboard .grid>.panel:first-child,.dashboard .grid>.panel:nth-child(2),.dashboard>.panel{border-top:1px solid #e0e7ee;border-radius:14px;box-shadow:none}
.feeding-finance{display:grid;grid-template-columns:1fr 2.5fr;align-items:center;background:#fff;border:1px solid #dce5ec;border-radius:14px;margin:0 0 24px;overflow:hidden}
.feeding-finance-title{padding:24px;border-right:1px solid #e6ecf1;background:#f8fafc;height:100%}
.feeding-finance-title .eyebrow{display:block;font-size:9px;color:#087e79;letter-spacing:1.5px;margin-bottom:10px}
.feeding-finance-title h2{font-size:17px;line-height:1.45;color:#183a51}
.feeding-finance-title p{font-size:12px;margin:7px 0 14px;color:#65798a}
.feeding-finance-title button{font-size:12px;padding:7px 10px;border-color:#d7e4e8;color:#096e6a}
.feeding-finance-calculation{display:grid;grid-template-columns:1fr auto 1fr auto 1.25fr;align-items:center;padding:24px;gap:15px}
.finance-operand small,.finance-result small{font-size:12px;font-weight:600;color:#4e6578;margin-bottom:10px}
.finance-operand strong,.finance-result strong{display:block;font-size:clamp(19px,1.8vw,27px);letter-spacing:-.6px;color:#1b3b51;line-height:1.3;font-variant-numeric:tabular-nums}
.finance-operand span,.finance-result span{display:block;font-size:11px;color:#63798b;margin-top:9px}
.finance-sign{font-size:22px;color:#93a5b2}
.finance-result{background:#e8f5f1;border:1px solid #cce9df;border-radius:10px;padding:20px}
.finance-result strong{color:#096b55}.finance-result small{color:#176a58}.finance-result span{color:#397c69}
@media(max-width:1200px){.feeding-finance{grid-template-columns:1fr}.feeding-finance-title{border-right:0;border-bottom:1px solid #e6ecf1}.feeding-finance-title h2{display:inline}.feeding-finance-title button{float:right}.feeding-finance-title p{margin-bottom:0}}
@media(max-width:650px){.feeding-finance-calculation{grid-template-columns:1fr;gap:14px;padding:18px}.finance-sign{display:none}.finance-operand{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.finance-operand small{margin:0}.finance-operand span{width:100%;margin-top:0}.feeding-finance-title button{float:none;margin-top:12px}.dashboard>.heading img{float:none;margin-bottom:12px!important}}

/* Compact colourful dashboard tiles */
.dashboard .stats{gap:12px;margin-bottom:18px}
.dashboard .stats .stat{padding:16px 18px;border:0;border-radius:12px;background:linear-gradient(120deg,#2857a3,#4376c3);box-shadow:0 3px 10px #23497114;min-height:112px}
.dashboard .stats .stat:nth-child(2){background:linear-gradient(120deg,#08756f,#11978c)}
.dashboard .stats .stat:nth-child(3){background:linear-gradient(120deg,#a45c22,#bf7b32)}
.dashboard .stats .stat:nth-child(4){background:linear-gradient(120deg,#7045aa,#8a65be)}
.dashboard .stats .stat label{color:#fff;font-size:11px;padding-right:30px;line-height:1.4}
.dashboard .stats .stat strong{color:#fff;font-size:clamp(19px,1.7vw,25px);margin:11px 0 5px;line-height:1.2;letter-spacing:-.4px}
.dashboard .stats .stat small{color:#fff;font-size:10px;opacity:.9}
.dashboard .stats .stat .badge-icon{top:13px;right:14px;width:27px;height:27px;font-size:14px;background:#ffffff20;color:#fff}
.feeding-finance-title{padding:18px 20px}
.feeding-finance-title h2{font-size:15px}
.feeding-finance-title .eyebrow{margin-bottom:6px}
.feeding-finance-title p{margin:5px 0 9px;font-size:11px}
.feeding-finance-calculation{padding:18px 20px;gap:12px}
.finance-operand strong,.finance-result strong{font-size:clamp(18px,1.6vw,24px)}
.finance-operand small,.finance-result small{font-size:11px;margin-bottom:7px}
.finance-operand span,.finance-result span{font-size:10px;margin-top:6px}
.finance-result{background:linear-gradient(120deg,#087a70,#109d8d);border:0;padding:16px;border-radius:10px}
.finance-result strong,.finance-result small{color:#fff}.finance-result span{color:#e1f7ef}
@media(max-width:600px){.dashboard .stats .stat{padding:14px;min-height:100px}.dashboard .stats .stat strong{font-size:20px}.feeding-finance-calculation{padding:14px}.feeding-finance-title{padding:16px}}
