
/* School application controls; retain the approved dashboard palette. */
.school-card{margin-bottom:20px;min-width:0}.school-card h2,.school-dialog h2{margin-bottom:12px}
.school-muted{color:#64748b;font-size:13px;line-height:1.6;margin:8px 0}
.school-error,.school-form-status{color:#b91c1c;white-space:normal;overflow-wrap:anywhere;margin:10px 0;font-size:14px}
.school-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.school-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;background:#0b5e75;color:white;font-size:13px;font-weight:700;border-radius:12px;border:1px solid transparent;cursor:pointer;min-height:42px;white-space:nowrap;margin:3px}
.school-button.secondary{background:#eff6f8;color:#17475a;border-color:#d7e5ed}
.school-button:disabled{opacity:.55;cursor:not-allowed}
.school-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0;align-items:end}
.school-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;color:inherit}
.school-form input,.school-form select,.school-form textarea,.school-filter input,.school-toolbar input,.school-toolbar select,.school-card>input,.school-card>select{width:100%;min-width:0;padding:10px 12px;min-height:44px;border:1px solid #cbd5e1;border-radius:10px;background:white;color:#203044;font:inherit}
.school-form input[type=checkbox]{width:20px;min-height:20px;align-self:start}
.school-form textarea{min-height:90px;resize:vertical}
.school-form [role=status]{grid-column:1/-1}
.school-filter{display:inline-flex;flex-direction:column;gap:6px;font-size:13px;margin:8px 0}
.school-table-wrap{overflow-x:auto;width:100%;max-width:100%;border:1px solid #e2e8f0;border-radius:14px;margin:15px 0}
.school-table{width:100%;border-collapse:collapse;min-width:650px;font-size:13px}
.school-table th{text-align:left;background:#f3f7fb;color:#52657e;font-size:11px;text-transform:uppercase;letter-spacing:.03em;padding:13px}
.school-table td{padding:12px;border-top:1px solid #e7edf3;vertical-align:middle}
.school-table td:last-child{min-width:180px}
.school-table td .school-button{font-size:12px;padding:7px 10px;min-height:34px}
.school-dialog{width:min(96%,700px);max-height:92dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:20px;background:white;color:#172b4d;padding:24px;box-shadow:0 20px 80px #0f172a55}
.school-dialog::backdrop{background:#0f172a99}
.school-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.school-summary-card{padding:20px;border-radius:20px;text-align:left;cursor:pointer}
.school-summary-card span{display:block;font-size:13px;color:#52657e;font-weight:700}
.school-summary-card strong{display:block;font-size:26px;font-weight:800;color:#0b5e75;margin-top:8px}
.school-notice{padding:14px;border-left:4px solid #0891b2;margin:12px 0;background:#f4fafb;border-radius:12px}
.school-notice h3,.school-notice h4{font-weight:750}
.edu-school-directory table{min-width:1500px!important}.edu-school-directory td{white-space:normal!important}
#school-sidebar-logout{margin:18px 16px;width:calc(100% - 32px)}
.dark .school-card,.dark .school-dialog{color:#e2e8f0;background:#182639}
.dark .school-form input,.dark .school-form select,.dark .school-form textarea,.dark .school-filter input,.dark .school-toolbar input,.dark .school-toolbar select{color:#e2e8f0;background:#0f172a;border-color:#475569}
.dark .school-table th,.dark .school-notice{background:#24344a;color:#cbd5e1}
.dark .school-button.secondary{background:#26384d;color:#d6eef7;border-color:#40556e}
.dark .school-summary-card strong{color:#67e8f9}.dark .school-muted,.dark .school-summary-card span{color:#a5b6c9}
@media(max-width:900px){.school-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.school-toolbar>*{flex:1 1 160px}}
@media(max-width:600px){.school-form{grid-template-columns:minmax(0,1fr)}.school-summary-card{padding:14px}.school-summary-card strong{font-size:21px}.school-card{padding:16px!important}.school-dialog{padding:18px}.school-summary-grid{gap:10px}.school-form .school-button{width:100%}.school-toolbar input,.school-toolbar select{width:100%}}


/* A single compact dashboard overview; original sidebar and palette retained. */
.school-dashboard{min-width:0}
.school-dashboard .school-dashboard-hero{padding:24px;gap:18px}
.school-dashboard-hero h2{font-size:clamp(20px,2vw,28px);line-height:1.3}
.school-dashboard .school-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:0}
.school-dashboard .school-summary-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;min-width:0;min-height:104px;border-radius:18px;transition:box-shadow .15s,transform .15s}
.school-dashboard .school-summary-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0b5e7515}
.school-dashboard .school-summary-card span{font-size:12px;line-height:1.4}
.school-dashboard .school-summary-card strong{font-size:clamp(22px,2vw,28px);line-height:1.2;overflow-wrap:anywhere;margin-top:6px}
.school-stat-icon{display:grid!important;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#e3f4f7;color:#0b5e75;font-size:19px!important}
.school-summary-card:nth-child(3) .school-stat-icon,.school-summary-card:nth-child(5) .school-stat-icon{background:#e0f6eb;color:#059669}
.school-summary-card:nth-child(4) .school-stat-icon,.school-summary-card:nth-child(6) .school-stat-icon{background:#fff0e5;color:#c76b15}
.school-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.school-dashboard .school-table{min-width:0;table-layout:fixed}
.school-dashboard .school-table td:last-child{min-width:0}
.school-dashboard .school-table td,.school-dashboard .school-table th{overflow-wrap:anywhere;white-space:normal}
.school-dashboard #school-attendance-summary,.school-dashboard #school-class-summary{min-width:0;justify-content:flex-start;padding:20px}
.school-dashboard .school-table-wrap{margin:14px 0 0}
.school-dashboard #school-data-note{font-size:12px;margin-top:12px}
.dark .school-stat-icon{background:#163e50;color:#9edfed}
@media(max-width:640px){.school-dashboard .school-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.school-dashboard .school-summary-card{padding:14px;min-height:96px;gap:8px}.school-stat-icon{width:34px;height:34px;flex-basis:34px;font-size:15px!important}.school-finance-grid{gap:10px}.school-finance-grid .school-summary-card{flex-wrap:wrap}.school-dashboard .school-dashboard-hero{padding:20px}.school-dashboard-hero h2{font-size:21px}}
/* Shared action and status language across School Admin pages. */
.school-button{border-radius:11px;background:#0d817d;border-color:#0d817d;box-shadow:0 2px 4px #103d4010;transition:background .15s,box-shadow .15s,transform .15s}
.school-button:hover:not(:disabled){background:#096f6c;box-shadow:0 4px 10px #0b5e7520}
.school-button:focus-visible,.school-action-trigger:focus-visible,.school-menu-item:focus-visible{outline:3px solid #60d5c9;outline-offset:2px}
.school-button.secondary{background:#eff5f9;color:#334c66;border-color:#e0e9f1}
.school-info-button{background:#eff6ff!important;color:#255ba7!important;border-color:#d5e5fc!important}
.school-danger-button{background:#fff0f2!important;color:#be2444!important;border-color:#ffc8d2!important}
.school-warning-button{background:#fff7e7!important;color:#a66110!important;border-color:#ffe0a2!important}
.school-success-button{background:#ecfdf5!important;color:#00865d!important;border-color:#a7efd1!important}
.school-status-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:8px;border:1px solid #dfe7ef;background:#f2f5f9;color:#697d94;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap}
.status-present,.status-paid{background:#ecfdf5;border-color:#a7efd1;color:#00865d}
.status-present{border-radius:999px}.status-present:before,.status-absent:before,.status-late:before,.status-leave:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.status-paid:before{content:'✓';font-size:14px}.status-unpaid:before{content:'!';font-weight:800}
.status-absent,.status-unpaid{background:#fff1f3;border-color:#ffc8d2;color:#ce2351}
.status-absent{border-radius:999px}.status-late,.status-partial{background:#fffaeb;border-color:#ffe39a;color:#b96a00}.status-late{border-radius:999px}
.status-leave{background:#eff6ff;border-color:#bfdbfe;color:#306cc4;border-radius:999px}
.school-money-received{color:#00966e!important;font-weight:650}.school-money-pending{color:#ec2857!important;font-weight:650}.school-money-zero{color:#94a3b8!important}
.school-record-actions,.edu-student-billing-actions{white-space:nowrap;min-width:230px!important}
.edu-school-directory .edu-student-billing-actions{display:table-cell;vertical-align:middle}
.edu-school-directory .school-collect-button{padding:10px 15px!important;font-size:12px!important;white-space:nowrap;min-height:40px;margin-right:8px}
.school-paid-button:disabled{background:#ecfdf5;color:#00865d;border-color:#a7efd1;opacity:1;box-shadow:none}
.school-action-trigger{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:40px;height:40px;padding:0!important;border:1px solid #e6edf3;border-radius:11px;background:#f0f5fa;color:#52657e;font-size:23px!important;line-height:1;cursor:pointer}
.school-action-popover{position:fixed;inset:auto;margin:0;width:216px;max-height:min(420px,80vh);overflow-y:auto;padding:7px;border:1px solid #dfe8f1;border-radius:14px;background:white;color:#20344d;box-shadow:0 12px 36px #142e4930;z-index:10000}
.school-action-popover[hidden]{display:none!important}
.school-menu-item{display:block;width:100%;min-height:38px;margin:2px 0!important;text-align:left;justify-content:flex-start;padding:9px 11px!important;border-radius:8px;border:0!important;background:transparent;color:#344b65;font:600 12px Inter,sans-serif;cursor:pointer;box-shadow:none}
.school-menu-item:hover{background:#eef7f8!important;color:#087d79!important}.school-menu-item:disabled{opacity:.45;cursor:not-allowed}
.school-student-name{background:none;border:0;color:#1b304b;font-weight:700;text-align:left;cursor:pointer;padding:6px 0}.school-student-name:hover{color:#0d817d;text-decoration:underline}
.edu-school-directory tbody tr:hover{background:#f9fcff}.edu-school-directory td{padding-top:17px!important;padding-bottom:17px!important;vertical-align:middle}
.dark .school-action-trigger,.dark .school-button.secondary{background:#23374a;color:#c5daec;border-color:#34516b}
.dark .school-action-popover{background:#182b3e;color:#d8e8f6;border-color:#34516b}.dark .school-menu-item{color:#d8e8f6}.dark .school-menu-item:hover{background:#234354!important;color:#8ce2d5!important}
.dark .school-student-name{color:#e4f0fa}.dark .edu-school-directory tbody tr:hover{background:#1c3042}
@media(max-width:640px){.school-action-trigger{width:38px;height:38px}.school-button{min-height:42px}.school-action-popover{max-width:calc(100vw - 16px)}}
/* Students reference layout: identity, filter card, segmented tabs and record card. */
#tab-students.edu-reference-students>.glass-panel:first-child{border-radius:24px;padding:30px 34px;background:#fff;box-shadow:none;border:1px solid #e2eaf2}
#tab-students.edu-reference-students h2{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:30px;font-weight:800;letter-spacing:-.03em;color:#0f172a;line-height:1.3}
.edu-enrolled-badge{font-size:13px;font-weight:750;letter-spacing:0;padding:4px 13px;border-radius:999px;background:#f0fdfa;color:#007d82;border:1px solid #99e9dd;white-space:nowrap}
.edu-school-identity{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:13px!important;font-weight:600;margin-top:8px!important;color:#6c7f97!important}
.edu-school-identity:before{content:'\f549';font-family:'Font Awesome 6 Free';font-weight:900;color:#00858a;margin-right:6px}.edu-school-identity strong{color:#18344f}.edu-school-identity small{font-size:11px;color:#91a4be;font-weight:750;margin-left:5px}
#tab-students.edu-reference-students>.glass-panel:first-child>button{background:#0f7d77;border-radius:15px;box-shadow:none;padding:13px 19px;font-size:13px;font-weight:750}
#tab-students.edu-reference-students>.edu-school-directory{padding:0!important;border:0;background:transparent;box-shadow:none;backdrop-filter:none;overflow:visible}
.edu-student-controls{padding:26px;border:1px solid #e2eaf2;border-radius:24px;background:#fff;display:grid;gap:16px;min-width:0}
.edu-student-search{position:relative}.edu-student-search:before{content:'\f002';position:absolute;top:50%;left:17px;transform:translateY(-50%);font:900 16px 'Font Awesome 6 Free';color:#97aac1;pointer-events:none}
#tab-students.edu-reference-students .edu-student-search input{width:100%;min-width:0;padding:12px 16px 12px 43px;min-height:46px;border:1px solid #cbd9e8;border-radius:15px;background:#f8fafc;font-size:13px;color:#1d3650;box-shadow:none}
.edu-student-search input::placeholder{color:#91a4bd}
.edu-student-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.edu-student-filters>label{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;margin:0;padding:6px 14px 6px 38px;border:1px solid #cbd9e8;border-radius:15px;background:#f8fafc;color:#91a4bd;font-size:10px;font-weight:750;text-transform:uppercase;min-height:50px}
.edu-student-filters>label:before{content:'\f073';position:absolute;left:14px;top:18px;font:900 14px 'Font Awesome 6 Free';color:#91a4bd}
.edu-student-filters>.edu-class-filter{padding:0 14px}.edu-student-filters>.edu-class-filter:before{display:none}
#tab-students.edu-reference-students .edu-student-filters input,#tab-students.edu-reference-students .edu-student-filters select{width:100%;min-width:0!important;min-height:25px;padding:0;margin:0;border:0;background:transparent;border-radius:0;box-shadow:none;font-size:13px;color:#17324f;font-weight:650;text-transform:none}
.edu-student-toolbar-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.edu-student-toolbar-actions button{border-radius:14px;min-height:46px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;font-size:13px;font-weight:750;box-shadow:none;transition:filter .15s,transform .15s}
.edu-student-toolbar-actions button:hover{filter:brightness(.96);transform:translateY(-1px)}
.edu-recovery-button{background:#f0fdfa;border:1px solid #99eee0;color:#007e84;text-transform:capitalize}.edu-recovery-button:before{content:'\f0ed';font:900 15px 'Font Awesome 6 Free'}.edu-recovery-button:after{content:'';width:8px;height:8px;border-radius:50%;background:#22bd91;margin-left:3px}
.edu-export-button{background:#00845d!important;border:1px solid #00845d!important;color:#fff}.edu-export-button:before{content:'\f1c3';font:900 15px 'Font Awesome 6 Free'}
.edu-student-toolbar-actions .edu-refresh-button{width:46px;height:46px;min-width:46px;background:#f1f5f9;border:1px solid #e2eaf2;color:#4d6581;font-size:0;padding:0}.edu-refresh-button:before{content:'\f021';font:900 15px 'Font Awesome 6 Free'}
.edu-student-controls-footer{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid #edf1f5;padding-top:16px;margin-top:4px}
#tab-students .edu-student-controls-footer .edu-directory-tabs{display:inline-flex;gap:3px;margin:0;padding:4px;background:#f1f5f9;border:1px solid #e6edf4;border-radius:15px;flex-shrink:0}
#tab-students .edu-student-controls-footer .edu-directory-tabs button{min-height:32px;border:0;border-radius:10px;padding:6px 17px;background:transparent;color:#4d627b;font-size:13px;font-weight:750;box-shadow:none;white-space:nowrap}
#tab-students .edu-student-controls-footer .edu-directory-tabs button[aria-pressed=true]{background:white;color:#007a80;box-shadow:0 1px 3px #102c4510}
.edu-student-controls-footer .edu-directory-count{font-size:13px;color:#647b95;margin:0!important}.edu-fee-context{margin-left:auto;font-size:12px;color:#647b95;font-weight:600}.edu-fee-context:before{content:'\f05a';font:900 12px 'Font Awesome 6 Free';color:#007f83;margin-right:8px}
#tab-students .edu-student-table-card{margin-top:24px!important;background:white;border:1px solid #e2eaf2;border-radius:23px;overflow-x:auto}
#tab-students .edu-student-table-card table{border-collapse:collapse;border-spacing:0;min-width:1480px!important;width:100%;font-size:13px}
#tab-students .edu-student-table-card th{background:#f8fafc;color:#637d99;font-size:11px;font-weight:750;letter-spacing:.04em;border-bottom:1px solid #e2eaf2;padding:17px 16px!important}
#tab-students .edu-student-table-card td{padding:17px 16px!important;border-bottom:1px solid #edf2f7;color:#485e78;white-space:nowrap!important}
#tab-students .edu-student-table-card tr:last-child td{border-bottom:0}
#tab-students .edu-profile-button{background:#f1f5f9;border:0;border-radius:10px;color:#3e5877;padding:8px 15px!important;min-height:34px;margin-right:8px;font-weight:750}
#tab-students .school-collect-button{border-radius:10px;min-height:34px;padding:7px 14px!important;background:#0f7d77}
#tab-students .school-status-badge{font-weight:750;padding:4px 12px}.school-button{background:#0f7d77;border-color:#0f7d77}
.dark #tab-students.edu-reference-students>.glass-panel:first-child,.dark .edu-student-controls,.dark #tab-students .edu-student-table-card{background:#182b3d;border-color:#33485e}
.dark #tab-students.edu-reference-students h2,.dark .edu-school-identity strong{color:#e5f0f8}
.dark #tab-students.edu-reference-students .edu-student-search input,.dark .edu-student-filters>label{background:#132436;color:#adc5da;border-color:#33485e}
.dark #tab-students.edu-reference-students .edu-student-filters input,.dark #tab-students.edu-reference-students .edu-student-filters select{color:#d8e7f5}
.dark #tab-students .edu-student-table-card th{background:#132436}.dark #tab-students .edu-student-table-card td{color:#bfd2e5;border-color:#304257}
@media(max-width:700px){#tab-students.edu-reference-students>.glass-panel:first-child{padding:22px}#tab-students.edu-reference-students h2{font-size:25px}.edu-student-controls{padding:18px}.edu-student-filters{grid-template-columns:minmax(0,1fr)}.edu-student-toolbar-actions{gap:8px}.edu-student-toolbar-actions button{font-size:12px;padding:10px 12px}.edu-student-controls-footer{gap:12px}.edu-fee-context{margin-left:0;width:100%}.edu-student-controls-footer .edu-directory-count{font-size:12px}}

/* Compact student search and filters. */
.edu-student-controls{padding:20px;gap:14px;grid-template-columns:minmax(220px,360px) minmax(0,1fr);align-items:center;border-radius:18px}
.edu-student-search{width:100%;max-width:360px}
#tab-students.edu-reference-students .edu-student-search input{min-height:40px;height:40px;padding:9px 12px 9px 38px;font-size:12px;border-radius:10px}
.edu-student-search:before{left:13px;font-size:14px}
.edu-student-filters{grid-template-columns:minmax(145px,1fr) minmax(165px,1fr) minmax(165px,1fr);gap:10px;max-width:760px}
.edu-student-filters>label{min-height:44px;padding-top:4px;padding-bottom:4px;border-radius:10px;font-size:9px}
.edu-student-filters>label:before{top:15px;font-size:12px}
#tab-students.edu-reference-students .edu-student-filters input,#tab-students.edu-reference-students .edu-student-filters select{font-size:12px;min-height:24px}
.edu-student-toolbar-actions,.edu-student-controls-footer{grid-column:1/-1}
.edu-student-toolbar-actions button{min-height:38px;padding:8px 12px;border-radius:10px;font-size:12px}
.edu-student-toolbar-actions .edu-refresh-button{height:38px;width:38px;min-width:38px}
.edu-student-controls-footer{padding-top:12px;gap:12px}
#tab-students .edu-student-controls-footer .edu-directory-tabs button{padding:5px 12px;font-size:12px}
@media(max-width:1150px){.edu-student-controls{grid-template-columns:1fr}.edu-student-search{max-width:400px}.edu-student-filters{max-width:760px;width:100%}}
@media(max-width:700px){.edu-student-controls{padding:16px}.edu-student-search{max-width:none}.edu-student-filters{grid-template-columns:1fr}.edu-student-toolbar-actions button{font-size:11px;padding:8px 10px}}


/* Teacher workspace: scoped styles keep admin layouts independent. */
body.edu-teacher-theme{background:#f3f6fb}
.edu-teacher-theme main{width:100%;max-width:1280px!important;margin-inline:auto;padding:28px!important}
.edu-teacher-portal{display:flex;flex-direction:column;gap:20px}
.edu-teacher-portal .school-card{margin:0!important;border:1px solid #e3eaf2;border-radius:16px;padding:24px;background:#fff;box-shadow:0 3px 12px #18395805}
.edu-teacher-portal .edu-teacher-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;min-height:124px}
.edu-teacher-identity{display:flex;align-items:center;gap:16px;min-width:0}
.edu-teacher-avatar{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:16px;background:#e5f5f4;color:#087d7c;font-size:20px;font-weight:800}
.edu-teacher-eyebrow{display:block;color:#07817b;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:5px}
.edu-teacher-identity h1{color:#1d2c43;font-size:24px;font-weight:800;line-height:1.25;margin:0 0 5px}
.edu-teacher-identity p{color:#738397;font-size:13px;margin:0}
.edu-teacher-header-actions{display:flex;align-items:end;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.edu-teacher-header-actions .school-filter{margin:0;gap:5px;font-size:11px;font-weight:700;color:#64748b}
.edu-teacher-header-actions .school-filter input{width:174px;min-height:40px;height:40px;padding:7px 10px;font-size:12px;border-radius:9px;background:#f8fafc;color:#253b53}
.edu-teacher-header-actions .school-button{margin:0;min-height:40px;height:40px;padding:8px 14px;font-size:12px;border-radius:9px;box-shadow:none}
.edu-teacher-header-actions .edu-teacher-logout{background:#fff1f3;color:#c23c57;border-color:#f7cfd9}
.edu-teacher-header-actions .edu-teacher-logout:hover{background:#c23c57;color:#fff}
.edu-teacher-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.edu-teacher-stat{min-height:116px;border-radius:14px;padding:20px;display:flex;align-items:center;justify-content:space-between;color:#fff;box-shadow:0 5px 14px #20394f12;transition:transform .18s,box-shadow .18s}
.edu-teacher-stat:hover{transform:translateY(-3px);box-shadow:0 10px 22px #20394f20}
.edu-teacher-stat>div{display:flex;flex-direction:column;gap:3px}
.edu-teacher-stat span{font-size:12px;font-weight:650;color:#fff}
.edu-teacher-stat strong{font-size:30px;line-height:1.15;color:#fff}
.edu-teacher-stat small{font-size:10px;color:#ffffffe0}
.edu-teacher-stat i{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#ffffff26;font-size:18px}
.edu-teacher-stat.present{background:linear-gradient(115deg,#09957b,#16b09c)}
.edu-teacher-stat.absent{background:linear-gradient(115deg,#db4e76,#ea7190)}
.edu-teacher-stat.late{background:linear-gradient(115deg,#ba7608,#d8971c)}
.edu-teacher-stat.leave{background:linear-gradient(115deg,#5656bc,#7974db)}
.edu-teacher-tabs{display:flex;align-items:center;gap:5px;padding:6px;background:#fff;border:1px solid #e3eaf2;border-radius:12px;overflow-x:auto}
.edu-teacher-tabs .school-button{margin:0;white-space:nowrap;background:transparent;color:#65758b;box-shadow:none;border:0;border-radius:8px;min-height:40px;padding:9px 17px;font-size:12px}
.edu-teacher-tabs .school-button:hover{background:#eff8f7;color:#087d78}
.edu-teacher-tabs .school-button[aria-pressed=true]{background:#0b827d;color:#fff}
.edu-teacher-pane{display:flex;flex-direction:column;gap:18px}.edu-teacher-pane[hidden]{display:none!important}
.edu-teacher-pane h2{font-size:18px;font-weight:750;margin:0 0 8px}
.edu-teacher-pane .school-muted{font-size:12px;margin:0 0 14px}
.edu-teacher-roster-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;background:#f8fafc;border:1px solid #e8eef4;border-radius:12px;margin:16px 0 20px}
.edu-teacher-roster-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:650;color:#66788e}
.edu-teacher-roster-filters select,.edu-teacher-roster-filters input{box-sizing:border-box;min-height:40px;height:40px;border:1px solid #d6e0ea;border-radius:8px;background:#fff;color:#233b52;padding:8px 10px;font:inherit;font-size:12px}
.edu-teacher-roster-filters select{width:220px}.edu-teacher-roster-filters input{width:174px}
.edu-teacher-roster-filters .school-button{min-height:40px;height:40px;margin:0;border-radius:8px;font-size:12px}
.edu-teacher-pane .school-form{max-width:760px;gap:16px}
.edu-teacher-pane>section>select{display:block;max-width:360px;margin:8px 0 14px}
.edu-teacher-portal .school-table th{font-size:10px;letter-spacing:.05em;background:#f6f8fb;color:#738297;padding:12px 16px}
.edu-teacher-portal .school-table td{font-size:12px;padding:13px 16px}.edu-teacher-portal .school-table td:last-child{min-width:100px}
.edu-teacher-portal .school-table td select{min-height:34px;padding:5px 9px;border:1px solid #dbe4ed;border-radius:8px;background:#f8fafc;font-size:12px}
.dark .edu-teacher-portal .school-card,.dark .edu-teacher-tabs{background:#192b40;border-color:#33465e;color:#e2e8f0}
.dark .edu-teacher-identity h1{color:#e2e8f0}.dark .edu-teacher-roster-filters{background:#142337;border-color:#33465e}
.dark .edu-teacher-roster-filters input,.dark .edu-teacher-roster-filters select{background:#192b40;color:#e2e8f0;border-color:#43566d}
@media(max-width:1000px){.edu-teacher-portal .edu-teacher-heading{align-items:flex-start;flex-direction:column;gap:18px}.edu-teacher-header-actions{justify-content:flex-start}}
@media(max-width:700px){.edu-teacher-theme main{padding:16px!important}.edu-teacher-portal{gap:16px}.edu-teacher-summary{grid-template-columns:1fr 1fr;gap:10px}.edu-teacher-stat{padding:16px;min-height:105px}.edu-teacher-stat i{width:32px;height:32px;font-size:14px}.edu-teacher-portal .school-card{padding:18px!important}.edu-teacher-identity h1{font-size:21px}.edu-teacher-tabs .school-button{padding:8px 12px}.edu-teacher-roster-filters{padding:12px}.edu-teacher-roster-filters label{flex:1 1 150px}.edu-teacher-roster-filters select,.edu-teacher-roster-filters input{width:100%}.edu-teacher-header-actions{gap:10px}}
@media(prefers-reduced-motion:reduce){.edu-teacher-stat{transition:none}.edu-teacher-stat:hover{transform:none}}

.edu-teacher-summary[hidden]{display:none!important}.edu-teacher-stat small{overflow-wrap:anywhere;font-size:10px}

.complaint-contact-links{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.complaint-contact-links .school-button{font-size:11px;padding:5px 9px;min-height:30px;margin:0;text-decoration:none}

/* One clean Attendance workspace: compact controls, teacher/student switches and readable exports. */
#tab-attendance .edu-attendance-tabs{display:inline-flex;flex-wrap:wrap;gap:5px;margin-top:14px;padding:5px;border:1px solid #dce8ef;border-radius:13px;background:#f2f7fa;max-width:100%}
#tab-attendance .edu-attendance-tabs .school-button{min-height:38px;height:38px;margin:0;padding:7px 16px;border-radius:9px;font-size:12px;box-shadow:none}
#tab-attendance .edu-attendance-tabs .school-button[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:white}
#tab-attendance .edu-attendance-tabs .school-button[aria-pressed=false]{background:transparent;border-color:transparent;color:#52657e}
#tab-attendance .edu-attendance-panel{padding:22px!important}
#tab-attendance .edu-attendance-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:end;margin:18px 0 10px}
#tab-attendance .edu-attendance-field{display:flex;flex-direction:column;min-width:0;gap:6px;color:#52657e;font-size:11px;font-weight:750}
#tab-attendance .edu-attendance-field input,#tab-attendance .edu-attendance-field select{display:block;width:100%;min-width:0;max-width:100%;height:38px;min-height:38px;padding:6px 9px;border:1px solid #d5e1eb;border-radius:9px;background:#fff;color:#203044;font-size:12px;font-weight:500;box-sizing:border-box}
#tab-attendance .edu-attendance-field input:focus,#tab-attendance .edu-attendance-field select:focus{border-color:#0f7d77;outline:2px solid #0f7d7722}
#tab-attendance .edu-attendance-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
#tab-attendance .edu-attendance-actions .school-button{min-height:38px;height:38px;margin:0;padding:6px 14px;font-size:12px;border-radius:9px}
#tab-attendance .edu-attendance-feedback{min-height:20px;margin:10px 0;font-size:12px}
#tab-attendance .edu-attendance-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 20px}
#tab-attendance .edu-attendance-stat{border:1px solid #e1eaf0;border-radius:11px;padding:11px 13px;background:#f8fbfd;display:flex;align-items:center;justify-content:space-between;gap:8px}
#tab-attendance .edu-attendance-stat span{font-size:11px;font-weight:700;color:#64748b}
#tab-attendance .edu-attendance-stat strong{font-size:19px;font-weight:800;color:#19394d}
#tab-attendance .edu-attendance-stat[data-status=present] strong{color:#0e9b6b}
#tab-attendance .edu-attendance-stat[data-status=absent] strong{color:#dc2626}
#tab-attendance .edu-attendance-stat[data-status=late] strong{color:#c98115}
#tab-attendance .edu-attendance-stat[data-status=leave] strong{color:#6366f1}
#tab-attendance .edu-attendance-subheading{font-size:15px;font-weight:800;color:#223e53;margin:20px 0 8px}
#tab-attendance .school-table-wrap{margin:8px 0 15px}
#tab-attendance .school-table td:last-child{min-width:105px}
#tab-attendance .school-table td select{height:36px;min-height:36px;border:1px solid #d7e2ed;border-radius:8px;padding:6px 8px;font-size:12px;background:#fff;max-width:150px}
#tab-attendance .school-table td .school-button{margin:0;min-height:34px}
.dark #tab-attendance .edu-attendance-tabs{background:#172b3e;border-color:#334b60}
.dark #tab-attendance .edu-attendance-tabs .school-button[aria-pressed=false]{color:#b4cad8}
.dark #tab-attendance .edu-attendance-field{color:#bdcbdb}
.dark #tab-attendance .edu-attendance-field input,.dark #tab-attendance .edu-attendance-field select,.dark #tab-attendance .school-table td select{background:#142338;color:#e2e8f0;border-color:#41546a}
.dark #tab-attendance .edu-attendance-stat{background:#1b3045;border-color:#344a60}
.dark #tab-attendance .edu-attendance-stat strong,.dark #tab-attendance .edu-attendance-subheading{color:#e2e8f0}
@media(max-width:1100px){#tab-attendance .edu-attendance-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#tab-attendance .edu-attendance-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#tab-attendance .edu-attendance-panel{padding:16px!important}#tab-attendance .edu-attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#tab-attendance .edu-attendance-tabs{display:flex}#tab-attendance .edu-attendance-tabs .school-button{flex:1 1 130px;white-space:normal;height:auto}#tab-attendance .edu-attendance-actions{justify-content:stretch}#tab-attendance .edu-attendance-actions .school-button{flex:1 1 125px}#tab-attendance .edu-attendance-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}
@media(max-width:380px){#tab-attendance .edu-attendance-filters{grid-template-columns:minmax(0,1fr)}}

/* Keep teacher summary cards inside their layout without clipping rounded borders. */
.edu-teacher-theme .edu-teacher-portal{min-width:0;max-width:100%;box-sizing:border-box}
.edu-teacher-theme .edu-teacher-summary{width:100%;min-width:0;box-sizing:border-box;padding:3px;gap:16px}
.edu-teacher-theme .edu-teacher-stat{min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden;border:1px solid #ffffff75}
.edu-teacher-theme .edu-teacher-stat>div{min-width:0}
.edu-teacher-theme .edu-teacher-stat small{overflow-wrap:anywhere}
@media(max-width:900px){.edu-teacher-theme .edu-teacher-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.edu-teacher-theme .edu-teacher-summary{gap:10px}.edu-teacher-theme .edu-teacher-stat{padding:14px;min-height:105px}.edu-teacher-theme .edu-teacher-stat strong{font-size:26px}}

.edu-teacher-portal .edu-defaulters-panel[hidden]{display:none!important}
.edu-teacher-portal .edu-defaulters-toggle{align-self:flex-start;margin:4px 0 0;min-height:44px;padding:10px 20px;background:#0b827d;color:#fff;border-radius:10px;font-weight:700}
.edu-teacher-portal .edu-defaulters-panel{width:100%;min-width:0}

.edu-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 6px;margin-left:8px;border-radius:999px;background:#e34b68;color:#fff;font-size:11px;font-weight:800;line-height:1;vertical-align:middle;flex-shrink:0}
.edu-teacher-tabs .edu-count-badge{background:#e34b68;color:white}
#nav-complaints .edu-count-badge{margin-left:auto}

/* Student profile: compact month-by-month fee ledger. */
.edu-profile-fee-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.edu-profile-fee-total{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px}
.edu-profile-fee-total small{color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase}
.edu-profile-fee-total strong{font-size:19px;color:#172b4d}
.edu-profile-fee-scroll{overflow-x:auto;max-width:100%;border:1px solid #e2e8f0;border-radius:14px}
.edu-profile-fee-table{width:100%;min-width:680px;border-collapse:collapse;font-size:14px}
.edu-profile-fee-table th{text-align:left;background:#f4f7fa;color:#64748b;font-size:12px;padding:14px 12px;white-space:nowrap}
.edu-profile-fee-table td{padding:14px 12px;border-top:1px solid #e2e8f0;white-space:nowrap}
.edu-profile-fee-pending{color:#e11d48;font-weight:700}
.edu-profile-fee-status{border-radius:999px;padding:5px 10px;background:#fef2f2;color:#be123c;font-weight:700}
.edu-profile-fee-status.paid{background:#dcfce7;color:#047857}
.edu-profile-fee-status.partial{background:#fff7ed;color:#c2410c}
.edu-profile-fee-actions{display:flex;gap:8px}
.edu-profile-fee-actions button{border:1px solid #dbe4ef;border-radius:9px;padding:8px 10px;background:#f0f7fb;color:#244363;font-weight:600}
@media(max-width:600px){.edu-profile-fee-totals{grid-template-columns:1fr}.edu-profile-fee-total{padding:10px}}

/* Accounts overview: compact clickable monthly financial summaries. */
.school-account-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.school-account-total{min-height:92px!important;display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left!important;white-space:normal!important;padding:14px 16px!important;background:#fff!important;color:#1e293b!important;border:1px solid #dbe3ef!important;border-radius:12px!important;font-weight:750!important}
.school-account-total small{display:block;margin-top:8px;font-weight:400;color:#64748b!important}
.school-account-total:hover,.school-account-total:focus-visible{background:#4338ca!important;color:#fff!important;border-color:#4338ca!important}
.school-account-total:hover small,.school-account-total:focus-visible small{color:#fff!important}
@media(max-width:800px){.school-account-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.school-account-totals{grid-template-columns:1fr}}


/* Teacher portal only: phone-size layout for iOS Safari and Android Chrome.
   Preserve desktop/admin presentation and all existing portal modules. */
@media(max-width:700px){
 html:has(.edu-teacher-theme),body.edu-teacher-theme{max-width:100%;overflow-x:clip}
 .edu-teacher-theme,.edu-teacher-theme *{box-sizing:border-box}
 .edu-teacher-theme main{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px 12px calc(24px + env(safe-area-inset-bottom,0px))!important}
 .edu-teacher-theme .edu-teacher-portal{width:100%;min-width:0;max-width:100%;gap:12px}
 .edu-teacher-theme .edu-teacher-portal .school-card{width:100%;min-width:0;max-width:100%;padding:14px!important;border-radius:16px}
 .edu-teacher-theme .edu-teacher-heading{min-height:0;padding:16px!important;gap:12px}
 .edu-teacher-theme .edu-teacher-identity{width:100%;min-width:0;gap:10px}
 .edu-teacher-theme .edu-teacher-avatar{width:44px;height:44px;flex-basis:44px;border-radius:14px}
 .edu-teacher-theme .edu-teacher-identity h1{font-size:clamp(17px,5vw,22px);overflow-wrap:anywhere}
 .edu-teacher-theme .edu-teacher-identity p{font-size:12px;overflow-wrap:anywhere}
 .edu-teacher-theme .edu-teacher-header-actions{width:100%;justify-content:flex-start;gap:8px}
 .edu-teacher-theme .edu-teacher-header-actions .school-filter{flex:1 1 135px;min-width:0}
 .edu-teacher-theme .edu-teacher-header-actions .school-filter input{width:100%;max-width:100%;min-width:0}
 .edu-teacher-theme .edu-teacher-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0}
 .edu-teacher-theme .edu-teacher-stat{min-width:0;min-height:105px;padding:12px!important;gap:7px;border-radius:15px}
 .edu-teacher-theme .edu-teacher-stat strong{font-size:clamp(20px,6vw,27px);line-height:1.2}
 .edu-teacher-theme .edu-teacher-stat small{font-size:10px;line-height:1.35}
 .edu-teacher-theme .edu-teacher-tabs{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .edu-teacher-theme .edu-teacher-tabs .school-button{flex:0 0 auto;min-height:42px;padding:9px 12px}
 .edu-teacher-theme .edu-teacher-pane,.edu-teacher-theme .edu-teacher-pane>section{min-width:0;max-width:100%}
 .edu-teacher-theme .edu-teacher-roster-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}
 .edu-teacher-theme .edu-teacher-roster-filters label{min-width:0;flex:none}
 .edu-teacher-theme .edu-teacher-roster-filters select,.edu-teacher-theme .edu-teacher-roster-filters input{width:100%;min-width:0;max-width:100%;font-size:16px}
 .edu-teacher-theme .school-form{grid-template-columns:minmax(0,1fr)}
 .edu-teacher-theme input,.edu-teacher-theme select,.edu-teacher-theme textarea{max-width:100%;min-width:0}
 .edu-teacher-theme .school-toolbar{max-width:100%;flex-wrap:wrap}
 .edu-teacher-theme .school-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .edu-teacher-theme .school-table{width:max-content;min-width:100%}
 .edu-teacher-theme .school-table th,.edu-teacher-theme .school-table td{padding:10px 12px}
}
@media(max-width:380px){
 .edu-teacher-theme main{padding-left:9px!important;padding-right:9px!important}
 .edu-teacher-theme .edu-teacher-portal .school-card{padding:11px!important}
 .edu-teacher-theme .edu-teacher-summary{gap:7px}
 .edu-teacher-theme .edu-teacher-stat{padding:10px!important}
 .edu-teacher-theme .edu-teacher-roster-filters{grid-template-columns:minmax(0,1fr)}
}


/* Approved teacher-only mobile home; desktop layout remains unchanged. */
.edu-teacher-mobile-home,.edu-teacher-mobile-bottom{display:none}
@media(max-width:700px){
 .edu-teacher-theme{background:linear-gradient(145deg,#4931d4 0%,#1760d9 42%,#f4f6fc 42%)!important}
 .edu-teacher-theme .edu-teacher-portal{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .edu-teacher-theme .edu-teacher-mobile-home{display:flex;flex-direction:column;gap:14px;min-width:0;padding:12px 0}
 .edu-teacher-theme .edu-teacher-mobile-home[hidden]{display:none!important}
 .edu-teacher-theme .edu-teacher-mobile-brand{display:flex;flex-direction:column;color:white;padding:2px 12px 8px;gap:2px}
 .edu-teacher-theme .edu-teacher-mobile-brand strong{font-size:23px;line-height:1.1}
 .edu-teacher-theme .edu-teacher-mobile-brand span{font-size:12px;opacity:.9}
 .edu-teacher-theme .edu-teacher-heading{border-radius:22px!important;box-shadow:0 8px 20px #182d5b15!important}
 .edu-teacher-theme .edu-teacher-mobile-home h2{margin:10px 3px 0;color:#1e2a44;font-size:17px;font-weight:800}
 .edu-teacher-theme .edu-teacher-mobile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;background:#fff;border-radius:22px;box-shadow:0 6px 18px #182d5b12}
 .edu-teacher-theme .edu-teacher-mobile-tile.school-button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-width:0;min-height:116px;margin:0!important;padding:13px 7px!important;border:1px solid #e8ecf4!important;border-radius:17px!important;background:#fff!important;color:#1b2b49!important;white-space:normal!important;text-align:center;font-size:12px!important;font-weight:800;box-shadow:0 3px 9px #162d5510}
 .edu-teacher-theme .edu-teacher-mobile-tile i{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#edeaff;color:#573be5;font-size:20px}
 .edu-teacher-theme .edu-teacher-mobile-tile:nth-child(2n) i{background:#e6f7f4;color:#079b87}
 .edu-teacher-theme .edu-teacher-mobile-bottom{position:fixed;bottom:0;left:0;right:0;z-index:90;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:9px 6px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e6eaf4;box-shadow:0 -6px 20px #14294b16}
 .edu-teacher-theme .edu-teacher-mobile-bottom .school-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:47px;padding:5px 2px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#64748b!important;font-size:10px!important;white-space:normal!important}
 .edu-teacher-theme .edu-teacher-mobile-bottom i{font-size:19px;color:#5041dd}
 .edu-teacher-theme .edu-teacher-tabs,.edu-teacher-theme .edu-teacher-pane{display:none}
 .edu-teacher-theme .edu-teacher-portal.edu-teacher-mobile-section-open .edu-teacher-tabs{display:flex}
 .edu-teacher-theme .edu-teacher-portal.edu-teacher-mobile-section-open .edu-teacher-pane:not([hidden]){display:flex}
 .edu-teacher-theme .edu-teacher-portal.edu-teacher-mobile-section-open .edu-teacher-mobile-home{display:none}
}
/* Attendance: Mark Attendance / Attendance History switch */
#tab-attendance .edu-attendance-modes{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 6px}
#tab-attendance .edu-attendance-modes .school-button{min-height:44px;height:auto;margin:0;padding:10px 22px;border-radius:12px;font-size:14px;font-weight:700}
#tab-attendance .edu-attendance-modes .school-button[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
#tab-attendance .edu-attendance-modes .school-button[aria-pressed=false]{background:#fff;border:1px solid #cfdde6;color:#3b4d63}
@media(max-width:680px){#tab-attendance .edu-attendance-modes .school-button{flex:1 1 0;padding:10px 12px}}
/* Attendance: Mark Attendance roster */
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 2px;padding:12px 16px;border:1px solid #dce8ef;border-radius:14px;background:#f5fafb}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-summary{margin:0;color:#52657e;font-size:14px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-summary strong{color:#0f2a3d;font-size:18px;margin-right:2px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-bulk{display:flex;gap:8px;flex-wrap:wrap}
.edu-teacher-portal .edu-roster-share{flex-basis:100%;display:grid;gap:8px;margin-top:10px;padding:12px;border-radius:14px;background:#ecfdf5;border:1px solid #bbf7d0}
.edu-teacher-portal .edu-roster-share[hidden]{display:none}
.edu-teacher-portal .edu-roster-share strong{color:#166534;font-size:14px}
.edu-teacher-portal .edu-roster-share button{justify-content:flex-start;text-align:left;white-space:normal}
.edu-teacher-portal .edu-roster-whatsapp{background:#25d366!important;color:#fff!important;border-color:#25d366!important}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-bulk .school-button{min-height:40px;height:40px;margin:0;padding:8px 16px;border-radius:10px;font-size:13px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-all-present{background:#ecfdf3!important;border:1px solid #a7e3bf!important;color:#11683f!important}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-bulk .school-button:disabled{opacity:.5;cursor:not-allowed}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-done{display:grid;gap:4px;margin:14px 0;padding:22px;border:1px dashed #a7e3bf;border-radius:14px;background:#f3fcf6;color:#11683f;text-align:center}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-done span{color:#52657e;font-size:13px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row td{padding:14px 16px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row{box-shadow:inset 4px 0 0 transparent;transition:background .15s,box-shadow .15s}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row[data-status=present]{background:#f3fcf6;box-shadow:inset 4px 0 0 #16a34a}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row[data-status=absent]{background:#fef5f5;box-shadow:inset 4px 0 0 #dc2626}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row[data-status=late]{background:#fffaf0;box-shadow:inset 4px 0 0 #d97706}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row[data-status=leave]{background:#f4f6ff;box-shadow:inset 4px 0 0 #4f46e5}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-name{display:flex;align-items:center;gap:12px;min-width:230px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-avatar{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e0f2f1;color:#0f7d77;font-weight:800;font-size:15px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-who{display:grid;gap:4px;min-width:0}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-who strong{color:#0f2a3d;font-size:14px;text-transform:capitalize}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#6b7c93;font-size:12px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-meta .edu-attendance-fee-badge{margin-left:0!important;padding:2px 9px!important;font-size:11px!important}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-place{color:#3b4d63;font-weight:600;white-space:nowrap}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-choices{display:inline-flex;gap:6px;flex-wrap:wrap}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill{min-width:72px;height:36px;padding:0 12px;border:1px solid #d5e0e8;border-radius:999px;background:#fff;color:#52657e;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill:hover{border-color:#9fb3c4;color:#0f2a3d}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill:focus-visible{outline:3px solid #99d5d1;outline-offset:2px}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill[data-status=present][aria-checked=true]{background:#16a34a;border-color:#16a34a;color:#fff}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill[data-status=absent][aria-checked=true]{background:#dc2626;border-color:#dc2626;color:#fff}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill[data-status=late][aria-checked=true]{background:#d97706;border-color:#d97706;color:#fff}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill[data-status=leave][aria-checked=true]{background:#4f46e5;border-color:#4f46e5;color:#fff}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-row td:last-child{min-width:110px;text-align:right}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-save{min-height:36px;height:36px;margin:0;padding:6px 18px;border-radius:10px;font-size:13px}
@media(max-width:760px){
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster .school-table{min-width:0}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster thead{display:none}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row{display:grid;grid-template-columns:1fr auto;grid-template-areas:"name name" "place save" "status status";gap:10px 12px;padding:14px;border-top:1px solid #e7edf3}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row td{display:block;padding:0;border:0;min-width:0;text-align:left}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row td.edu-roster-name{grid-area:name;display:flex}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row td.edu-roster-place{grid-area:place;align-self:center;font-size:12px;color:#6b7c93}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row td:nth-child(3){grid-area:status}
:is(#tab-attendance,.edu-teacher-portal) .edu-attendance-roster tr.edu-roster-row td:last-child{grid-area:save;min-width:0}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-choices{display:grid;grid-template-columns:repeat(4,1fr);width:100%}
:is(#tab-attendance,.edu-teacher-portal) .edu-status-pill{min-width:0;padding:0 4px;font-size:12px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-toolbar{padding:12px}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-bulk{width:100%}
:is(#tab-attendance,.edu-teacher-portal) .edu-roster-bulk .school-button{flex:1 1 0}
}
/* Classes & Timetable: section switch */
.edu-class-tabs{display:inline-flex!important;flex-wrap:wrap;gap:5px;margin:4px 0 18px;padding:5px;border:1px solid #dce8ef;border-radius:14px;background:#fff;max-width:100%}
.edu-class-tabs .school-button{min-height:42px;height:auto;margin:0;padding:9px 20px;border-radius:10px;font-size:14px;box-shadow:none}
.edu-class-tabs .school-button[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-class-tabs .school-button[aria-pressed=false]{background:transparent;border-color:transparent;color:#52657e}
.edu-class-tabs .school-button[aria-pressed=false]:hover{background:#f2f7fa;color:#0f2a3d}
/* Classes & Sections: one-line add form */
.edu-class-add-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;align-items:end;padding:16px;border:1px solid #dce8ef;border-radius:14px;background:#f5fafb}
.edu-class-add-form [role=status]{order:10;margin:0;min-height:0}
.edu-class-add-form [role=status]:empty{display:none}
.edu-class-add-form .school-button{min-height:44px;margin:0;padding:10px 22px;white-space:nowrap}
.edu-class-summary{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 12px}
.edu-class-summary span{padding:5px 12px;border-radius:999px;background:#e0f2f1;color:#0f5f5a;font-size:13px;font-weight:700}
.edu-class-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;align-items:start}
.edu-class-card{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,42,61,.04);transition:box-shadow .15s,border-color .15s}
.edu-class-card:hover{border-color:#b9d7d5;box-shadow:0 6px 18px rgba(15,42,61,.07)}
.edu-class-card-head{display:flex;align-items:center;gap:12px}
.edu-class-card-head h3{margin:0;font-size:16px;font-weight:800;color:#0f2a3d}
.edu-class-badge{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#0f7d77,#14a39b);color:#fff;font-weight:800;font-size:15px}
.edu-class-count{color:#6b7c93;font-size:12px;font-weight:600}
.edu-section-list{display:grid;gap:8px}
.edu-section-chip{display:flex;align-items:center;gap:6px;padding:7px 8px 7px 12px;border:1px solid #e7edf3;border-radius:12px;background:#f8fafc}
.edu-section-name{flex:1;font-weight:700;color:#24384f;font-size:14px}
.edu-section-chip .school-button{min-height:30px;height:30px;margin:0;padding:0 11px;border-radius:8px;font-size:12px}
.edu-class-add-section{align-self:flex-start;min-height:34px!important;height:34px;margin:0!important;padding:0 14px!important;border-radius:9px!important;font-size:12px!important;background:#fff!important;border:1px dashed #9cc9c5!important;color:#0f7d77!important}
.edu-class-empty{grid-column:1/-1;display:grid;gap:4px;padding:28px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:#52657e}
.edu-class-empty strong{color:#0f2a3d;font-size:15px}
/* Class Timetable: compact add-period form */
.edu-period-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:16px;border:1px solid #dce8ef;border-radius:14px;background:#f5fafb}
.edu-period-form .school-button{grid-column:1/-1;justify-self:end;min-height:44px;margin:0;padding:10px 26px}
.edu-period-form [role=status]:empty{display:none}
.dark .edu-class-tabs,.dark .edu-class-card,.dark .edu-class-add-section{background:#1e293b!important;border-color:#334155!important}
.dark .edu-class-add-form,.dark .edu-period-form,.dark .edu-section-chip{background:#0f172a;border-color:#334155}
.dark .edu-class-card-head h3,.dark .edu-section-name{color:#e2e8f0}
@media(max-width:900px){.edu-period-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){
.edu-class-tabs{display:flex!important;width:100%}
.edu-class-tabs .school-button{flex:1 1 0;padding:9px 10px;font-size:13px}
.edu-class-add-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.edu-class-add-form .school-button{grid-column:1/-1;width:100%}
.edu-period-form{grid-template-columns:minmax(0,1fr)!important}
.edu-period-form .school-button{width:100%}
.edu-class-grid{grid-template-columns:minmax(0,1fr)}
}
/* Class Timetable: weekly board */
.edu-period-toggle{min-height:42px!important;margin:4px 0 0!important;padding:9px 20px!important;border-radius:10px!important}
.edu-period-panel[hidden]{display:none}
.edu-period-panel .edu-period-form{margin-top:12px}
.edu-tt-filters{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:20px 0 14px}
.edu-tt-class{display:grid;gap:6px;font-size:13px;font-weight:650;min-width:220px}
.edu-tt-class select{min-height:42px;padding:9px 12px;border:1px solid #d5e0e8;border-radius:10px;background:#fff;font:inherit}
.edu-tt-days{display:flex;gap:6px;flex-wrap:wrap}
.edu-tt-day{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid #d5e0e8;border-radius:999px;background:#fff;color:#52657e;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.edu-tt-day b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef3f7;color:#3b4d63;font-size:11px}
.edu-tt-day:hover{border-color:#9fb3c4;color:#0f2a3d}
.edu-tt-day[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-tt-day[aria-pressed=true] b{background:rgba(255,255,255,.22);color:#fff}
.edu-tt-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:start}
.edu-tt-board.single-day{grid-template-columns:minmax(0,1fr)}
.edu-tt-board.single-day .edu-tt-day-column{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.edu-tt-board.single-day .edu-tt-day-head{grid-column:1/-1}
.edu-tt-day-column{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;min-width:0}
.edu-tt-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:2px 4px 4px;border-bottom:1px solid #e2e8f0}
.edu-tt-day-head strong{color:#0f2a3d;font-size:14px}
.edu-tt-day-head span{color:#6b7c93;font-size:12px;font-weight:600}
.edu-tt-none{margin:6px 4px;color:#94a3b8;font-size:12px}
.edu-tt-period{display:grid;gap:6px;padding:12px;border:1px solid #e2e8f0;border-left:4px solid #0f7d77;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(15,42,61,.04)}
.edu-tt-time{color:#0f7d77;font-size:12px;font-weight:800;letter-spacing:.02em}
.edu-tt-period h4{margin:0;color:#0f2a3d;font-size:15px;font-weight:800}
.edu-tt-teacher{color:#3b4d63;font-size:13px}
.edu-tt-meta{display:flex;gap:6px;flex-wrap:wrap}
.edu-tt-class-chip,.edu-tt-room{padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700}
.edu-tt-class-chip{background:#e0f2f1;color:#0f5f5a}
.edu-tt-room{background:#eef2ff;color:#4338ca}
.edu-tt-actions{display:flex;gap:6px;margin-top:2px}
.edu-tt-actions .school-button{min-height:30px;height:30px;margin:0;padding:0 11px;border-radius:8px;font-size:12px}
.edu-tt-empty{grid-column:1/-1;display:grid;gap:4px;padding:28px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:#52657e}
.edu-tt-empty strong{color:#0f2a3d;font-size:15px}
.dark .edu-tt-day-column{background:#0f172a;border-color:#334155}
.dark .edu-tt-period,.dark .edu-tt-day,.dark .edu-tt-class select{background:#1e293b;border-color:#334155;color:#e2e8f0}
.dark .edu-tt-period h4,.dark .edu-tt-day-head strong{color:#e2e8f0}
@media(max-width:600px){
.edu-tt-filters{align-items:stretch}
.edu-tt-class{min-width:0;width:100%}
.edu-tt-days{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px}
.edu-tt-day{flex:none}
.edu-tt-board{grid-template-columns:minmax(0,1fr)}
.edu-period-toggle{width:100%}
}
/* Staff Management */
.edu-staff-page{display:grid;gap:16px}
.edu-staff-page>.school-card{margin:0!important}
.edu-staff-header{display:flex!important;flex-direction:column;align-items:flex-start;gap:14px}
.edu-staff-heading h2{margin:0}
.edu-staff-heading p{margin:4px 0 0}
.edu-staff-add{min-height:44px!important;margin:0!important;padding:10px 22px!important;border-radius:12px!important;font-size:14px!important;white-space:nowrap}
.edu-staff-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.edu-staff-stat{display:grid;gap:6px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,42,61,.04)}
.edu-staff-stat span{color:#6b7c93;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.edu-staff-stat strong{color:#0f2a3d;font-size:20px;font-weight:800;white-space:nowrap}
.edu-staff-stat.good strong{color:#15803d}
.edu-staff-stat.warn strong{color:#b45309}
.edu-staff-stat.due strong{color:#be123c}
.edu-staff-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:end}
.edu-staff-form .school-button{min-height:44px;margin:0}
.edu-staff-form [role=status]:empty{display:none}
.edu-staff-page .school-table{min-width:700px}
.edu-staff-page .school-table td{padding:14px 16px}
.edu-staff-page .school-table th{padding:13px 16px}
.edu-staff-who{display:flex;align-items:center;gap:12px;min-width:200px}
.edu-staff-who div{display:grid;gap:3px;min-width:0}
.edu-staff-who strong{color:#0f2a3d;font-size:14px;font-weight:700}
.edu-staff-who span:not(.edu-staff-avatar){color:#6b7c93;font-size:12px}
.edu-staff-who.compact{min-width:150px}
.edu-staff-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e0f2f1;color:#0f7d77;font-weight:800;font-size:14px}
.edu-staff-money{font-weight:700;color:#24384f;white-space:nowrap;font-variant-numeric:tabular-nums}
.edu-staff-money.good{color:#15803d}
.edu-staff-money.warn{color:#b45309}
.edu-staff-money.due{color:#be123c}
.edu-staff-money.muted{color:#94a3b8;font-weight:600}
.edu-staff-status,.edu-staff-kind{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.edu-staff-status.paid,.edu-staff-kind.good{background:#dcfce7;color:#166534}
.edu-staff-status.partial,.edu-staff-kind.warn{background:#fef3c7;color:#92400e}
.edu-staff-status.unpaid{background:#ffe4e6;color:#be123c}
.edu-staff-status.archived{background:#f1f5f9;color:#64748b}
.edu-staff-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
.edu-staff-actions .school-button{min-height:34px;height:34px;margin:0;padding:0 12px;border-radius:9px;font-size:12px;white-space:nowrap}
.edu-staff-actions .school-button:disabled{opacity:.45;cursor:not-allowed}
.edu-staff-page .school-table td:last-child{min-width:170px}
.edu-staff-actions{align-items:center}
.edu-staff-actions .school-action-trigger{width:34px;height:34px;min-height:34px;border-radius:9px;flex:none}
.edu-staff-date{color:#52657e;white-space:nowrap}
.edu-staff-empty{display:grid;gap:4px;padding:28px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:#52657e;margin-top:12px}
.edu-staff-empty strong{color:#0f2a3d;font-size:15px}
.dark .edu-staff-stat{background:#1e293b;border-color:#334155}
.dark .edu-staff-stat strong,.dark .edu-staff-who strong{color:#e2e8f0}
@media(max-width:1100px){.edu-staff-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.edu-staff-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
.edu-staff-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.edu-staff-stat strong{font-size:17px}
.edu-staff-add{width:100%}
.edu-staff-form{grid-template-columns:minmax(0,1fr)!important}
.edu-staff-list .school-table{min-width:0}
.edu-staff-list thead{display:none}
.edu-staff-list tr.edu-staff-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:14px;border-top:1px solid #e7edf3}
.edu-staff-list tr.edu-staff-row td{display:block;padding:0!important;border:0;min-width:0!important}
.edu-staff-list tr.edu-staff-row td.edu-staff-who{grid-column:1/-1;display:flex}
.edu-staff-stat:last-child{grid-column:1/-1}
.edu-staff-list tr.edu-staff-row td.edu-staff-money::before{display:block;color:#6b7c93;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.edu-staff-list tr.edu-staff-row td:nth-child(2)::before{content:'Salary'}
.edu-staff-list tr.edu-staff-row td:nth-child(3)::before{content:'Paid'}
.edu-staff-list tr.edu-staff-row td:nth-child(4)::before{content:'Advance'}
.edu-staff-list tr.edu-staff-row td:nth-child(5)::before{content:'Remaining'}
.edu-staff-list tr.edu-staff-row td:nth-child(6){grid-column:1/-1}
.edu-staff-list tr.edu-staff-row td:last-child{grid-column:1/-1}
.edu-staff-actions{justify-content:stretch}
.edu-staff-actions .school-button{flex:1 1 0}
}
/* Staff payment history: toggle, filters, totals */
.edu-staff-header-actions{display:flex;gap:10px;flex-wrap:wrap}
.edu-staff-history-toggle{background:#fff!important;border:1px solid #cfdde6!important;color:#0f5f5a!important}
.edu-staff-history-toggle.active{background:#e0f2f1!important;border-color:#9cc9c5!important}
.edu-staff-history[hidden]{display:none!important}
.edu-staff-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 4px}
.edu-staff-filters label{display:grid;gap:6px;font-size:13px;font-weight:650;color:#3b4d63}
.edu-staff-filters input,.edu-staff-filters select{width:100%;min-height:42px;padding:9px 12px;border:1px solid #d5e0e8;border-radius:10px;background:#fff;font:inherit;color:#0f2a3d}
.edu-staff-history-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:12px 0}
.edu-staff-history-actions .school-button{min-height:40px;height:40px;margin:0;padding:0 16px;border-radius:10px;font-size:13px}
.edu-staff-history-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 6px}
.edu-staff-history-total{display:grid;gap:4px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.edu-staff-history-total span{color:#6b7c93;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.edu-staff-history-total strong{color:#0f2a3d;font-size:17px;font-weight:800;white-space:nowrap}
.edu-staff-history-total.good strong{color:#15803d}
.edu-staff-history-total.warn strong{color:#b45309}
.dark .edu-staff-filters input,.dark .edu-staff-filters select,.dark .edu-staff-history-total,.dark .edu-staff-history-toggle{background:#0f172a!important;border-color:#334155!important;color:#e2e8f0!important}
@media(max-width:900px){.edu-staff-filters,.edu-staff-history-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.edu-staff-header-actions{width:100%}.edu-staff-header-actions .school-button{flex:1 1 0}.edu-staff-history-actions .school-button{flex:1 1 0}}
.edu-staff-page [hidden]{display:none!important}
/* Teachers & Salary page (shares the Staff page styles) */
.edu-teacher-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.edu-teacher-controls .school-filter{display:grid;gap:6px;margin:0;font-size:13px;font-weight:650;color:#3b4d63}
.edu-teacher-controls .school-filter input{min-height:44px;padding:9px 12px;border:1px solid #d5e0e8;border-radius:10px;background:#fff;font:inherit}
.edu-teacher-list .school-table{min-width:1020px}
.edu-teacher-days{display:inline-block;padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:700;white-space:nowrap}
.edu-teacher-days.has{background:#ffe4e6;color:#be123c}
.edu-teacher-na{color:#94a3b8;font-size:12px}
.edu-teacher-deduction{white-space:nowrap}
.edu-teacher-waive{display:inline-flex!important;align-items:center;min-height:24px!important;height:24px;margin:0 0 0 8px!important;padding:0 9px!important;border-radius:999px!important;font-size:11px!important;background:#fff!important;border:1px solid #fbb6c1!important;color:#be123c!important;vertical-align:middle}
.edu-teacher-sub{display:block;margin-top:3px;color:#15803d;font-size:11px;font-weight:600}
.edu-teacher-note{margin:12px 2px 0;font-size:12px}
.dark .edu-teacher-controls .school-filter input{background:#0f172a;border-color:#334155;color:#e2e8f0}
@media(max-width:700px){
.edu-teacher-controls{width:100%}
.edu-teacher-controls .school-filter{width:100%}
.edu-teacher-list .school-table{min-width:0}
.edu-teacher-list tr.edu-staff-row td:nth-child(n+2)::before{display:block;color:#6b7c93;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.edu-teacher-list tr.edu-staff-row td:nth-child(2)::before{content:'Salary'}
.edu-teacher-list tr.edu-staff-row td:nth-child(3)::before{content:'Absent'}
.edu-teacher-list tr.edu-staff-row td:nth-child(4)::before{content:'Deduction'}
.edu-teacher-list tr.edu-staff-row td:nth-child(5)::before{content:'Advance'}
.edu-teacher-list tr.edu-staff-row td:nth-child(6)::before{content:'Net Salary'}
.edu-teacher-list tr.edu-staff-row td:nth-child(7)::before{content:'Paid'}
.edu-teacher-list tr.edu-staff-row td:nth-child(8)::before{content:'Remaining'}
.edu-teacher-list tr.edu-staff-row td:nth-child(9),.edu-teacher-list tr.edu-staff-row td:nth-child(10){grid-column:1/-1}
.edu-teacher-list tr.edu-staff-row td:nth-child(9)::before,.edu-teacher-list tr.edu-staff-row td:nth-child(10)::before{content:none}
}
@media(max-width:700px){.edu-staff-header-actions{flex-wrap:nowrap}.edu-staff-header-actions .edu-staff-add{width:auto;min-width:0;padding:10px 12px!important;font-size:13px!important}}
/* Teacher payment history */
.edu-teacher-history-filters{grid-template-columns:repeat(5,minmax(0,1fr))}
.edu-staff-kind.info{background:#e0e7ff;color:#3730a3}
.edu-staff-kind.muted{background:#f1f5f9;color:#64748b}
.edu-teacher-reversed{text-decoration:line-through;color:#94a3b8!important}
@media(max-width:1100px){.edu-teacher-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.edu-teacher-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Result Cards */
.edu-result-page{display:grid;gap:16px}
.edu-result-page>.school-card{margin:0!important}
.edu-result-page [hidden]{display:none!important}
.edu-result-tabs{display:inline-flex;flex-wrap:wrap;gap:5px;padding:5px;border:1px solid #dce8ef;border-radius:14px;background:#fff;max-width:100%}
.edu-result-tabs .school-button{min-height:42px;height:auto;margin:0;padding:9px 18px;border-radius:10px;font-size:14px;box-shadow:none}
.edu-result-tabs .school-button[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-result-tabs .school-button[aria-pressed=false]{background:transparent!important;border-color:transparent!important;color:#52657e!important}
.edu-result-tabs .school-button[aria-pressed=false]:hover{background:#f2f7fa!important;color:#0f2a3d!important}
.edu-result-step{margin-top:16px;padding:18px;border:1px solid #dce8ef;border-radius:16px;background:#f8fbfc}
.edu-result-step-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#0f2a3d;font-size:15px;font-weight:800}
.edu-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.edu-result-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.edu-result-grid.five{grid-template-columns:1.1fr 1fr 1.3fr .9fr .9fr}
.edu-result-field{display:grid;gap:6px;font-size:13px;font-weight:650;color:#3b4d63;min-width:0}
.edu-result-field input,.edu-result-field select{width:100%;min-width:0;min-height:44px;padding:9px 12px;border:1px solid #d5e0e8;border-radius:10px;background:#fff;font:inherit;color:#0f2a3d}
.edu-result-field input:focus,.edu-result-field select:focus{outline:3px solid #b6e3df;border-color:#0f7d77}
.edu-result-info{margin:10px 2px 0;font-size:13px}
.edu-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.edu-result-actions .school-button{min-height:44px;margin:0;padding:10px 20px;border-radius:11px}
.edu-result-preview:not(:empty){margin-top:16px;padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.edu-result-preview h3{margin:0 0 12px;color:#0f2a3d;font-size:16px;font-weight:800}
.edu-result-preview .school-table{margin:6px 0 10px}
.edu-result-pending-wrap{margin-top:16px}
.edu-result-count{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 8px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:12px}
.edu-result-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.edu-result-chip{display:grid;gap:2px;text-align:left;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.edu-result-chip strong{color:#0f2a3d;font-size:14px;text-transform:capitalize}
.edu-result-chip span{color:#6b7c93;font-size:12px}
.edu-result-chip:hover{border-color:#9cc9c5;box-shadow:0 4px 12px rgba(15,42,61,.06)}
.edu-result-chip[aria-pressed=true]{border-color:#0f7d77;background:#f0faf9;box-shadow:inset 3px 0 0 #0f7d77}
.edu-result-filters{margin:12px 0}
.edu-result-generated-list{display:grid;gap:8px}
.edu-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.edu-result-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.edu-result-who strong{color:#0f2a3d;font-size:14px}
.edu-result-meta{color:#6b7c93;font-size:12px}
.edu-result-year{padding:3px 10px;border-radius:999px;background:#e0f2f1;color:#0f5f5a;font-size:12px;font-weight:700}
.edu-result-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.edu-result-row-actions .school-button{min-height:34px;height:34px;margin:0;padding:0 12px;border-radius:9px;font-size:12px}
.edu-result-subject-form{margin:14px 0 10px}
.edu-result-subjects>.school-button{min-height:42px;margin:0}
.edu-result-subject-list{display:grid;gap:8px;margin-top:14px}
.edu-result-subject-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;border:1px solid #e7edf3;border-radius:12px;background:#f8fafc;font-weight:600;color:#24384f}
.edu-result-subject-chip .school-button{min-height:30px;height:30px;margin:0;padding:0 11px;border-radius:8px;font-size:12px}
.edu-result-subject-chip.edu-result-subject-removed{opacity:.6;border-style:dashed}
.dark .edu-result-tabs,.dark .edu-result-chip,.dark .edu-result-row,.dark .edu-result-preview:not(:empty){background:#1e293b;border-color:#334155}
.dark .edu-result-step,.dark .edu-result-subject-chip{background:#0f172a;border-color:#334155}
.dark .edu-result-field input,.dark .edu-result-field select{background:#0f172a;border-color:#334155;color:#e2e8f0}
.dark .edu-result-step-title,.dark .edu-result-chip strong,.dark .edu-result-who strong{color:#e2e8f0}
@media(max-width:1000px){.edu-result-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
.edu-result-tabs{display:flex;width:100%}
.edu-result-tabs .school-button{flex:1 1 0;padding:9px 6px;font-size:12px}
.edu-result-grid,.edu-result-grid.three,.edu-result-grid.five{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.edu-result-grid.three>:last-child{grid-column:1/-1}
.edu-result-actions .school-button{flex:1 1 0;padding:10px 8px}
.edu-result-step{padding:14px}
.edu-result-chips{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
/* Generated result cards */
.edu-result-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 2px}
.edu-result-summary .edu-staff-history-total.due strong{color:#be123c}
.edu-result-generated .edu-result-info:empty{display:none}
.edu-result-generated .school-table{min-width:620px}
.edu-result-generated .school-table td{padding:12px 16px}
.edu-result-generated .school-table th{padding:12px 16px}
.edu-result-generated .school-table td:last-child{min-width:150px}
@media(max-width:700px){
.edu-result-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.edu-result-generated .school-table{min-width:0}
.edu-result-generated thead{display:none}
.edu-result-generated tr.edu-result-table-row{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:12px;border-top:1px solid #e7edf3}
.edu-result-generated tr.edu-result-table-row td{display:block;padding:0!important;border:0;min-width:0!important}
.edu-result-generated tr.edu-result-table-row td:first-child{grid-column:1/-1;display:flex}
.edu-result-generated tr.edu-result-table-row td:nth-child(2){grid-column:1/-1}
.edu-result-generated tr.edu-result-table-row td:nth-child(3),.edu-result-generated tr.edu-result-table-row td:nth-child(4){font-size:12px;color:#6b7c93}
.edu-result-generated tr.edu-result-table-row td:nth-child(4)::before{content:'Roll '}
.edu-result-generated tr.edu-result-table-row td:last-child{grid-column:1/-1}
.edu-result-generated .edu-staff-actions .edu-staff-pay{flex:1 1 0}
}
@media(max-width:700px){.edu-result-tabs{flex-wrap:nowrap}.edu-result-tabs .school-button{min-width:0;white-space:normal;line-height:1.2;padding:8px 4px;font-size:12px}}
/* School Reports */
.edu-report-range{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.edu-report-range .edu-result-field{width:190px}
.edu-report-load{min-height:44px!important;margin:0!important;padding:10px 20px!important;border-radius:11px!important}
.edu-report-quick{display:flex;gap:6px;flex-wrap:wrap;margin-top:-4px}
.edu-report-chip{min-height:32px;padding:0 12px;border:1px solid #d5e0e8;border-radius:999px;background:#fff;color:#3b4d63;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.edu-report-chip:hover{border-color:#0f7d77;color:#0f7d77}
.edu-report-summary{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.edu-report-summary .edu-staff-stat strong{font-size:18px}
.edu-report-sections{display:grid;gap:16px}
.edu-report-panel{margin:0!important}
.edu-report-panel>.school-table-wrap{margin:10px 0}
.edu-report-sub{margin:18px 0 8px!important}
.edu-report-tiles{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;margin:10px 0}
.edu-report-strong{font-weight:700;color:#0f2a3d}
.edu-report-status{display:inline-block;min-width:28px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;text-align:center;white-space:nowrap}
.edu-report-status.good{background:#dcfce7;color:#166534}
.edu-report-status.warn{background:#fef3c7;color:#92400e}
.edu-report-status.due{background:#ffe4e6;color:#be123c}
.edu-report-status.info{background:#e0e7ff;color:#3730a3}
.edu-report-status.muted{background:#f1f5f9;color:#64748b}
.edu-report-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.edu-report-record{display:grid;gap:6px;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.edu-report-record span{color:#6b7c93;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.edu-report-record strong{color:#0f2a3d;font-size:24px;font-weight:800}
.edu-report-record .school-button{justify-self:start;min-height:40px;margin:4px 0 0;padding:0 16px;border-radius:10px;font-size:13px}
.edu-report-page .edu-result-info:empty{display:none}
.dark .edu-report-chip,.dark .edu-report-record{background:#1e293b;border-color:#334155;color:#e2e8f0}
@media(max-width:1100px){.edu-report-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){
.edu-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.edu-report-summary .edu-staff-stat:last-child{grid-column:auto}
.edu-report-range .edu-result-field{width:calc(50% - 6px)}
.edu-report-load{width:100%}
.edu-report-tabs{overflow-x:auto}
.edu-report-tabs .school-button{flex:0 0 auto!important;padding:8px 12px!important}
.edu-report-records{grid-template-columns:minmax(0,1fr)}
}
.edu-staff-history-total.due strong{color:#be123c}
/* School Reports: overview cards inside their own tab, clickable */
.edu-report-panel .edu-report-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:12px}
.edu-report-link{text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.edu-report-link:hover{border-color:#9cc9c5;box-shadow:0 8px 20px rgba(15,42,61,.08);transform:translateY(-1px)}
.edu-report-link:focus-visible{outline:3px solid #b6e3df;outline-offset:2px}
@media(max-width:700px){.edu-report-panel .edu-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* School Reports: aligned filter row + tabs row */
.edu-report-header{gap:16px!important}
.edu-report-range{display:grid!important;grid-template-columns:repeat(3,minmax(0,220px)) auto;align-items:end;gap:12px;padding:14px;border:1px solid #dce8ef;border-radius:14px;background:#f5fafb;width:100%;box-sizing:border-box}
.edu-report-range .edu-result-field{width:auto!important}
select.edu-report-quick{display:block;margin:0;width:100%}
.edu-report-range .edu-report-load{height:44px;min-height:44px!important;align-self:end;white-space:nowrap}
.edu-report-tabs{width:100%;box-sizing:border-box}
@media(max-width:900px){.edu-report-range{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-report-range .edu-report-load{grid-column:1/-1;width:100%}}
@media(max-width:700px){.edu-report-range .edu-result-field{width:auto!important}}
.edu-report-range{grid-template-columns:repeat(3,minmax(0,220px)) max-content;justify-content:start}
.edu-report-tabs{width:auto;max-width:100%}
@media(max-width:900px){.edu-report-range{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}}
/* Records & Gender */
.edu-report-status.pink{background:#fce7f3;color:#9d174d}
.edu-staff-history-total.info strong{color:#1d4ed8}
.edu-staff-history-total.pink strong{color:#be185d}
.edu-staff-history-total.warn strong{color:#b45309}
.edu-report-record-filters{max-width:520px;margin:6px 0 4px}
.edu-report-warn-text{color:#b45309;font-weight:700}
.edu-report-muted-text{color:#94a3b8}
.edu-report-hint{margin:8px 2px 0;font-size:12px}
/* Accounts */
.edu-finance-page [hidden]{display:none!important}
.edu-finance-tabs{overflow-x:auto;flex-wrap:nowrap!important;max-width:100%}
.edu-finance-tabs .school-button{flex:none;white-space:nowrap}
.edu-finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.edu-finance-kpi{display:grid;gap:4px;text-align:left;padding:16px 18px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;font:inherit;cursor:pointer;box-shadow:0 1px 2px rgba(15,42,61,.04);transition:border-color .15s,box-shadow .15s,transform .15s}
.edu-finance-kpi:hover{border-color:#9cc9c5;box-shadow:0 8px 20px rgba(15,42,61,.08);transform:translateY(-1px)}
.edu-finance-kpi:focus-visible{outline:3px solid #b6e3df;outline-offset:2px}
.edu-finance-kpi span{color:#6b7c93;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.edu-finance-kpi strong{color:#0f2a3d;font-size:21px;font-weight:800}
.edu-finance-kpi small{color:#6b7c93;font-size:12px}
.edu-finance-kpi.good strong{color:#15803d}
.edu-finance-kpi.due strong{color:#be123c}
.edu-finance-kpi.warn strong{color:#b45309}
.edu-finance-kpi.net{border-width:2px}
.edu-finance-kpi.net.profit{border-color:#86efac;background:#f0fdf4}
.edu-finance-kpi.net.profit strong{color:#15803d}
.edu-finance-kpi.net.loss{border-color:#fda4af;background:#fff1f2}
.edu-finance-kpi.net.loss strong{color:#be123c}
.edu-finance-bars{margin-top:18px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;display:grid;gap:12px}
.edu-finance-bar-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#3b4d63;margin-bottom:5px}
.edu-finance-bar-head strong{color:#0f2a3d}
.edu-finance-track{height:10px;border-radius:999px;background:#eef2f6;overflow:hidden}
.edu-finance-fill{height:100%;border-radius:999px}
.edu-finance-fill.good{background:linear-gradient(90deg,#16a34a,#22c55e)}
.edu-finance-fill.due{background:linear-gradient(90deg,#e11d48,#f43f5e)}
.edu-finance-filters{grid-template-columns:repeat(2,minmax(0,260px))!important}
.edu-finance-statement{margin-top:14px;padding:20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.edu-finance-statement h1{margin:0 0 4px;font-size:20px;color:#0f2a3d}
.edu-finance-statement .muted{color:#6b7c93;margin:0}
.edu-finance-statement .sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.edu-finance-statement .sum div{border:1px solid #e2e8f0;border-radius:12px;padding:12px;color:#6b7c93;font-size:12px;font-weight:700;text-transform:uppercase}
.edu-finance-statement .sum b{display:block;margin-top:4px;font-size:20px;text-transform:none;color:#0f2a3d}
.edu-finance-statement .in b,.edu-finance-statement .profit b{color:#15803d}
.edu-finance-statement .out b,.edu-finance-statement .loss b{color:#be123c}
.edu-finance-statement table{width:100%;border-collapse:collapse}
.edu-finance-statement th,.edu-finance-statement td{padding:10px;border-bottom:1px solid #eef2f6;text-align:left}
.edu-finance-statement th{background:#f3f7fb;color:#52657e;font-size:11px;text-transform:uppercase}
.edu-finance-statement td:last-child,.edu-finance-statement th:last-child{text-align:right;font-weight:700}
.edu-finance-statement tr.total td{border-top:2px solid #0f2a3d;font-weight:800}
.edu-finance-statement .note{margin-top:12px;padding:12px;border-radius:10px;background:#f5f7fa;color:#3b4d63}
.edu-finance-pnl-bar{grid-template-columns:minmax(0,220px) max-content!important}
.edu-finance-panel .school-card{box-shadow:none!important;border:0!important;padding:0!important;background:transparent!important}
.dark .edu-finance-kpi,.dark .edu-finance-bars,.dark .edu-finance-statement{background:#1e293b;border-color:#334155}
.dark .edu-finance-kpi strong,.dark .edu-finance-statement h1{color:#e2e8f0}
@media(max-width:1000px){.edu-finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.edu-finance-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.edu-finance-kpi{padding:12px}.edu-finance-kpi strong{font-size:17px}.edu-finance-filters{grid-template-columns:minmax(0,1fr)!important}.edu-finance-statement .sum{grid-template-columns:minmax(0,1fr)}}
/* Accounts: per-tab month filter */
.edu-finance-range{margin:12px 0 4px}
.edu-finance-range.single{grid-template-columns:minmax(0,220px)!important}
.edu-finance-body{margin-top:6px}
/* Teacher Accounts & App Access */
.edu-access-page [hidden]{display:none!important}
.edu-access-list .school-table{min-width:880px}
.edu-access-login{display:grid;gap:4px;justify-items:start}
.edu-access-login strong{color:#0f2a3d;font-size:13px}
.edu-access-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:260px}
.edu-access-meter{display:grid;gap:4px;min-width:150px;font-size:12px;color:#52657e}
.edu-access-meter .edu-finance-track{height:7px}
.edu-access-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.edu-access-tag{padding:2px 8px;border-radius:999px;background:#e0f2f1;color:#0f5f5a;font-size:11px;font-weight:700}
.edu-access-tag.danger{background:#ffe4e6;color:#be123c}
.edu-access-dialog{width:min(760px,96vw)!important;max-width:760px!important}
.edu-access-form{display:grid;gap:14px}
.edu-access-presets{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.edu-access-presets>span{font-size:12px;font-weight:700;color:#52657e;margin-right:4px}
.edu-access-groups{display:grid;gap:12px}
.edu-access-group{margin:0;padding:12px 14px;border:1px solid #dce8ef;border-radius:14px;background:#f8fbfc;display:grid;gap:2px}
.edu-access-group legend{padding:0 6px;font-weight:800;color:#0f2a3d;font-size:14px}
.edu-access-group>p{margin:0 0 6px;font-size:12px}
.edu-access-item{display:flex;align-items:center;gap:12px;padding:8px 6px;border-radius:10px;cursor:pointer}
.edu-access-item:hover{background:#fff}
.edu-access-item.off{opacity:.5;cursor:not-allowed}
.edu-access-text{display:grid;gap:1px}
.edu-access-text strong{font-size:14px;color:#0f2a3d}
.edu-access-text small{font-size:12px;color:#6b7c93}
.edu-switch{appearance:none;-webkit-appearance:none;flex:none;width:40px;height:22px;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer;transition:background .15s;margin:0}
.edu-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.edu-switch:checked{background:#0f7d77}
.edu-switch:checked::after{transform:translateX(18px)}
.edu-switch:disabled{cursor:not-allowed}
.edu-switch:focus-visible{outline:3px solid #b6e3df;outline-offset:2px}
.edu-access-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:12px 0}
.edu-access-class{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #dce8ef;border-radius:10px;background:#fff;cursor:pointer;font-weight:600;color:#24384f}
.edu-access-class input{width:18px;height:18px;accent-color:#0f7d77}
.dark .edu-access-group{background:#0f172a;border-color:#334155}
.dark .edu-access-text strong,.dark .edu-access-group legend{color:#e2e8f0}
.dark .edu-access-class{background:#1e293b;border-color:#334155;color:#e2e8f0}
@media(max-width:700px){.edu-access-list .school-table{min-width:0}.edu-access-list tr.edu-staff-row td:nth-child(n+2)::before{display:block;color:#6b7c93;font-size:11px;font-weight:700;text-transform:uppercase;margin-bottom:2px}.edu-access-list tr.edu-staff-row td:nth-child(2)::before{content:'Login'}.edu-access-list tr.edu-staff-row td:nth-child(3)::before{content:'Classes'}.edu-access-list tr.edu-staff-row td:nth-child(4)::before{content:'App Access'}.edu-access-list tr.edu-staff-row td:nth-child(n+3){grid-column:1/-1}}
/* Student Complaints */
.edu-complaint-page [hidden]{display:none!important}
.edu-complaint-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.edu-complaint-chip{text-align:left;font:inherit}
.edu-complaint-chip[aria-pressed=true]{border:2px solid #0f7d77;background:#f0faf9}
.edu-complaint-chip.due strong{color:#be123c}
.edu-complaint-chip.warn strong{color:#b45309}
.edu-complaint-chip.good strong{color:#15803d}
.edu-complaint-filters{grid-template-columns:2fr 1fr 1fr 1fr 1fr!important;margin:6px 0 14px}
.edu-complaint-cards{display:grid;gap:12px}
.edu-complaint-card{display:grid;gap:10px;padding:16px 18px;border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(15,42,61,.04)}
.edu-complaint-card.unpaid{border-left-color:#e11d48}
.edu-complaint-card.partial{border-left-color:#d97706}
.edu-complaint-card.paid{border-left-color:#16a34a}
.edu-complaint-card.archived{border-left-color:#94a3b8;opacity:.9}
.edu-complaint-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.edu-complaint-meta{display:grid;justify-items:end;gap:4px}
.edu-complaint-meta small{color:#6b7c93;font-size:12px}
.edu-complaint-body h3{margin:0 0 4px;font-size:16px;color:#0f2a3d}
.edu-complaint-body p{margin:0;color:#3b4d63;white-space:pre-wrap}
.edu-complaint-info{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:#52657e}
.edu-complaint-contact{display:flex;flex-wrap:wrap;gap:6px}
.edu-complaint-contact .school-button{min-height:32px;height:32px;margin:0;padding:0 12px;border-radius:8px;font-size:12px;display:inline-flex;align-items:center;text-decoration:none}
.edu-complaint-timeline{display:grid;gap:6px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #eef2f6;font-size:13px}
.edu-complaint-timeline>strong{color:#3b4d63;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.edu-complaint-step{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:baseline;padding-left:10px;border-left:2px solid #99d5d1}
.edu-complaint-step b{color:#0f5f5a;font-size:12px;white-space:nowrap}
.edu-complaint-step span{color:#24384f}
.edu-complaint-step small{color:#94a3b8;font-size:11px;white-space:nowrap}
.edu-complaint-actions{justify-content:flex-start!important}
.dark .edu-complaint-card{background:#1e293b;border-color:#334155}
.dark .edu-complaint-timeline{background:#0f172a;border-color:#334155}
.dark .edu-complaint-body h3,.dark .edu-complaint-step span{color:#e2e8f0}
@media(max-width:1000px){.edu-complaint-chips{grid-template-columns:repeat(3,minmax(0,1fr))}.edu-complaint-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.edu-complaint-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-complaint-filters{grid-template-columns:minmax(0,1fr)!important}.edu-complaint-step{grid-template-columns:1fr}.edu-complaint-meta{justify-items:start}}
/* Notices page */
.edu-notice-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
.edu-notice-chips .edu-staff-stat:last-child{grid-column:auto}
.edu-notice-filters{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin-bottom:14px}
.edu-notice-title{display:grid;gap:6px;min-width:0}
.edu-notice-title h3{margin:0;font-size:1.05rem;font-weight:800;color:#0f2a3d;overflow-wrap:anywhere}
.edu-notice-title .edu-report-status{justify-self:start}
.edu-notice-card .edu-complaint-body p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155;line-height:1.55}
.edu-report-status.purple{background:#ede9fe;color:#5b21b6}
.dark .edu-notice-title h3{color:#e2e8f0}
.dark .edu-notice-card .edu-complaint-body p{color:#cbd5e1}
@media(max-width:700px){.edu-notice-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-notice-filters{grid-template-columns:minmax(0,1fr)}}
/* Floating notifications button: draggable, remembers its place */
.edu-notification-bell{position:fixed;right:16px;bottom:20px;z-index:99990;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:#087e80;color:#fff;padding:12px 18px;font-weight:800;box-shadow:0 6px 22px rgba(8,126,128,.35);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.edu-notification-bell:hover{background:#066a6c}
.edu-notification-bell:focus-visible{outline:3px solid #99f6e4;outline-offset:2px}
.edu-notification-bell.dragging{cursor:grabbing;opacity:.9;box-shadow:0 12px 30px rgba(15,42,61,.35);transform:scale(1.04)}
.edu-notification-count{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e11d48;color:#fff;font-size:.75rem;line-height:22px;text-align:center}
.edu-notification-count[hidden]{display:none}
.edu-notification-bell.pulse{animation:edu-bell-pulse 1s ease 2}
@keyframes edu-bell-pulse{50%{transform:scale(1.1)}}
@media(max-width:640px){.edu-notification-label{display:none}.edu-notification-bell{padding:12px 14px}}
.edu-notification-panel{position:fixed;right:16px;bottom:80px;z-index:99991;width:min(380px,calc(100vw - 16px));max-height:min(70vh,560px);display:flex;flex-direction:column;border-radius:16px;background:#fff;color:#172b4d;box-shadow:0 14px 44px rgba(15,42,61,.28);border:1px solid #e2e8f0;overflow:hidden}
.edu-notification-panel[hidden]{display:none}
.edu-notification-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #e2e8f0}
.edu-notification-head h3{margin:0;font-size:1rem;font-weight:800}
.edu-notification-head small{color:#64748b}
.edu-notification-tools{display:flex;align-items:center;gap:6px}
.edu-notification-readall{border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#087e80;font-weight:700;font-size:.8rem;padding:6px 10px}
.edu-notification-close{width:32px;height:32px;border:0;border-radius:8px;background:#f1f5f9;color:#334155;font-size:1.3rem;line-height:1}
.edu-notification-close:hover,.edu-notification-readall:hover{background:#e2e8f0}
.edu-notification-list{overflow:auto;padding:8px 10px 12px;display:grid;gap:8px}
.edu-notification-empty{margin:0;padding:24px 16px;text-align:center;color:#64748b}
.edu-notification-row{display:grid;gap:4px;width:100%;text-align:left;padding:11px 12px;border:1px solid #e2e8f0;border-left:4px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:inherit}
.edu-notification-row.unread{background:#ecfdf5;border-left-color:#087e80}
.edu-notification-row:hover{border-color:#087e80}
.edu-notification-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.edu-notification-row-top small{color:#64748b}
.edu-notification-kind{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:2px 8px;border-radius:999px;background:#e0e7ff;color:#3730a3}
.edu-notification-kind.complaint{background:#ffe4e6;color:#be123c}
.edu-notification-row strong{font-size:.92rem;overflow-wrap:anywhere}
.edu-notification-desc{color:#475569;font-size:.85rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dark .edu-notification-panel{background:#1e293b;color:#e2e8f0;border-color:#334155}
.dark .edu-notification-head{border-color:#334155}
.dark .edu-notification-row{background:#0f172a;border-color:#334155}
.dark .edu-notification-row.unread{background:#134e4a}
.dark .edu-notification-desc{color:#cbd5e1}
.dark .edu-notification-close,.dark .edu-notification-readall{background:#334155;color:#e2e8f0;border-color:#475569}
/* Absent students alert (Notices page) */
.edu-absence-card{border-left:5px solid #e11d48}
.edu-absence-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.edu-absence-head h3{margin:0;font-size:1.05rem;font-weight:800;color:#0f2a3d}
.edu-absence-head p{margin:2px 0 0}
.edu-absence-days{display:grid;gap:4px;font-size:.78rem;font-weight:700;color:#475569;min-width:170px}
.edu-absence-summary{margin:0 0 8px;font-size:.85rem;font-weight:700;color:#be123c}
.edu-absence-list{display:grid;gap:8px}
.edu-absence-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #fecdd3;border-radius:12px;background:#fff1f2}
.edu-absence-row.sent{background:#f8fafc;border-color:#e2e8f0}
.edu-absence-who,.edu-absence-streak{display:grid;gap:2px;min-width:0}
.edu-absence-who strong{color:#0f2a3d;overflow-wrap:anywhere}
.edu-absence-who span,.edu-absence-streak span{font-size:.8rem;color:#64748b;overflow-wrap:anywhere}
.edu-absence-streak strong{color:#be123c}
.edu-absence-row.sent .edu-absence-streak strong{color:#475569}
.edu-absence-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.edu-notification-kind.absence{background:#fef3c7;color:#92400e}
.dark .edu-absence-row{background:#3b0d18;border-color:#7f1d1d}
.dark .edu-absence-row.sent{background:#0f172a;border-color:#334155}
.dark .edu-absence-head h3,.dark .edu-absence-who strong{color:#e2e8f0}
@media(max-width:700px){.edu-absence-row{grid-template-columns:minmax(0,1fr)}.edu-absence-actions{justify-content:flex-start}}
.edu-absence-days select{padding:9px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit;font-weight:600;color:#0f2a3d}
.edu-absence-summary.done{color:#15803d}
.dark .edu-absence-days select{background:#0f172a;color:#e2e8f0;border-color:#475569}
/* School Dashboard (redesigned): grouped summary, needs-attention list, attendance, fees, charts */
#tab-dashboard.edu-dash.edunova-file-dashboard{display:grid;gap:18px;max-width:1500px;margin:0 auto}
#tab-dashboard.edu-dash.edunova-file-dashboard.hidden{display:none}
#tab-dashboard.edu-dash.edunova-file-dashboard h1{margin:0;font-size:28px}
#tab-dashboard.edu-dash.edunova-file-dashboard h2{margin:0;font-size:16px;font-weight:800;color:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .sub{margin:4px 0 0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-quick{display:flex;gap:8px;flex-wrap:wrap}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:9px 14px;font-weight:600;font-size:13px;line-height:1.2;cursor:pointer;white-space:nowrap}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn:hover{border-color:#0f7d77;color:#0f7d77}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn.primary{background:#0f7d77;border-color:#0f7d77;color:#fff}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn.primary:hover{background:#0b6460;color:#fff}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn.small{padding:6px 12px;font-size:12px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-btn:focus-visible,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile:focus-visible,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-link:focus-visible{outline:2px solid #0f7d77;outline-offset:2px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-link{border:0;background:none;color:#0f7d77;font-weight:700;font-size:13px;cursor:pointer;padding:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-muted{color:var(--mute);font-size:13px;margin:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:12px;align-content:start;border-top:4px solid #2563eb}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers{border-top-color:#7c3aed}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts{border-top-color:#16a34a}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group h2{display:flex;align-items:center;gap:8px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group h2 i{color:#2563eb}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers h2 i{color:#7c3aed}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts h2 i{color:#16a34a}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group h2 span{text-transform:none;letter-spacing:0;font-weight:600}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile{display:grid;gap:4px;text-align:left;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);cursor:pointer;font:inherit;position:static;min-height:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile:hover{border-color:#94a3b8;transform:translateY(-1px)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile::before{content:none!important;display:none!important}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile .lbl{font-size:12px;font-weight:700;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile strong{font-family:"Bricolage Grotesque",Inter,sans-serif;font-weight:800;font-size:clamp(20px,1.9vw,28px);line-height:1.1;overflow-wrap:anywhere}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile small{font-size:12px;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile.good strong{color:#15803d}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile.bad strong{color:#dc2626}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile.warn strong{color:#b45309}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row{display:grid;gap:16px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.today{grid-template-columns:1.4fr 1fr 1fr}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.charts{grid-template-columns:1.6fr 1fr}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.bottom{grid-template-columns:1fr 1fr}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-pill{min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#ffe4e6;color:#be123c;font-weight:800;font-size:13px;display:inline-grid;place-items:center}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-pill.done{background:#dcfce7;color:#15803d}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-todo{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--bg);border-left:4px solid #94a3b8}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.bad{border-left-color:#e11d48}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.warn{border-left-color:#d97706}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.info{border-left-color:#2563eb}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#e2e8f0;color:#475569}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.bad .edu-dash-task-icon{background:#ffe4e6;color:#be123c}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.warn .edu-dash-task-icon{background:#fef3c7;color:#b45309}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task.info .edu-dash-task-icon{background:#dbeafe;color:#1d4ed8}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task div{display:grid;gap:2px;min-width:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task strong{font-size:14px;color:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task div span{font-size:12px;color:var(--mute);overflow-wrap:anywhere}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-clear{display:grid;gap:4px;padding:18px;border-radius:12px;background:#f0fdf4;color:#166534;text-align:center}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-clear span{font-size:13px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-att-body{display:flex;align-items:center;gap:18px;flex:1}
#tab-dashboard.edu-dash.edunova-file-dashboard #edu-dash-ring{width:110px;height:110px;flex-shrink:0}
#tab-dashboard.edu-dash.edunova-file-dashboard #edu-dash-ring text{font-family:Inter,sans-serif;font-weight:800;font-size:8px;fill:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px;flex:1;min-width:0}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--mute);padding-left:14px;position:relative}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li::before{content:"";position:absolute;left:0;top:5px;width:8px;height:8px;border-radius:50%;background:#94a3b8}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li.good::before{background:#16a34a}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li.bad::before{background:#dc2626}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li.warn::before{background:#d97706}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend li.info::before{background:#2563eb}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-legend strong{color:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-att>.edu-dash-btn,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-fee>.edu-dash-btn{align-self:flex-start;margin-top:auto}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-big{font-family:"Bricolage Grotesque",Inter,sans-serif;font-weight:800;font-size:clamp(26px,2.4vw,34px);line-height:1.1;color:#15803d}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-bar{height:10px;border-radius:99px;background:var(--line);overflow:hidden}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-bar span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#16a34a,#22c55e);transition:width .4s}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-fee-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard #edu-dash-fee-pending{color:#b45309;font-weight:700}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-key{display:flex;gap:18px;font-size:13px;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-activity,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-notices{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-activity li{display:flex;align-items:center;gap:12px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-activity li div{display:grid;gap:1px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-activity strong{font-size:14px;color:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-activity small{font-size:12px;color:var(--mute)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-dot{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;font-size:13px;background:#dbeafe;color:#1d4ed8}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-dot.good{background:#dcfce7;color:#15803d}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-dot.warn{background:#fef3c7;color:#b45309}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-notices li:not(.edu-dash-muted){display:grid;gap:2px;padding:10px 12px;border-radius:10px;background:var(--bg);border-left:4px solid #0f7d77}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-notices strong{font-size:14px;color:var(--ink)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-notices span{font-size:12px;color:var(--mute);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dark #tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-clear{background:#14532d;color:#bbf7d0}
@media(max-width:1200px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups{grid-template-columns:1fr 1fr}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students{grid-column:1/-1}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.today{grid-template-columns:1fr 1fr}#tab-dashboard.edu-dash.edunova-file-dashboard #edu-dash-attention{grid-column:1/-1}}
@media(max-width:800px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.today,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.charts,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-row.bottom{grid-template-columns:minmax(0,1fr)}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-head{align-items:flex-start}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-quick .edu-dash-btn{flex:1 1 calc(50% - 8px);justify-content:center}}
@media(max-width:480px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tiles{grid-template-columns:1fr 1fr}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task{grid-template-columns:32px minmax(0,1fr)}#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-task .edu-dash-btn{grid-column:2;justify-self:start}}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group h2 span{margin-left:auto;font-size:12px;white-space:nowrap}
@media(max-width:700px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tiles{grid-template-columns:1fr 1fr}}
/* Accounts: Advance Fee button and dialog preview */
.edu-finance-top-actions{display:flex;justify-content:flex-start;gap:8px;margin:0 0 12px}
.edu-advance-preview{grid-column:1/-1;margin:4px 0 0;padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#065f46;font-weight:700;font-size:.9rem}
.dark .edu-advance-preview{background:#064e3b;color:#d1fae5}
/* Students page (redesigned): header actions, status chips, filters, compact table */
#tab-students .edu-students-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
#tab-students .edu-students-more{display:flex;align-items:center;gap:8px}
#tab-students .edu-student-controls{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;padding:18px!important;border-radius:18px}
#tab-students .edu-student-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#tab-students .edu-student-chip{display:grid;gap:4px;text-align:left;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#0f2a3d;cursor:pointer;font:inherit;min-width:0}
#tab-students .edu-student-chip span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
#tab-students .edu-student-chip strong{font-size:22px;font-weight:800;line-height:1.1}
#tab-students .edu-student-chip.due strong{color:#be123c}
#tab-students .edu-student-chip.good strong{color:#15803d}
#tab-students .edu-student-chip.warn strong{color:#b45309}
#tab-students .edu-student-chip.muted strong{color:#64748b}
#tab-students .edu-student-chip:hover{border-color:#94a3b8}
#tab-students .edu-student-chip[aria-pressed=true]{border:2px solid #0f7d77;background:#f0faf9}
#tab-students .edu-student-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
#tab-students .edu-student-filters label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475569}
#tab-students .edu-student-filters input,#tab-students .edu-student-filters select{width:100%;max-width:none;min-width:0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit;font-weight:500;color:#0f2a3d}
#tab-students .edu-student-controls .edu-directory-count{margin:0;font-size:12px;color:#64748b}
#tab-students .edu-student-table-card{margin-top:16px!important;border-radius:18px}
#tab-students .edu-student-table-card table.edu-students-table{min-width:980px!important}
#tab-students .edu-student-table-card table.edu-students-table td{white-space:normal!important;vertical-align:middle;padding:12px 14px!important}
#tab-students .edu-student-table-card table.edu-students-table th{padding:12px 14px!important}
#tab-students .edu-students-table tr:hover td{background:#f8fafc}
#tab-students .edu-student-left td{opacity:.75}
#tab-students .edu-student-who{display:flex;align-items:center;gap:10px;min-width:170px}
#tab-students .edu-student-who div{display:grid;gap:2px;min-width:0}
#tab-students .edu-student-who small{font-size:12px;color:#64748b}
#tab-students .edu-student-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#e0f2f1;color:#0f7d77;font-weight:800}
#tab-students .edu-student-who .school-student-name{border:0;background:none;padding:0;text-align:left;font-weight:700;font-size:14px;color:#0f2a3d;cursor:pointer}
#tab-students .edu-student-who .school-student-name:hover{color:#0f7d77;text-decoration:underline}
#tab-students .edu-student-parent{display:grid;gap:2px;min-width:140px}
#tab-students .edu-student-parent strong{font-weight:600;color:#0f2a3d}
#tab-students .edu-student-parent span{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}
#tab-students .edu-student-parent a{color:#475569;text-decoration:none}
#tab-students .edu-student-parent a:hover{text-decoration:underline}
#tab-students .edu-student-parent .edu-student-wa{color:#15803d;font-weight:700}
#tab-students .edu-student-parent small{font-size:12px;color:#94a3b8}
#tab-students .edu-student-class{display:inline-block;padding:3px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700;white-space:nowrap}
#tab-students .edu-student-att{display:flex;gap:4px;flex-wrap:wrap}
#tab-students .edu-att-chip{padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;background:#f1f5f9;color:#475569}
#tab-students .edu-att-chip.present{background:#dcfce7;color:#166534}
#tab-students .edu-att-chip.absent{background:#ffe4e6;color:#be123c}
#tab-students .edu-att-chip.late{background:#fef3c7;color:#92400e}
#tab-students .edu-att-chip.leave{background:#e0e7ff;color:#3730a3}
#tab-students .edu-student-fee{display:grid;gap:2px}
#tab-students .edu-student-fee strong{font-weight:700;color:#0f2a3d;white-space:nowrap}
#tab-students .edu-student-fee small{font-size:12px;color:#15803d;white-space:nowrap}
#tab-students td.school-money-pending span{color:#be123c;font-weight:700;white-space:nowrap}
#tab-students td.school-money-zero span{color:#94a3b8}
#tab-students .edu-student-billing-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end;white-space:nowrap}
#tab-students .edu-student-primary{min-width:118px;justify-content:center;padding:8px 12px;border-radius:10px;font-size:13px;font-weight:700;border:1px solid #cbd5e1;background:#fff;color:#0f2a3d}
#tab-students .edu-student-primary.collect{background:#0f7d77;border-color:#0f7d77;color:#fff}
#tab-students .edu-student-primary.collect:hover{background:#0b6460}
#tab-students .edu-students-empty{text-align:center;padding:28px!important;color:#64748b}
.dark #tab-students .edu-student-chip,.dark #tab-students .edu-student-filters input,.dark #tab-students .edu-student-filters select,.dark #tab-students .edu-student-primary:not(.collect){background:#0f172a;border-color:#334155;color:#e2e8f0}
.dark #tab-students .edu-student-who .school-student-name,.dark #tab-students .edu-student-parent strong,.dark #tab-students .edu-student-fee strong{color:#e2e8f0}
.dark #tab-students .edu-students-table tr:hover td{background:#132436}
@media(max-width:1100px){#tab-students .edu-student-chips{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){#tab-students .edu-student-chips{grid-template-columns:repeat(2,minmax(0,1fr))}#tab-students .edu-student-filters{grid-template-columns:minmax(0,1fr)}#tab-students .edu-students-more{width:100%}}
#tab-students.edu-reference-students .edu-student-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr);max-width:none;gap:12px}
#tab-students.edu-reference-students .edu-student-filters>label{display:grid;gap:4px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;font-size:12px;font-weight:700;color:#475569}
#tab-students.edu-reference-students .edu-student-filters>label:before{content:none;display:none}
#tab-students.edu-reference-students .edu-student-filters input,#tab-students.edu-reference-students .edu-student-filters select{min-height:40px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;text-align:left;font-size:14px;font-weight:500;color:#0f2a3d}
.dark #tab-students.edu-reference-students .edu-student-filters>label{background:none;color:#cbd5e1}
.dark #tab-students.edu-reference-students .edu-student-filters input,.dark #tab-students.edu-reference-students .edu-student-filters select{background:#0f172a;border-color:#334155;color:#e2e8f0}
@media(max-width:640px){#tab-students.edu-reference-students .edu-student-filters{grid-template-columns:minmax(0,1fr)}}
#tab-students.edu-reference-students .edu-student-filters>label{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:start;justify-items:stretch}
#tab-students.edu-reference-students .edu-student-filters>label>input,#tab-students.edu-reference-students .edu-student-filters>label>select{width:100%!important;max-width:none!important}
#tab-students .edu-students-table th:last-child{text-align:right}
/* Student profile dialog: ordered top toolbar */
.edu-student-profile-dialog{padding:0!important}
.edu-student-profile-dialog>.edu-student-profile-summary,.edu-student-profile-dialog>.edu-profile-fee-section{margin:18px 24px!important}
.edu-profile-toolbar{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 4px 14px rgba(15,42,61,.06)}
.edu-profile-toolbar-title{display:grid;gap:2px;min-width:0}
.edu-profile-toolbar-title strong{font-size:16px;color:#0f2a3d}
.edu-profile-toolbar-title span{font-size:12px;color:#64748b}
.edu-profile-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.edu-profile-tool{display:inline-flex;align-items:center;gap:6px;padding:9px 14px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#0f2a3d!important;font-size:13px!important;font-weight:700;cursor:pointer;white-space:nowrap;min-height:38px}
.edu-profile-tool:hover:not(:disabled){border-color:#0f7d77!important;color:#0f7d77!important}
.edu-profile-tool.primary{background:#0f7d77!important;border-color:#0f7d77!important;color:#fff!important}
.edu-profile-tool.primary:hover{background:#0b6460!important;color:#fff!important}
.edu-profile-tool:disabled{opacity:.6;cursor:not-allowed}
.edu-profile-tool.close{width:38px;justify-content:center;padding:0!important;font-size:20px!important;background:#f1f5f9!important;border-color:#f1f5f9!important}
.edu-profile-fee-section{padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;scroll-margin-top:80px}
.edu-profile-fee-section h3{margin:0 0 12px;font-size:16px;font-weight:800;color:#0f2a3d}
.dark .edu-profile-toolbar,.dark .edu-profile-fee-section{background:#1e293b;border-color:#334155}
.dark .edu-profile-toolbar-title strong,.dark .edu-profile-fee-section h3{color:#e2e8f0}
.dark .edu-profile-tool:not(.primary){background:#0f172a!important;border-color:#334155!important;color:#e2e8f0!important}
@media(max-width:640px){.edu-profile-toolbar{padding:10px 12px}.edu-profile-toolbar-actions{width:100%}.edu-profile-tool:not(.close){flex:1 1 calc(50% - 8px);justify-content:center}.edu-student-profile-dialog>.edu-student-profile-summary,.edu-student-profile-dialog>.edu-profile-fee-section{margin:12px!important}}
/* Dashboard Collect Fee: search all students */
.school-dialog.edu-quick-fee{width:min(760px,96vw);max-width:96vw}
.edu-quick-fee-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:8px;margin:6px 0 8px}
.edu-quick-fee-top input,.edu-quick-fee-top select{width:100%;min-width:0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit;color:#0f2a3d}
.edu-quick-fee-top input:focus,.edu-quick-fee-top select:focus{outline:2px solid #0f7d77;outline-offset:1px}
.edu-quick-fee-info{margin:0 0 10px;font-size:12px;color:#64748b}
.edu-quick-fee-list{display:grid;gap:8px;max-height:min(58vh,520px);overflow:auto;padding-right:2px}
.edu-quick-fee-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.edu-quick-fee-row:hover{border-color:#94a3b8}
.edu-quick-fee-who,.edu-quick-fee-amount{display:grid;gap:2px;min-width:0}
.edu-quick-fee-who strong{color:#0f2a3d;overflow-wrap:anywhere}
.edu-quick-fee-who span,.edu-quick-fee-amount span{font-size:12px;color:#64748b;overflow-wrap:anywhere}
.edu-quick-fee-amount strong{color:#475569;white-space:nowrap}
.edu-quick-fee-amount.due strong{color:#be123c}
.edu-quick-fee-amount.paid strong{color:#15803d}
.edu-quick-fee-row>button{min-width:96px;justify-content:center}
.dark .edu-quick-fee-row{background:#0f172a;border-color:#334155}
.dark .edu-quick-fee-who strong{color:#e2e8f0}
.dark .edu-quick-fee-top input,.dark .edu-quick-fee-top select{background:#0f172a;border-color:#334155;color:#e2e8f0}
@media(max-width:600px){.edu-quick-fee-top{grid-template-columns:1fr 1fr}.edu-quick-fee-top input{grid-column:1/-1}.edu-quick-fee-row{grid-template-columns:minmax(0,1fr) auto}.edu-quick-fee-amount{grid-column:1;grid-row:2}.edu-quick-fee-row>button{grid-row:1/3;grid-column:2}}
/* Dashboard summary: Students box bigger, Teachers and Accounts compact */
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups{grid-template-columns:minmax(0,2.6fr) minmax(0,1fr) minmax(0,1fr);align-items:stretch}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group{grid-template-rows:auto 1fr}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tiles{align-items:stretch}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tile{align-content:center;padding:16px 18px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tile strong{font-size:clamp(26px,2.6vw,40px)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students .edu-dash-tile .lbl{font-size:13px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers .edu-dash-tiles,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts .edu-dash-tiles{grid-template-columns:minmax(0,1fr);gap:8px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers .edu-dash-tile,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts .edu-dash-tile{padding:8px 12px;gap:2px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers .edu-dash-tile strong,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts .edu-dash-tile strong{font-size:clamp(17px,1.4vw,21px)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers .edu-dash-tile .lbl,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts .edu-dash-tile .lbl,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers .edu-dash-tile small,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts .edu-dash-tile small{font-size:11px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts{padding:12px;gap:8px}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.teachers h2,#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.accounts h2{font-size:12px}
@media(max-width:1200px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups{grid-template-columns:1fr 1fr}}
@media(max-width:800px){#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-groups{grid-template-columns:minmax(0,1fr)}}
/* Create Notice form */
.edu-notice-modal{width:100%;max-width:600px;max-height:92dvh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,42,61,.3);border:1px solid #e2e8f0;color:#0f2a3d}
.edu-notice-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 14px;border-bottom:1px solid #e2e8f0}
.edu-notice-modal-head h3{margin:0;font-size:19px;font-weight:800}
.edu-notice-modal-head p{margin:4px 0 0;font-size:13px;color:#64748b}
.edu-notice-x{width:36px;height:36px;flex-shrink:0;border:0;border-radius:10px;background:#f1f5f9;color:#334155;font-size:22px;line-height:1;cursor:pointer}
.edu-notice-x:hover{background:#e2e8f0}
.edu-notice-form{display:grid;gap:16px;padding:18px 22px 20px}
.edu-notice-form fieldset{border:0;margin:0;padding:0;display:grid;gap:8px;min-width:0}
.edu-notice-form legend{padding:0;margin-bottom:8px;font-size:13px;font-weight:700;color:#334155}
.edu-notice-cat-list,.edu-notice-duration-list{display:flex;flex-wrap:wrap;gap:8px}
.edu-notice-cat-list button,.edu-notice-duration-list button{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.edu-notice-cat-list button:hover,.edu-notice-duration-list button:hover{border-color:#0f7d77}
.edu-notice-cat-list button[aria-checked=true],.edu-notice-duration-list button[aria-checked=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-notice-cat-list .edu-notice-cat-new{border-style:dashed;color:#0f7d77;background:#f0fdfa}
.edu-notice-cat-remove{display:inline-grid;place-items:center;width:18px;height:18px;margin-left:2px;border-radius:50%;background:rgba(15,42,61,.08);font-size:13px;line-height:1}
.edu-notice-cat-list button[aria-checked=true] .edu-notice-cat-remove{background:rgba(255,255,255,.25)}
.edu-notice-cat-remove:hover{background:#fecdd3;color:#be123c}
.edu-notice-cat-add{display:flex;gap:8px;flex-wrap:wrap}
.edu-notice-cat-add[hidden]{display:none}
.edu-notice-cat-add input{flex:1 1 200px;min-width:0;padding:9px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-size:14px}
.edu-notice-cat-add button{padding:9px 14px;border:0;border-radius:10px;background:#0f7d77;color:#fff;font-weight:700;cursor:pointer}
.edu-notice-cat-add button.secondary{background:#f1f5f9;color:#334155}
.edu-notice-field{display:grid;gap:6px}
.edu-notice-field>span{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;font-weight:700;color:#334155}
.edu-notice-field small{font-size:11px;font-weight:500;color:#94a3b8}
.edu-notice-field input,.edu-notice-field textarea{width:100%;padding:11px 13px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font:inherit;font-size:14px;color:#0f2a3d}
.edu-notice-field textarea{resize:vertical;min-height:110px;line-height:1.5}
.edu-notice-field input:focus,.edu-notice-field textarea:focus,.edu-notice-cat-add input:focus{outline:2px solid #0f7d77;outline-offset:1px;border-color:#0f7d77}
.edu-notice-field[hidden]{display:none}
.edu-notice-hint{margin:0;font-size:12px;color:#0f7d77;font-weight:600;min-height:1em}
.edu-notice-hint:empty{display:none}
.edu-notice-wa{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0;font-size:13px;font-weight:600;color:#166534;cursor:pointer}
.edu-notice-wa input{width:18px;height:18px;accent-color:#16a34a}
.edu-notice-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.edu-notice-cancel{padding:10px 18px;border:0;border-radius:12px;background:#f1f5f9;color:#334155;font-weight:700;cursor:pointer}
.edu-notice-submit{padding:10px 20px;border:0;border-radius:12px;background:#0f7d77;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(15,125,119,.25)}
.edu-notice-submit:hover{background:#0b6460}
.edu-notice-submit:disabled{opacity:.6;cursor:wait}
.edu-notice-form .school-error{margin:0}
.dark .edu-notice-modal{background:#1e293b;border-color:#334155;color:#e2e8f0}
.dark .edu-notice-modal-head{border-color:#334155}
.dark .edu-notice-form legend,.dark .edu-notice-field>span{color:#cbd5e1}
.dark .edu-notice-cat-list button:not([aria-checked=true]),.dark .edu-notice-duration-list button:not([aria-checked=true]),.dark .edu-notice-field input,.dark .edu-notice-field textarea,.dark .edu-notice-cat-add input{background:#0f172a;border-color:#334155;color:#e2e8f0}
.dark .edu-notice-x,.dark .edu-notice-cancel{background:#334155;color:#e2e8f0}
.dark .edu-notice-wa{background:#14532d;border-color:#166534;color:#bbf7d0}
@media(max-width:520px){.edu-notice-modal-head,.edu-notice-form{padding-left:16px;padding-right:16px}.edu-notice-actions button{flex:1}}
/* Header notification bell (real notifications; replaces the floating button) */
.edu-header-bell{position:relative;width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;background:#f8fafc;color:#0f7d77;font-size:18px;cursor:pointer;transition:background .15s,border-color .15s}
.edu-header-bell:hover{background:#ecfdf5;border-color:#99f6e4}
.edu-header-bell[aria-expanded=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-header-bell:focus-visible{outline:3px solid #99f6e4;outline-offset:2px}
.edu-header-bell-count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e11d48;color:#fff;font-size:11px;font-weight:800;line-height:20px;text-align:center;border:2px solid #fff;font-family:Inter,system-ui,sans-serif}
.edu-header-bell-count[hidden]{display:none}
.edu-header-bell.pulse{animation:edu-bell-pulse 1s ease 2}
.dark .edu-header-bell{background:#1e293b;border-color:#334155;color:#5eead4}
.dark .edu-header-bell-count{border-color:#0f172a}
@media(max-width:640px){.edu-header-bell{width:38px;height:38px;font-size:16px;border-radius:12px}}
/* School Admin profile: header avatar and My Profile dialog */
.edu-admin-avatar{width:36px;height:36px;flex-shrink:0;border-radius:12px;object-fit:cover;box-shadow:0 0 0 2px rgba(15,125,119,.45)}
.edu-admin-initials{display:inline-grid;place-items:center;background:linear-gradient(135deg,#0f7d77,#14b8a6);color:#fff;font-weight:800;font-size:13px;letter-spacing:.02em}
.school-dialog.edu-admin-profile-dialog{width:min(520px,94vw)}
.edu-admin-photo-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:6px 0 14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.edu-admin-photo{width:96px;height:96px;flex-shrink:0}
.edu-admin-photo-img{width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px #fff,0 0 0 5px #0f7d77}
.edu-admin-photo .edu-admin-initials{font-size:30px}
.edu-admin-photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;flex:1}
.edu-admin-photo-actions small{flex-basis:100%;font-size:12px}
.edu-admin-login{grid-column:1/-1;margin:0;font-size:13px;color:#64748b}
.edu-admin-login strong{color:#0f2a3d}
.dark .edu-admin-photo-row{background:#0f172a;border-color:#334155}
.dark .edu-admin-login strong{color:#e2e8f0}
/* Account menu (top right) */
.edu-account-menu{width:280px;max-width:calc(100vw - 20px);padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 18px 44px rgba(15,42,61,.18);font-size:14px}
.edu-account-head{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:6px;border-radius:12px;background:linear-gradient(135deg,#f0fdfa,#f8fafc)}
.edu-account-avatar{width:46px!important;height:46px!important;border-radius:14px!important;font-size:16px}
.edu-account-who{min-width:0}
.edu-account-name{margin:0;font-weight:800;font-size:15px;color:#0f2a3d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edu-account-role{margin:2px 0 0;font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edu-account-items{display:grid;gap:2px;padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid #e2e8f0}
.edu-account-item{display:flex!important;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;color:#334155;font:inherit;font-weight:600;text-align:left;cursor:pointer;text-decoration:none}
.edu-account-item i{width:18px;text-align:center;color:#64748b;font-size:15px}
.edu-account-item:hover,.edu-account-item:focus-visible{background:#f1f5f9;color:#0f7d77;outline:none}
.edu-account-item:hover i,.edu-account-item:focus-visible i{color:#0f7d77}
.edu-account-signout{color:#dc2626}
.edu-account-signout i{color:#dc2626}
.edu-account-signout:hover,.edu-account-signout:focus-visible{background:#fef2f2;color:#b91c1c}
.edu-account-signout:hover i{color:#b91c1c}
.dark .edu-account-menu{background:#1e293b;border-color:#334155}
.dark .edu-account-head{background:#0f172a}
.dark .edu-account-name{color:#e2e8f0}
.dark .edu-account-items{border-color:#334155}
.dark .edu-account-item{color:#cbd5e1}
.dark .edu-account-item:hover{background:#0f172a;color:#5eead4}
.dark .edu-account-signout{color:#f87171}
/* Teacher app: phone layout review (Android + iPhone) */
body.edu-teacher-theme #sidebarToggle{display:none!important}
body.edu-teacher-theme>header{padding-top:env(safe-area-inset-top,0px);height:calc(4rem + env(safe-area-inset-top,0px))!important}
body.edu-teacher-theme>header+*,body.edu-teacher-theme>div.flex.flex-1.pt-16{padding-top:calc(4rem + env(safe-area-inset-top,0px))!important}
@media(max-width:767px){
 body.edu-teacher-theme{background:#f1f5f9!important;-webkit-text-size-adjust:100%}
 body.edu-teacher-theme main{padding:12px 12px calc(96px + env(safe-area-inset-bottom,0px))!important;padding-left:max(12px,env(safe-area-inset-left,0px))!important;padding-right:max(12px,env(safe-area-inset-right,0px))!important}
 body.edu-teacher-theme .edu-teacher-portal{background:none!important;padding:0!important;gap:12px!important;box-shadow:none!important;border-radius:0!important}
 /* iOS zooms into inputs smaller than 16px: keep form fields at 16px. */
 body.edu-teacher-theme input,body.edu-teacher-theme select,body.edu-teacher-theme textarea{font-size:16px!important}
 /* Welcome card */
 body.edu-teacher-theme .edu-teacher-heading{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:16px!important;border-radius:18px!important;margin:0!important}
 body.edu-teacher-theme .edu-teacher-identity{display:flex!important;align-items:center;gap:12px;min-width:0}
 body.edu-teacher-theme .edu-teacher-avatar{width:46px!important;height:46px!important;min-width:46px;border-radius:14px!important;font-size:18px!important}
 body.edu-teacher-theme .edu-teacher-identity h1{font-size:20px!important;line-height:1.2!important;margin:2px 0!important;overflow-wrap:anywhere}
 body.edu-teacher-theme .edu-teacher-identity p{font-size:13px!important;margin:0!important}
 body.edu-teacher-theme .edu-teacher-eyebrow{font-size:10px!important;letter-spacing:.08em}
 body.edu-teacher-theme .edu-teacher-header-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important}
 body.edu-teacher-theme .edu-teacher-header-actions>*{width:100%!important;max-width:none!important;margin:0!important}
 body.edu-teacher-theme .edu-teacher-header-actions label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475569}
 body.edu-teacher-theme .edu-teacher-header-actions input[type=month]{width:100%!important;min-height:44px;padding:8px 12px!important;border-radius:12px!important;text-align:left}
 body.edu-teacher-theme .edu-teacher-header-actions .school-button{min-height:44px;justify-content:center;font-size:14px!important;border-radius:12px!important}
 /* Sign Out lives in the account menu (top right) on phones. */
 body.edu-teacher-theme .edu-teacher-logout{display:none!important}
 /* My attendance: compact 2 x 2 */
 body.edu-teacher-theme .edu-teacher-summary,body.edu-teacher-theme .edu-teacher-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
 body.edu-teacher-theme .edu-teacher-stat{min-height:0!important;padding:12px 14px!important;border-radius:14px!important;align-items:center!important;flex-direction:row!important}
 body.edu-teacher-theme .edu-teacher-stat strong{font-size:24px!important}
 body.edu-teacher-theme .edu-teacher-stat span{font-size:12px!important}
 body.edu-teacher-theme .edu-teacher-stat small{font-size:11px!important;opacity:.9}
 body.edu-teacher-theme .edu-teacher-stat>i,body.edu-teacher-theme .edu-teacher-stat>span:last-child{width:34px!important;height:34px!important;font-size:15px!important;margin:0!important;flex-shrink:0}
 /* Quick access */
 body.edu-teacher-theme .edu-teacher-mobile-home{padding:0!important;gap:8px!important}
 body.edu-teacher-theme .edu-teacher-mobile-home h2{margin:6px 2px 0!important;color:#0f2a3d!important;font-size:16px!important}
 body.edu-teacher-theme .edu-teacher-mobile-grid{padding:10px!important;gap:8px!important;border-radius:18px!important}
 body.edu-teacher-theme .edu-teacher-mobile-tile.school-button{min-height:96px!important;gap:8px!important;font-size:13px!important;border-radius:14px!important}
 body.edu-teacher-theme .edu-teacher-mobile-tile i{width:40px!important;height:40px!important;font-size:18px!important}
 /* Section pages */
 body.edu-teacher-theme .edu-teacher-pane{border-radius:18px!important;padding:14px!important;min-width:0}
 body.edu-teacher-theme .edu-teacher-pane table{font-size:13px}
 body.edu-teacher-theme .edu-teacher-tabs{gap:6px!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
 body.edu-teacher-theme .edu-teacher-tabs::-webkit-scrollbar{display:none}
 body.edu-teacher-theme .edu-teacher-tabs .school-button{flex:0 0 auto;min-height:40px;white-space:nowrap}
 /* Bottom bar: thumb-friendly, clears the iPhone home indicator */
 body.edu-teacher-theme .edu-teacher-mobile-bottom{padding:6px max(6px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-right,0px))!important;border-top:1px solid #e2e8f0;box-shadow:0 -6px 18px rgba(15,42,61,.08)!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px)}
 body.edu-teacher-theme .edu-teacher-mobile-bottom .school-button{min-height:52px!important;border-radius:12px!important;font-size:11px!important;color:#475569!important;background:none!important}
 body.edu-teacher-theme .edu-teacher-mobile-bottom .school-button i{color:#64748b!important;font-size:19px!important}
 body.edu-teacher-theme .edu-teacher-mobile-bottom .school-button[aria-current=page]{background:#ecfdf5!important;color:#0f7d77!important;font-weight:800}
 body.edu-teacher-theme .edu-teacher-mobile-bottom .school-button[aria-current=page] i{color:#0f7d77!important}
 /* Header: tidy on small screens */
 body.edu-teacher-theme>header{padding-left:max(12px,env(safe-area-inset-left,0px))!important;padding-right:max(12px,env(safe-area-inset-right,0px))!important}
 body.edu-teacher-theme .edu-account-menu{position:fixed!important;top:calc(4.25rem + env(safe-area-inset-top,0px))!important;right:10px!important;left:auto!important}
}
@media(max-width:360px){body.edu-teacher-theme .edu-teacher-stat strong{font-size:20px!important}body.edu-teacher-theme .edu-teacher-mobile-bottom .school-button{font-size:10px!important}}
@media(max-width:767px){body.edu-teacher-theme #tab-dashboard>.edu-teacher-portal{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important}}
@media(max-width:767px){body.edu-teacher-theme .edu-teacher-tabs{scroll-margin-top:calc(4.75rem + env(safe-area-inset-top,0px))}}
@media(max-width:767px){body.edu-teacher-theme .edu-teacher-mobile-section-open:not(.edu-teacher-students-open)>.edu-teacher-summary{display:none!important}}
.edu-account-items[hidden]{display:none!important}
@media(max-width:480px){body.edu-teacher-theme .edu-teacher-pane .edu-result-grid{grid-template-columns:minmax(0,1fr)!important}body.edu-teacher-theme .edu-teacher-pane .school-card{padding:14px!important;border-radius:16px!important}}
/* Teacher roster: same look as the panel; table fills the card */
.edu-teacher-portal .edu-attendance-roster table{width:100%!important;min-width:0!important}
.edu-teacher-portal .edu-attendance-roster tbody,.edu-teacher-portal .edu-attendance-roster tr.edu-roster-row{width:100%}
.edu-teacher-portal .edu-roster-saved{padding:1px 8px;border-radius:999px;background:#e0f2f1;color:#0f766e;font-size:11px;font-weight:700;text-transform:capitalize}
/* iPhone Safari: date / month / time boxes and dropdowns keep their own width unless the native
   look is switched off, so they stick out of cards and rows look uneven. Phones only. */
@media(max-width:767px){
 input[type=date],input[type=month],input[type=time],input[type=datetime-local],select{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0!important;max-width:100%!important;box-sizing:border-box;min-height:44px;line-height:1.25;text-align:left}
 input[type=date]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value{text-align:left;margin:0}
 input[type=date]::-webkit-calendar-picker-indicator,input[type=month]::-webkit-calendar-picker-indicator{margin-left:auto}
 /* Dropdown arrow (the native one disappears with appearance:none). */
 select:not([multiple]):not([size]){padding-right:36px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
 /* Labels holding a field stretch their field to full width. */
 label>input,label>select{width:100%}
 /* Teacher app: class and date one under the other, equal height, full-width button. */
 body.edu-teacher-theme .edu-teacher-roster-filters{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important}
 body.edu-teacher-theme .edu-teacher-roster-filters label{display:grid!important;gap:6px;width:100%;min-width:0}
 body.edu-teacher-theme .edu-teacher-roster-filters select,body.edu-teacher-theme .edu-teacher-roster-filters input{height:46px!important;min-height:46px!important;width:100%!important;font-size:16px!important;padding:10px 12px!important;border-radius:12px!important}
 body.edu-teacher-theme .edu-teacher-roster-filters .school-button{width:100%;height:46px!important;font-size:15px!important;border-radius:12px!important;justify-content:center}
 body.edu-teacher-theme .edu-teacher-header-actions input[type=month]{height:46px!important;min-height:46px!important;font-size:16px!important;font-weight:700}
 /* Stat captions stay on one line. */
 body.edu-teacher-theme .edu-teacher-stat small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}
 body.edu-teacher-theme .edu-teacher-stat>div{min-width:0}
}
/* Teacher portal on laptops / desktops: same clean look as phones (no dark band, compact boxes) */
@media(min-width:768px){
 body.edu-teacher-theme{background:#f1f5f9!important}
 body.edu-teacher-theme #tab-dashboard>.edu-teacher-portal{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important;max-width:1280px;margin:0 auto!important;display:flex!important;flex-direction:column;gap:16px!important}
 body.edu-teacher-theme .edu-teacher-heading{margin:0!important;border-radius:20px!important;padding:20px 24px!important;align-items:center!important}
 body.edu-teacher-theme .edu-teacher-header-actions{display:flex!important;align-items:flex-end;gap:10px!important;flex-wrap:wrap;justify-content:flex-end}
 body.edu-teacher-theme .edu-teacher-header-actions input[type=month]{height:44px;min-width:190px;border-radius:12px}
 body.edu-teacher-theme .edu-teacher-header-actions .school-button{height:44px;border-radius:12px}
 body.edu-teacher-theme .edu-teacher-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0!important;padding:0!important;background:none!important}
 body.edu-teacher-theme .edu-teacher-stat{min-height:0!important;padding:16px 18px!important;border-radius:16px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;text-align:left!important;gap:12px}
 body.edu-teacher-theme .edu-teacher-stat>div{align-items:flex-start!important;text-align:left!important;min-width:0}
 body.edu-teacher-theme .edu-teacher-stat strong{font-size:30px!important;line-height:1.1}
 body.edu-teacher-theme .edu-teacher-stat span{font-size:13px!important}
 body.edu-teacher-theme .edu-teacher-stat small{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.edu-teacher-theme .edu-teacher-stat>i,body.edu-teacher-theme .edu-teacher-stat>span:last-child{width:44px!important;height:44px!important;margin:0!important;flex-shrink:0;font-size:18px!important}
 body.edu-teacher-theme .edu-teacher-tabs{margin:0!important;border-radius:16px!important;padding:6px!important;gap:4px!important;overflow-x:auto;scrollbar-width:none}
 body.edu-teacher-theme .edu-teacher-tabs::-webkit-scrollbar{display:none}
 body.edu-teacher-theme .edu-teacher-tabs .school-button{white-space:nowrap;border-radius:12px!important}
 body.edu-teacher-theme .edu-teacher-pane{margin:0!important}
}
/* Brand colours everywhere: header logo + sidebar use the same teal as the app icon, loading and sign-in screens */
.edu-header-logo{display:block;object-fit:cover;box-shadow:0 8px 18px rgba(15,118,110,.28)!important}
.edu-header-word{color:#0f4f47;-webkit-text-fill-color:currentColor;background:none!important}
.edu-header-word span{color:#14b8a6}
.dark .edu-header-word{color:#e6fffb}
.dark .edu-header-word span{color:#5eead4}
html body #sidebar,html body.edunova-file-theme #sidebar{background:linear-gradient(180deg,#0d3346 0%,#0f4a5a 60%,#0f5e5a 100%)!important;border-color:#0f4a5a!important;color:#e6fffb!important}
html body #sidebar .nav-item,html body #sidebar .nav-item span,html body.edunova-file-theme #sidebar .nav-item{color:#e6fffb!important}
html body #sidebar .nav-item i,html body.edunova-file-theme #sidebar .nav-item i{color:#99f6e4!important}
html body #sidebar .nav-item:hover,html body.edunova-file-theme #sidebar .nav-item:hover,html body.edunova-file-theme #sidebar .nav-item:focus-visible{background:rgba(255,255,255,.08)!important}
html body #sidebar .nav-item.nav-active,html body.edunova-file-theme #sidebar .nav-item.nav-active{background:rgba(20,184,166,.30)!important;color:#fff!important;box-shadow:inset 3px 0 #5eead4!important}
html body #sidebar .nav-item.nav-active i,html body.edunova-file-theme #sidebar .nav-item.nav-active i{color:#fff!important}
html body #sidebar div.uppercase,html body.edunova-file-theme #sidebar div.uppercase{color:#7dd3c8!important}
html body #sidebar .nav-item .rounded-full{background:#ccfbf1!important;color:#0f4f47!important}
/* Sidebar status: one tidy line, lined up with Sign Out (it was squeezed and cut off). */
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br']{flex:none!important;margin:12px 16px 0!important;padding:11px 14px!important;height:auto!important;border-radius:12px!important}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br']>:not(.flex){display:none!important}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br']>.flex{margin:0!important;gap:8px}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br']>.flex>*{margin:0!important}
html body.edunova-file-theme #sidebar>div.edu-net-off .uppercase{color:#fcd34d!important}
html body.edunova-file-theme #sidebar>div.edu-net-off .rounded-full{background:#f59e0b!important;animation:none!important}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br']{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br'] p{color:#ccfbf1!important}
html body.edunova-file-theme #sidebar>div[class*='bg-gradient-to-br'] button,html body.edunova-file-theme #school-sidebar-logout{background:rgba(20,184,166,.25)!important;color:#fff!important;border-color:rgba(94,234,212,.35)!important}
html body #sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2)}
/* One brand colour: the dashboard theme accent (was blue #2563eb) follows the app teal */
html body.edunova-file-theme{--accent:#0f766e;--soft:#e6f4f2}
html.dark body.edunova-file-theme{--accent:#2dd4bf;--soft:#123b3a}
body.edunova-file-theme>header [onclick*="addStudentModal"]{background:linear-gradient(135deg,#0f766e,#14b8a6)!important;color:#fff!important;box-shadow:0 6px 14px rgba(15,118,110,.25)!important}
body.edunova-file-theme>header [onclick*="addStudentModal"]:hover{filter:brightness(1.06)}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students{border-top-color:#0f766e}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students h2 i{color:#0f766e}
.dark #tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-group.students h2 i{color:#2dd4bf}
#tab-dashboard [hidden],header [hidden]{display:none!important}
.edu-dash-clickable{cursor:pointer;border-radius:10px}.edu-dash-clickable:hover{background:rgba(15,118,110,.07)}

/* QR attendance scanner */
.edu-roster-scan{background:#eef2ff!important;border:1px solid #c7d2fe!important;color:#3730a3!important}
.edu-qr-dialog{width:min(440px,calc(100% - 20px));max-height:calc(100dvh - 20px);border:0;border-radius:18px;padding:14px;box-shadow:0 30px 80px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:10px}
.edu-qr-dialog:not([open]){display:none}
.edu-qr-dialog::backdrop{background:rgba(15,23,42,.7)}
.edu-qr-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.edu-qr-count{background:#dcfce7;color:#166534;font-weight:800;border-radius:99px;padding:4px 10px;font-size:13px}
.edu-qr-frame{position:relative;border-radius:14px;overflow:hidden;background:#0f172a;aspect-ratio:1/1}
.edu-qr-video{width:100%;height:100%;object-fit:cover;display:block}
.edu-qr-target{position:absolute;inset:18%;border:3px solid rgba(255,255,255,.9);border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.25)}
.edu-qr-result{margin:0;padding:10px 12px;border-radius:10px;background:#f1f5f9;color:#334155;font-weight:700;font-size:15px}
.edu-qr-result.good{background:#dcfce7;color:#166534}
.edu-qr-result.bad{background:#fee2e2;color:#991b1b}
.edu-qr-list{margin:0;padding:0 0 0 22px;max-height:120px;overflow:auto;font-size:14px;color:#334155}
.edu-qr-done{width:100%}

/* Mark the rest Absent */
.edu-roster-rest{background:#fef2f2!important;border:1px solid #fecaca!important;color:#b91c1c!important}
.edu-rest-dialog{width:min(460px,calc(100% - 20px));max-height:calc(100dvh - 30px);display:flex;flex-direction:column;gap:10px}
.edu-rest-dialog:not([open]){display:none}
.edu-rest-all{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#f1f5f9;cursor:pointer}
.edu-rest-list{overflow:auto;max-height:50dvh;border:1px solid #e2e8f0;border-radius:10px}
.edu-rest-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;cursor:pointer}
.edu-rest-row:last-child{border-bottom:0}
.edu-rest-row small{margin-left:auto;color:#64748b}
.edu-rest-all input,.edu-rest-row input{width:20px;height:20px;accent-color:#dc2626}
.edu-rest-actions{display:flex;gap:10px;justify-content:flex-end}

/* Offline bar */
.edu-offline-bar{position:fixed;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);z-index:99995;width:min(560px,calc(100vw - 20px));display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:#fffbeb;border:1px solid #fde68a;color:#78350f;font-size:13px;font-weight:700;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.edu-offline-bar span{flex:1}
.edu-offline-bar.off{background:#1e293b;border-color:#334155;color:#f8fafc}
.edu-offline-bar.bad{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.edu-offline-bar .school-button{padding:6px 12px;font-size:12px}
.edu-offline-bar .school-button.edu-offline-close{flex:none;width:30px;height:30px;padding:0;border-radius:50%;font-size:18px;line-height:1;display:grid;place-items:center;background:rgba(255,255,255,.14);color:inherit;border:0}
.edu-roster-saved.pending{background:#fef3c7!important;color:#92400e!important}

/* Homework diary */
.edu-hw-head{margin:18px 0 8px;font-size:16px;font-weight:800;color:#0b3b36}
.edu-hw-list{display:grid;gap:10px}
.edu-hw-item{border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;background:#fff;display:grid;gap:6px}
.edu-hw-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.edu-hw-top strong{color:#0f766e}.edu-hw-top span{color:#64748b;font-size:13px;font-weight:700}
.edu-hw-item p{margin:0;white-space:pre-wrap;color:#1e293b}
.edu-hw-item small{color:#64748b}
.edu-hw-item .school-button{justify-self:start;padding:6px 12px;font-size:12px}

/* Teacher sign-in link (Teacher Accounts) */
.edu-login-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border-radius:14px;background:#f0fdfa;border:1px solid #ccfbf1;color:#134e4a;font-size:14px}
.edu-login-link strong{word-break:break-all}
.edu-login-link .school-button{padding:6px 12px;font-size:12px}

/* Login details message */
.edu-login-msg-text{white-space:pre-wrap;background:#f0fdfa;border:1px solid #ccfbf1;border-radius:12px;padding:12px 14px;font:14px/1.5 Inter,'Segoe UI',Arial,sans-serif;color:#0f2a3d;margin:10px 0}
.edu-login-msg-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.edu-login-msg-wa{background:#16a34a!important;border-color:#16a34a!important;color:#fff!important;text-decoration:none}

/* Holidays & weekly off */
.edu-closed-day{display:grid;gap:4px;padding:18px;border-radius:16px;background:repeating-linear-gradient(45deg,#f8fafc 0 10px,#f1f5f9 10px 20px);border:1px dashed #cbd5e1;text-align:center;color:#334155;margin:10px 0}
.edu-closed-day strong{font-size:18px;color:#0f766e}
.edu-hol-head{display:block;margin:14px 0 8px;color:#0b3b36}
.edu-week-days{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.edu-week-day{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;font-weight:700}
.edu-week-day input{width:18px;height:18px;accent-color:#0f766e}

/* Yearly & vacation fee */
.edu-fee-field{display:grid;gap:4px;font-size:13px;font-weight:700;color:#334155;margin-bottom:8px}
.edu-fee-field select,.edu-fee-field input{padding:9px 10px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-weight:500}
.edu-fee-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 12px;margin:6px 0 10px}
.edu-extra-fees{display:grid;gap:8px;margin:6px 0}
.edu-extra-fees div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#f0fdfa;border:1px solid #ccfbf1;font-size:14px;font-weight:700;color:#134e4a}
.edu-extra-fees .school-button{padding:6px 12px;font-size:12px}

/* A saved row leaves the list */
.edu-row-done{opacity:0;transform:translateX(30px);transition:opacity .4s,transform .4s}

/* Teacher profile */
.edu-person-link{border:0;background:none;padding:0;font:inherit;font-weight:800;color:#0f766e;cursor:pointer;text-align:left}
.edu-person-link:hover{text-decoration:underline}
.edu-teacher-profile{width:min(760px,calc(100% - 20px))}
.edu-tp-head{display:flex;gap:16px;align-items:center;margin-bottom:10px}
.edu-tp-head h3{margin:0;font-size:22px}
.edu-tp-head p{margin:2px 0}
.edu-tp-photo{width:96px;height:110px;border-radius:16px;background:#ccfbf1;border:3px solid #0f766e;display:grid;place-items:center;font-size:40px;font-weight:900;color:#0f766e;overflow:hidden;flex:none}
.edu-tp-photo img{width:100%;height:100%;object-fit:cover}
.edu-tp-login{display:inline-block;margin-top:6px;padding:4px 10px;border-radius:99px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800}
.edu-tp-login.on{background:#dcfce7;color:#166534}
.edu-tp-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.edu-tp-section{border-top:1px solid #e2e8f0;padding-top:12px;margin-top:12px}
.edu-tp-section h4{margin:0 0 8px;color:#0b3b36;font-size:15px}
.edu-tp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.edu-tp-grid div{background:#f8fafc;border-radius:10px;padding:8px 10px}
.edu-tp-grid small{display:block;color:#64748b;font-size:11px;font-weight:700;text-transform:uppercase}
.edu-tp-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.edu-tp-chip{border-radius:12px;padding:10px;text-align:center;color:#fff;font-weight:800}
.edu-tp-chip strong{display:block;font-size:22px}
.edu-tp-chip.present{background:#16a34a}.edu-tp-chip.absent{background:#dc2626}.edu-tp-chip.late{background:#d97706}.edu-tp-chip.leave{background:#6366f1}
.edu-tp-photo-edit{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}

/* Class tests */
.edu-test-heads{display:grid;gap:8px;margin:12px 0 4px}
.edu-test-chips{display:flex;flex-wrap:wrap;gap:8px}
.edu-test-chip{display:inline-flex;align-items:center;gap:6px;background:#ecfdf5;color:#0f766e;border:1px solid #a7f3d0;border-radius:999px;padding:5px 12px;font-weight:700;font-size:13px}
.edu-test-chip button{border:0;background:transparent;color:#b91c1c;font-size:16px;line-height:1;cursor:pointer;padding:0 2px}
.edu-test-add{display:flex;gap:8px;flex-wrap:wrap}.edu-test-add input{flex:1;min-width:180px}
.edu-test-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.edu-test-fields label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475569}
.edu-test-heads input,.edu-test-fields input,.edu-test-fields select{border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px;font-size:14px;background:#fff;color:#0f172a}
.edu-test-grid{margin-top:12px}
.edu-test-table{min-width:0!important}.edu-test-table input[type=number]{width:90px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px}
.edu-test-table input[type=checkbox]{width:20px;height:20px}
.dark .edu-test-chip{background:#064e3b;color:#a7f3d0;border-color:#065f46}
.dark .edu-test-heads input,.dark .edu-test-fields input,.dark .edu-test-fields select,.dark .edu-test-table input[type=number]{background:#0f172a;color:#e2e8f0;border-color:#334155}
.dark .edu-test-fields label{color:#cbd5e1}
/* ===== Teacher portal: simple, calm design (Nov 2026) =====
   Big clear sections with icons, a friendly welcome banner, light stat cards and a 3-step attendance guide. */
body.edu-teacher-theme{background:#f3f6fa}
.edu-teacher-portal [hidden]{display:none!important}
/* Welcome banner */
.edu-teacher-portal .school-card.edu-teacher-heading{background:linear-gradient(120deg,#0a7a74 0%,#10968b 55%,#27b39f 100%);border:0;color:#fff;min-height:0;padding:26px 28px;border-radius:20px;box-shadow:0 12px 28px #0a7a7426}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-avatar{width:60px;height:60px;border-radius:18px;background:#ffffff2e;color:#fff;border:1px solid #ffffff4d;font-size:22px}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-eyebrow{color:#d5fbf3;font-size:12px;font-weight:600;letter-spacing:0;margin-bottom:4px}
.edu-teacher-portal .edu-teacher-heading h1{color:#fff;font-size:26px;letter-spacing:-.01em}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-identity p{color:#e3fbf6;font-size:14px}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .school-filter{color:#e3fbf6}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .school-filter input{background:#fff;border:0;color:#16324a;font-size:13px;font-weight:600}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .school-button{background:#ffffff26;border:1px solid #ffffff59;color:#fff}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .school-button:hover{background:#fff;color:#0a7a74}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .edu-teacher-logout{background:transparent;border-color:#ffffff73;color:#fff}
.edu-teacher-portal .edu-teacher-heading .edu-teacher-header-actions .edu-teacher-logout:hover{background:#fff;color:#c23c57}
/* Stat cards: white, with a coloured icon and number */
.edu-teacher-theme .edu-teacher-portal .edu-teacher-stat{background:#fff;color:#16324a;border:1px solid #e3eaf1;border-radius:16px;min-height:0;padding:18px 20px;box-shadow:0 2px 8px #1a3a5a0a;flex-direction:row-reverse;justify-content:flex-end;gap:14px}
.edu-teacher-portal .edu-teacher-stat:hover{transform:none;box-shadow:0 6px 16px #1a3a5a14}
.edu-teacher-portal .edu-teacher-stat span{color:#5d6f84;font-size:13px;font-weight:600}
.edu-teacher-portal .edu-teacher-stat strong{font-size:28px;font-weight:800;line-height:1.1}
.edu-teacher-portal .edu-teacher-stat small{color:#8a99ab;font-size:11px}
.edu-teacher-portal .edu-teacher-stat i{width:48px;height:48px;border-radius:14px;font-size:20px}
.edu-teacher-portal .edu-teacher-stat.present i{background:#e3f7ee;color:#139a5b}.edu-teacher-portal .edu-teacher-stat.present strong{color:#139a5b}
.edu-teacher-portal .edu-teacher-stat.absent i{background:#fde9ee;color:#d43f63}.edu-teacher-portal .edu-teacher-stat.absent strong{color:#d43f63}
.edu-teacher-portal .edu-teacher-stat.late i{background:#fdf2dc;color:#bd7a06}.edu-teacher-portal .edu-teacher-stat.late strong{color:#bd7a06}
.edu-teacher-portal .edu-teacher-stat.leave i{background:#ebeafd;color:#5550c9}.edu-teacher-portal .edu-teacher-stat.leave strong{color:#5550c9}
/* Section menu: icon + word, wraps onto two rows instead of hiding behind a scroll */
.edu-teacher-portal .edu-teacher-tabs{gap:6px;padding:8px;border-radius:16px;box-shadow:0 2px 8px #1a3a5a08}
.edu-teacher-portal .edu-teacher-tabs .school-button{gap:8px;min-height:44px;padding:10px 16px;border-radius:11px;font-size:13px;font-weight:650;color:#4f6378}
.edu-teacher-portal .edu-teacher-tabs .school-button i{font-size:15px;color:#0a7a74;width:18px;text-align:center}
.edu-teacher-portal .edu-teacher-tabs .school-button[aria-pressed=true]{background:#0a7a74;color:#fff;box-shadow:0 4px 12px #0a7a7433}
.edu-teacher-portal .edu-teacher-tabs .school-button[aria-pressed=true] i{color:#fff}
@media(min-width:701px){.edu-teacher-portal .edu-teacher-tabs{flex-wrap:wrap;overflow:visible}}
/* Section cards */
.edu-teacher-portal .edu-teacher-pane>.school-card{border-radius:18px;padding:26px}
.edu-teacher-portal .edu-teacher-pane h2{font-size:20px;color:#13283d}
/* Attendance: 3 steps */
.edu-teacher-steps{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:4px 0 0;padding:0}
.edu-teacher-steps li{display:flex;align-items:center;gap:8px;color:#4f6378;font-size:13px;font-weight:600}
.edu-teacher-step-no{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e2f4f2;color:#0a7a74;font-size:12px;font-weight:800}
.edu-teacher-portal .edu-teacher-roster-filters{margin:16px 0}
.edu-teacher-portal .edu-teacher-roster-filters label{font-size:12px;color:#4f6378}
.edu-teacher-portal .edu-teacher-roster-filters select,.edu-teacher-portal .edu-teacher-roster-filters input{min-height:44px;height:44px;font-size:14px;font-weight:600;border-radius:10px}
/* Attendance toolbar buttons */
.edu-teacher-portal .edu-roster-bulk .school-button{gap:7px;min-height:42px;height:42px;font-weight:700}
.edu-teacher-portal .edu-roster-bulk .school-button i{font-size:14px}
.edu-teacher-portal .edu-roster-scan{background:#eef2ff!important;border:1px solid #c7d2fe!important;color:#3f3fb5!important}
.edu-teacher-portal .edu-roster-rest{background:#fff1f3!important;border:1px solid #fbc8d3!important;color:#c22d50!important}
.edu-teacher-portal .edu-roster-whatsapp i{font-size:17px!important}
.edu-teacher-portal .edu-roster-save-all:not(:disabled){background:#0a7a74!important;color:#fff!important;box-shadow:0 4px 12px #0a7a7433}
/* All done / empty class */
.edu-teacher-portal .edu-roster-done{gap:6px;padding:28px 20px;border-style:solid;border-color:#bfe8d1;border-radius:16px}
.edu-teacher-portal .edu-roster-done i{font-size:34px;color:#16a34a}
.edu-teacher-portal .edu-roster-done strong{font-size:17px}
.edu-teacher-empty{display:grid;justify-items:center;gap:6px;margin:4px 0 8px;padding:32px 20px;border:1px dashed #cfdbe6;border-radius:16px;background:#f8fafc;text-align:center}
.edu-teacher-empty i{display:grid;place-items:center;width:56px;height:56px;margin-bottom:6px;border-radius:50%;background:#e2f4f2;color:#0a7a74;font-size:22px}
.edu-teacher-empty strong{color:#13283d;font-size:16px}
.edu-teacher-empty span{color:#62748a;font-size:13px;max-width:380px}
/* Dark mode */
.dark .edu-teacher-portal .edu-teacher-stat{background:#192b40;border-color:#33465e;color:#e2e8f0}
.dark .edu-teacher-portal .edu-teacher-stat span,.dark .edu-teacher-steps li{color:#cbd5e1}
.dark .edu-teacher-portal .edu-teacher-pane h2,.dark .edu-teacher-empty strong{color:#e2e8f0}
.dark .edu-teacher-empty{background:#142337;border-color:#33465e}
.dark .edu-teacher-step-no,.dark .edu-teacher-empty i{background:#0f3d3a;color:#7ee0d4}
.dark .edu-teacher-portal .edu-teacher-tabs .school-button{color:#cbd5e1}
.dark .edu-teacher-portal .edu-teacher-tabs .school-button i{color:#5fd3c6}
.dark .edu-teacher-portal .edu-teacher-tabs .school-button[aria-pressed=true] i{color:#fff}
/* Phones: banner and steps stay compact */
@media(max-width:700px){
 .edu-teacher-portal .school-card.edu-teacher-heading{padding:18px!important;border-radius:20px!important}
 .edu-teacher-portal .edu-teacher-heading h1{font-size:21px}
 .edu-teacher-theme .edu-teacher-portal .edu-teacher-stat{padding:14px!important;gap:10px}
 .edu-teacher-portal .edu-teacher-stat i{width:38px;height:38px;font-size:16px;border-radius:12px}
 .edu-teacher-portal .edu-teacher-stat strong{font-size:24px}
 .edu-teacher-steps{flex-direction:column;gap:8px}
 .edu-teacher-portal .edu-teacher-pane>.school-card{padding:16px!important}
}
/* Promotion, exam date sheets, leave applications (frontend/school-app/school-extras.js) */
.edu-extra-panel{margin-top:16px;display:grid;gap:12px}.edu-extra-panel[hidden]{display:none!important}
.edu-extra-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.edu-test-fields label input+input{margin-top:6px}
.edu-promo-list{display:grid;gap:10px}
.edu-promo-all{display:flex;align-items:center;gap:8px;font-weight:800;color:#0f766e}
.edu-promo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;max-height:360px;overflow:auto;border:1px solid #e2e8f0;border-radius:14px;padding:10px;background:#fff}
.edu-promo-kid{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;font-size:14px}
.edu-promo-kid:has(input:not(:checked)){background:#fff7ed;color:#9a3412}
.edu-promo-all input,.edu-promo-kid input{width:18px;height:18px;flex:none}
.edu-promo-history{display:grid;gap:4px}
.edu-sheet-classes{max-height:150px;overflow:auto}
.edu-sheet-classes .edu-test-chip{cursor:pointer}
.edu-sheet-papers{display:grid;gap:8px}
.edu-sheet-paper{display:grid;grid-template-columns:150px 1fr 1fr 34px;gap:8px}
.edu-sheet-paper input,.edu-test-form>label input{border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px;font-size:14px;background:#fff;color:#0f172a;width:100%}
.edu-test-form>label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475569}
.edu-sheet-x{border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;border-radius:10px;font-size:18px;cursor:pointer}
.edu-sheet-table{min-width:0!important}.edu-sheet-table td{padding:8px 10px}
.edu-sheet-table tr.today td{background:#fef9c3;font-weight:700}
.edu-sheet-tag{border-radius:999px;padding:2px 10px;background:#f1f5f9}.edu-sheet-tag.on{background:#dcfce7;color:#166534!important}
.edu-leave-filter{cursor:pointer}.edu-leave-filter.active{background:#0f766e;color:#fff;border-color:#0f766e}
.edu-leave{border-left:4px solid #f59e0b}.edu-leave.approved{border-left-color:#16a34a}.edu-leave.rejected{border-left-color:#dc2626}
.edu-leave-tag{border-radius:999px;padding:2px 10px;background:#fef3c7;color:#92400e!important}
.edu-leave.approved .edu-leave-tag{background:#dcfce7;color:#166534!important}
.edu-leave.rejected .edu-leave-tag{background:#fee2e2;color:#991b1b!important}
@media (max-width:640px){.edu-sheet-paper{grid-template-columns:1fr 1fr;}.edu-sheet-paper input:first-child{grid-column:1/-1}}
.dark .edu-promo-grid{background:#0f172a;border-color:#334155}
.dark .edu-promo-kid:has(input:not(:checked)){background:#431407;color:#fed7aa}
.dark .edu-sheet-paper input,.dark .edu-test-form>label input{background:#0f172a;color:#e2e8f0;border-color:#334155}
.dark .edu-test-form>label{color:#cbd5e1}
.edu-test-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:8px}
#tab-students .edu-student-viewbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:10px;border-radius:12px;background:#f0faf9;border:1px solid #99d5d1;color:#0f5f5a;scroll-margin-top:80px}
#tab-students .edu-student-viewbar button{border:1px solid #0f7d77;background:#fff;color:#0f7d77;border-radius:10px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}
.dark #tab-students .edu-student-viewbar{background:#0b2f2d;border-color:#155e59;color:#99f6e4}
.edu-voice-audio{width:100%;max-width:360px;height:40px;margin-top:6px}
/* Student documents in the profile */
.edu-doc-box{border:1px solid #e2e8f0;border-radius:12px;padding:14px 15px;background:#fff;display:grid;gap:10px;margin-top:14px}
.edu-doc-box[hidden]{display:none}
.edu-doc-head{margin:0;font-size:15px;color:#172b4d}
.edu-doc-fields{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.edu-doc-fields select,.edu-doc-fields input:not([type=checkbox]){border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px;font-size:14px;background:#fff;color:#0f172a;min-width:0;flex:1 1 200px}
.edu-doc-scan{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569}
.edu-doc-list{display:grid;gap:8px}
.edu-doc-item{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.edu-doc-item strong{display:block;color:#0f2a3d}.edu-doc-item small{color:#64748b}
.edu-doc-item .school-button{padding:6px 12px;font-size:12px}
.dark .edu-doc-box,.dark .edu-doc-item{background:#0f172a;border-color:#334155}
.dark .edu-doc-head,.dark .edu-doc-item strong{color:#e2e8f0}
.dark .edu-doc-fields select,.dark .edu-doc-fields input:not([type=checkbox]){background:#0f172a;color:#e2e8f0;border-color:#334155}
/* Gate Scanner (full screen) */
.edu-gate{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;border:0;background:#0b1f2a;color:#e2e8f0;display:flex;flex-direction:column}
.edu-gate:not([open]){display:none}
.edu-gate::backdrop{background:#0b1f2a}
.edu-gate-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;background:#0f2f3d}
.edu-gate-head>div{flex:1;min-width:180px;display:grid}
.edu-gate-head strong{font-size:17px}.edu-gate-head small{color:#94a3b8}
.edu-gate-late{display:flex;align-items:center;gap:6px;font-size:13px;color:#cbd5e1}
.edu-gate-late input[type=time]{background:#0b1f2a;color:#fff;border:1px solid #334155;border-radius:8px;padding:6px 8px}
.edu-gate-body{flex:1;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;padding:12px;min-height:0}
.edu-gate-frame{position:relative;border-radius:16px;overflow:hidden;background:#000;min-height:240px}
.edu-gate-frame video{width:100%;height:100%;object-fit:cover}
.edu-gate-side{display:grid;grid-template-rows:auto auto 1fr;gap:10px;min-height:0}
.edu-gate-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;background:#1e293b;border:3px solid #334155;min-height:120px}
.edu-gate-card strong{display:block;font-size:24px;line-height:1.2;color:#fff}
.edu-gate-card span{display:block;font-size:15px;color:#cbd5e1}
.edu-gate-card small{display:block;margin-top:4px;font-size:15px;font-weight:800}
.edu-gate-card.good{border-color:#22c55e;background:#052e1a}.edu-gate-card.good small{color:#4ade80}
.edu-gate-card.late{border-color:#f59e0b;background:#3b2205}.edu-gate-card.late small{color:#fbbf24}
.edu-gate-card.again{border-color:#38bdf8;background:#082f49}.edu-gate-card.again small{color:#7dd3fc}
.edu-gate-card.bad{border-color:#ef4444;background:#3b0a0a}.edu-gate-card.bad small{color:#fca5a5}
.edu-gate-photo{flex:none;width:84px;height:84px;border-radius:50%;background:#0f172a;display:grid;place-items:center;font-size:40px;font-weight:900;overflow:hidden}
.edu-gate-photo img{width:100%;height:100%;object-fit:cover}
.edu-gate-counts{display:flex;gap:8px;flex-wrap:wrap}
.edu-gate-counts span{background:#1e293b;border-radius:999px;padding:6px 12px;font-weight:800;font-size:13px}
.edu-gate-list{margin:0;padding:0;list-style:none;overflow:auto;display:grid;gap:4px;align-content:start}
.edu-gate-list li{background:#111c2b;border-left:4px solid #22c55e;border-radius:8px;padding:7px 10px;font-size:13px}
.edu-gate-list li.late{border-left-color:#f59e0b}
.edu-gate-list b{color:#fff;margin-right:4px}
@media (max-width:760px){.edu-gate-body{grid-template-columns:1fr;grid-template-rows:minmax(220px,45vh) auto}.edu-gate-side{grid-template-rows:auto auto auto}.edu-gate-list{max-height:30vh}}
.edu-gate-entry{padding:14px 18px!important}.edu-gate-entry .school-toolbar{align-items:center;gap:12px}
.edu-gate-counts span.absent{background:#3b0a0a;color:#fca5a5}
.edu-present-closed{margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;font-weight:700;font-size:13px}
.dark .edu-present-closed{background:#431407;border-color:#9a3412;color:#fed7aa}
.edu-school-times{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}
.edu-school-times>strong{flex-basis:100%;color:#0f2a3d}
.edu-school-times label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475569;max-width:260px}
.edu-school-times label small{font-weight:500;color:#64748b}
.edu-school-times input[type=time]{border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-size:15px;background:#fff;color:#0f172a}
.edu-school-times-check{display:flex!important;align-items:center;gap:6px}
.edu-school-times>small{flex-basis:100%}
.dark .edu-school-times{border-color:#334155}.dark .edu-school-times>strong{color:#e2e8f0}
.dark .edu-school-times input[type=time]{background:#0f172a;color:#e2e8f0;border-color:#334155}
/* Teachers / Staff on phones: header buttons on two rows; payment history as cards */
@media(max-width:700px){
.edu-staff-header-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%}
.edu-staff-header-actions .school-button,.edu-staff-header-actions .edu-staff-add{width:100%!important;min-width:0!important;white-space:normal!important;padding:10px 8px!important;font-size:13px!important;line-height:1.2}
.edu-staff-header-actions>.school-button:first-child{grid-column:1/-1}
.edu-staff-history-table .school-table-wrap{overflow:visible}
.edu-staff-history-table table,.edu-staff-history-table tbody{display:block;min-width:0!important;width:100%}
.edu-staff-history-table thead{display:none}
.edu-staff-history-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:12px;margin:0 0 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.edu-staff-history-table tbody td{display:block;padding:0!important;border:0!important;min-width:0!important;white-space:normal!important;font-size:13px}
.edu-staff-history-table tbody td[data-label]::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:2px}
.edu-staff-history-table tbody td:first-child{grid-column:1/-1}
.edu-staff-history-table tbody td:first-child::before{display:none}
.edu-staff-history-table tbody td:last-child:not([data-label]),.edu-staff-history-table tbody td[data-label=""]{grid-column:1/-1}
.dark .edu-staff-history-table tbody tr{background:#0f172a;border-color:#334155}
}
@media(max-width:700px){.edu-staff-history-table tbody td.edu-staff-who{display:flex!important;align-items:center;gap:8px}.edu-staff-history-table tbody td:empty{display:none!important}}
@media(max-width:700px){.edu-staff-header-actions>.school-button:nth-child(2):last-child{grid-column:1/-1}}
/* Student profile on phones: the action buttons scroll away with the page (only × stays) */
@media(max-width:640px){
.edu-profile-toolbar{position:static!important;box-shadow:none!important;padding:10px 12px 12px!important}
.edu-profile-toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important;width:100%}
.edu-profile-toolbar-actions .edu-profile-tool:not(.close){flex:none!important;min-height:38px;padding:7px 6px!important;font-size:12px!important;white-space:normal;line-height:1.2;justify-content:center}
.edu-profile-toolbar-actions .edu-profile-tool.primary{grid-column:1/-1}
.edu-profile-toolbar-actions .edu-profile-tool.close{position:fixed;top:calc(5vh + 8px);right:calc(2.5vw + 8px);z-index:20;width:40px;height:40px;border-radius:50%;box-shadow:0 4px 14px rgba(15,42,61,.25);background:#fff}
}
.edu-doc-box{scroll-margin-top:12px;transition:box-shadow .3s}.edu-doc-flash{box-shadow:0 0 0 3px #14b8a6}
.edu-doc-all{justify-self:start}
/* Student profile pages: the big button bar scrolls away; Documents / Fee History open as their own page */
.edu-profile-toolbar{position:static!important}
.edu-profile-toolbar.on-page{position:sticky!important;top:0;padding-top:10px!important;padding-bottom:10px!important}
.edu-profile-pagebar{display:flex;align-items:center;gap:10px;width:100%}
.edu-profile-pagebar[hidden]{display:none}
.edu-profile-pagebar strong{flex:1;min-width:0;font-size:15px;color:#0f2a3d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edu-profile-pagebar .edu-profile-tool.close{position:static!important;box-shadow:none!important}
.edu-student-profile-dialog>.edu-doc-page{margin:16px 24px}
.edu-student-profile-dialog>.edu-profile-fee-section[hidden],.edu-student-profile-dialog>section[hidden]{display:none!important}
@media(max-width:640px){.edu-student-profile-dialog>.edu-doc-page{margin:12px}}
.dark .edu-profile-pagebar strong{color:#e2e8f0}
.edu-profile-toolbar-actions[hidden],.edu-profile-toolbar-title[hidden]{display:none!important}
.edu-profile-pagebar .edu-profile-tool.primary{flex:none!important;width:auto!important;padding:8px 14px!important}
.edu-doc-scan{flex:1 1 100%}
.edu-doc-scan input[type=checkbox]{width:18px!important;height:18px;flex:none!important;margin:0}.edu-doc-scan{justify-content:flex-start}

/* Board forms (9th / Matric). Not a .glass-panel: the students list replaces the 2nd .glass-panel of the tab. */
.edu-board{background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:24px;padding:20px;box-shadow:0 10px 30px -22px rgba(15,42,51,.35)}
.dark .edu-board{background:#182639;border-color:#334155}
.edu-board-site{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;background:#f0fdfa;border:1px solid #99f6e4;border-radius:16px;padding:14px}
.edu-board-site strong{display:block;font-size:17px;color:#0f766e}.edu-board-site small{color:#64748b}
.edu-board-actions{display:flex;flex-wrap:wrap;gap:8px}
.edu-board-picker{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.edu-board-picker[hidden],.edu-board-custom[hidden]{display:none}
.edu-board-picker select,.edu-board-custom input,.edu-board-controls select,.edu-board-progress select,.edu-board-progress input{min-height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:6px 10px;background:#fff;max-width:100%}
.edu-board-custom{display:flex;flex-wrap:wrap;gap:8px}
.edu-board-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:center;font-weight:700}
.edu-board-pending{display:inline-flex;gap:6px;align-items:center;font-weight:600;white-space:nowrap}
.edu-board-pending input{width:18px!important;height:18px;min-height:0!important;margin:0;flex:none}
.edu-board-counts{font-weight:700;color:#0f766e;margin:0}
.edu-board-list{display:grid;gap:12px}
.edu-board-card{border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:16px;padding:14px;background:#fff;display:grid;gap:10px;min-width:0}
.edu-board-card.status-filled{border-left-color:#f59e0b}.edu-board-card.status-fee_paid{border-left-color:#3b82f6}.edu-board-card.status-slip_received{border-left-color:#16a34a}
.edu-board-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.edu-board-top strong{display:block;font-size:16px}.edu-board-top small{color:#64748b}
.edu-board-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px}
.edu-board-field{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #eef2f7;border-radius:10px;background:#f8fafc;min-width:0}
.edu-board-field span{font-size:12px;color:#64748b;min-width:92px}
.edu-board-field b{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.edu-board-field.missing b{color:#b91c1c;font-weight:600}
.edu-board-copy{border:1px solid #99f6e4;background:#f0fdfa;color:#0f766e;border-radius:8px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.edu-board-progress{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.edu-board-progress input{flex:1 1 150px}
.edu-board-progress small{color:#16a34a;font-weight:700}
.dark .edu-board-site{background:#12322f;border-color:#1f5f58}.dark .edu-board-card{background:#182639;border-color:#334155}
.dark .edu-board-field{background:#0f172a;border-color:#334155}.dark .edu-board-field span,.dark .edu-board-top small{color:#94a3b8}
.dark .edu-board-picker select,.dark .edu-board-custom input,.dark .edu-board-controls select,.dark .edu-board-progress select,.dark .edu-board-progress input{background:#0f172a;color:#e2e8f0;border-color:#475569}
.dark .edu-board-copy{background:#12322f;border-color:#1f5f58;color:#5eead4}
@media (max-width:640px){.edu-board-grid{grid-template-columns:1fr}.edu-board-progress>*{flex:1 1 100%}}
/* Attendance: one compact bar on top (type, mode, extras); boxes under it open only when pressed. */
#tab-attendance > [hidden]{display:none!important}
#tab-attendance .edu-attendance-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 16px!important}
#tab-attendance .edu-attendance-bar .edu-attendance-tabs{margin:0;flex:0 1 auto}
#tab-attendance .edu-attendance-bar .edu-attendance-tabs .school-button{flex:0 1 auto}
#tab-attendance .edu-attendance-bar .edu-attendance-modes{margin:0;gap:6px}
#tab-attendance .edu-attendance-bar .edu-attendance-modes .school-button{min-height:38px;padding:7px 16px;font-size:13px;border-radius:10px}
.edu-attendance-extras{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.edu-attendance-extras .school-button{min-height:38px;height:auto;margin:0;padding:7px 14px;border-radius:10px;font-size:13px;box-shadow:none;background:#f2f7fa;border:1px solid #dce8ef;color:#24425a}
.edu-attendance-extras .school-button[aria-expanded=true]{background:#e3f3f1;border-color:#0f7d77;color:#0f5f5a}
.edu-attendance-extras .edu-attendance-extra-alert{background:#fff4e5;border-color:#f0b35b;color:#8a4b00}
.dark .edu-attendance-extras .school-button{background:#172b3e;border-color:#334b60;color:#d3e2ec}
.dark .edu-attendance-extras .school-button[aria-expanded=true]{background:#123a38;border-color:#2dd4bf;color:#ccfbf1}
.dark .edu-attendance-extras .edu-attendance-extra-alert{background:#3a2a10;border-color:#b7791f;color:#fbd38d}
@media (max-width:640px){.edu-attendance-extras{margin-left:0;width:100%}.edu-attendance-extras .school-button{flex:1 1 auto}#tab-attendance .edu-attendance-bar .edu-attendance-tabs,#tab-attendance .edu-attendance-bar .edu-attendance-modes{width:100%}#tab-attendance .edu-attendance-bar .edu-attendance-tabs .school-button,#tab-attendance .edu-attendance-bar .edu-attendance-modes .school-button{flex:1 1 0}}
.edu-roster-profile{all:unset;cursor:pointer;display:inline-block;border-radius:6px}
.edu-roster-profile strong{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .15s,color .15s}
.edu-roster-profile:hover strong,.edu-roster-profile:focus-visible strong{color:#0f7d77;text-decoration-color:currentColor}
.edu-roster-profile:focus-visible{outline:2px solid #0f7d77;outline-offset:2px}
/* Two shifts: All / Morning / Afternoon switch in the attendance bar (same look as Student / Teacher). */
.edu-attendance-shifts{display:inline-flex;flex-wrap:wrap;gap:5px;padding:5px;border:1px solid #dce8ef;border-radius:13px;background:#f2f7fa;max-width:100%}
.edu-attendance-shifts[hidden]{display:none!important}
.edu-attendance-shifts .school-button{min-height:38px;height:38px;margin:0;padding:7px 14px;border-radius:9px;font-size:12px;box-shadow:none}
.edu-attendance-shifts .school-button[aria-pressed=true]{background:#0f7d77;border-color:#0f7d77;color:#fff}
.edu-attendance-shifts .school-button[aria-pressed=false]{background:transparent;border-color:transparent;color:#52657e}.edu-attendance-shifts .school-button[aria-pressed=false]:hover{background:#e3f1ef;color:#0f5f5a}
.dark .edu-attendance-shifts{background:#172b3e;border-color:#334b60}
.dark .edu-attendance-shifts .school-button[aria-pressed=false]{color:#b4cad8}
@media (max-width:640px){#tab-attendance .edu-attendance-bar .edu-attendance-shifts{width:100%}#tab-attendance .edu-attendance-bar .edu-attendance-shifts .school-button{flex:1 1 0}}
.edu-shift-tools{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #e2eaf2}
.edu-shift-tools[hidden]{display:none!important}
.edu-shift-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.edu-shift-row label{display:grid;gap:4px;font-size:12px;font-weight:600}
.edu-access-form [hidden]{display:none!important}
.edu-gate-entry [hidden]{display:none!important}
.edu-dash-shift{margin-top:12px}
.edu-page-shift{margin-top:12px}

/* ← Back at the top of every page (except the dashboard). */
.edu-back-bar{display:flex;margin:0 0 4px}
.edu-back-bar[hidden]{display:none!important}
.edu-back-button{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;border:1px solid #99f6e4;background:#f0fdfa;color:#0f766e;font-size:14px;font-weight:700;cursor:pointer;min-height:40px}
.edu-back-button:hover,.edu-back-button:focus-visible{background:#ccfbf1}
/* Date / time boxes: the value sits in the middle like the other boxes (iPhone Safari put it at the top). */
@supports (-webkit-touch-callout:none){input[type=date],input[type=time],input[type=month],input[type=datetime-local]{display:flex;align-items:center}}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:1.25em}

/* Notifications: × on each one, Clear all; older than 3 days leave by themselves. */
.edu-notification-item{position:relative}
.edu-notification-item .edu-notification-row{padding-right:44px}
.edu-notification-item .edu-notification-row-top{padding-right:0}
.edu-notification-del{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:50%;background:#e2e8f0;color:#475569;font-size:18px;line-height:1;display:grid;place-items:center;cursor:pointer}
.edu-notification-del:hover,.edu-notification-del:focus-visible{background:#fee2e2;color:#b91c1c}
.edu-notification-clear{color:#b91c1c!important}

/* Absent Students Alert: × on each student, Clear all. */
.edu-absence-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.edu-absence-top .edu-absence-summary{margin:0}
.edu-absence-clear{color:#b91c1c!important}
.edu-absence-del{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:#e2e8f0;color:#475569;font-size:19px;line-height:1;display:grid;place-items:center;cursor:pointer}
.edu-absence-del:hover,.edu-absence-del:focus-visible{background:#fee2e2;color:#b91c1c}
/* Paramedic Institute page (frontend/school-app/paramedic.js) */
.edu-pm-page{display:grid;gap:16px}
.edu-pm-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:14px}
.edu-pm-tile{background:#f0fdfa;border:1px solid #99f6e4;border-radius:14px;padding:12px}.edu-pm-tile strong{display:block;font-size:22px;color:#0f766e}.edu-pm-tile span{font-size:12px;color:#64748b}
.dark .edu-pm-tile{background:#12303a;border-color:#155e63}
.edu-pm-tabs{display:flex;flex-wrap:wrap;gap:8px}
.edu-pm-tabs button{padding:9px 14px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-weight:600;font-size:14px}
.edu-pm-tabs button.active{background:#0e6177;border-color:#0e6177;color:#fff}
.dark .edu-pm-tabs button:not(.active){background:#182639;color:#cbd5e1;border-color:#334155}
.edu-pm-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.edu-pm-bar select,.edu-pm-bar input,.edu-pm-reg select,.edu-pm-reg input{border:1px solid #cbd5e1;border-radius:9px;padding:7px 9px}
.edu-pm-counts{font-weight:600;color:#0f766e;margin:6px 0}
.edu-pm-who strong,.edu-pm-who small{display:block}.edu-pm-who small{color:#64748b}
.edu-pm-reg{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:6px;min-width:280px}
.edu-pm-ok{color:#15803d;font-weight:700}.edu-pm-short{color:#b91c1c;font-weight:700}
.edu-pm-rot-running{color:#15803d;font-weight:700}.edu-pm-rot-upcoming{color:#0369a1}.edu-pm-rot-finished{color:#64748b}
.edu-pm-clinical{display:grid;gap:6px;margin:12px 0;max-height:55vh;overflow:auto}
.edu-pm-clinical-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #e2e8f0}
.edu-pm-marks{display:flex;gap:6px}
.edu-pm-mark{width:36px;height:36px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;font-weight:700;color:#334155}
.edu-pm-mark.mark-P[aria-pressed=true]{background:#16a34a;border-color:#16a34a;color:#fff}
.edu-pm-mark.mark-A[aria-pressed=true]{background:#dc2626;border-color:#dc2626;color:#fff}
.edu-pm-mark.mark-L[aria-pressed=true]{background:#d97706;border-color:#d97706;color:#fff}
@media (max-width:640px){.edu-pm-reg{grid-template-columns:1fr;min-width:180px}}
.edu-pm-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.edu-pm-links .school-button{padding:5px 9px!important;font-size:12px!important}
.edu-pm-procs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin:10px 0}
.edu-pm-proc{display:grid;grid-template-columns:1fr auto;gap:4px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;font-size:13px}
.edu-pm-proc-bar{grid-column:1/-1;height:6px;background:#e2e8f0;border-radius:6px;overflow:hidden}.edu-pm-proc-bar span{display:block;height:100%;background:#0e6177}.edu-pm-proc.done .edu-pm-proc-bar span{background:#16a34a}
.edu-pm-add{margin:10px 0;border:1px dashed #94a3b8;border-radius:12px;padding:8px 12px}.edu-pm-add summary{cursor:pointer;font-weight:700;color:#0e6177}
.edu-pm-check{display:flex!important;align-items:center;gap:6px}.edu-pm-check input{width:auto!important}
tr.edu-pm-within td{background:#f0fdf4}.dark tr.edu-pm-within td{background:#12301f}
.edu-pm-status{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.edu-pm-status .school-button{padding:6px 12px!important}
/* Paramedic admission form, fee structure and fee account */
.school-dialog.edu-pm-wide{width:min(980px,96vw);max-width:980px}
.edu-pm-form{display:grid;gap:12px}
.edu-pm-sec{border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;margin:0;min-width:0}
.edu-pm-sec legend{font-weight:800;color:#0e6177;padding:0 6px}
.edu-pm-sec>p{margin:0 0 8px;font-size:12.5px}
.edu-pm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 12px}
.edu-pm-field{display:grid;gap:4px;font-size:12.5px;font-weight:600;color:#334155;min-width:0}
.edu-pm-field.wide{grid-column:1/-1}
.edu-pm-field input,.edu-pm-field select,.edu-pm-fee-row input,.edu-pm-fee-row select{border:1px solid #cbd5e1;border-radius:9px;padding:8px 10px;font-weight:400;min-width:0;width:100%;background:#fff;color:#0f172a}
.dark .edu-pm-field input,.dark .edu-pm-field select,.dark .edu-pm-fee-row input,.dark .edu-pm-fee-row select{background:#0f172a;color:#e2e8f0;border-color:#334155}
.edu-pm-field small{font-weight:400}
.edu-pm-doc{padding:6px 8px;border-radius:8px;font-size:13px}.edu-pm-doc.missing{background:#fef2f2}
.dark .edu-pm-doc.missing{background:#3b1414}
.edu-pm-result{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;flex:1;min-width:240px}
.edu-pm-sticky{position:sticky;bottom:0;background:inherit;padding:10px 0;border-top:1px solid #e2e8f0;margin-top:8px}
.school-dialog .edu-pm-sticky{background:#fff}.dark .school-dialog .edu-pm-sticky{background:#182639}
.edu-pm-fee-rows{display:grid;gap:8px}
.edu-pm-fee-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(90px,1fr) minmax(150px,1.3fr) minmax(170px,1.5fr) auto;gap:8px;align-items:center}
.edu-pm-fee-row .school-button{padding:6px 12px!important}
.edu-pm-pay{border:1px solid #99f6e4;background:#f0fdfa;border-radius:14px;padding:12px 14px;margin:12px 0;display:grid;gap:8px}
.dark .edu-pm-pay{background:#12303a;border-color:#155e63}
.edu-pm-h3{font-weight:800;margin:14px 0 6px;color:#0e6177}
.edu-pm-tile.bad strong{color:#b91c1c}
@media (max-width:700px){.edu-pm-fee-row{grid-template-columns:1fr 1fr}.edu-pm-fee-row input:first-child{grid-column:1/-1}}
/* Paramedic Institute panel (frontend/school-app/paramedic-panel.js) */
.edu-pm-nav{display:grid;gap:2px}
.edu-pm-head{padding:4px 2px}.edu-pm-title{font-size:22px;font-weight:800;margin:0;color:#0f2f3a}.dark .edu-pm-title{color:#e2e8f0}
.edu-pm-body{display:grid;gap:16px}
button.edu-pm-tile{text-align:left;cursor:pointer;font:inherit}button.edu-pm-tile:hover{border-color:#0e6177}
.edu-pm-report td,.edu-pm-report th{white-space:nowrap;padding:6px 8px!important;font-size:12.5px}
.edu-pm-tabs[hidden]{display:none!important}
.edu-pm-doc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px}
.edu-pm-doc-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.edu-pm-doc-acts .school-button{padding:5px 10px!important;font-size:12px!important}
.edu-pm-doc-acts [hidden],.edu-pm-bar [hidden]{display:none!important}
.edu-pm-grid:has(> .edu-pm-doc){grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
/* Paramedic Institute dashboard (paramedic-panel.js → pmOverview) */
.pm-dash{display:grid;gap:18px;--pm-ink:#0f2433;--pm-mute:#64748b;--pm-line:#e3e9f0;--pm-card:#fff}
.dark .pm-dash{--pm-ink:#e2e8f0;--pm-mute:#94a3b8;--pm-line:#2b3a4f;--pm-card:#162234}
.pm-dash-hero{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;padding:22px 24px;border-radius:20px;background:linear-gradient(135deg,#0e6177 0%,#0f766e 55%,#14917f 100%);color:#fff;box-shadow:0 18px 40px -26px rgba(14,97,119,.8)}
.pm-dash-hero h1{margin:2px 0 4px;font-size:26px;font-weight:800;letter-spacing:-.01em;color:#fff}
.pm-dash-eyebrow{margin:0;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
.pm-dash-hero .pm-dash-sub{color:rgba(255,255,255,.85)}
.pm-dash-sub{margin:0;font-size:13px;color:var(--pm-mute)}
.pm-dash-quick{display:flex;flex-wrap:wrap;gap:8px}
.pm-dash-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;font-weight:700;font-size:13.5px;cursor:pointer;backdrop-filter:blur(4px)}
.pm-dash-btn:hover{background:rgba(255,255,255,.22)}
.pm-dash-btn.primary{background:#fff;color:#0e6177;border-color:#fff}
.pm-dash-btn.primary:hover{background:#ecfdf5}
.pm-dash-setup{padding:16px 20px;border-radius:16px;border:1px dashed #f59e0b;background:#fffbeb}
.dark .pm-dash-setup{background:#2a2412;border-color:#a16207}
.pm-dash-setup h2{margin:0 0 2px;font-size:16px;font-weight:800;color:#92400e}
.dark .pm-dash-setup h2{color:#fcd34d}
.pm-dash-setup ol{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:0;list-style:none;counter-reset:s}
.pm-dash-setup li{counter-increment:s}
.pm-dash-step{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid #fcd34d;background:#fff;color:#92400e;font-weight:700;font-size:13px;cursor:pointer}
.pm-dash-step::before{content:counter(s);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f59e0b;color:#fff;font-size:11px}
.pm-dash-setup li.done .pm-dash-step{border-color:#86efac;color:#15803d;background:#f0fdf4;text-decoration:line-through;text-decoration-thickness:1px}
.pm-dash-setup li.done .pm-dash-step::before{content:'✓';background:#16a34a}
.pm-dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.pm-dash-kpi{display:flex;gap:14px;align-items:center;text-align:left;padding:16px;border-radius:16px;border:1px solid var(--pm-line);background:var(--pm-card);color:var(--pm-ink);cursor:pointer;font:inherit;box-shadow:0 8px 24px -20px rgba(15,36,51,.45);transition:transform .15s,box-shadow .15s}
.pm-dash-kpi:hover{transform:translateY(-2px);box-shadow:0 14px 30px -20px rgba(15,36,51,.55)}
.pm-dash-kpi-icon{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;font-size:19px}
.pm-dash-kpi-text{display:grid;gap:2px;min-width:0}
.pm-dash-kpi .lbl{font-size:12px;font-weight:700;color:var(--pm-mute);text-transform:uppercase;letter-spacing:.04em}
.pm-dash-kpi strong{font-size:24px;font-weight:800;line-height:1.15;color:var(--pm-ink)}
.pm-dash-kpi small{font-size:12.5px;color:var(--pm-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-dash-kpi.blue .pm-dash-kpi-icon{background:#dbeafe;color:#1d4ed8}
.pm-dash-kpi.green .pm-dash-kpi-icon{background:#dcfce7;color:#15803d}
.pm-dash-kpi.teal .pm-dash-kpi-icon{background:#ccfbf1;color:#0f766e}
.pm-dash-kpi.amber .pm-dash-kpi-icon{background:#fef3c7;color:#b45309}
.pm-dash-kpi.red .pm-dash-kpi-icon{background:#fee2e2;color:#b91c1c}
.pm-dash-kpi.red strong{color:#b91c1c}
.pm-dash-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px}
.pm-dash-panel{padding:18px 20px;border-radius:16px;border:1px solid var(--pm-line);background:var(--pm-card);color:var(--pm-ink);display:grid;gap:10px;align-content:start;box-shadow:0 8px 24px -22px rgba(15,36,51,.45)}
.pm-dash-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pm-dash-panel-head h2{margin:0;font-size:15.5px;font-weight:800;color:var(--pm-ink)}
.pm-dash-link{border:0;background:none;color:#0e6177;font-weight:700;font-size:13px;cursor:pointer;padding:4px 6px;border-radius:8px}
.pm-dash-link:hover{background:#ecfeff}
.dark .pm-dash-link{color:#5eead4}.dark .pm-dash-link:hover{background:#12303a}
.pm-dash-empty{margin:4px 0;padding:14px;border-radius:12px;background:#f8fafc;color:var(--pm-mute);font-size:13.5px;text-align:center}
.dark .pm-dash-empty{background:#0f1a2a}
.pm-dash-bars{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;align-items:end;height:190px;padding:6px 4px 0}
.pm-dash-bar{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:6px;height:100%}
.pm-dash-bar .b{align-self:end;width:min(46px,80%);border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#5eead4,#0f766e);min-height:0}
.pm-dash-bar.now .b{background:linear-gradient(180deg,#38bdf8,#0e6177)}
.pm-dash-bar .v{font-size:11.5px;font-weight:700;color:var(--pm-ink)}
.pm-dash-bar .m{font-size:12px;color:var(--pm-mute);font-weight:600}
.pm-dash-pipe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pm-dash-stage{position:relative;display:grid;gap:2px;padding:12px 10px;border-radius:12px;text-align:center}
.pm-dash-stage strong{font-size:24px;font-weight:800}
.pm-dash-stage span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.pm-dash-stage.blue{background:#eff6ff;color:#1d4ed8}.pm-dash-stage.violet{background:#f5f3ff;color:#6d28d9}
.pm-dash-stage.amber{background:#fffbeb;color:#b45309}.pm-dash-stage.green{background:#f0fdf4;color:#15803d}
.dark .pm-dash-stage{background:#0f1a2a}
.pm-dash-line{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) auto;align-items:center;gap:12px;padding:9px 10px;border:1px solid var(--pm-line);border-radius:12px;background:transparent;color:var(--pm-ink);font:inherit;text-align:left;cursor:pointer}
.pm-dash-line:hover{border-color:#5eead4}
.pm-dash-line .n{font-weight:700;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-dash-meter{display:block;height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden}
.dark .pm-dash-meter{background:#26364b}
.pm-dash-meter span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#14b8a6,#0e6177)}
.pm-dash-chip{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.pm-dash-chip.ok{background:#dcfce7;color:#166534}.pm-dash-chip.warn{background:#fef3c7;color:#92400e}.pm-dash-chip.bad{background:#fee2e2;color:#991b1b}
.pm-dash-course{display:grid;gap:6px;padding:8px 2px;border-bottom:1px solid var(--pm-line)}
.pm-dash-course:last-child{border-bottom:0}
.pm-dash-course-top{display:flex;justify-content:space-between;gap:10px;font-size:13.5px}
.pm-dash-course-top span{color:var(--pm-mute);font-weight:600;white-space:nowrap}
.pm-dash-course small{color:var(--pm-mute);font-size:12px}
.pm-dash-person{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--pm-line)}
.pm-dash-person:last-child{border-bottom:0}
.pm-dash-person>div{flex:1;min-width:0;display:grid}
.pm-dash-person strong{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-dash-person small{color:var(--pm-mute);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edu-pm-head[hidden]{display:none!important}
@media (max-width:1100px){.pm-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-dash-row{grid-template-columns:1fr}}
@media (max-width:560px){.pm-dash-kpis{grid-template-columns:1fr}.pm-dash-hero{padding:18px}.pm-dash-hero h1{font-size:21px}.pm-dash-pipe{grid-template-columns:repeat(2,1fr)}.pm-dash-bars{height:150px}}
body.edu-institute-panel .edu-back-bar{display:none!important}
/* Student profile (paramedic-panel.js → pmStudentProfile) */
.pm-name-link{display:block;padding:0;border:0;background:none;font:inherit;font-weight:700;color:#0e6177;text-align:left;cursor:pointer}
.pm-name-link:hover{text-decoration:underline}
.dark .pm-name-link{color:#5eead4}
.pm-prof-dialog{width:min(1080px,96vw)!important;max-width:1080px!important}
.pm-prof-top{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#0e6177,#0f766e);color:#fff;margin-bottom:14px}
.pm-prof-avatar{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.5);font-size:22px;font-weight:800}
.pm-prof-who{flex:1;min-width:220px;display:grid;gap:3px;justify-items:start}
.pm-prof-who h2{margin:0;font-size:22px;font-weight:800;color:#fff}
.pm-prof-who p{margin:0;color:rgba(255,255,255,.85);font-size:13.5px}
.pm-prof-acts{display:flex;flex-wrap:wrap;gap:8px}
.pm-prof-btn{padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.pm-prof-btn:hover{background:rgba(255,255,255,.22)}
.pm-prof-btn.primary{background:#fff;color:#0e6177;border-color:#fff}
.pm-dash-chip.blue{background:#dbeafe;color:#1e40af}
.pm-prof-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.pm-prof-box{border:1px solid #e3e9f0;border-radius:14px;padding:14px 16px;display:grid;gap:8px;align-content:start}
.dark .pm-prof-box{border-color:#2b3a4f}
.pm-prof-box.wide{grid-column:1/-1}
.pm-prof-box h3{margin:0;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#0e6177}
.dark .pm-prof-box h3{color:#5eead4}
.pm-prof-box dl{display:grid;grid-template-columns:minmax(120px,40%) 1fr;gap:6px 12px;margin:0;font-size:13.5px}
.pm-prof-box.wide dl{grid-template-columns:repeat(auto-fit,minmax(150px,auto) minmax(150px,1fr))}
.pm-prof-box dt{color:#64748b}
.pm-prof-box dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.pm-prof-big{font-size:26px;font-weight:800;color:#0f766e}.pm-prof-big.bad{color:#b91c1c}
.pm-prof-docs{margin-top:12px}
.pm-prof-photo{position:relative;padding:0;border:0;background:none;cursor:pointer;border-radius:50%}
.pm-prof-avatar{overflow:hidden}.pm-prof-avatar img{width:100%;height:100%;object-fit:cover}
.pm-prof-cam{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;font-size:12px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
/* Institute Students page (paramedic-panel.js → pmRoster) */
.pm-ros{display:grid;gap:14px;padding:22px 24px;border-radius:20px;background:var(--pm-card,#fff);border:1px solid #e3e9f0;box-shadow:0 10px 30px -24px rgba(15,36,51,.5);--pm-card:#fff}
.dark .pm-ros{background:#162234;border-color:#2b3a4f}
.pm-ros-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px}
.pm-ros-head h2{margin:0;font-size:24px;font-weight:800;color:#0f2433}
.dark .pm-ros-head h2{color:#e2e8f0}
.pm-ros-head-acts{display:flex;flex-wrap:wrap;gap:8px}
.pm-ros-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:11px;border:1px solid #d5dee8;background:#fff;color:#0f2433;font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap}
.pm-ros-btn i{color:#0e6177}
.pm-ros-btn:hover{border-color:#0e6177;background:#f0fdfa}
.pm-ros-btn.primary{background:#0e6177;border-color:#0e6177;color:#fff}.pm-ros-btn.primary i{color:#fff}
.pm-ros-btn.primary:hover{background:#0b4f61}
.dark .pm-ros-btn:not(.primary){background:#0f1a2a;border-color:#334155;color:#e2e8f0}
.pm-ros-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #e3e9f0;padding-bottom:10px}
.dark .pm-ros-tabs{border-color:#2b3a4f}
.pm-ros-tab{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;border:1px solid transparent;background:transparent;color:#475569;font-weight:700;font-size:13.5px;cursor:pointer}
.pm-ros-tab b{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#eef2f6;color:#334155;font-size:11.5px}
.pm-ros-tab:hover{background:#f1f5f9}
.pm-ros-tab.on{background:#0e6177;color:#fff}.pm-ros-tab.on b{background:rgba(255,255,255,.22);color:#fff}
.pm-ros-tab.warn{color:#b45309}.pm-ros-tab.warn b{background:#fef3c7;color:#92400e}
.pm-ros-tab.warn.on{background:#b45309;color:#fff}
.dark .pm-ros-tab{color:#cbd5e1}.dark .pm-ros-tab b{background:#26364b;color:#e2e8f0}
.pm-ros-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px) minmax(140px,180px) auto auto;gap:10px;align-items:center}
.pm-ros-tools select{border:1px solid #d5dee8;border-radius:11px;padding:9px 12px;background:#fff;color:#0f2433;font-size:14px;min-width:0}
.dark .pm-ros-tools select{background:#0f1a2a;border-color:#334155;color:#e2e8f0}
.pm-ros-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #d5dee8;border-radius:11px;background:#fff}
.pm-ros-search i{color:#94a3b8}
.pm-ros-search input{flex:1;border:0;outline:0;padding:9px 0;background:transparent;font-size:14px;min-width:0;color:inherit}
.pm-ros-search:focus-within{border-color:#0e6177;box-shadow:0 0 0 3px rgba(14,97,119,.12)}
.dark .pm-ros-search{background:#0f1a2a;border-color:#334155}
.pm-ros-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 14px;border-radius:12px;background:#ecfeff;border:1px solid #a5f3fc}
.pm-ros-bulk[hidden]{display:none!important}
.pm-ros-bulk>strong{color:#0e6177;margin-right:4px}
.dark .pm-ros-bulk{background:#12303a;border-color:#155e63}
.pm-ros-wrap{overflow-x:auto;border:1px solid #e3e9f0;border-radius:14px}
.dark .pm-ros-wrap{border-color:#2b3a4f}
.pm-ros-table{width:100%;border-collapse:collapse;font-size:14px}
.pm-ros-table th{position:sticky;top:0;background:#f8fafc;color:#64748b;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;text-align:left;padding:11px 12px;border-bottom:1px solid #e3e9f0;white-space:nowrap}
.dark .pm-ros-table th{background:#0f1a2a;border-color:#2b3a4f}
.pm-ros-table td{padding:11px 12px;border-bottom:1px solid #eef2f6;vertical-align:middle;color:#0f2433}
.dark .pm-ros-table td{border-color:#223047;color:#e2e8f0}
.pm-ros-table tbody tr:last-child td{border-bottom:0}
.pm-ros-table tbody tr:hover td{background:#f8fdfd}
.pm-ros-table tbody tr.on td{background:#ecfeff}
.dark .pm-ros-table tbody tr:hover td,.dark .pm-ros-table tbody tr.on td{background:#12303a}
.pm-ros-table th:first-child,.pm-ros-chk{width:36px}
.pm-ros-table input[type=checkbox]{width:16px;height:16px;accent-color:#0e6177}
.pm-ros-who{display:flex;align-items:center;gap:10px;min-width:200px}
.pm-ros-avatar{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-weight:800;font-size:13.5px}
.pm-ros-name{display:grid;gap:1px;min-width:0}
.pm-ros-name small{color:#64748b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-ros-course{display:grid;gap:4px;justify-items:start}
.pm-ros-course strong{font-size:13.5px}
.pm-ros-tag{padding:2px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:11.5px;font-weight:700}
.pm-ros-tag.muted{background:#f1f5f9;color:#94a3b8}
.pm-ros-muted{color:#475569;white-space:nowrap}
.pm-ros-att{display:grid;gap:4px;min-width:90px}
.pm-ros-att b{font-size:13.5px}
.pm-ros-att.low b{color:#b91c1c}.pm-ros-att.low .pm-dash-meter span{background:linear-gradient(90deg,#f87171,#b91c1c)}
.pm-dash-chip.muted{background:#f1f5f9;color:#64748b}
.pm-ros-actcell{width:1%;white-space:nowrap}
.pm-ros-acts{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.pm-ros-collect{padding:7px 12px;border-radius:10px;border:0;background:#0e6177;color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.pm-ros-collect:hover{background:#0b4f61}
.pm-ros-foot{margin:0;color:#64748b;font-size:12.5px;text-align:right}
@media (max-width:900px){.pm-ros{padding:16px}.pm-ros-tools{grid-template-columns:1fr 1fr}.pm-ros-search{grid-column:1/-1}}
/* Institute Attendance page (paramedic-panel.js → pmAttendanceView) */
.pm-att-rep{margin-top:16px}
.pm-att-date{display:flex;align-items:center;gap:6px}
.pm-att-date input{border:1px solid #d5dee8;border-radius:11px;padding:8px 10px;font-size:14px;background:#fff;color:#0f2433}
.dark .pm-att-date input{background:#0f1a2a;border-color:#334155;color:#e2e8f0}
.pm-att-day{width:36px;height:38px;border-radius:11px;border:1px solid #d5dee8;background:#fff;font-size:20px;font-weight:700;color:#0e6177;cursor:pointer}
.pm-att-day:disabled{opacity:.35;cursor:default}
.dark .pm-att-day{background:#0f1a2a;border-color:#334155;color:#5eead4}
.pm-att-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.pm-att-class{display:grid;gap:3px;text-align:left;padding:12px 14px;border-radius:14px;border:1.5px solid #e3e9f0;background:#fff;color:#0f2433;cursor:pointer;font:inherit}
.pm-att-class strong{font-size:14.5px}
.pm-att-class span{font-size:12.5px;color:#64748b}
.pm-att-class small{justify-self:start;margin-top:3px;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:700}
.pm-att-class small.ok{background:#dcfce7;color:#166534}.pm-att-class small.warn{background:#fef3c7;color:#92400e}
.pm-att-class:hover{border-color:#5eead4}
.pm-att-class.on{border-color:#0e6177;background:#f0fdfa;box-shadow:0 0 0 3px rgba(14,97,119,.12)}
.dark .pm-att-class{background:#0f1a2a;border-color:#2b3a4f;color:#e2e8f0}.dark .pm-att-class.on{background:#12303a;border-color:#14b8a6}
.pm-att-sum{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid #eef2f6}
.dark .pm-att-sum{background:#0f1a2a;border-color:#223047}
.pm-att-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:700}
.pm-att-chip b{font-size:14px}
.pm-att-chip.p{background:#dcfce7;color:#166534}.pm-att-chip.a{background:#fee2e2;color:#991b1b}
.pm-att-chip.l{background:#fef3c7;color:#92400e}.pm-att-chip.v{background:#e0e7ff;color:#3730a3}
.pm-att-chip.none{background:#f1f5f9;color:#475569}
.pm-att-sum-gap{flex:1}
.pm-att-list{display:grid;gap:8px}
.pm-att-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:10px 12px;border:1px solid #e3e9f0;border-left:4px solid #e3e9f0;border-radius:12px;background:#fff}
.dark .pm-att-row{background:#0f1a2a;border-color:#2b3a4f}
.pm-att-row.m-present{border-left-color:#16a34a}.pm-att-row.m-absent{border-left-color:#dc2626}
.pm-att-row.m-late{border-left-color:#d97706}.pm-att-row.m-leave{border-left-color:#4f46e5}
.pm-att-av{background:#e0f2f1;color:#0e6177}
.pm-att-seg{display:inline-flex;border:1px solid #d5dee8;border-radius:11px;overflow:hidden}
.pm-att-opt{padding:8px 14px;border:0;border-right:1px solid #d5dee8;background:#fff;color:#475569;font-weight:700;font-size:13px;cursor:pointer}
.pm-att-opt:last-child{border-right:0}
.pm-att-opt:hover{background:#f1f5f9}
.dark .pm-att-seg{border-color:#334155}.dark .pm-att-opt{background:#0f1a2a;color:#cbd5e1;border-color:#334155}
.pm-att-opt.p[aria-checked=true]{background:#16a34a;color:#fff}
.pm-att-opt.a[aria-checked=true]{background:#dc2626;color:#fff}
.pm-att-opt.l[aria-checked=true]{background:#d97706;color:#fff}
.pm-att-opt.v[aria-checked=true]{background:#4f46e5;color:#fff}
.pm-att-foot{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 0 2px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 35%)}
.dark .pm-att-foot{background:linear-gradient(180deg,rgba(22,34,52,0),#162234 35%)}
.pm-att-foot .pm-ros-btn:disabled{opacity:.5;cursor:default}
.pm-att-table td{padding:9px 10px}
.pm-att-table td small{color:#64748b;font-size:12px}
.pm-att-table th.day,.pm-att-table td.day{text-align:center;padding:9px 4px;min-width:26px;font-weight:700;font-size:12px}
.pm-att-table td.d-present{color:#15803d;background:#f0fdf4}.pm-att-table td.d-absent{color:#b91c1c;background:#fef2f2}
.pm-att-table td.d-late{color:#b45309;background:#fffbeb}.pm-att-table td.d-leave{color:#4338ca;background:#eef2ff}
.pm-att-table td.day:not([class*=d-]){color:#cbd5e1}
@media (max-width:700px){.pm-att-seg{width:100%}.pm-att-opt{flex:1;padding:9px 6px}.pm-att-sum-gap{display:none}}
.pm-att-table td:first-child{min-width:180px}.pm-att-table td:first-child strong{display:block;white-space:nowrap}.pm-att-table td:first-child small{display:block}
/* Attendance: course dropdown and the monthly report panel */
.pm-att-pick{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.pm-att-picklabel{display:grid;gap:5px;flex:1;max-width:560px}
.pm-att-picklabel span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.pm-att-picklabel select{border:1.5px solid #0e6177;border-radius:12px;padding:11px 14px;font-size:15px;font-weight:700;color:#0f2433;background:#fff}
.dark .pm-att-picklabel select{background:#0f1a2a;color:#e2e8f0;border-color:#14b8a6}
.pm-att-repbox{display:grid;gap:12px;padding:16px 18px;border-radius:16px;border:1px solid #a5f3fc;background:#f8feff}
.pm-att-repbox[hidden]{display:none!important}
.dark .pm-att-repbox{background:#0f1a2a;border-color:#155e63}
.pm-att-rephead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.pm-att-rephead h3{margin:0;font-size:18px;font-weight:800;color:#0f2433}
.dark .pm-att-rephead h3{color:#e2e8f0}
.pm-att-reptools{grid-template-columns:minmax(200px,1fr) minmax(180px,260px) auto auto}
.pm-att-reptools input[type=month]{border:1px solid #d5dee8;border-radius:11px;padding:8px 10px;font-size:14px;background:#fff;color:#0f2433}
.dark .pm-att-reptools input[type=month]{background:#0f1a2a;border-color:#334155;color:#e2e8f0}
.pm-ros-btn.primary i{color:#fff}
@media (max-width:900px){.pm-att-reptools{grid-template-columns:1fr 1fr}}

/* Fees: who collected the payment, under the amount. */
.edu-fee-collector{display:block;font-size:11px;font-weight:600;color:#64748b;margin-top:2px}

/* Fee Receipt dialog: one summary for the month, one "print all" slip, payments listed below. */
.edu-receipt-dialog{max-width:620px;width:calc(100% - 24px)}
.edu-receipt-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 14px}
.edu-receipt-sum{display:grid;gap:4px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}
.edu-receipt-sum small{font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.05em}
.edu-receipt-sum strong{font-size:16px;color:#0f172a}
.edu-receipt-sum.good strong{color:#047857}
.edu-receipt-sum.due strong{color:#b45309}
.edu-receipt-print-all{width:100%;min-height:46px;margin:0 0 14px;border:0;border-radius:12px;background:#0f766e;color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.edu-receipt-print-all:hover,.edu-receipt-print-all:focus-visible{background:#115e59}
.edu-receipt-dialog h3{margin:4px 0 6px;font-size:13px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.05em}
.edu-receipt-dialog .edu-fee-history-row p{font-size:14px}
.edu-receipt-print-one{background:#fff!important;color:#0f766e!important;border:1px solid #99f6e4!important}
@media (max-width:520px){.edu-receipt-summary{grid-template-columns:1fr}}

/* Student profile as a full page: "← Back" top left, buttons in a tidy grid, content centred. */
dialog.edu-profile-page{position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:auto;background:#f1f5f9!important;color:#172b4d}
dialog.edu-profile-page::backdrop{background:#f1f5f9}
.edu-profile-page>.edu-profile-toolbar{position:sticky!important;top:0;z-index:5;display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:10px 14px;padding:12px max(16px,calc((100vw - 1000px)/2))!important;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 4px 14px rgba(15,23,42,.06)!important}
.edu-profile-page .edu-profile-toolbar-title strong{font-size:18px}
.edu-profile-page .edu-profile-toolbar-actions{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px!important;width:100%}
.edu-profile-page .edu-profile-toolbar-actions>*{width:100%}
.edu-profile-page .edu-profile-tool{justify-content:center}
.edu-profile-page .edu-profile-toolbar-actions .edu-profile-tool,.edu-profile-page .edu-profile-result-slot .edu-profile-tool{width:100%}
.edu-profile-page .edu-profile-tool.back{width:auto;min-height:40px;padding:8px 18px;border-radius:999px;background:#f0fdfa;border:1px solid #99f6e4;color:#0f766e;font-weight:800;cursor:pointer}
.edu-profile-page .edu-profile-tool.back:hover,.edu-profile-page .edu-profile-tool.back:focus-visible{background:#ccfbf1}
.edu-profile-page .edu-profile-pagebar{grid-column:1/-1}
.edu-profile-page>section,.edu-profile-page>.edu-student-profile-summary,.edu-profile-page>.edu-profile-fee-section,.edu-profile-page>div:not(.edu-profile-toolbar){width:calc(100% - 32px)!important;max-width:1000px!important;margin:18px auto!important;box-sizing:border-box}
@media (max-width:640px){
  .edu-profile-page>.edu-profile-toolbar{padding:10px 12px!important}
  .edu-profile-page .edu-profile-toolbar-actions{grid-template-columns:1fr 1fr}
  .edu-profile-page>section,.edu-profile-page>.edu-student-profile-summary,.edu-profile-page>.edu-profile-fee-section,.edu-profile-page>div:not(.edu-profile-toolbar){width:calc(100% - 20px)!important;margin:12px auto!important}
}
/* Wins over the older popup sizes for this dialog (in other style files and media queries). */
dialog.edu-student-profile-dialog.edu-profile-page{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;border-radius:0!important;margin:0!important;inset:0!important}
/* College: admission documents (frontend/school-app/college.js) and the profile checklist (school-extras.js) */
.edu-college-docs{grid-template-columns:1fr!important;gap:6px!important}
.edu-college-doc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px}
.edu-college-doc-name{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px;color:#1e293b;cursor:pointer;flex:1;min-width:220px}
.edu-college-doc-name input{width:18px;height:18px;accent-color:#0f766e}
.edu-college-doc input[type=file]{font-size:12px;max-width:100%}
.dark .edu-college-doc{border-color:#334155}.dark .edu-college-doc-name{color:#e2e8f0}
.edu-college-checklist{display:grid;gap:6px;margin:10px 0 14px}
.edu-doc-subhead{margin:0;font-size:13.5px;color:#0e6177}
.edu-college-checklist>p{margin:0;font-size:12.5px;font-weight:700}
.edu-college-check{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:7px 10px;border-radius:9px;border:1px solid #e2e8f0;font-size:13px;cursor:pointer}
.edu-college-check input{width:17px;height:17px;accent-color:#0f766e}
.edu-college-check small{font-weight:700;font-size:11.5px}
.edu-college-check.ok{background:#f0fdf4;border-color:#bbf7d0}.edu-college-check.ok small{color:#15803d}
.edu-college-check.missing{background:#fef2f2;border-color:#fecaca}.edu-college-check.missing small{color:#b91c1c}
.edu-college-check.optional small{color:#64748b}
.dark .edu-college-check{border-color:#334155}.dark .edu-college-check.ok{background:#0f2e1f}.dark .edu-college-check.missing{background:#3b1414}

/* Fees Collected: who collected how much */
.edu-fee-people-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:14px 0 8px}
.edu-fee-people-head strong{font-size:14px;color:#0f2a3d}
.edu-fee-people-head span{font-size:12px;color:#64748b}
.edu-fee-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:12px}
.edu-fee-person{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1.5px solid #d5ece8;border-radius:14px;background:#f8fffd;cursor:pointer;text-align:left;font:inherit;color:#0f2a3d}
.edu-fee-person span{font-size:13px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edu-fee-person strong{font-size:16px;color:#0f766e}
.edu-fee-person small{font-size:11.5px;color:#64748b}
.edu-fee-person:hover{border-color:#14b8a6}
.edu-fee-person.on{border-color:#0f766e;background:#ccfbf1;box-shadow:0 0 0 3px rgba(20,184,166,.18)}
.edu-fee-person-sum{margin:0 0 10px;padding:9px 12px;border-radius:12px;background:#f0fdfa;border:1px solid #99f6e4;color:#0f766e;font-size:13px;font-weight:700}
html.dark .edu-fee-people-head strong,.dark .edu-fee-people-head strong{color:#e2e8f0}
html.dark .edu-fee-person,.dark .edu-fee-person{background:#0f172a;border-color:#334155;color:#e2e8f0}
html.dark .edu-fee-person.on,.dark .edu-fee-person.on{background:#134e4a;border-color:#14b8a6}
html.dark .edu-fee-person-sum,.dark .edu-fee-person-sum{background:#134e4a;border-color:#0f766e;color:#99f6e4}

/* Staff logins (Teacher Accounts page) */
.edu-staff-login-hint{margin:6px 0 14px;font-size:13px;color:#475569}
.edu-staff-login-hint strong{color:#0f766e;word-break:break-all}
.edu-staff-login-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end;padding:14px;border:1px solid #d5ece8;border-radius:16px;background:#f8fffd}
.edu-staff-login-form>label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#334155}
.edu-staff-login-form input[type=text],.edu-staff-login-form input[type=password]{padding:10px 12px;border:1.5px solid #d5ece8;border-radius:12px;font:inherit;background:#fff;color:#0f2a3d;min-width:0}
.edu-staff-login-jobs-wrap{grid-column:1/-1;display:grid;gap:6px;font-size:13px;font-weight:700;color:#334155}
.edu-staff-login-jobs{display:flex;flex-wrap:wrap;gap:8px 18px}
.edu-staff-login-jobs label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:#0f2a3d;cursor:pointer}
.edu-staff-login-jobs input{width:18px;height:18px;accent-color:#0f766e;margin:0}
.edu-staff-login-form .school-button{justify-self:start}
.edu-staff-login-form p{grid-column:1/-1;margin:0}
.edu-staff-login-list{display:grid;gap:10px;margin-top:16px}
.edu-staff-login-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.edu-staff-login-row.off{opacity:.65}
.edu-staff-login-who{display:grid;gap:3px;min-width:0}
.edu-staff-login-who strong{font-size:15px;color:#0f2a3d}
.edu-staff-login-who>span{font-size:12.5px;color:#64748b}
.edu-staff-login-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.edu-staff-login-chips span{padding:3px 9px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:11.5px;font-weight:700}
.edu-staff-login-actions{display:flex;flex-wrap:wrap;gap:8px}
.edu-staff-login-name{display:grid;gap:5px;margin-bottom:12px;font-weight:700}
.edu-staff-login-name input{padding:10px 12px;border:1.5px solid #d5ece8;border-radius:12px;font:inherit}
.school-dialog .edu-staff-login-jobs{flex-direction:column;margin-bottom:14px}
.dark .edu-staff-login-form{background:#0f172a;border-color:#334155}
.dark .edu-staff-login-row{background:#0f172a;border-color:#334155}
.dark .edu-staff-login-who strong,.dark .edu-staff-login-jobs label{color:#e2e8f0}
.dark .edu-staff-login-form>label,.dark .edu-staff-login-jobs-wrap{color:#cbd5e1}

/* Change own password / reset a teacher's password */
.edu-own-password form,.edu-reset-password{display:grid;gap:12px;min-width:min(380px,80vw)}
.edu-own-password label,.edu-reset-password label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#334155}
.edu-own-password input[type=password],.edu-own-password input[type=text],.edu-reset-password input{padding:10px 12px;border:1.5px solid #d5ece8;border-radius:12px;font:inherit;font-size:15px}
.edu-reset-password input{font-family:ui-monospace,Consolas,monospace;letter-spacing:.5px}
.edu-own-password .edu-own-password-show{display:flex;align-items:center;gap:8px;font-weight:600}
.edu-reset-password .school-button.secondary{justify-self:start}
.dark .edu-own-password label,.dark .edu-reset-password label{color:#cbd5e1}

/* College Programs (Classes page): Intermediate and degree programs, grouped */
.edu-college-program-groups{display:grid;gap:8px;margin:10px 0}
.edu-college-program-group{border:1px solid #e2e8f0;border-radius:12px;padding:8px 12px}
.edu-college-program-group summary{font-weight:800;color:#0e6177;cursor:pointer}
.edu-college-program-group summary b{color:#0f766e;font-weight:700;font-size:12.5px}
.edu-college-program-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 14px;margin-top:8px}
.edu-college-program{display:flex;gap:10px;align-items:flex-start;padding:5px 2px;font-weight:600;font-size:13px;cursor:pointer}
.edu-college-program input{width:18px;height:18px;margin-top:2px;accent-color:#0f766e;flex:none}
.edu-college-program small{display:block;font-weight:400;opacity:.7;font-size:11.5px}
.dark .edu-college-program-group{border-color:#334155}
.dark .edu-college-program-group summary{color:#5eead4}

/* School + College: which admission form */
.edu-admission-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:8px}
.edu-admission-choice .school-button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;text-align:left;height:auto}
.edu-admission-choice small{font-weight:400;opacity:.8;font-size:12px}
/* Institute Exams & Results (paramedic-exams.js) */
.pm-exam-tools{grid-template-columns:minmax(200px,320px) minmax(160px,220px)}
.pm-exam-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.pm-exam-card{display:grid;gap:6px;padding:14px 16px;border:1px solid #e3e9f0;border-top:4px solid #0e6177;border-radius:14px;background:#fff}
.dark .pm-exam-card{background:#0f1a2a;border-color:#2b3a4f}
.pm-exam-card.t-yearly{border-top-color:#7c3aed}.pm-exam-card.t-send_up{border-top-color:#dc2626}
.pm-exam-card.t-mid_term{border-top-color:#d97706}.pm-exam-card.t-monthly{border-top-color:#0284c7}
.pm-exam-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pm-exam-type{padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:800}
.pm-exam-card .pm-name-link{font-size:16px}
.pm-exam-card p{margin:0}
.pm-exam-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pm-exam-acts .pm-ros-btn{padding:7px 11px;font-size:12.5px}
.pm-exam-papers{display:grid;gap:8px;margin-bottom:8px}
.pm-exam-paper{display:grid;grid-template-columns:minmax(180px,1fr) 90px 90px auto;gap:8px}
.pm-exam-paper input{border:1px solid #cbd5e1;border-radius:9px;padding:8px 10px;min-width:0}
.pm-exam-top{display:grid;gap:10px;margin-bottom:12px}
.pm-exam-table td small{display:block;color:#64748b;font-size:11.5px}
.pm-exam-table th small{color:#94a3b8;font-weight:600}
.pm-exam-table input{width:70px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px;text-align:center;font-size:14px}
.pm-exam-table input.low{border-color:#f59e0b;background:#fffbeb}
.pm-exam-table input.bad{border-color:#dc2626;background:#fef2f2}
.pm-exam-tot{font-weight:700;white-space:nowrap}
.edu-pm-field[hidden]{display:none!important}
.edu-pm-tile small{display:block;margin-top:3px;font-size:11.5px;line-height:1.35}

/* Teacher portal: tap Present / Absent / Late / Leave to see those students */
.edu-teacher-stat[role=button]{transition:transform .12s,box-shadow .12s}
.edu-teacher-stat[role=button]:hover,.edu-teacher-stat[role=button]:focus-visible{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,118,110,.16);outline:none}
.edu-status-students{width:min(520px,calc(100vw - 24px))}
.edu-status-head{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;font-size:14px;font-weight:800;color:#0f2a3d}
.edu-status-head b{min-width:28px;padding:2px 9px;border-radius:999px;background:#f1f5f9;text-align:center;font-size:12.5px}
.edu-status-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.edu-status-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;border:1px solid #e2e8f0;border-left-width:4px;background:#fff}
.edu-status-list.present li{border-left-color:#16a34a}
.edu-status-list.absent li{border-left-color:#dc2626}
.edu-status-list.late li{border-left-color:#d97706}
.edu-status-list.leave li{border-left-color:#7c3aed}
.edu-status-list li div{display:grid;gap:2px;min-width:0}
.edu-status-list strong{font-size:14px;color:#0f2a3d}
.edu-status-list span{font-size:12px;color:#64748b}
.edu-status-call{flex-shrink:0;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#f0fdfa;text-decoration:none;font-size:16px}
.dark .edu-status-list li{background:#0f172a;border-color:#334155}
.dark .edu-status-list strong,.dark .edu-status-head{color:#e2e8f0}
.pm-logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:10px}
.pm-logo-slot{display:grid;gap:8px;justify-items:start;padding:12px;border:1px solid #e3e9f0;border-radius:14px}
.pm-logo-pic{width:120px;height:120px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;color:#94a3b8;font-size:12px}
.pm-logo-pic img{max-width:110px;max-height:110px;object-fit:contain}
.pm-logo-acts{display:flex;gap:6px}
.pm-logo-acts [hidden]{display:none!important}

/* System Settings: section buttons on top, one section at a time */
.edu-settings-head{padding-bottom:16px!important}
.edu-settings-head .edu-settings-tabs{margin-top:12px;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:5px;border-radius:16px;background:#f0fdfa;border:1px solid #ccfbf1;scrollbar-width:thin}
.edu-settings-tabs .school-button{flex:0 0 auto;white-space:nowrap;border-radius:12px;padding:9px 14px;font-size:13.5px}
.edu-settings-tabs .school-button:not(.secondary){background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;border-color:transparent}
@media(min-width:900px){.edu-settings-head .edu-settings-tabs{flex-wrap:wrap;overflow:visible}}
/* Passwords section */
.edu-passwords-mine{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 6px;padding:12px 14px;border-radius:14px;background:#f0fdfa;border:1px solid #ccfbf1}
.edu-passwords-title{margin:18px 0 8px;font-size:15px;font-weight:800;color:#0f2a3d}
.edu-passwords-search{width:100%;margin-bottom:8px;padding:9px 12px;border:1.5px solid #d5ece8;border-radius:12px;font:inherit}
.edu-passwords-list{display:grid;gap:8px}
.edu-passwords-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.edu-passwords-row.off{opacity:.6}
.edu-passwords-row div{display:grid;gap:2px;min-width:0}
.edu-passwords-row strong{font-size:14px;color:#0f2a3d}
.edu-passwords-row span{font-size:12.5px;color:#64748b;word-break:break-all}
.dark .edu-passwords-row{background:#0f172a;border-color:#334155}
.dark .edu-passwords-row strong,.dark .edu-passwords-title{color:#e2e8f0}
.dark .edu-passwords-mine,.dark .edu-settings-head .edu-settings-tabs{background:#134e4a;border-color:#0f766e}
.school-dialog.edu-pm-page{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:#f4f7fa}
.edu-pm-page::backdrop{background:#0f172a}
.edu-pm-pagebar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:14px;padding:12px max(16px,calc((100vw - 1100px)/2));background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 2px 10px #0f172a0d}
.edu-pm-pagebar h2{margin:0!important;font-size:19px;color:#0f2a3d}
.edu-pm-pagebody{max-width:1100px;margin:0 auto;padding:18px 16px 0}
.edu-pm-page .edu-pm-form{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px}
.edu-pm-page .edu-pm-sticky{background:#fff;padding:12px 16px;border:1px solid #e2e8f0;border-radius:16px 16px 0 0;box-shadow:0 -6px 18px #0f172a12}
.edu-pm-feeinfo{grid-column:1/-1;margin:0;font-weight:600;color:#0f766e}
.edu-pm-full{grid-column:1/-1}
.edu-pm-page [hidden]{display:none!important}
.dark .school-dialog.edu-pm-page{background:#0b1220}.dark .edu-pm-pagebar,.dark .edu-pm-page .edu-pm-form,.dark .edu-pm-page .edu-pm-sticky{background:#182639;border-color:#334155}.dark .edu-pm-pagebar h2{color:#e2e8f0}
.edu-status-summary{margin:4px 0 2px;padding:9px 12px;border-radius:12px;background:#f0fdfa;border:1px solid #ccfbf1;color:#0f766e;font-size:13px;font-weight:700}
.pm-acc-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:6px;border-radius:16px;background:#f0fdfa;border:1px solid #ccfbf1}
.pm-acc-tab{display:flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:9px 14px;background:transparent;color:#0f2a3d;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.pm-acc-tab:hover{background:#ccfbf1}
.pm-acc-tab.on{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff}
.pm-acc-acts{display:flex;flex-wrap:wrap;gap:6px}
.pm-acc-cancelled td{text-decoration:line-through;color:#94a3b8}
.pm-acc-h{margin:16px 0 8px;font-size:15px;font-weight:800;color:#0f2a3d}
.pm-acc-add{margin:6px 0 14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px}
.edu-pm-tile.good strong{color:#15803d}
.dark .pm-acc-tabs{background:#134e4a;border-color:#0f766e}.dark .pm-acc-tab{color:#e2e8f0}.dark .pm-acc-tab:hover{background:#0f766e}.dark .pm-acc-h{color:#e2e8f0}.dark .pm-acc-add{border-color:#334155}

/* Notices page: section buttons; Diary History */
.edu-notice-tabs{margin-top:14px;display:flex;flex-wrap:wrap;gap:6px;padding:5px;border-radius:16px;background:#f0fdfa;border:1px solid #ccfbf1}
.edu-notice-tabs .school-button{flex:0 0 auto;white-space:nowrap;border-radius:12px;padding:9px 14px;font-size:13.5px}
.edu-notice-tabs .school-button:not(.secondary){background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;border-color:transparent}
@media(max-width:640px){.edu-notice-tabs{flex-wrap:nowrap;overflow-x:auto}}
.edu-hw-history-filters{margin:8px 0 12px}
.edu-hw-history{display:grid;gap:10px}
.edu-hw-day{padding:10px 12px;border:1px solid #e2e8f0;border-left:4px solid #0d9488;border-radius:14px;background:#fff;display:grid;gap:8px}
.edu-hw-day.none{border-left-color:#cbd5e1;background:#f8fafc}
.edu-hw-day-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.edu-hw-day-head strong{font-size:14.5px;color:#0f2a3d}
.edu-hw-day-head span{font-size:12px;font-weight:700;color:#64748b}
.edu-hw-day.none .edu-hw-day-head span{color:#b45309}
.dark .edu-hw-day{background:#0f172a;border-color:#334155}
.dark .edu-hw-day-head strong{color:#e2e8f0}
.dark .edu-notice-tabs{background:#134e4a;border-color:#0f766e}
.edu-leave-wait{display:block;margin-top:6px;color:#b45309;font-weight:700;font-size:12.5px}
.edu-notification-kind.leave{background:#ede9fe;color:#6d28d9}

/* Complaints: new complaint form, student history */
.edu-complaint-new-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;min-width:min(620px,85vw)}
.edu-complaint-new-form>label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#334155}
.edu-complaint-new-form select,.edu-complaint-new-form input:not([type=checkbox]),.edu-complaint-new-form textarea{padding:10px 12px;border:1.5px solid #d5ece8;border-radius:12px;font:inherit;min-width:0}
.edu-complaint-new-form>label:nth-of-type(4){grid-column:1/-1}
.edu-complaint-new-form .edu-complaint-tick{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-weight:600}
.edu-complaint-new-form .edu-complaint-tick input{width:18px;height:18px;accent-color:#0f766e}
.edu-complaint-new-form p,.edu-complaint-new-form button{grid-column:1/-1}
.edu-complaint-new-form button{justify-self:start}
.edu-complaint-history{border:0;background:#f0fdfa;color:#0f766e;font:inherit;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;cursor:pointer}
.edu-complaint-history:hover{background:#ccfbf1}
.dark .edu-complaint-new-form>label{color:#cbd5e1}
.edu-roster-fee{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:700}
.edu-roster-fee.due{background:#fee2e2;color:#b91c1c}
.edu-roster-fee.clear{background:#dcfce7;color:#166534}
/* Teacher portal on phones: Back on top of an opened section */
.edu-teacher-backbar{display:none}
@media(max-width:700px){
 .edu-teacher-theme .edu-teacher-portal.edu-teacher-mobile-section-open .edu-teacher-backbar{display:block;margin:4px 0 2px}
 .edu-teacher-backbar .edu-back-button{border-radius:999px;padding:9px 16px;font-weight:800}
}
/* Phones: the welcome box shows on the teacher Home screen only, not on an opened section. */
@media(max-width:700px){body.edu-teacher-theme .edu-teacher-portal.edu-teacher-mobile-section-open .edu-teacher-heading{display:none!important}}
/* Phones: "← Back" at the top of every pop-up page (added in app-bootstrap.js). */
.edu-dialog-backbar{display:none}
@media(max-width:700px){dialog .edu-dialog-backbar{display:block;position:sticky;z-index:6;background:inherit;border-bottom:1px solid #e2e8f0}
 dialog .edu-dialog-back{display:inline-flex;align-items:center;padding:9px 16px;border-radius:999px;border:1px solid #d5e3e0;background:#fff;color:#0b2e2b;font:800 15px/1 Inter,system-ui,sans-serif}}
/* "Pick from contacts" under phone number fields (Android Chrome; added in app-bootstrap.js). */
.edu-contact-pick{display:inline-flex;align-items:center;gap:6px;margin:6px 0 2px;padding:7px 12px;border-radius:999px;border:1px solid #bfe6de;background:#effaf7;color:#0a4a44;font:700 13px/1 Inter,system-ui,sans-serif;cursor:pointer}
/* Parent Logins: class filter + search */
.edu-parent-login-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:4px 0 14px}
.edu-parent-login-filters select,.edu-parent-login-filters input{min-height:42px;padding:8px 12px;border:1px solid #d5e3e0;border-radius:12px;background:#fff;font:inherit}
.edu-parent-login-filters input{flex:1 1 220px;min-width:0}
.dark .edu-parent-login-filters select,.dark .edu-parent-login-filters input{background:#0f172a;border-color:#334155;color:#e2e8f0}
/* Phones with a notch / status bar drawn over the app (installed app, edge-to-edge Android):
   keep the top bar and everything under it below the status bar. env() is 0 where there is none. */
body>header{padding-top:env(safe-area-inset-top,0px);height:calc(4rem + env(safe-area-inset-top,0px))!important}
body>div.flex.flex-1.pt-16{padding-top:calc(4rem + env(safe-area-inset-top,0px))!important}
@media(max-width:767px){
 #sidebar{top:calc(64px + env(safe-area-inset-top,0px))!important}
 #profileDropdown,#notifDropdown{top:calc(68px + env(safe-area-inset-top,0px))!important}
 #edunova-mobile-overlay{top:calc(64px + env(safe-area-inset-top,0px))!important}
}
.pm-ros-wa{display:inline-grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:#dcfce7;color:#15803d;font-size:20px;cursor:pointer}
.pm-ros-wa:hover{background:#bbf7d0}
.pm-ros-wa[hidden]{display:none!important}
.dark .pm-ros-wa{background:#14532d;color:#86efac}
.pm-ref-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.pm-ref-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #d5dee8;border-radius:999px;background:#fff;color:#0f2433;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.pm-ref-chip b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#0e6177;color:#fff;font-size:12px}
.pm-ref-chip:hover{border-color:#0e6177;background:#f0fdfa}
.dark .pm-ref-chip{background:#182639;border-color:#334155;color:#e2e8f0}
/* Fee History: one line per payment (date · amount · by) */
.edu-fee-paid-on div,.edu-profile-fee-dates div{white-space:nowrap;font-size:13px;line-height:1.5}
/* Students list: the action column (Receipt / Collect Fee and ⋮) stays in view at the right when the table scrolls. */
#tab-students .edu-school-directory table tr>td:last-child,#tab-students .edu-school-directory table tr>th:last-child{position:sticky;right:0;z-index:2;background:#fff}
#tab-students .edu-school-directory table thead tr>th:last-child{background:#f8fafc}
.dark #tab-students .edu-school-directory table tr>td:last-child,.dark #tab-students .edu-school-directory table tr>th:last-child{background:#1e293b}
#tab-students .edu-student-primary{min-width:104px}
#tab-students .edu-school-directory table tbody tr>td:last-child{display:table-cell;white-space:nowrap;vertical-align:middle;text-align:right}
#tab-students .edu-school-directory table tbody tr>td:last-child>*{vertical-align:middle}#tab-students .edu-school-directory table tbody tr>td:last-child>*+*{margin-left:8px}
/* Students list: the "Columns" button and its tick list */
#tab-students .edu-col-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
#tab-students .edu-col-button{min-height:36px;padding:7px 14px;border:1px solid #bfe6de;border-radius:10px;background:#effaf7;color:#0a4a44;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
#tab-students .edu-col-pick{padding:14px;border:1px solid #d5e3e0;border-radius:14px;background:#f8fcfb}
#tab-students .edu-col-pick[hidden]{display:none}
#tab-students .edu-col-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;font-size:13px;color:#0f2a3d}
#tab-students .edu-col-tools strong{margin-right:auto}
#tab-students .edu-col-tools button{padding:6px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#tab-students .edu-col-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:4px 12px;max-height:300px;overflow-y:auto}
#tab-students .edu-col-grid label{display:flex;align-items:center;gap:8px;min-height:34px;font-size:13px;font-weight:500;color:#334155;cursor:pointer}
#tab-students .edu-col-pick .edu-col-grid input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:0;margin:0;flex:none;accent-color:#0f766e}
#tab-students .edu-col-extra{max-width:220px;overflow-wrap:anywhere}
.dark #tab-students .edu-col-pick{background:#0f172a;border-color:#334155}
.dark #tab-students .edu-col-tools,.dark #tab-students .edu-col-grid label{color:#e2e8f0}
.dark #tab-students .edu-col-tools button,.dark #tab-students .edu-col-button{background:#1e293b;border-color:#334155;color:#e2e8f0}
@media(max-width:640px){#tab-students .edu-col-button{width:100%;min-height:42px}#tab-students .edu-col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: too narrow for a fixed action column (it covered the names), so it scrolls with the table. */
@media(max-width:700px){#tab-students .edu-school-directory table tr>td:last-child,#tab-students .edu-school-directory table tr>th:last-child{position:static}}
/* System Settings: Messages */
.edu-messages-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:6px 0 4px}
.edu-messages-tools input[type=search]{flex:1 1 200px;min-height:42px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit}
.edu-messages-tools label{display:flex;align-items:center;gap:8px;font-size:13px}
.edu-messages-tools input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;accent-color:#0f766e}
.edu-messages h3{margin:16px 0 8px;font-size:14px;font-weight:700;color:#0a4a44}
.edu-message{border:1px solid #d5e3e0;border-radius:12px;margin-bottom:8px;background:#fff}
.edu-message[open]{padding-bottom:12px}
.edu-message summary{display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 14px;cursor:pointer;font-weight:600;list-style:none}
.edu-message summary::-webkit-details-marker{display:none}
.edu-message summary span{flex:1;min-width:0}
.edu-message summary::after{content:"✎ Edit";font-size:12px;font-weight:700;color:#0f766e;white-space:nowrap}
.edu-message[open] summary::after{content:"Close"}
.edu-message summary small{padding:2px 9px;border-radius:99px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:700}
.edu-message summary small[hidden]{display:none}
.edu-message>*:not(summary){margin-left:14px;margin-right:14px}
.edu-message textarea{display:block;width:calc(100% - 28px);box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-size:15px;line-height:1.5;resize:vertical}
.edu-message-words{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;margin-bottom:10px;font-size:12px;color:#475569}
.edu-message-words button{min-height:34px;padding:4px 10px;border:1px solid #bfe6de;border-radius:9px;background:#effaf7;color:#0a4a44;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.edu-message-preview{margin-top:6px;margin-bottom:10px;padding:12px;border-radius:12px;background:#dcf8c6;color:#111827;font:inherit;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.edu-message-acts{display:flex;flex-wrap:wrap;gap:8px}
.dark .edu-message{background:#0f172a;border-color:#334155}
.dark .edu-messages h3,.dark .edu-message summary,.dark .edu-message-words,.dark .edu-messages-tools label{color:#e2e8f0}
.dark .edu-message textarea,.dark .edu-messages-tools input[type=search]{background:#1e293b;border-color:#334155;color:#e2e8f0}
/* Result card: result, remarks and signatures */
.edu-result-extras label{display:block;margin:10px 0}
.edu-result-extras input:not([type=file]),.edu-result-extras textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-size:15px}
.edu-result-extras h3{margin:18px 0 8px;font-weight:700}
.edu-sign-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.edu-sign-box{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #d5e3e0;border-radius:12px}
.edu-sign-box small{color:#64748b;font-size:12px}
.edu-sign-view{display:grid;place-items:center;height:84px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;color:#94a3b8;font-size:13px}
.edu-sign-view img{max-width:94%;max-height:76px;object-fit:contain}
.edu-sign-pad{display:block;width:100%;height:min(240px,36dvh);border:2px dashed #94a3b8;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair;margin:10px 0}
.dark .edu-sign-box{border-color:#334155}
.dark .edu-result-extras input:not([type=file]),.dark .edu-result-extras textarea{background:#1e293b;border-color:#334155;color:#e2e8f0}
.edu-result-preview{overflow-x:auto}
.edu-result-actions .edu-result-absent{flex:1 1 100%;max-width:100%}
.edu-result-info:empty{margin:0}
.edu-sign-status:not(:empty){position:sticky;bottom:0;z-index:2;margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#065f46;font-weight:600}
.edu-sign-status.school-error:not(:empty){background:#fef2f2;color:#b91c1c}
.edu-sign-dialog h2{font-size:18px;font-weight:700;margin:0}
@media(max-height:480px){.edu-sign-dialog{padding:8px 16px!important;max-height:98dvh}.edu-sign-dialog h2{font-size:15px}.edu-sign-dialog>p:empty,.edu-sign-dialog>h2+p{display:none}.edu-sign-dialog .edu-sign-pad{height:44dvh;margin:4px 0}.edu-sign-dialog .school-button{margin-top:4px;margin-bottom:4px}}
.pa-card .edu-sign-view{margin:8px 0 10px}
.edu-result-actions .school-button.secondary:hover,.edu-message-acts .school-button.secondary:hover{background:#e2e8f0;color:#0f172a}
.dark .edu-result-actions .school-button.secondary:hover,.dark .edu-message-acts .school-button.secondary:hover{background:#334155;color:#f1f5f9}
.edu-mark-delete{display:inline-grid;place-items:center;width:32px;height:32px;margin-left:8px;padding:0;border:1px solid #fecaca;border-radius:8px;background:#fff5f5;color:#dc2626;font-size:13px;font-weight:700;cursor:pointer;vertical-align:middle}
.edu-mark-delete:hover{background:#fee2e2}
.edu-result-preview td{white-space:nowrap}
@media(min-width:641px){.edu-result-actions .edu-result-absent{flex:0 0 260px;margin-right:calc(100% - 270px)}}
/* All / Male / Female filter */
.edu-gender-label{display:inline-grid;gap:4px;margin:0 0 12px;font-size:12px;font-weight:700;color:#475569}
.edu-gender-label select,.edu-absence-days .edu-gender-filter{min-width:140px;min-height:42px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit;font-size:14px}
.dark .edu-gender-label{color:#cbd5e1}.dark .edu-gender-label select{background:#0f172a;border-color:#334155;color:#e2e8f0}
.edu-promo-kid[hidden],.edu-test-table tr[hidden],.edu-status-list li[hidden]{display:none!important}
.edu-finance-filters{grid-template-columns:repeat(3,minmax(0,220px))!important}
.edu-quick-fee-top{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr))}
#tab-students .edu-student-filters,#tab-students.edu-reference-students .edu-student-filters{grid-template-columns:minmax(0,2fr) repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:640px){.edu-finance-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.edu-quick-fee-top{grid-template-columns:1fr 1fr}#tab-students .edu-student-filters,#tab-students.edu-reference-students .edu-student-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#tab-students .edu-student-filters>label:first-child,#tab-students.edu-reference-students .edu-student-filters>label:first-child{grid-column:1/-1}.edu-gender-label{display:grid}.edu-gender-label select{width:100%}}
@media(max-width:600px){.edu-quick-fee-top select:last-child{grid-column:1/-1}}
/* Phone: card / receipt / form viewer with Back, Print, Save PDF and Share */
.edu-print-view{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#e9eef4;color:#0f2a3d}
.edu-print-view[open]{display:flex;flex-direction:column}
.edu-print-view .edu-print-bar{position:static;display:flex;gap:6px;margin:0!important;padding:calc(8px + env(safe-area-inset-top)) 8px 8px;background:#fff;border-bottom:1px solid #dbe3ec}
.edu-print-view .edu-print-bar button{flex:1 1 auto;min-height:46px;padding:6px 8px;border:1px solid #bfe6de;border-radius:12px;background:#effaf7;color:#0a4a44;font:inherit;font-size:14px;font-weight:700;white-space:nowrap}
.edu-print-view .edu-print-bar button.main{background:#0f766e;border-color:#0f766e;color:#fff}
.edu-print-view .edu-print-bar .edu-print-back{background:#fff;border-color:#cbd5e1;color:#0f2a3d}
.edu-print-view .edu-print-bar button:disabled{opacity:.55}
.edu-print-status{margin:0;padding:9px 12px;background:#ecfdf5;color:#065f46;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.edu-print-status:empty{display:none}
.edu-print-area{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
.edu-print-sheets{width:100%;padding:8px;box-sizing:border-box}
.edu-print-sheets.big{width:240%}
.edu-print-sheets img{display:block;width:100%;max-width:none;height:auto;margin:0 0 10px;background:#fff;box-shadow:0 2px 12px rgba(15,23,42,.14)}
.edu-print-stage{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;z-index:-1}
.edu-print-stage iframe{width:900px;max-width:none;height:1300px;border:0}
.edu-print-options{display:flex;gap:8px;padding:8px;background:#fff;border-bottom:1px solid #dbe3ec}
.edu-print-options:empty{display:none}
.edu-print-options select{flex:1;min-width:0;min-height:44px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f2a3d;font:inherit;font-size:16px}
@media(max-width:380px){.edu-print-view .edu-print-bar button{font-size:12.5px;padding:6px 4px}}
/* EduNova Assistant */
.edu-chat-open{position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:9000;width:54px;height:54px;border:0;border-radius:50%;background:#087e80;color:#fff;font-size:24px;box-shadow:0 6px 22px rgba(8,126,128,.35);cursor:pointer}
.edu-chat-open[hidden],.edu-chat[hidden]{display:none}
.edu-chat{position:fixed;right:8px;bottom:8px;z-index:9001;width:min(380px,calc(100vw - 16px));max-height:min(560px,calc(100dvh - 16px));display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:16px;background:#fff;color:#172b4d;box-shadow:0 14px 44px rgba(15,42,61,.28);overflow:hidden}
.edu-chat-head,.edu-chat-quick,.edu-chat-form{flex:none}
.edu-chat-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#087e80;color:#fff}
.edu-chat-head button{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:22px;cursor:pointer}
.edu-chat-log{position:relative;flex:0 1 auto;min-height:60px;overscroll-behavior:contain;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.edu-chat-msg{flex:none;max-width:88%;padding:9px 12px;border-radius:12px;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.edu-chat-msg.me{align-self:flex-end;background:#087e80;color:#fff}
.edu-chat-msg.bot{align-self:flex-start;background:#f1f5f9}
.edu-chat-msg.error{background:#fff1f2;color:#be123c}
.edu-chat-page{display:block;margin-top:8px;border:0;background:none;padding:4px 0;color:#087e80;font-weight:700;cursor:pointer}
.edu-chat-wrong{display:block;margin-top:7px;font-size:11px;color:#64748b;text-decoration:underline}
.dark .edu-chat-wrong{color:#94a3b8}
.edu-chat-more{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:8px}
.edu-chat-more button{border:1px solid #0d817d55;border-radius:10px;background:#fff;color:#087e80;padding:5px 9px;font-size:12px;text-align:left;cursor:pointer}
.dark .edu-chat-more button{background:#182639;color:#5eead4}
.edu-chat-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.edu-chat-quick button{border:1px solid #cbd5e1;border-radius:999px;background:transparent;color:inherit;padding:6px 10px;font-size:12px;cursor:pointer}
.edu-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e2e8f0}
.edu-chat-form input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:9px 11px;font-size:16px;background:#fff;color:#172b4d}
.edu-chat-form button{border:0;border-radius:10px;background:#087e80;color:#fff;font-weight:700;padding:0 16px;cursor:pointer}
.edu-chat-form button:disabled{opacity:.5}
.dark .edu-chat{background:#182639;color:#e2e8f0;border-color:#34516b}
.dark .edu-chat-msg.bot{background:#24344a}.dark .edu-chat-page{color:#5eead4}
.dark .edu-chat-form{border-color:#34516b}.dark .edu-chat-form input{background:#0f172a;color:#e2e8f0;border-color:#475569}
/* Phone: a small window in the corner, with the page still in view (--edu-chat-up: above the keyboard). */
@media(max-width:640px){
 .edu-chat-open{width:48px;height:48px;font-size:21px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 .edu-chat{right:10px;bottom:calc(10px + var(--edu-chat-up,env(safe-area-inset-bottom,0px)));width:min(310px,calc(100vw - 20px));max-height:min(380px,calc(var(--edu-chat-view,100dvh)*.55))}
 .edu-chat.typing{max-height:min(380px,calc(var(--edu-chat-view,100dvh) - 20px))}
 .edu-chat-head{padding:4px 6px 4px 12px;font-size:14px}
 .edu-chat-log{padding:8px 10px;gap:6px}
 .edu-chat-msg{padding:7px 10px;font-size:13px;line-height:1.4}
 .edu-chat-quick{flex-wrap:nowrap;overflow-x:auto;padding:0 10px 6px;scrollbar-width:none}
 .edu-chat-quick::-webkit-scrollbar{display:none}
 .edu-chat-quick button{flex:none}
 .edu-chat-form{padding:7px 8px;gap:6px}
 .edu-chat-form input{padding:7px 9px}
 .edu-chat-form button{padding:0 12px;font-size:14px}
}
@media print{.edu-chat,.edu-chat-open{display:none!important}}
.pm-ros-via{display:block;margin-top:4px;color:#0f766e;font-size:12px;font-weight:600}
.dark .pm-ros-via{color:#5eead4}

/* Entries saved without internet that the server did not accept. */
.edu-offline-rejected{display:grid;gap:4px;padding:12px;margin:8px 0;border:1px solid #fecaca;border-radius:12px;background:#fff7f7;color:#13263a}
.edu-offline-rejected span{font-size:13px}
.edu-offline-rejected-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}

/* Update button in the header: uploads the work saved on this phone, loads everything new. */
.edu-update-btn{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 12px;border:0;border-radius:12px;background:#e6f2f0;color:#0f5f55;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.edu-update-btn.waiting{background:#b45309;color:#fff}
.edu-update-btn:disabled{opacity:.75;cursor:progress}
.edu-update-count{min-width:20px;padding:1px 6px;border-radius:999px;background:#fff;color:#b45309;font-size:12px;text-align:center}
.edu-update-count[hidden]{display:none}
@media(max-width:640px){.edu-update-btn{padding:0 9px;gap:5px}.edu-update-btn:not(:disabled) b{display:none}}

/* Dashboard: today's students by status. */
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile strong[data-metric-value="marked"],#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile strong[data-metric-value="staff-present"]{white-space:nowrap;font-size:20px!important;letter-spacing:-.5px}
.edu-today-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.edu-today-chip{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 12px;border:1px solid #d5dee9;border-radius:12px;background:#fff;color:#334155;font-size:13px;font-weight:700;cursor:pointer}
.edu-today-chip[aria-pressed="true"]{background:#0f766e;border-color:#0f766e;color:#fff}
.edu-today-chip.absent[aria-pressed="true"]{background:#be123c;border-color:#be123c}
.edu-today-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.edu-today-tools>*{flex:1 1 140px;min-height:40px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#14233a;font:inherit;font-size:16px}
.edu-today-list{max-height:56vh;overflow:auto;margin-bottom:10px}
.edu-today-list td small{display:block;color:#64748b;font-size:12px}
.edu-today-status{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#f1f5f9;color:#475569}
.edu-today-status.present{background:#dcfce7;color:#166534}.edu-today-status.absent{background:#ffe4e6;color:#be123c}.edu-today-status.late{background:#fef3c7;color:#92400e}.edu-today-status.leave{background:#e0f2fe;color:#075985}
.dark .edu-today-chip:not([aria-pressed="true"]),.dark .edu-today-tools>*{background:#1e293b;color:#e2e8f0;border-color:#334155}
#tab-dashboard.edu-dash.edunova-file-dashboard .edu-dash-tile[data-metric="marked"]{padding-left:10px;padding-right:8px}
.edu-today-box .edu-today-list table{min-width:0;width:100%}
@media(max-width:640px){.edu-today-list :is(th,td):nth-child(3){display:none}.edu-today-list :is(th,td){padding:10px 6px!important}.edu-today-list td .school-button{padding:6px 8px;min-width:0}}
.edu-today-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.edu-today-bar .school-button{min-height:40px;padding:6px 12px}.edu-today-bar .school-button:disabled{opacity:.5;cursor:default}
.edu-today-all{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px;cursor:pointer}
.edu-today-all input,.edu-today-tick{width:20px;height:20px;accent-color:#0f766e;flex:none}
.edu-today-name{display:flex;align-items:center;gap:8px;cursor:pointer}
.edu-today-wa.school-button,.school-button.edu-today-wa{background:#16a34a;border-color:#16a34a;color:#fff}
.edu-today-acts .school-button{margin:2px 4px 2px 0;padding:6px 10px;font-size:13px;white-space:nowrap}
.edu-today-send textarea,.edu-today-app textarea,.edu-today-app input{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-size:16px;margin-bottom:8px}
.edu-today-progress{font-weight:800;margin:0 0 8px}.edu-today-sendacts{display:flex;gap:8px;flex-wrap:wrap}.edu-today-sendacts[hidden]{display:none}
.edu-today-people{max-height:28vh;overflow:auto;margin:12px 0;padding-left:26px;font-size:13px}.edu-today-people li{padding:3px 0;cursor:pointer}.edu-today-people li.now{font-weight:800;color:#0f766e}
@media(max-width:640px){.edu-today-acts .school-button{display:block;width:100%;text-align:center}}
.edu-today-mini{display:none}
@media(max-width:640px){.edu-today-list :is(th,td):nth-child(4){display:none}.edu-today-mini{display:inline-block;margin-top:4px}.edu-today-list td.edu-today-acts{width:112px}.edu-today-acts .school-button{width:104px;margin:3px 0;box-sizing:border-box}}
.edu-today-hastop{padding-top:0!important}
.edu-today-hastop>[hidden]{display:none!important}
.edu-today-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;margin:0 -24px 12px;padding:12px 24px;background:#fff;border-bottom:1px solid #e2e8f0}
.edu-today-top h2{flex:1;min-width:0;margin:0!important}
.edu-today-topbtn{flex:none;width:44px;height:44px;border:1px solid #cbd5e1;border-radius:12px;background:#f1f5f9;color:#14233a;font-size:20px;line-height:1;cursor:pointer}
.edu-today-topbtn.x{background:#ffe4e6;border-color:#fecdd3;color:#be123c}
.dark .edu-today-top{background:#182639;border-color:#334155}.dark .edu-today-topbtn:not(.x){background:#1e293b;border-color:#334155;color:#e2e8f0}
@media(max-width:600px){.edu-today-top{margin:0 -18px 10px;padding:8px 18px}}
.edu-badge-wa{margin-left:5px;font-size:12px}
.edu-result-showall{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px;padding:12px 14px;border:1px solid #a7d8cf;border-radius:14px;background:#effaf7;cursor:pointer}
.edu-result-showall input,.edu-result-showone input{width:22px;height:22px;flex:none;accent-color:#0f766e;cursor:pointer}
.edu-result-showone{display:inline-flex;align-items:center;gap:8px;min-height:40px;cursor:pointer}
.edu-result-seen{font-size:12px;font-weight:700;color:#64748b;white-space:nowrap}.edu-result-seen.yes{color:#047857}
.dark .edu-result-showall{background:#132f33;border-color:#1f5a55}
.edu-result-generated .edu-result-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.edu-result-generated .edu-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-result-generated .school-table :is(td,th){padding:10px 8px}}
/* Result Cards: the sections are big buttons; the opened one is alone on the page. */
.edu-result-page .edu-result-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;width:100%;padding:0;border:0;background:transparent}
.edu-result-page .edu-result-tabs .school-button{min-height:72px;border:1px solid #cfe3e0!important;border-radius:16px;background:#f3faf8!important;color:#0f4f49!important;font-size:15px;font-weight:800}
.edu-result-page .edu-result-tabs .school-button:hover{background:#0f7d77!important;color:#fff!important}
.dark .edu-result-page .edu-result-tabs .school-button{background:#1e293b!important;border-color:#334155!important;color:#d1fae5!important}
@media(max-width:700px){.edu-result-page .edu-result-tabs{grid-template-columns:1fr 1fr}.edu-result-page .edu-result-tabs .school-button{min-height:64px;padding:10px 8px;font-size:14px}}
.edu-result-showall>.edu-result-showone{flex:1 1 260px;flex-wrap:wrap}.edu-result-showall>.school-button{margin:0}
.edu-result-when{min-width:40px;min-height:40px;margin-left:8px;border:1px solid #cfe3e0;border-radius:10px;background:#f3faf8;font-size:16px;cursor:pointer}
.edu-result-picklist{max-height:34vh;overflow:auto;margin:4px 0 14px;border:1px solid #dce8ef;border-radius:12px}
.edu-result-pickrow{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid #eef3f7;cursor:pointer}.edu-result-pickrow[hidden]{display:none}
.edu-result-pickrow input{width:20px;height:20px;flex:none;accent-color:#0f766e}.edu-result-pickrow>span:nth-child(2){flex:1;min-width:0}.edu-result-pickrow small{display:block;color:#64748b;font-size:12px}
.edu-result-pickrow .edu-result-seen{white-space:normal;text-align:right;max-width:110px}
.edu-result-pick input[type=search]{width:100%;min-height:42px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px}
.edu-result-pick .edu-result-field input{width:100%}
.edu-result-days{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.edu-result-pick .school-button:disabled{opacity:.5}
@media(max-width:700px){.edu-result-generated tr.edu-result-table-row td:nth-child(2){display:flex!important;justify-content:space-between;align-items:center}}
.edu-result-saveall.school-button{margin:0 0 12px;min-height:46px}
@media(max-width:700px){.edu-result-saveall.school-button{width:100%}}
.edu-result-pick textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-size:16px;margin:8px 0}
.edu-result-shareview{display:block;width:100%;max-width:420px;margin:12px auto 0;border:1px solid #dce8ef;border-radius:8px}
.edu-result-sharehelp{margin:10px 0;padding:10px 12px;border-radius:10px;background:#effaf7;color:#0f4f49;font-weight:700}
.dark .edu-result-sharehelp{background:#132f33;color:#d1fae5}
.edu-result-terms{display:block;margin-top:3px;color:#64748b;font-size:11px;white-space:normal}
