*{box-sizing:border-box}body{margin:0;font:15px system-ui,sans-serif;color:#30233e;background:#f7f5fc} [hidden]{display:none!important}#login{max-width:420px;margin:12vh auto;padding:32px;background:white;border-radius:20px;box-shadow:0 12px 50px #59347c19}.brand{font-size:27px;font-weight:800;color:#7950a7}#app{display:grid;grid-template-columns:245px 1fr;min-height:100vh}aside{background:#59347c;color:white;padding:24px;position:sticky;top:0;height:100vh;overflow:auto}aside h2{font-size:21px;margin:0}aside small{opacity:.7}nav{display:grid;gap:6px;margin:28px 0}button{border:0;background:#7950a7;color:white;padding:11px 16px;border-radius:9px;cursor:pointer;font:inherit;font-weight:600}button:hover{filter:brightness(1.1)}nav button{text-align:left;background:transparent}nav button.active{background:#ffffff25}main{padding:30px;min-width:0}header{display:flex;justify-content:space-between;font-size:12px;color:#7950a7;border-bottom:1px solid #e5d7f5;padding-bottom:18px}h1{font-size:30px;margin-bottom:8px}p{line-height:1.5}.panel{background:white;border:1px solid #e9e1f1;border-radius:15px;padding:20px;margin:18px 0}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px}.metric{font-size:32px;font-weight:700;color:#7950a7}label{display:grid;gap:6px;font-weight:600;margin:8px 0}input,select,textarea{width:100%;padding:10px;border:1px solid #d9cce7;border-radius:8px;font:inherit;background:white;color:#30233e}input[type=checkbox]{width:auto}form.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:end}.wide{grid-column:1/-1}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}td,th{padding:12px;border-bottom:1px solid #eee8f5;white-space:nowrap}th{color:#7950a7;font-size:13px}.secondary{background:#eee7f8;color:#59347c}#msg,#loginMsg{color:#a02c58;white-space:pre-wrap}img.avatar{width:64px;height:64px;object-fit:cover;border-radius:50%}@media(max-width:720px){#app{grid-template-columns:1fr}aside{position:static;height:auto;padding:16px}nav{display:flex;overflow:auto;margin:15px 0}nav button{white-space:nowrap}main{padding:16px}#login{margin:8vh 16px}header{gap:12px}}
.student-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 6px;padding:10px;background:#fff;border:1px solid #e9e1f1;border-radius:12px}.student-tabs button.selected{background:#7950a7;color:#fff}.student-tabs button{flex:1;white-space:nowrap}.cash-summary .panel{margin:4px 0;padding:14px}.cash-summary .metric{font-size:clamp(18px,2vw,26px);margin-top:8px}.cash-summary .panel>div:first-child{text-transform:capitalize;color:#695578}.scroll td{white-space:normal;min-width:85px}.scroll td:last-child button{margin:3px}#msg{position:sticky;bottom:8px;background:#fff;padding:10px;border-radius:8px;box-shadow:0 2px 10px #0001}#msg:empty{display:none}
/* V2.2 – student workspace */
:root{--ink:#30233e;--accent:#7950a7;--line:#e8e1f0;--muted:#766b83}body{background:#f8f7fb}main{max-width:1550px;width:100%;margin:0 auto}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-heading h1{margin:22px 0 3px}.muted{color:var(--muted);font-size:13px}.page-heading p{margin:0 0 15px}.student-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 22px}.stat-tile{background:white;border:1px solid var(--line);border-radius:14px;padding:20px;display:grid;gap:8px}.stat-tile strong{font-size:29px;color:var(--accent)}.student-tools{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px;margin:14px 0}.student-identity{display:flex;align-items:center;gap:12px}.initials,.profile-initials{display:grid;place-items:center;background:#eee5f8;color:#694397;font-weight:700;flex-shrink:0;border-radius:50%;width:39px;height:39px}.status-active,.status-inactive{display:inline-block;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:600;background:#e8f4ed;color:#226343}.status-inactive{background:#efedf2;color:#665d70}.student-list table th{background:#f8f6fb}.student-list td{padding:15px 12px}.student-list tr:hover td{background:#faf8fd}.empty-state{text-align:center;padding:30px;color:var(--muted)}.student-profile{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);border-radius:18px;padding:24px;margin:12px 0 18px}.student-profile .avatar,.profile-initials{width:84px;height:84px;font-size:26px}.profile-details{flex:1;min-width:0}.profile-details h1{margin:5px 0 9px;font-size:25px;overflow-wrap:anywhere}.eyebrow{font-size:11px;letter-spacing:1.3px;color:var(--muted)}.back-link{margin-top:20px;background:transparent;padding-left:0}.student-tabs{justify-content:flex-start;gap:4px;padding:5px;overflow-x:auto;flex-wrap:nowrap}.student-tabs button{flex:0 0 auto;padding:12px 16px;background:transparent;color:var(--muted);border-radius:8px}.student-tabs button.selected{background:#eee5f8;color:#59347c}.student-section{padding:24px;margin-top:12px}.student-section h2,.student-list h2,.new-student h2{font-size:18px;margin:0 0 16px}.student-section form.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.student-section form label:has(textarea){grid-column:1/-1}.student-section textarea{min-height:90px;resize:vertical}.student-section form>button{justify-self:start;align-self:end;min-width:120px;grid-column:1/-1}.photo-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.photo-controls label{flex:1;min-width:180px}.new-student{border-color:#cbb6e4}input:focus,select:focus,textarea:focus{outline:2px solid #c9b1e6;outline-offset:1px}@media(max-width:720px){.student-stats{gap:7px}.stat-tile{padding:12px}.stat-tile strong{font-size:23px}.page-heading{align-items:flex-start}.page-heading>button{margin-top:22px;white-space:nowrap}.student-tools,.student-section form.grid{grid-template-columns:1fr}.student-profile{gap:12px;padding:16px;flex-wrap:wrap}.student-profile .avatar,.profile-initials{width:58px;height:58px;font-size:20px}.profile-details h1{font-size:20px}.student-section{padding:16px}.profile-actions{width:100%}.student-list td{padding:10px}}
/* V2.3 — visual hierarchy and compact student forms */
body{background:#eee9f5}.student-profile{background:linear-gradient(110deg,#59347c,#8961b4);color:white;border:0;box-shadow:0 8px 22px #59347c20}.student-profile .eyebrow{color:#e9d9f9}.student-profile .profile-initials{background:#ffffff25;color:white}.student-profile .avatar{border:3px solid #ffffffaa}.student-profile .status-active{background:#e5f6eb;color:#226343}.student-tabs{background:#e0d4ef;border-color:#d3c1e7}.student-tabs button{color:#59347c}.student-tabs button.selected{background:#7950a7;color:white}.student-section{background:#faf7fd;border-color:#d9cbe8;overflow:hidden}.student-section>h2{background:#e5d8f3;color:#59347c;margin:-24px -24px 20px;padding:15px 24px;border-bottom:1px solid #d9cbe8}.student-section form.grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.student-section label{font-size:13px;color:#523e68}.student-section input,.student-section select,.student-section textarea{background:white;min-height:42px}.student-section .status-field select,.new-student .status-field select{color:#59347c;font-weight:600;background:#eee5f8}.student-section .photo-controls{background:#eee6f7;border:1px solid #d9cbe8;border-radius:12px;padding:14px}.guardian-card{background:#fff;border:1px solid #e0d4ed;border-radius:12px;padding:16px;margin:12px 0}.guardian-card>p{font-weight:700;color:#59347c;margin-top:0}.student-section form>button{min-width:140px}.student-list>h2{color:#59347c}.stat-tile{border-top:3px solid #ad8bd2}@media(max-width:1000px){.student-section form.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.student-section form.grid{grid-template-columns:1fr}.student-section>h2{margin:-16px -16px 16px;padding:14px 16px}.student-profile{background:#694397}}
.fees-ui{display:grid;gap:18px}.fee-head{background:#694397;color:white;border-radius:14px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fee-head h2,.fee-head p{margin:0;color:white}.fee-head p{opacity:.85;margin-top:6px}.fee-head button{background:#fff;color:#59347c}.fee-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.fee-metric{background:#eee5f8;border:1px solid #ded0ed;border-radius:12px;padding:16px;display:grid;gap:8px}.fee-metric strong{font-size:1.35rem}.fee-metric.late{background:#fbe9ed;color:#96374b}.fee-metric.paid{background:#e8f3ed;color:#286747}.fee-panel>h2{background:#e5d8f3;color:#59347c;padding:14px;border-radius:9px}.fee-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;align-items:end}.fee-selection{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#eee5f8;padding:12px;border-radius:9px;margin:16px 0}.fees-ui input[type=checkbox]{width:18px;height:18px;accent-color:#7950a7}.fee-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:150px}.fee-actions button{padding:7px 10px;font-size:.8rem}.fee-status{display:inline-block;padding:5px 9px;border-radius:20px;background:#eee5f8;color:#59347c;white-space:nowrap}.fee-status.late{background:#fbe9ed;color:#96374b}.fee-status.paid{background:#e8f3ed;color:#286747}.fee-status.cancelled{background:#eee;color:#666}.fee-dialog{border:0;border-radius:15px;padding:0;width:min(650px,94vw);max-height:90vh;box-shadow:0 20px 70px #34214a55;color:#302340;background:#faf7fd}.fee-dialog::backdrop{background:#27173888}.fee-dialog-head{background:#694397;color:white;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.fee-dialog-head h2{margin:0;color:white}.fee-dialog-body{padding:22px}.fee-dialog-body form{display:grid;gap:12px}.fee-error{color:#a22340}.fee-selection button:disabled{opacity:.5;cursor:not-allowed}
.cash-ui,.cash-body{display:grid;gap:18px}.cash-body>div:not(.panel):not(.fee-metrics){display:grid;gap:18px}.cash-actions{display:flex;gap:10px;flex-wrap:wrap}.cash-ui .fee-panel{background:#faf7fd;border-color:#d9cbe8}.cash-ui .fee-filters{margin-bottom:16px}.cash-ui table td:last-child{white-space:nowrap;font-weight:700}.cash-ui table th{background:#eee5f8;color:#59347c}.cash-ui .fee-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.cash-ui .student-tabs{margin:0}
.finance-ui,.finance-body{display:grid;gap:18px}.finance-ui .fee-panel{background:#faf7fd;border-color:#d9cbe8}.finance-ui .fee-filters{margin-bottom:14px}.finance-bar-label{display:flex;justify-content:space-between;margin:14px 0 6px}.finance-track{height:16px;border-radius:20px;background:#e9e1f1;overflow:hidden}.finance-track>div{height:100%;border-radius:20px}.finance-track .income{background:#599875}.finance-track .expense{background:#bf7185}.finance-ui table th{background:#eee5f8;color:#59347c}
.alert-options{border:1px solid #dcc9ed;border-radius:10px;background:#f2eaf9;padding:12px;grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px}.alert-options label{display:flex;align-items:center;gap:6px}.alert-options input{width:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:12px}.calendar-cell{min-height:75px;padding:6px;background:#f5effa;border:1px solid #e1d5ed;border-radius:7px;overflow-wrap:anywhere}.calendar-cell p{font-size:12px;margin:4px 0}.calendar-due{color:#694397}.calendar-paid{color:#286747}.alert-dialog{border:1px solid #dcc9ed;border-radius:14px;max-width:min(90vw,620px);padding:24px}.alert-dialog::backdrop{background:#25163777}#financeBell{margin-left:8px} [hidden]{display:none!important}
.access-ui{display:grid;gap:18px}.access-ui .fee-panel{background:#faf7fd}.access-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) auto auto;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #e5d8f3}.access-row>div:first-child,.access-choices label>div{display:grid;gap:5px}.access-row small,.access-choices small{color:#71647f;overflow-wrap:anywhere}.access-badges{display:flex;flex-wrap:wrap;gap:5px}.access-badges span{background:#e5d8f3;color:#59347c;border-radius:20px;padding:5px 10px;font-size:13px}.access-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.access-choices label{display:flex;align-items:center;gap:10px;border:1px solid #dcc9ed;background:#f1e9f8;padding:12px;border-radius:10px}.access-choices input{width:18px;height:18px;accent-color:#7950a7;flex:none}.access-choices label:has(input:disabled){opacity:.65}@media(max-width:760px){.access-row{grid-template-columns:1fr 1fr}.access-row>div:first-child{grid-column:1/-1}.access-choices{grid-template-columns:1fr}}

.attendance-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.attendance-counts{display:flex;flex-wrap:wrap;gap:8px;width:100%}.attendance-count{padding:8px 12px;border-radius:8px;background:#eee5f8;font-weight:600;font-size:13px}.attendance-count.presente{background:#e4f3e9;color:#286747}.attendance-count.falta{background:#fbe5e9;color:#96374b}.attendance-count.justificada,.attendance-count.atraso{background:#fff0dc;color:#835018}.attendance-list{display:grid;gap:8px}.attendance-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(300px,2fr) minmax(100px,1fr);gap:12px;align-items:center;background:#faf7fd;border:1px solid #e5d8f3;border-radius:10px;padding:12px}.attendance-person{display:flex;align-items:center;gap:10px;min-width:0}.attendance-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;background:#e5d8f3;color:#694397;border-radius:50%;font-weight:bold}.attendance-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.attendance-choice{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;margin:0;padding:8px 4px;border:1px solid #e1d6eb;border-radius:7px;background:white;font-size:12px;cursor:pointer}.attendance-choice input[type=checkbox]{width:19px;height:19px;min-height:0;flex:none;margin:0}.attendance-choice.selected.presente{background:#e4f3e9;border-color:#81b99a;color:#286747}.attendance-choice.selected.falta{background:#fbe5e9;border-color:#d997a6;color:#96374b}.attendance-choice.selected.justificada,.attendance-choice.selected.atraso{background:#fff0dc;border-color:#e0b477;color:#835018}.attendance-note summary{cursor:pointer;color:#7950a7;font-size:13px}.attendance-note input{margin-top:6px}.attendance-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding:12px;background:#e5d8f3;border-radius:10px}.attendance-footer small{color:#59347c}@media(max-width:1000px){.attendance-row{grid-template-columns:1fr}.attendance-options{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:480px){.attendance-options{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-footer{flex-wrap:wrap}}
.agenda-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:15px 0;text-align:center}.agenda-calendar button{min-width:0;padding:10px 2px}.agenda-calendar strong{font-size:12px;color:#694397}.agenda-calendar .agenda-has-event{background:#7950a7;color:white}.agenda-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;background:#eee5f8;padding:12px;border-radius:10px}.agenda-choices label{display:flex;align-items:center;gap:8px}.agenda-choices input{width:auto}
.secretary-home{display:grid;gap:18px}.secretary-home .fee-head{margin-bottom:0}.secretary-home .fee-metrics{margin:0;gap:14px}.secretary-home .fee-metric{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:18px;min-height:0}.secretary-home .fee-metric strong{font-size:28px}.secretary-home .fee-metric button{margin-top:4px;width:auto}.secretary-home .fee-metric:nth-child(1){background:#e5d8f3;color:#59347c}.secretary-home .fee-metric:nth-child(2){background:#fbe9ed;color:#96374b}.secretary-home .fee-metric:nth-child(3){background:#e5f2e9;color:#286747}.secretary-home .ops-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.secretary-home .ops-shortcuts button{padding:14px;text-align:left}.ops-panel>h2{background:#e5d8f3;color:#59347c;padding:14px;border-radius:9px;margin:0 0 16px}.ops-tools{display:flex;gap:12px;margin-bottom:16px}.ops-tools input{flex:1}.ops-tools select{width:auto}.ops-editor form{margin-top:12px}@media(max-width:650px){.ops-tools{flex-direction:column}.ops-tools select{width:100%}}

.cash-audit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.cash-audit-grid>div{background:#f0e8f8;padding:14px;border-radius:10px;display:grid;gap:7px}.cash-audit-grid small{color:#694397}.cash-audit-grid strong{overflow-wrap:anywhere}
.catalog36-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin:10px 0;background:#fff;border:1px solid #e3d8ee;border-radius:12px}.catalog36-row strong,.catalog36-row small{display:block}.catalog36-row small{margin-top:6px;color:#685878}.catalog36-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog36-person{display:flex;align-items:center;gap:10px;margin:8px 0}.catalog36-person .avatar{width:44px;height:44px;object-fit:cover;border-radius:50%}@media(max-width:650px){.catalog36-row{align-items:flex-start;flex-direction:column}.catalog36-actions{width:100%}}
