:root{--navy:#0c2843;--navy2:#102f4f;--blue:#0869f7;--blue-dark:#0846ae;--text:#0b1c48;--muted:#65758f;--border:#dce5ef;--bg:#f3f8fd;--green:#0da96a;--red:#f23d59;--yellow:#f5ae11;--purple:#923ce9;--shadow:0 2px 10px #102c5012}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,Arial,Helvetica,sans-serif;color:var(--text);font-size:13px}a{color:#114a9c;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:26px;letter-spacing:-.6px;margin-bottom:2px;color:#071b54}h2{font-size:15px;margin-bottom:0}small{font-size:11px;color:var(--muted)}.app-shell{display:flex;min-height:100vh}.sidebar{background:linear-gradient(160deg,#102a44,#071d32);color:#fff;width:225px;flex:0 0 225px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:20;transition:.2s}.sidebar.collapsed{width:0;flex-basis:0;overflow:hidden}.brand{min-height:79px;display:flex;align-items:center;gap:11px;color:#fff;padding:18px 17px}.brand:hover{text-decoration:none}.brand .cap{font-size:39px;transform:rotate(18deg);color:white}.brand strong{font-size:21px;display:block;line-height:1.2}.brand small{font-size:10px;color:#cbd8e4}.sidebar nav{padding:5px 8px;overflow:auto;flex:1}.nav-item{display:flex;align-items:center;gap:13px;color:#e0eaf5;padding:11px 13px;border-radius:5px;font-size:13px;margin:4px 0;white-space:nowrap}.nav-item:hover{background:#ffffff12;color:#fff;text-decoration:none}.nav-item.active{background:#066cf5;box-shadow:0 2px 5px #0713233d;color:white;font-weight:700}.nav-symbol{font-size:22px;font-weight:bold;min-width:25px;text-align:center;color:white}.side-footer{font-size:10px;color:#94b4d0;padding:15px}.main{flex:1;min-width:0}.topbar{height:56px;background:white;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--border);padding:0 23px;position:sticky;top:0;z-index:10}.hamburger{background:none;border:0;font-size:21px;color:var(--blue)}.global-search{background:#eaf4fd;border-radius:4px;display:flex;align-items:center;gap:8px;padding:8px 13px;width:min(425px,45vw);color:#4e6b9c}.global-search input{border:0;background:none;outline:0;width:100%;font-size:12px}.top-spacer{flex:1}.bell{font-size:23px;color:#276bd7}.profile-menu{position:relative}.profile-menu>button{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--text)}.profile-menu small,.person small,.selected-student small{display:block;font-size:10px;margin-top:3px}.profile-dropdown{position:absolute;right:0;top:44px;background:#fff;border:1px solid var(--border);box-shadow:0 4px 18px #001b4236;width:200px;border-radius:8px;z-index:30}.profile-dropdown a{display:block;padding:12px 17px}.profile-dropdown a:hover{background:#eef6ff}.profile-dropdown a.logout{color:#ee2945}.hidden{display:none!important}.avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#3da9ff,#243e95);color:#fff;font-weight:700;font-size:11px;vertical-align:middle}.content{padding:18px 20px 28px;max-width:1920px;margin:auto}.page-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:12px;gap:15px}.page-heading p{font-size:12px;color:#667aa1;margin:0}.breadcrumb{color:#8191ad;font-size:12px;white-space:nowrap}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.stat{border-radius:5px;min-height:88px;padding:18px 14px;display:flex;align-items:center;gap:15px;background:#e1f0ff}.stat.green{background:#e2f9ee}.stat.yellow{background:#fff1cf}.stat.red{background:#ffe5ea}.stat.purple{background:#f1e6ff}.stat-icon{font-size:27px;background:#0874f4;color:white;width:47px;height:47px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-weight:800}.stat.green .stat-icon{background:#08b96f}.stat.yellow .stat-icon{background:#ffb400}.stat.red .stat-icon{background:#f12c4a}.stat.purple .stat-icon{background:#973af1}.stat-label{font-size:12px;color:#284777}.stat.green .stat-label{color:#087f49}.stat.yellow .stat-label{color:#9b730c}.stat.red .stat-label{color:#bc2539}.stat-number{font-size:24px;font-weight:800;color:#09164c;margin-top:4px}.stat.green .stat-number{color:#007344}.stat-detail{font-size:11px;color:#73809c}.panel{background:#fff;border:1px solid #d8e8f2;border-radius:6px;box-shadow:var(--shadow);min-width:0;overflow:hidden;margin-bottom:10px}.panel-heading{min-height:43px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-heading.blue-heading{background:#076af2;color:#fff}.blue-heading a{color:white}.panel-heading h2{font-weight:750}.layout-with-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,325px);gap:10px;align-items:start}.fees-layout{grid-template-columns:minmax(0,1fr) minmax(280px,335px)}.side-panel{margin:0}.filters{display:flex;flex-wrap:wrap;gap:9px;padding:12px 12px 15px;align-items:end}.filters-many{gap:8px}.filters label{flex:1 1 100px;min-width:96px}.filters input,.filters select{width:100%}.filters-many label{min-width:92px}.filters-many label:last-of-type{min-width:120px}.filters .btn{height:33px}.form-body{padding:13px}.stack{display:flex;flex-direction:column;gap:12px}label{font-size:11px;font-weight:650;color:#18316a;display:block}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;border:1px solid var(--border);border-radius:4px;padding:9px 10px;background:#fff;color:#172b59;margin-top:5px;outline:0;min-height:34px}input:focus,select:focus,textarea:focus{border-color:#0b72f4;box-shadow:0 0 0 2px #0869f71e}input[readonly]{background:#eef4fa;color:#52657c}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:4px;font-weight:700;padding:9px 13px;white-space:nowrap;font-size:12px;line-height:1.2;transition:filter .12s}.btn:hover{text-decoration:none;filter:brightness(.94)}.btn:disabled{opacity:.65;cursor:default}.btn.primary{background:#076af2;color:#fff}.btn.soft{background:#eaf3ff;color:#16469c}.btn.outline{background:#fff;color:#16428e;border-color:var(--border)}.btn.red-btn{background:#ef2f52;color:white}.btn.green-btn{background:#08a665;color:white}.btn.purple-btn{background:#9635e8;color:white}.btn.tiny{font-size:10px;padding:7px 8px}.btn.full{width:100%}.form-actions{display:flex;justify-content:end;gap:8px}.actions{white-space:nowrap}.actions .btn{margin:2px}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{background:#edf6fc;padding:10px 8px;text-align:left;color:#183361;font-weight:750;white-space:nowrap}td{padding:9px 8px;border-bottom:1px solid #ecf1f6;vertical-align:middle}tbody tr:hover{background:#f7fbff}td small{display:block}th small{display:block;font-size:9px}.fee-table td,.fee-table th{padding:9px 6px}.person{display:flex;align-items:center;gap:8px}.person .avatar{width:29px;height:29px}.badge{display:inline-block;font-size:10px;font-weight:750;text-align:center;min-width:53px;padding:7px 8px;border-radius:5px;background:#e7edff;color:#274684}.badge-paid,.badge-pass,.badge-active,.badge-completed,.badge-primary,.badge-a{background:#d9f8e6;color:#088a50}.badge-partial,.badge-pending,.badge-late,.badge-b{background:#fff0c8;color:#9c6900}.badge-fail,.badge-inactive,.badge-absent,.badge-f{background:#ffe2e7;color:#c52039}.badge-c,.badge-secondary{background:#e4edff;color:#1b67c1}.green-text{color:#008b51!important}.red-text{color:#e12e47!important}.muted{color:var(--muted)}.empty{text-align:center;padding:36px 10px;color:#8792a6}.alert{padding:13px 16px;margin-bottom:13px;border-radius:5px;background:#e6f9ed;color:#116a3b}.alert.error{background:#ffe6ea;color:#b3233a}.bottom-trio{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:9px;margin-top:9px}.summary-table td:last-child{text-align:right}.row-highlight{background:#fff5d9!important}.selected-student{display:flex;align-items:center;gap:11px;margin:10px 12px 0;padding-bottom:12px;border-bottom:1px solid var(--border)}.selected-student .avatar{width:43px;height:43px}.radio-grid{display:flex;flex-wrap:wrap;gap:12px}.radio-grid label{display:flex;align-items:flex-start;gap:6px;flex:1}.radio-grid label small{font-size:9px}.radio-grid input{margin-top:1px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.check-grid label{font-size:12px}.action-bar{display:flex;gap:10px;margin:14px 0;flex-wrap:wrap}.action-bar .btn{min-width:130px}.action-bar.compact{margin:5px 12px 14px}.split-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:15px}.quick-grid a{padding:15px;border:1px solid #d5eaff;background:#f2f8ff;border-radius:7px;color:#0946a0;font-weight:750}.panel-footer{padding:13px;display:flex;justify-content:flex-end;gap:10px}.panel-subtitle{padding:5px 14px;color:var(--muted)}.marks-input{max-width:130px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px}.subject-chip{background:#edf5ff;padding:14px;border-radius:6px;font-weight:750}.student-hero{display:flex;gap:15px;align-items:center}.student-hero .avatar{width:65px;height:65px;font-size:24px}.student-hero h2{font-size:22px}.pad{padding:20px}.details-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 28px;margin-top:16px}.details-grid p{margin:5px 0}.hint-card{padding:17px;background:#eaf5ff;color:#2e5581;border-radius:6px;align-self:start}.hint-card p{margin:12px 0 0;line-height:1.6}.receipt-toolbar{display:flex;gap:10px;margin-bottom:12px}.receipt-paper{max-width:900px;margin:auto;background:white;padding:40px;border:1px solid var(--border);box-shadow:var(--shadow);min-height:500px}.receipt-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:3px solid #123675}.receipt-header h2{font-size:20px;color:#102b65;margin-bottom:7px}.receipt-header p{line-height:1.7}.text-right{text-align:right}.receipt-table{margin:25px 0;font-size:13px}.receipt-table td,.receipt-table th{padding:13px}.signature{margin-top:75px;text-align:right;line-height:2}.two-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:25px}.auth-body{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(145deg,#082645,#0e6ee5)}.auth-card{background:white;border-radius:13px;box-shadow:0 12px 40px #00152f4b;width:min(440px,92vw);padding:32px}.auth-card h1{margin-top:23px}.auth-card>p{line-height:1.5;color:var(--muted)}.auth-card .btn{padding:13px}.brand-big{font-weight:900;font-size:31px;color:#0a5acb}.auth-card small{display:block;margin-top:20px}.expense-form label{min-width:110px}.inline-form{display:inline-block}.results-table{font-size:10px}.results-table th,.results-table td{padding:8px 5px}
@media(max-width:1180px){.sidebar{width:195px;flex-basis:195px}.stats-grid{gap:7px}.stat{gap:8px;padding:12px}.stat-icon{height:38px;width:38px;font-size:22px}.stat-number{font-size:20px}.layout-with-form{grid-template-columns:minmax(0,1fr) 290px}.bottom-trio{grid-template-columns:1fr 1fr}.bottom-trio .panel:last-child{grid-column:1/-1}}
@media(max-width:850px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);width:225px;flex-basis:225px}.sidebar:not(.collapsed){transform:translateX(0)}.sidebar.collapsed{width:225px;flex-basis:225px;transform:translateX(-100%)}.main{width:100%}.content{padding:14px}.topbar{padding:0 12px;gap:12px}.global-search{width:min(340px,45vw)}.layout-with-form,.fees-layout,.split-2{grid-template-columns:1fr}.bottom-trio{grid-template-columns:1fr}.bottom-trio .panel:last-child{grid-column:auto}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.breadcrumb{display:none}}
@media(max-width:540px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-icon{display:none}.stat{min-height:72px}.stat-number{font-size:20px}.profile-menu>button>span:not(.avatar),.bell{display:none}.global-search{width:60vw}.page-heading h1{font-size:22px}.receipt-paper{padding:19px}.receipt-header{flex-wrap:wrap}.input-grid,.check-grid,.details-grid{grid-template-columns:1fr}.subject-grid{grid-template-columns:repeat(2,1fr)}}
@media print{.sidebar,.topbar,.page-heading,.breadcrumb,.receipt-toolbar,.action-bar,.filters,.panel-footer,.form-body,.hint-card,.btn,.profile-menu,.alert{display:none!important}.app-shell,.main,.content{display:block!important;width:100%;padding:0;margin:0}.panel,.receipt-paper{box-shadow:none;border:0;margin:0;max-width:none}.receipt-paper{padding:10px}body{background:white;color:black}table{font-size:10pt}th{background:#eff3f6!important;print-color-adjust:exact}.bottom-trio{display:grid}.stats-grid{grid-template-columns:repeat(4,1fr)}.layout-with-form{display:block}.layout-with-form>.side-panel{display:none}.panel{break-inside:avoid}}

/* Student directory refinement - does not alter other pages */
.student-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.actions{white-space:nowrap}.actions .btn{margin:2px 2px;padding:7px 9px;border-radius:7px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
body:has(.student-toolbar) .panel{border-radius:12px;border-color:#dbe7f5;box-shadow:0 5px 22px rgba(18,49,91,.06)}
body:has(.student-toolbar) table thead{background:#e9f4fe}
body:has(.student-toolbar) table tbody tr:hover{background:#f2f8ff}
body:has(.student-toolbar) .panel-heading{padding:18px 18px}
body:has(.student-toolbar) .filters{background:#f9fcff;padding:16px;border-radius:10px;margin:10px}
body:has(.student-toolbar) .hint-card{border:1px solid #dcecfb;border-radius:12px}
@media(max-width:700px){.student-toolbar{justify-content:flex-start}.actions{white-space:normal;min-width:190px}}

/* 2026 visual refresh - keeps existing panels */
:root{--accent:#086bdf;--navy:#0e2746}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;font-size:14px;letter-spacing:-.012em}h1,h2,h3{letter-spacing:-.035em;font-weight:800}.sidebar{background:linear-gradient(170deg,#102d4d,#071a2f)!important}.brand .cap{font-size:29px!important;transform:none!important}.nav-item{border-radius:12px!important;margin-bottom:5px!important}.panel{border-radius:15px!important;box-shadow:0 6px 22px rgba(17,43,81,.04)!important}.btn{border-radius:9px!important;font-weight:650!important}.btn.danger{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}.inline-form{display:inline-flex!important;margin:0 3px}.subject-chip{display:flex;align-items:center;justify-content:space-between;gap:10px}.subject-chip button{padding:4px 8px}.document-brand{display:flex;align-items:center;gap:15px;border-bottom:2px solid #0a62d3;margin-bottom:22px;padding-bottom:13px}.document-brand img{max-width:75px;max-height:75px;object-fit:contain}.document-brand h2{margin:0}.document-brand p{margin:3px 0;color:#64748b}.brand-mark{font-size:40px}.document-footer{display:flex;justify-content:space-between;border-top:1px solid #dbe5f0;margin-top:32px;padding-top:12px;gap:20px;text-align:center}.document-footer>div{flex:1}.document-footer img{height:75px;max-width:140px;object-fit:contain}.brand-preview{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.brand-preview img{max-width:95px;max-height:75px;object-fit:contain;border:1px solid #dbe5f0;border-radius:8px;padding:5px}.timetable-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.timetable-form label{display:flex;flex-direction:column;gap:7px}.timetable-form input,.timetable-form select{width:100%}.form-span{grid-column:1/-1}.week-layout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}.day-card{min-height:120px;background:#f4f8ff;border:1px solid #dce8fb;border-radius:12px;padding:12px}.day-card h3{margin:0 0 10px;font-size:15px}.day-card h3 small{display:block;color:#64748b;font-weight:500;font-size:12px;margin-top:3px}.slot{display:flex;flex-direction:column;gap:4px;background:white;border-left:3px solid #0870ef;padding:10px;margin-bottom:9px;border-radius:7px;font-size:12px}.slot span{display:block}.slot-actions{display:flex;gap:6px;align-items:center}.slot-actions form{margin:0}@media(max-width:1200px){.week-layout{grid-template-columns:repeat(2,1fr)}.timetable-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.week-layout,.timetable-form{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.page-heading,.receipt-toolbar,.filters,.panel-heading a,.panel-heading button,.slot-actions,.btn,.side-footer{display:none!important}.main{margin:0!important}.content{padding:0!important}.panel,.receipt-paper{box-shadow:none!important;border:0!important}.week-layout{grid-template-columns:repeat(2,1fr)}body{background:white!important}}

/* Focused fix: prevent bright intrusive native sidebar scrollbar without changing navigation behavior. */
.sidebar nav{scrollbar-width:thin;scrollbar-color:#466587 transparent;overflow-x:hidden}
.sidebar nav::-webkit-scrollbar{width:5px}
.sidebar nav::-webkit-scrollbar-track{background:transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:#48698c;border-radius:10px}
/* Bilingual school header used by in-browser printable documents. */
.bilingual-document-brand{display:grid;grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);gap:16px;align-items:center;text-align:center;margin-bottom:4px}
.bilingual-document-brand .document-english{text-align:left}
.bilingual-document-brand .document-english h2{font-size:19px;color:#0a3165;letter-spacing:.02em}
.bilingual-document-brand .document-english p{font-size:10px;font-weight:700;letter-spacing:.09em}
.bilingual-document-brand .document-logo img{max-width:108px;max-height:100px;width:auto;height:auto}
.bilingual-document-brand .document-arabic img{width:100%;max-width:240px;height:auto}
.document-contact{text-align:center;color:#64748b;border-bottom:1px solid #dbe5f0;padding-bottom:12px;margin-bottom:22px;font-size:11px}
@media(max-width:650px){.bilingual-document-brand{grid-template-columns:1fr 70px 1fr;gap:6px}.bilingual-document-brand .document-english h2{font-size:11px}.bilingual-document-brand .document-english p{font-size:8px}.bilingual-document-brand .document-logo img{max-width:68px}}
/* Scoped print presentation for the Students list; no changes to the live dashboard. */
.print-school-letterhead{display:none}
@media print{
 @page{size:A4 portrait;margin:13mm 12mm}
 body.page-students{font-family:Arial,sans-serif!important;color:#142c4b!important;font-size:10pt!important}
 .page-students .print-school-letterhead{display:block!important;margin:0 0 14mm}
 .page-students .print-school-letterhead .document-brand{display:grid!important;grid-template-columns:1fr 100px 1fr!important;align-items:center!important;gap:12px!important;border-top:4px solid #0c4384;border-bottom:2px solid #0c4384;padding:12px 0 9px}
 .page-students .print-school-letterhead .document-logo img{max-width:100px!important;max-height:94px!important}
 .page-students .print-school-letterhead .document-arabic img{width:100%!important;max-width:190px!important}
 .page-students .print-school-letterhead .document-english h2{font-size:16px!important}
 .page-students .print-school-letterhead .document-contact{text-align:center;font-size:9pt}
 .page-students .print-document-caption{font-size:14pt;text-align:center;font-weight:bold;color:#102f55;text-transform:uppercase;margin:16px 0}
 .page-students .stats-grid,.page-students .side-panel,.page-students .filters,.page-students .student-toolbar,.page-students .page-heading{display:none!important}
 .page-students .layout-with-form>.panel{width:100%!important;max-width:none!important}
 .page-students .panel-heading{display:block!important;padding:6px 0 10px!important}
 .page-students .panel-heading h2{font-size:12pt!important}
 .page-students table{width:100%!important;font-size:9pt!important;border-collapse:collapse!important}
 .page-students table th,.page-students table td{padding:8px 5px!important;border-bottom:1px solid #d7e0eb!important}
 .page-students table thead{display:table-header-group!important}
 .page-students table tr{break-inside:avoid!important}
 .page-students table th:last-child,.page-students table td:last-child{display:none!important}
 .page-students .avatar{background:#eef3fb!important;color:#173963!important}
 .page-students .panel,.page-students .layout-with-form{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
}

.print-school-footer{display:none}
@media print {
 .page-students .print-school-footer{display:block!important;margin-top:28mm;break-inside:avoid!important}
 .page-students .print-school-footer .document-footer{display:flex!important;margin:0;padding-top:12px;justify-content:space-between}
 .page-students .print-school-footer .document-footer img{height:85px!important;max-width:155px!important}
 .page-students .content{width:100%!important;max-width:none!important}
}

/* November 2026: student-only layout and attendance footer refinement */
.page-student .student-hero .avatar{display:none!important}
.page-student .document-logo img{max-width:145px!important;max-height:140px!important}
.page-student .bilingual-document-brand{grid-template-columns:minmax(0,1fr) 155px minmax(0,1fr)!important}
.page-student .document-footer img[alt="School stamp"]{height:110px!important;max-width:210px!important;object-fit:contain}
.page-student .student-hero{padding:16px 0;border-bottom:1px solid #e2e8f0}
.page-student .student-hero h2{font-size:22px}
.students-directory-table td,.students-directory-table th{padding:12px 10px}
.students-directory-table td.actions{min-width:275px}
.page-attendance .side-footer,.page-attendance_history .side-footer{display:none!important}
@media print{.page-student .student-hero .avatar{display:none!important}.page-student .document-logo img{max-width:145px!important;max-height:140px!important}.page-student .document-footer img[alt="School stamp"]{height:115px!important;max-width:225px!important}}


/* Transfer letter presentation */
.side-footer{display:none!important}
.transfer-toolbar{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:14px}
.transfer-office{text-align:center;font-weight:800;letter-spacing:.08em;text-decoration:underline;margin:6px 0 10px;color:#163a70}
.transfer-meta{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:10px;color:#3e5474}
.transfer-title{text-align:center;font-size:24px;margin:10px 0 12px;color:#0b2957}
.transfer-intro{line-height:1.8;color:#243b5b;text-align:justify}
.transfer-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.transfer-grid h3,.section-label{margin:0 0 10px;color:#0d2d5a}
.mini-table{width:100%;border-collapse:collapse;background:#fbfdff;border:1px solid #dbe7f4;border-radius:10px;overflow:hidden}
.mini-table th,.mini-table td{padding:10px 12px;border-bottom:1px solid #e8eef6;vertical-align:top}
.mini-table th{width:42%;background:#f5f9ff;color:#15365f}
.transfer-closing{margin-top:16px;color:#4b607b}
.transfer-letter .document-logo img{max-width:125px!important;max-height:118px!important}
.transfer-letter .document-arabic img{max-width:245px!important}
.transfer-letter .document-footer img[alt="School stamp"]{height:120px!important;max-width:220px!important}
@media(max-width:800px){.transfer-grid{grid-template-columns:1fr}}
@media print{
 .page-transfer_letter .transfer-toolbar,.page-transfer_letter .page-heading,.page-transfer_letter .breadcrumb{display:none!important}
 .page-transfer_letter .panel{box-shadow:none!important;border:0!important}
 .page-transfer_letter .content{padding:0!important}
 .page-transfer_letter .transfer-letter{padding:0!important}
 .page-transfer_letter .document-logo img{max-width:135px!important;max-height:125px!important}
 .page-transfer_letter .document-footer img[alt="School stamp"]{height:125px!important;max-width:235px!important}
}
.table-meta-badges{margin-top:4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.badge-transferred{background:#ede9fe;color:#5b21b6}
.transfer-title span{text-transform:none;font-size:.85em;color:#355f9b;font-weight:700}
.transfer-intro.compact{margin-bottom:4px;line-height:1.8;color:#243b5b;text-align:justify}
.minimal-footer{align-items:flex-end}
.minimal-footer .stamp-only,.minimal-footer .signature-only{flex:1;text-align:center}
.minimal-footer .stamp-only img{height:120px;max-width:220px;object-fit:contain}
.report-card-table th,.report-card-table td{text-align:center;padding:10px 8px}
.report-card-table th:first-child,.report-card-table td:first-child{text-align:left;white-space:nowrap}
.report-card-table td .badge{min-width:44px;padding:6px 8px}

/* Imamu Malik transfer document only; retain other system styles */
.page-transfer_letter .transfer-title{font-size:25px;letter-spacing:.01em;text-align:center}
.page-transfer_letter .document-logo img{max-height:132px!important;max-width:142px!important;object-fit:contain}
.page-transfer_letter .minimal-footer .signature-space{min-height:56px}
.page-transfer_letter .minimal-footer .signature-line{height:1px;background:#7c8da7;max-width:200px;margin:0 auto 8px}
.page-transfer_letter .minimal-footer .signature-caption{font-size:12px;color:#193459;margin:0}
.page-transfer_letter .minimal-footer .stamp-only{min-height:120px;display:flex;align-items:center;justify-content:center}
@media print{.page-transfer_letter .minimal-footer .signature-space{min-height:60px}}

/* November 2026 design refinement */
body,button,input,select,textarea,table{
  font-family:"Times New Roman", Georgia, serif !important;
}
h1,h2,h3,.btn,.nav-item,.panel-heading h2,.stat-number,.stat-label,.badge{
  font-family:"Times New Roman", Georgia, serif !important;
}
.badge-d{background:#ffe7c2;color:#9a5c00}
.badge-e{background:#ffe2e7;color:#bf2440}
.bilingual-document-brand{grid-template-columns:minmax(0,1fr) 132px minmax(0,1fr)!important;gap:20px!important;align-items:center!important}
.bilingual-document-brand .document-english h2{font-size:24px!important;letter-spacing:.04em!important}
.bilingual-document-brand .document-english p{font-size:12px!important;letter-spacing:.11em!important}
.bilingual-document-brand .document-logo img{max-width:126px!important;max-height:118px!important}
.bilingual-document-brand .document-arabic{text-align:right!important}
.bilingual-document-brand .document-arabic img{max-width:310px!important;width:100%!important;height:auto!important}
.bilingual-document-brand .document-arabic-caption{font-size:16px!important;font-weight:700!important;color:#21406f!important;margin:4px 0 0!important}
.document-contact{font-size:13px!important;padding-bottom:14px!important;margin-bottom:24px!important}
.transfer-letter .document-arabic img,.report-card-paper .document-arabic img{max-width:330px!important}
.transfer-letter .document-logo img,.report-card-paper .document-logo img{max-width:140px!important;max-height:132px!important}
.transfer-title{font-size:28px!important;letter-spacing:.03em!important}
.transfer-office{font-size:15px!important}
.transfer-grid h3,.section-label{font-size:22px!important}
.report-card-head{text-align:center;border-bottom:2px solid #123c77;padding:0 0 18px;margin:6px 0 18px}
.report-card-head h2{font-size:36px;letter-spacing:.04em;color:#0d3268;margin:0}
.report-card-head p{margin:8px 0 0;color:#52647f;font-size:16px}
.exam-report-table th,.exam-report-table td{padding:12px 10px;font-size:14px}
.exam-report-table thead th{background:#edf5ff;color:#153a6c}
.report-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px}
.results-table th,.results-table td{font-size:12px!important}
.results-table th:nth-last-child(-n+7){text-align:center}
.results-table td:nth-last-child(-n+7){text-align:center}
@media(max-width:900px){
  .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bilingual-document-brand{grid-template-columns:1fr 88px 1fr!important;gap:8px!important}
  .bilingual-document-brand .document-arabic img{max-width:210px!important}
  .bilingual-document-brand .document-english h2{font-size:16px!important}
  .bilingual-document-brand .document-english p{font-size:9px!important}
}

/* Requested class legibility, without changing other table sizes. */
.page-classes table td:first-child b,.page-classes table td:first-child{font-size:17px!important;font-weight:800!important;line-height:1.5}
.page-classes table th:first-child{font-size:15px!important}
.page-classes table td{padding-top:12px!important;padding-bottom:12px!important}
.page-classes .panel-heading h2{font-size:19px!important}
.page-students select[name=class_name],.page-students select[name=academic_year],.page-classes input[name=name]{font-size:15px!important;font-weight:700}

/* Imamu Malik: final interface refinement — DAAWEEYE-style sans typography */
:root{--blue:#0869f7;--border:#dce7f4;--bg:#f3f8ff;--text:#0b2554}
html,body,button,input,select,textarea,table,h1,h2,h3,.btn,.nav-item,.panel-heading h2,.stat-number,.stat-label,.badge{
  font-family:Roboto,"Segoe UI",Arial,sans-serif !important;
}
body{font-size:14px;line-height:1.48;letter-spacing:0!important}
.nav-item{font-size:14px!important}.panel{border-radius:16px!important}.panel-heading h2{font-size:17px!important}
.btn{border-radius:10px!important;font-weight:650}.stat{border-radius:14px!important}
.bottom-trio{align-items:stretch}.bottom-trio .panel{min-width:0;overflow:hidden}
.bottom-trio table{font-size:13px;line-height:1.5}
.bottom-trio table td,.bottom-trio table th{padding:11px 9px}
.bottom-trio table td:first-child{font-weight:600}
.bottom-trio .panel-heading{padding:14px 16px}
.document-brand.bilingual-document-brand{grid-template-columns:minmax(0,1fr) 156px minmax(0,1fr)!important;gap:18px!important;align-items:center!important}
.bilingual-document-brand .document-english h2{font-size:26px!important;font-weight:800!important;letter-spacing:0!important}
.bilingual-document-brand .document-english p{font-size:13px!important;font-weight:750!important}
.bilingual-document-brand .document-logo img{max-width:165px!important;max-height:156px!important;object-fit:contain!important}
.bilingual-document-brand .document-arabic{display:flex;align-items:center;justify-content:flex-end!important}
.bilingual-document-brand .document-arabic img{display:block;width:100%!important;max-width:345px!important;max-height:155px!important;object-fit:contain!important}
.bilingual-document-brand .document-arabic-caption{display:none!important}
.document-contact{font-family:Roboto,"Segoe UI",Arial,sans-serif!important}
.unified-document-footer{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:26px!important;margin-top:30px!important;padding-top:18px!important;border-top:1px solid #dce5f0!important;break-inside:avoid;page-break-inside:avoid}
.unified-document-footer .document-stamp-area,.unified-document-footer .document-signature-area{flex:1;text-align:center!important;min-height:115px}
.unified-document-footer .document-stamp-area img{max-width:235px!important;max-height:145px!important;height:auto!important;width:auto!important;object-fit:contain!important}
.unified-document-footer .document-signature-area img{max-width:185px!important;max-height:75px!important;object-fit:contain!important}
.unified-document-footer .signature-line{width:200px;max-width:90%;height:1px;background:#647c9e;margin:10px auto 7px}
.unified-document-footer .signature-space{display:block;min-height:55px}
.unified-document-footer .signature-caption,.unified-document-footer .admin-name,.unified-document-footer .admin-phone{margin:3px 0!important;font-size:13px!important;color:#15345e!important}
.unified-document-footer .admin-name{font-weight:800}
.pending-brand-asset{font-size:12px;color:#8795a8}
@media(max-width:700px){.document-brand.bilingual-document-brand{grid-template-columns:minmax(0,1fr) 95px minmax(0,1fr)!important;gap:8px!important}.bilingual-document-brand .document-english h2{font-size:16px!important}.bilingual-document-brand .document-english p{font-size:10px!important}.bilingual-document-brand .document-logo img{max-width:100px!important}.bilingual-document-brand .document-arabic img{max-height:90px!important}}
@media print{.unified-document-footer{display:flex!important}.bilingual-document-brand .document-arabic img{max-height:140px!important}}


/* Targeted UI refinement: ChatGPT-like typography, larger branding, consistent class labels */
html,body,button,input,select,textarea,table,h1,h2,h3,.btn,.nav-item,.panel-heading h2,.stat-number,.stat-label,.badge{
  font-family:Inter,"Segoe UI",Arial,Helvetica,sans-serif!important;
}
body{font-weight:400;line-height:1.5}
.document-brand.bilingual-document-brand{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr)!important;
  column-gap:18px!important;align-items:center!important;
}
.bilingual-document-brand .document-arabic{
  display:block!important;
  font-family:Tahoma,"Noto Naskh Arabic","Noto Sans Arabic",Arial,sans-serif!important;
  direction:rtl!important;text-align:center!important;
  font-size:36px!important;line-height:1.35!important;font-weight:700!important;
  letter-spacing:0!important;color:#102c5b!important;
}
.bilingual-document-brand .document-logo img{
  width:184px!important;max-width:184px!important;max-height:178px!important;
  height:auto!important;object-fit:contain!important;
}
.bilingual-document-brand .document-logo{justify-self:center!important;display:flex!important;justify-content:center!important}
.unified-document-footer .document-stamp-area img{
  max-width:280px!important;max-height:170px!important;
}
.document-footer .document-stamp-area,.document-footer .document-signature-area{min-height:125px!important}
.page-classes td:first-child,.page-classes td:first-child b{font-size:17px!important;font-weight:750!important}
@media(max-width:820px){
  .document-brand.bilingual-document-brand{grid-template-columns:minmax(0,1fr) 118px minmax(0,1fr)!important;gap:8px!important}
  .bilingual-document-brand .document-arabic{font-size:24px!important}
  .bilingual-document-brand .document-logo img{max-width:118px!important;max-height:125px!important}
}
@media print{
  .document-brand.bilingual-document-brand{grid-template-columns:minmax(0,1fr) 145px minmax(0,1fr)!important}
  .bilingual-document-brand .document-arabic{font-size:36px!important}
  .bilingual-document-brand .document-logo img{max-width:145px!important;max-height:150px!important}
  .unified-document-footer .document-stamp-area img{max-width:275px!important;max-height:165px!important}
}

/* Two-tier Arabic school heading: bold name, smaller regular subtitle.
   The same hierarchy is drawn in the offline PDF image below. */
.bilingual-document-brand .document-arabic{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;line-height:1.3!important;text-align:center!important;direction:rtl!important}
.bilingual-document-brand .document-arabic-title{font-family:Tahoma,"Noto Sans Arabic",Arial,sans-serif!important;font-size:36px!important;font-weight:800!important;line-height:1.35!important;color:#102c5b!important;white-space:nowrap}
.bilingual-document-brand .document-arabic-subtitle{font-family:Tahoma,"Noto Sans Arabic",Arial,sans-serif!important;font-size:23px!important;font-weight:400!important;line-height:1.3!important;color:#254978!important;white-space:nowrap}
@media(max-width:900px){.bilingual-document-brand .document-arabic-title{font-size:25px!important}.bilingual-document-brand .document-arabic-subtitle{font-size:16px!important}}
@media print{.bilingual-document-brand .document-arabic-title{font-size:36px!important}.bilingual-document-brand .document-arabic-subtitle{font-size:23px!important}}
/* Match printed browser documents to the existing application typography. */
@media print{body,.receipt-paper,.transfer-letter,.document-brand,.document-footer{font-family:Inter,"Segoe UI",Arial,Helvetica,sans-serif!important}}

/* Precisely matched Arabic header weights (English primary title bold; subtitle regular). */
.bilingual-document-brand .document-arabic-title{font-weight:400!important;display:block!important;white-space:nowrap!important;}
.bilingual-document-brand .arabic-school-prefix{font-weight:400!important;}
.bilingual-document-brand .arabic-school-name{font-weight:800!important;}
.bilingual-document-brand .document-arabic-subtitle{font-weight:400!important;font-size:21px!important;color:#254978!important;}
.bilingual-document-brand .document-logo img{width:194px!important;max-width:194px!important;max-height:187px!important;}
@media(max-width:900px){.bilingual-document-brand .document-logo img{max-width:130px!important;max-height:135px!important}.bilingual-document-brand .document-arabic-subtitle{font-size:16px!important;}}
@media print{.bilingual-document-brand .document-logo img{max-width:155px!important;max-height:160px!important}.bilingual-document-brand .document-arabic-subtitle{font-size:21px!important;}}

/* Focused Student Profile print correction — 2026-11-04 */
.bilingual-document-brand .document-arabic-title{
  font-size:30px!important;
  font-weight:400!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:normal;
}
.bilingual-document-brand .document-arabic-title .arabic-school-prefix{
  font-size:30px!important;
  font-weight:400!important;
}
.bilingual-document-brand .document-arabic-title .arabic-school-name{
  font-size:30px!important;
  font-weight:800!important;
}
.bilingual-document-brand .document-arabic-subtitle{
  font-size:19px!important;
  font-weight:400!important;
  line-height:1.35!important;
  white-space:normal!important;
}
.page-student .unified-document-footer .document-signature-area .signature-line{
  display:block!important;
  width:200px!important;
  max-width:90%!important;
  height:0!important;
  border-top:1.5px solid #163964!important;
  background:none!important;
  margin:12px auto 7px!important;
}
@page studentProfilePrint{size:A4 portrait;margin:0}
@media print{
  body.page-student{page:studentProfilePrint!important;margin:0!important;padding:13mm 12mm 14mm!important;}
  .page-student .content{padding:0!important;}
  .page-student .bilingual-document-brand .document-arabic-title,
  .page-student .bilingual-document-brand .arabic-school-prefix,
  .page-student .bilingual-document-brand .arabic-school-name{font-size:30px!important;}
  .page-student .bilingual-document-brand .document-arabic-subtitle{font-size:17px!important;}
  .page-student .bilingual-document-brand{
    grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr)!important;
    column-gap:7px!important;
  }
  .page-student .bilingual-document-brand .document-logo img{width:120px!important;max-width:120px!important;height:auto!important;max-height:130px!important;}
  .page-student .unified-document-footer .document-signature-area .signature-space{min-height:60px!important;display:block!important;}
  .page-student .unified-document-footer .document-signature-area .signature-line{border-color:#102c50!important;}
  .page-student .document-footer{break-inside:avoid!important;page-break-inside:avoid!important;}
}

/* Focused A4 print correction — URL/date/footer belong to browser chrome, not school content. */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { width: 210mm!important; min-height: 0!important; margin: 0!important; padding: 0!important; background: white!important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-shell, .main, .content { width: 100%!important; max-width: none!important; min-height: 0!important; margin: 0!important; padding: 0!important; }
  .panel, .receipt-paper { border: 0!important; box-shadow: none!important; }
  .sidebar,.topbar,.page-heading,.breadcrumb,.receipt-toolbar,.transfer-toolbar,.print-school-letterhead { display: none!important; }
  /* Dedicated transfer layout: preserve the document while fitting it on one A4 page. */
  body.page-transfer_letter { width: 210mm!important; padding: 7mm 9mm 7mm!important; }
  .page-transfer_letter .content { overflow: visible!important; }
  .page-transfer_letter .transfer-letter { width: 100%!important; max-width: none!important; padding: 0!important; margin: 0!important; overflow: visible!important; font-size: 9.2pt!important; line-height: 1.2!important; }
  .page-transfer_letter .transfer-letter .bilingual-document-brand { padding: 0 0 2mm!important; margin: 0!important; min-height: 0!important; gap: 3mm!important; grid-template-columns:minmax(0,1fr) 26mm minmax(0,1fr)!important; }
  .page-transfer_letter .transfer-letter .document-logo img { width: 26mm!important; max-width: 26mm!important; max-height: 24mm!important; }
  .page-transfer_letter .transfer-letter .document-english h2 { font-size: 16pt!important; }
  .page-transfer_letter .transfer-letter .document-english p { font-size: 8pt!important; }
  .page-transfer_letter .transfer-letter .document-arabic-title { font-size: 18pt!important; line-height: 1.1!important; }
  .page-transfer_letter .transfer-letter .document-arabic-subtitle { font-size: 11pt!important; line-height: 1.2!important; }
  .page-transfer_letter .transfer-letter .document-contact { font-size: 8pt!important; padding: 1.5mm 0!important; margin: 0 0 2mm!important; }
  .page-transfer_letter .transfer-office { font-size: 9pt!important; margin: 1mm 0 2mm!important; }
  .page-transfer_letter .transfer-meta { margin: 1mm 0!important; font-size: 8.5pt!important; }
  .page-transfer_letter .transfer-title { margin: 2mm 0!important; font-size: 18pt!important; }
  .page-transfer_letter .transfer-intro { margin: 1mm 0 3mm!important; line-height: 1.35!important; font-size: 9pt!important; }
  .page-transfer_letter .transfer-grid { display: grid!important; grid-template-columns: 1fr 1fr!important; gap: 4mm!important; margin: 2mm 0 3mm!important; }
  .page-transfer_letter .transfer-grid > div { min-width: 0!important; }
  .page-transfer_letter .transfer-grid h3, .page-transfer_letter .section-label { font-size: 11pt!important; margin: 0 0 1.5mm!important; }
  .page-transfer_letter .mini-table { font-size: 8pt!important; width: 100%!important; }
  .page-transfer_letter .mini-table th, .page-transfer_letter .mini-table td { padding: 1.5mm 1.6mm!important; line-height: 1.15!important; }
  .page-transfer_letter .report-card-table { font-size: 7.8pt!important; width: 100%!important; border-collapse: collapse!important; }
  .page-transfer_letter .report-card-table th, .page-transfer_letter .report-card-table td { padding: 1.7mm 1.1mm!important; line-height: 1.1!important; }
  .page-transfer_letter .report-card-table .badge { font-size: 8pt!important; padding: .4mm 1mm!important; min-width: 0!important; }
  .page-transfer_letter .table-wrap { overflow: visible!important; margin: 0!important; }
  .page-transfer_letter .unified-document-footer, .page-transfer_letter .document-footer { margin: 3mm 0 0!important; padding: 1.5mm 0 0!important; min-height: 0!important; gap: 3mm!important; }
  .page-transfer_letter .document-stamp-area, .page-transfer_letter .document-signature-area { min-height: 0!important; }
  .page-transfer_letter .document-stamp-area img, .page-transfer_letter .stamp-only img { width: auto!important; height: auto!important; max-height: 24mm!important; max-width: 32mm!important; }
  .page-transfer_letter .document-signature-area img { max-height: 13mm!important; }
  .page-transfer_letter .signature-space { min-height: 10mm!important; }
  .page-transfer_letter .signature-line { margin: 1mm auto!important; }
  .page-transfer_letter .signature-caption,.page-transfer_letter .admin-name,.page-transfer_letter .admin-phone { font-size: 8pt!important; line-height: 1.1!important; margin: 1mm 0!important; }
  .page-transfer_letter .transfer-grid, .page-transfer_letter .report-card-table, .page-transfer_letter .document-footer { break-inside: avoid!important; page-break-inside: avoid!important; }
}

/* Teacher registration and dynamically calculated service duration */
.teacher-service{display:inline-block;background:#eef4ff;color:#1b4d92;border-radius:9px;padding:5px 9px;font-weight:600;white-space:nowrap}

/* Weekly teacher cards: pastel day headers matching the requested layout */
.page-schedule .week-layout{gap:16px;padding:20px;grid-template-columns:repeat(4,minmax(0,1fr))}
.page-schedule .day-card{position:relative;overflow:hidden;background:#fff;border:1px solid #dbe6f3;box-shadow:0 2px 5px rgba(18,48,84,.07);padding:0 0 12px;min-height:145px;border-radius:14px}
.page-schedule .day-card h3{display:flex;flex-direction:column;gap:4px;align-items:flex-start;background:#d8eaff;color:#15477e;margin:0 0 9px;padding:14px 15px;font-size:16px;border-bottom:1px solid #e2eaf5}
.page-schedule .day-card h3:before{content:"▦";display:inline-block;font-size:18px;line-height:1}
.page-schedule .day-card h3 small{color:inherit;opacity:.72;font-weight:500}
.page-schedule .day-card:nth-child(2) h3{background:#d9fbea;color:#137d48}
.page-schedule .day-card:nth-child(3) h3{background:#ebe3ff;color:#6341aa}
.page-schedule .day-card:nth-child(4) h3{background:#fff0d7;color:#a65712}
.page-schedule .day-card:nth-child(5) h3{background:#ffe1ed;color:#a82c61}
.page-schedule .day-card:nth-child(6) h3{background:#d9f9ff;color:#067393}
.page-schedule .day-card:nth-child(7) h3{background:#e6e5ff;color:#4a46a4}
.page-schedule .day-card .slot{margin:8px 10px;background:#f9fbff;border-left:3px solid #1570ef;padding:11px 12px;line-height:1.5}
.page-schedule .day-card .slot b{font-size:13px;color:#153a70}
.page-schedule .day-card:has(.slot) .slot span{font-size:12px}
.page-schedule .day-card:not(:has(.slot)):after{content:"No schedule";display:block;text-align:center;padding:20px 10px;color:#7a8ba5;font-weight:600}
.page-exam_timetable .exam-plan-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:10px 18px 20px}
.page-exam_timetable .exam-plan-stats>div{display:flex;flex-direction:column;background:#f1f7ff;border:1px solid #e0ebfc;padding:14px 18px;border-radius:12px}
.page-exam_timetable .exam-plan-stats b{font-size:23px;color:#0b407b}
.page-exam_timetable .exam-plan-stats span{font-size:12px;color:#58708d;margin-top:3px}
.page-exam_timetable .exam-plan-table td{vertical-align:middle}
.page-exam_timetable .exam-plan-table td small{display:block;font-size:12px;color:#69829f;margin-top:4px}
.page-exam_timetable .schedule-audience{background:#e6f2ff;color:#1558a2;white-space:nowrap}
.page-exam_timetable .exam-timetable-editor{margin-top:20px}
.page-exam_timetable .timetable-form{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.page-schedule .week-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.page-exam_timetable .timetable-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.page-schedule .week-layout,.page-exam_timetable .timetable-form{grid-template-columns:1fr}.page-exam_timetable .exam-plan-stats{grid-template-columns:1fr}}
@media print{
  .page-exam_timetable .exam-timetable-editor,.page-exam_timetable .print-hide,.page-exam_timetable .exam-plan-stats,.page-exam_timetable .filters{display:none!important}
  .page-exam_timetable .exam-plan-table th,.page-exam_timetable .exam-plan-table td{padding:7px 8px!important;font-size:10pt!important}
  .page-exam_timetable .panel{break-inside:auto!important;page-break-inside:auto!important}
  .page-exam_timetable .exam-plan-table tr{break-inside:avoid}
  .page-schedule .week-layout{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .page-schedule .day-card{break-inside:avoid;page-break-inside:avoid}
}

/* Short, individually printable student exam result card */
@media print {
  @page { size: A4 portrait; margin: 9mm; }
  body.page-exam_report .receipt-paper.report-card-paper {
    width: 100%!important; min-height: 0!important; padding: 7mm 9mm!important;
    margin: 0!important; box-shadow: none!important; border: 0!important;
  }
  body.page-exam_report .report-card-head {padding:0 0 7px!important;margin:0 0 8px!important}
  body.page-exam_report .report-card-head h2 {font-size:23px!important}
  body.page-exam_report .document-brand {margin-bottom:4px!important;padding-bottom:4px!important}
  body.page-exam_report .document-logo img {max-height:65px!important}
  body.page-exam_report .details-grid {gap:2px!important;margin:4px 0!important}
  body.page-exam_report .details-grid p {margin:2px 0!important;font-size:10px!important}
  body.page-exam_report .exam-report-table th,
  body.page-exam_report .exam-report-table td {padding:4px 5px!important;font-size:9px!important}
  body.page-exam_report .report-summary-grid {margin:5px 0!important}
  body.page-exam_report .stat-card {padding:5px!important;min-height:0!important}
  body.page-exam_report .document-footer {margin-top:7px!important;padding-top:3px!important}
  body.page-exam_report .document-footer img {max-height:58px!important}
}

/* Student profile: historical examinations, grouped by academic year. */
.student-exams-history{margin-top:25px;padding-top:18px;border-top:1px solid #dce7f3}
.student-exams-history h3{font-size:21px;margin:0 0 5px;color:#0d316b}
.exam-history-description{color:#65768b;font-size:13px;margin:0 0 14px}
.exam-history-year{font-size:16px;color:#0e4f98;border-left:4px solid #1673e7;padding:8px 12px;background:#eef6ff;border-radius:0 8px 8px 0;margin:20px 0 10px}
.exam-history-table{width:100%;border-collapse:collapse}
.exam-history-table th{white-space:nowrap;background:#eaf3fd}
.exam-history-table th,.exam-history-table td{padding:11px 10px}
.exam-history-table tbody tr{break-inside:avoid;page-break-inside:avoid}
@media print {
  .page-student .student-profile-sheet{padding:0!important;border:0!important;box-shadow:none!important}
  .page-student .student-exams-history{break-inside:auto!important;page-break-inside:auto!important}
  .page-student .exam-history-year{break-after:avoid!important;page-break-after:avoid!important}
  .page-student .exam-history-table{font-size:9pt!important}
  .page-student .exam-history-table th,.page-student .exam-history-table td{padding:5px 6px!important}
  .page-student .exam-history-table .actions,.page-student .student-hero .btn{display:none!important}
  .page-student .exam-history-description{display:none!important}
  .page-student .student-profile-sheet,.page-student .student-exams-history{width:100%!important}
}
/* Make the highlighted Arabic word مدرسة bold in Student Profile and all print headers. */
.bilingual-document-brand .document-arabic-title .arabic-school-prefix{
  font-weight:800!important;
}

/* Nov 04 annual promotion and class performance */
.exam-page-back{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.enrollment-history{margin-top:24px;padding:16px;background:#f6faff;border-radius:12px;border:1px solid #dce9fa}
.enrollment-history h3{margin:0 0 10px;color:#173b68}
.promotion-form{padding:15px}.promotion-form .filters{padding:12px 0}
.performance-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}
.performance-bars{display:grid;gap:18px}.performance-bars progress{display:block;width:100%;height:19px;margin-top:8px;accent-color:#0ea66e}
@media(max-width:750px){.performance-columns{grid-template-columns:1fr}}
@media print{.exam-page-back,.promotion-form button{display:none!important}.page-exam_overview .performance-columns{display:grid;grid-template-columns:1fr 1fr!important}}

/* Primary / Secondary exam-subject filtering and examination searches */
.exam-search-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:14px 0 18px;padding:16px;background:#fff;border:1px solid #d9e6f3;border-radius:16px}
.exam-search-filters label{min-width:220px;flex:1}
.subject-chip{display:flex;align-items:center;gap:8px;justify-content:space-between}
.subject-chip span{flex:1;min-width:0}
#examSubjectChoices label[hidden]{display:none!important}
#examSubjectChoices{max-height:290px;overflow:auto}

/* Account photos + accessible zoom controls */
.user-photo{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block;border:2px solid #e1eafe}
.profile-menu .user-photo{width:36px;height:36px}
.user-profile-preview{display:flex;gap:16px;align-items:center}
.user-profile-preview .user-photo,.user-profile-preview .avatar{width:88px;height:88px;font-size:29px}
.zoom-controls{display:flex;align-items:center;gap:3px;border:1px solid #dbe7f6;background:#f4f8ff;border-radius:10px;padding:3px;white-space:nowrap}
.zoom-controls button{border:0;background:#fff;color:#0c4ea5;border-radius:7px;min-width:28px;min-height:28px;font-size:17px;font-weight:700}
.zoom-controls #zoomReset{font-size:11px;padding:0 7px}
.zoom-controls output{min-width:40px;text-align:center;font-weight:700;font-size:12px}
@media(max-width:700px){.zoom-controls #zoomReset{display:none}.zoom-controls{gap:1px}.zoom-controls button{min-width:24px}}
@media print{html{zoom:100%!important}.zoom-controls{display:none!important}}

/* School logo uploaded from Settings replaces the graduation-cap sidebar icon. */
.brand .cap{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:48px;overflow:hidden;}
.brand .cap .sidebar-school-logo{width:46px;height:46px;object-fit:contain;border-radius:6px;}

/* Mobile-first display correction: sidebar is closed until hamburger is tapped. */
@media screen and (max-width:850px){
 html,body{max-width:100%;overflow-x:hidden}
 .app-shell,.main,.content{min-width:0;max-width:100%}
 .sidebar{position:fixed!important;left:0;top:0;bottom:0;width:min(290px,85vw)!important;flex-basis:auto!important;max-width:85vw;z-index:1100;box-shadow:12px 0 32px #061a3240;transform:translateX(-105%)!important;overflow:visible!important}
 .sidebar:not(.collapsed){transform:translateX(0)!important}
 .sidebar.collapsed{transform:translateX(-105%)!important}
 .topbar{z-index:100;gap:8px;justify-content:space-between}
 .global-search{display:none}
 .content{padding:12px!important}
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .stat{min-width:0;border-radius:12px;min-height:90px}
 .stat-icon{display:flex!important;flex:0 0 38px}
 .page-heading{flex-wrap:wrap}
 .panel{max-width:100%}
 .table-wrap,.table-responsive,.responsive-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .action-bar,.student-toolbar,.filters{max-width:100%;flex-wrap:wrap}
 .zoom-controls{flex-shrink:0}
}
@media screen and (max-width:420px){.topbar{padding:0 9px!important}.stat{padding:10px!important;gap:7px}.stat-label{font-size:11px}.stat-number{font-size:20px}.stat-icon{width:34px;height:34px;font-size:19px}.zoom-controls #zoomReset{display:none}}
@media print{.sidebar{display:none!important}}

/* Compact student-only result report */
.compact-result-card{background:#fff;color:#102657;padding:22px 24px;margin:12px auto;max-width:1120px;border-radius:10px;box-shadow:0 3px 18px #17376b1a;font-family:Arial,sans-serif}
.compact-school-head{display:grid;grid-template-columns:1fr 145px 1fr;align-items:center;gap:16px}.compact-school-en{border-top:5px solid #1267df;padding-top:9px}.compact-school-en strong{display:block;font-size:25px;letter-spacing:.6px}.compact-school-en span{font-size:13px;font-weight:700}.compact-school-logo img{width:120px;height:112px;object-fit:contain}.compact-school-ar{border-top:5px solid #1267df;text-align:right;padding-top:9px}.compact-school-ar img{max-width:100%;max-height:85px;object-fit:contain}.compact-result-title{text-align:center;background:#dbeafe;border-radius:10px;font-size:19px;padding:10px;margin:16px 0}.compact-result-meta{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:16px;margin:16px 0}.compact-result-table-wrap{overflow-x:auto}.compact-result-table{width:100%;border-collapse:collapse;text-align:center;table-layout:fixed}.compact-result-table th,.compact-result-table td{border:1px solid #1b457d;padding:12px 4px;overflow-wrap:anywhere}.compact-result-table th{background:#dbeafe;font-size:12px}.compact-result-table td{font-size:15px;font-weight:700}.compact-result-table th:nth-last-child(2),.compact-result-table td:nth-last-child(2){background:#e1f7e7}.compact-result-foot{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:12px;margin-top:25px}.compact-result-foot>div:last-child{text-align:right}.compact-stamp{text-align:center;color:#8b9cb3;font-size:12px}.compact-stamp img{max-height:80px;max-width:130px;object-fit:contain}
@media(max-width:650px){.compact-result-card{padding:12px}.compact-school-head{grid-template-columns:1fr 65px 1fr;gap:5px}.compact-school-en strong{font-size:12px}.compact-school-en span{font-size:8px}.compact-school-logo img{width:60px;height:60px}.compact-school-ar img{max-height:48px}.compact-result-title{font-size:12px}.compact-result-meta{font-size:12px}.compact-result-table{min-width:650px}.compact-result-foot{font-size:10px}}
@media print{@page{size:A4 landscape;margin:9mm}body.page-exam_report .compact-result-card{width:100%!important;max-width:none!important;box-shadow:none!important;margin:0!important;padding:0!important;break-inside:avoid!important}body.page-exam_report .receipt-toolbar{display:none!important}body.page-exam_report .compact-result-table{min-width:0!important}body.page-exam_report .compact-result-card *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* Dashboard ranking and compact report enhancements */
.top-students-filter{display:flex;align-items:end;gap:10px;padding:10px 15px;flex-wrap:wrap}.top-students-filter label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.top-students-filter select{max-width:230px}.compact-admin{font-size:12px;text-align:center}.compact-result-meta{flex-wrap:wrap;gap:10px}.compact-result-foot{align-items:center}

/* Exam report: aligned header rules and uploaded stamp behind signature */
.page-exam_report .compact-school-head{align-items:start}
.page-exam_report .compact-school-en,.page-exam_report .compact-school-ar{margin-top:0;border-top:5px solid #1267df;min-height:94px}
.page-exam_report .compact-school-logo{display:flex;justify-content:center;align-items:flex-start}
.page-exam_report .compact-result-foot{position:relative;min-height:110px;isolation:isolate}
.page-exam_report .compact-result-foot>div{position:relative;z-index:1}
.page-exam_report .compact-result-stamp-watermark{position:absolute;z-index:0;left:6%;top:0;width:150px;height:105px;object-fit:contain;opacity:.72;pointer-events:none}
@media print{body.page-exam_report .compact-result-stamp-watermark{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}}

/* Exam report: keep signature line clear; stamp sits fully below it. */
.page-exam_report .compact-result-foot{min-height:165px!important;align-items:start!important;padding-top:8px}
.page-exam_report .compact-result-stamp-watermark{left:8%!important;top:52px!important;width:135px!important;height:100px!important;opacity:1!important}
@media print{body.page-exam_report .compact-result-foot{min-height:43mm!important}body.page-exam_report .compact-result-stamp-watermark{top:13mm!important;height:25mm!important}}

/* Transfer PDF uses the same HTML document as View/Print, sized to one landscape A4 sheet. */
@media print {
 @page { size: A4 landscape; margin: 0; }
 body.page-transfer_letter { width:297mm!important; height:210mm!important; padding:7mm 10mm!important; box-sizing:border-box!important; overflow:hidden!important; }
 body.page-transfer_letter .app-shell,body.page-transfer_letter .main,body.page-transfer_letter .content {width:100%!important;height:auto!important;overflow:visible!important;}
 body.page-transfer_letter .transfer-letter {box-sizing:border-box!important;max-height:195mm!important;overflow:hidden!important;break-after:avoid!important;page-break-after:avoid!important;}
 body.page-transfer_letter .transfer-letter .bilingual-document-brand {grid-template-columns:minmax(0,1fr) 32mm minmax(0,1fr)!important;}
 body.page-transfer_letter .transfer-letter .document-logo img {max-width:32mm!important;width:32mm!important;max-height:28mm!important;}
 body.page-transfer_letter .transfer-grid {gap:6mm!important;}
 body.page-transfer_letter .report-card-table {font-size:8.5pt!important;}
 body.page-transfer_letter .report-card-table th,body.page-transfer_letter .report-card-table td {padding:2mm 1.5mm!important;}
}

/* Uploaded administrator signature rests directly on its signature rule.
   Styling only: no examination or student data changes. */
.unified-document-footer .document-signature-area img[alt="Administrator signature"]{
  display:block!important;
  width:auto!important;
  max-width:185px!important;
  max-height:75px!important;
  height:auto!important;
  object-fit:contain!important;
  margin:0 auto -1px!important;
  vertical-align:bottom!important;
}
.unified-document-footer .document-signature-area:has(img[alt="Administrator signature"]) .signature-line{
  margin:0 auto 7px!important;
}
@media print{
 .unified-document-footer .document-signature-area img[alt="Administrator signature"]{margin-bottom:-1px!important;}
 .unified-document-footer .document-signature-area:has(img[alt="Administrator signature"]) .signature-line{margin-top:0!important;}
}

/* Signature ink appears on white paper, touching the signature rule; only document pages. */
.page-transfer_letter .document-signature-area img[alt="Administrator signature"],
.page-exam_report .compact-result-foot img.admin-signature-ink{
  mix-blend-mode:screen!important;background:#fff!important;display:block!important;
  margin:0 auto -1px!important;object-fit:contain!important;
}
.page-transfer_letter .document-signature-area:has(img[alt="Administrator signature"]) .signature-line{margin-top:0!important;}

.page-exam_report .compact-signature-rule{display:inline-flex;position:relative;width:165px;height:48px;border-bottom:1px solid #16345a;vertical-align:bottom;align-items:flex-end;justify-content:center;}
.page-exam_report .compact-signature-rule img.admin-signature-ink{max-width:160px;max-height:47px;width:auto;height:auto;mix-blend-mode:screen;background:#fff;object-fit:contain;}

/* Print and Save-as-PDF share the actual View layout; signature touches the line. */
@media print {
 .page-transfer_letter .transfer-letter .document-signature-area img[alt="Administrator signature"]{margin-bottom:-1px!important;mix-blend-mode:screen!important;background:#fff!important;}
 .page-exam_report .compact-signature-rule img.admin-signature-ink{margin-bottom:-1px!important;mix-blend-mode:screen!important;background:#fff!important;}
 .page-transfer_letter .transfer-letter,.page-exam_report .compact-result-card{break-inside:avoid!important;page-break-inside:avoid!important;}
}

/* Targeted transfer signature + examination print fixes (Nov 04). */
.page-transfer_letter .unified-document-footer .document-signature-area{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;}
.page-transfer_letter .unified-document-footer .document-signature-area img[alt="Administrator signature"]{display:block!important;max-width:185px!important;max-height:65px!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:0 auto -2px!important;mix-blend-mode:screen!important;background:transparent!important;}
.page-transfer_letter .unified-document-footer .document-signature-area .signature-line{display:block!important;width:200px!important;max-width:90%!important;height:1px!important;background:#647c9e!important;margin:0 auto 6px!important;}
@media print{
 @page{size:A4 landscape;margin:8mm;}
 body.page-exam_report{width:100%!important;height:auto!important;padding:0!important;overflow:visible!important;}
 body.page-exam_report .compact-result-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:3mm!important;overflow:visible!important;}
 body.page-exam_report .compact-school-head{grid-template-columns:minmax(0,1fr) 30mm minmax(0,1fr)!important;gap:5mm!important;}
 body.page-exam_report .compact-result-title{margin:4mm 0!important;padding:3mm!important;font-size:14pt!important;}
 body.page-exam_report .compact-result-meta{display:grid!important;grid-template-columns:1fr 1.3fr 1.3fr .65fr!important;gap:3mm!important;align-items:center!important;flex-wrap:nowrap!important;margin:3mm 0 5mm!important;font-size:10pt!important;}
 body.page-exam_report .compact-result-meta>span{min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;}
 body.page-exam_report .compact-result-table-wrap{width:100%!important;overflow:visible!important;}
 body.page-exam_report .compact-result-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;}
 body.page-exam_report .compact-result-table th,body.page-exam_report .compact-result-table td{box-sizing:border-box!important;padding:3mm 1mm!important;font-size:8pt!important;overflow-wrap:anywhere!important;word-break:normal!important;border:1px solid #1b457d!important;}
 body.page-exam_report .compact-result-foot{margin-top:8mm!important;min-height:25mm!important;}
 body.page-transfer_letter .document-signature-area img[alt="Administrator signature"]{max-height:13mm!important;margin-bottom:-1px!important;}
}

/* Final document-only signature positioning: ink rests on top of the rule. */
.page-transfer_letter .document-signature-area img[alt="Administrator signature"]{max-height:60px!important;max-width:185px!important;margin-bottom:-2px!important;position:relative;z-index:2;}
.page-transfer_letter .document-signature-area .signature-line{position:relative;z-index:1;}
@media print {
 body.page-transfer_letter .transfer-letter .document-signature-area img[alt="Administrator signature"]{max-height:13mm!important;margin-bottom:-1px!important;}
 body.page-exam_report .compact-result-meta{margin-bottom:6mm!important;}
 body.page-exam_report .compact-result-table th{font-size:7pt!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 body.page-exam_report .compact-result-table td{font-size:9pt!important;}
}

/* Keep the uploaded signature visible in the Transfer view and on paper. */
.page-transfer_letter .unified-document-footer .document-signature-area img[alt="Administrator signature"]{visibility:visible!important;opacity:1!important;display:block!important;max-width:185px!important;max-height:65px!important;mix-blend-mode:normal!important;object-fit:contain!important;background:transparent!important;}
@media print{.page-transfer_letter .unified-document-footer .document-signature-area img[alt="Administrator signature"]{visibility:visible!important;opacity:1!important;mix-blend-mode:normal!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;}}

/* Examination report: landscape print matches the wide on-screen document. */
@media print {
 @page { size: A4 landscape; margin: 5mm; }
 html,body.page-exam_report { zoom:1!important; width:auto!important; min-width:0!important; }
 body.page-exam_report .content,body.page-exam_report .main,body.page-exam_report .app-shell { width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;display:block!important; }
 body.page-exam_report .compact-result-card { width:100%!important;max-width:none!important;padding:2mm!important;box-sizing:border-box!important; }
 body.page-exam_report .compact-result-meta {display:grid!important;grid-template-columns:1fr 1.25fr 1.25fr .65fr!important;font-size:10pt!important;gap:3mm!important;}
 body.page-exam_report .compact-result-table-wrap {width:100%!important;overflow:visible!important;}
 body.page-exam_report .compact-result-table {width:100%!important;min-width:0!important;table-layout:fixed!important;}
 body.page-exam_report .compact-result-table th {font-size:7pt!important;padding:3mm .8mm!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;line-height:1.25!important;}
 body.page-exam_report .compact-result-table td {font-size:10pt!important;padding:3mm .8mm!important;}
 body.page-exam_report .compact-result-foot {break-inside:avoid!important;}
 body.page-exam_report .admin-signature-ink {display:block!important;visibility:visible!important;opacity:1!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;}
}

/* Exam report: print-only layout, preserve the four separated metadata fields and footer. */
@media print {
  @page { size: A4 landscape; margin: 7mm; }
  body.page-exam_report .compact-result-card {
    width: 100% !important; max-width: 100% !important;
    padding: 3mm !important; box-sizing: border-box !important;
    break-inside: avoid !important; page-break-inside: avoid !important;
  }
  body.page-exam_report .compact-result-meta {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr 1.35fr .7fr !important;
    gap: 5mm !important; margin: 5mm 0 !important;
    align-items: start !important;
  }
  body.page-exam_report .compact-result-meta > span {
    display: block !important; min-width: 0 !important;
    overflow-wrap: normal !important; word-break: normal !important;
    white-space: normal !important; font-size: 10pt !important;
  }
  body.page-exam_report .compact-result-table {
    width: 100% !important; table-layout: fixed !important;
  }
  body.page-exam_report .compact-result-table th {
    font-size: 7pt !important; padding: 2mm .5mm !important;
    overflow-wrap: anywhere !important; line-height: 1.15 !important;
  }
  body.page-exam_report .compact-result-foot {
    display: grid !important; grid-template-columns: 1fr 1fr 1fr !important;
    margin-top: 9mm !important; gap: 5mm !important;
    align-items: start !important; min-height: 35mm !important;
  }
  body.page-exam_report .compact-admin { text-align: center !important; }
  body.page-exam_report .compact-result-foot > div:last-child { text-align: right !important; }
}

/* Targeted weekly teacher schedule redesign; no changes to other pages. */
.page-teacher_view .teacher-weekly-document{background:#fff;max-width:1150px;margin:auto}
.page-teacher_view .weekly-schedule-title{background:#07457d;color:white;border-radius:40px;text-align:center;font-size:25px;font-weight:800;padding:12px 18px;margin:24px auto 18px;max-width:700px}
.page-teacher_view .weekly-schedule-table{overflow:visible}
.page-teacher_view .weekly-schedule-table table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:center}
.page-teacher_view .weekly-schedule-table th{background:#06477f!important;color:#fff!important;padding:14px 8px;font-size:16px}
.page-teacher_view .weekly-schedule-table td{padding:13px 8px;font-size:15px;font-weight:650;color:#102849;border:1px solid #a4c8e2}
.page-teacher_view .weekly-schedule-table tbody tr:nth-child(odd){background:#dceefa}
.page-teacher_view .weekly-schedule-table tbody tr:nth-child(even){background:#fff}
@media print{
 @page{size:A4 landscape;margin:9mm}
 body.page-teacher_view .teacher-weekly-document{border:2px double #146397!important;border-radius:5px!important;box-shadow:none!important;padding:12mm!important;max-width:none!important;width:100%!important;break-inside:avoid!important}
 body.page-teacher_view .teacher-weekly-document .student-hero,body.page-teacher_view .teacher-weekly-document .filters{display:none!important}
 body.page-teacher_view .weekly-schedule-title{background:#07457d!important;color:#fff!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.page-teacher_view .weekly-schedule-table th{background:#06477f!important;color:white!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.page-teacher_view .weekly-schedule-table tbody tr:nth-child(odd){background:#dceefa!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.page-teacher_view .weekly-schedule-table table{width:100%!important}
 body.page-teacher_view .teacher-weekly-document .bilingual-document-brand,body.page-teacher_view .teacher-weekly-document .unified-document-footer{break-inside:avoid!important}
}

/* Login-only redesign: other screens remain untouched */
.auth-redesign{display:block;background:#0750a5;min-height:100vh}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-side{background:linear-gradient(140deg,#06407e,#006bd4 75%,#003c82);color:white;padding:54px;display:flex;flex-direction:column;justify-content:space-between}.auth-side-brand{display:flex;align-items:center;gap:16px}.auth-side-brand img{width:85px;height:85px;object-fit:contain;border-radius:50%;background:white}.auth-side-brand strong{display:block;font-size:27px}.auth-side-brand span{font-size:12px;font-weight:700}.auth-side-message h2{font-size:32px;color:white}.auth-side-message p{font-size:17px;color:#d8ebff}.auth-right{display:flex;justify-content:center;align-items:center;padding:35px;background:linear-gradient(145deg,#076bc9,#003d83)}.auth-redesign .auth-card{width:min(510px,100%);padding:42px 48px;text-align:center;border-radius:22px;box-shadow:0 16px 45px #002a5b44}.auth-school-logo{width:130px;height:130px;object-fit:contain}.auth-redesign .auth-school-name{font-size:29px;color:#09295d;margin:10px 0 0}.auth-school-subtitle{font-size:14px;font-weight:800!important;color:#09295d!important;margin:4px 0 18px}.auth-accent{height:3px;background:#0879ed;margin:0 auto 25px;width:95%}.auth-redesign .auth-card h1{font-size:27px;margin:0 0 7px}.auth-redesign .auth-card>p{margin-bottom:25px}.auth-redesign .auth-card form{text-align:left}.auth-redesign .auth-card label{font-size:13px}.auth-redesign .auth-card input{font-size:15px;padding:13px;border-radius:9px}.auth-password{position:relative}.auth-password input{padding-right:50px!important}.auth-password button{position:absolute;right:9px;top:10px;background:none;border:0;color:#66798d;font-size:22px}.auth-redesign .auth-submit{width:100%;padding:15px;border-radius:10px;background:linear-gradient(90deg,#086bda,#00448e);font-size:17px;margin-top:10px}@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.auth-side{padding:16px;min-height:90px}.auth-side-brand img{width:48px;height:48px}.auth-side-brand strong{font-size:18px}.auth-side-brand span{font-size:9px}.auth-side-message{display:none}.auth-right{padding:25px 14px;min-height:calc(100vh - 90px)}.auth-redesign .auth-card{padding:28px 22px}}

/* Cancel a selected branding upload without removing the currently saved image. */
.branding-file-control{display:flex;align-items:center;gap:8px;max-width:100%;}
.branding-file-control input[type=file]{flex:1;min-width:0;}
.branding-clear-file{flex:none;cursor:pointer;border:1px solid #f1c3ca;background:#fff1f3;color:#b42338;border-radius:7px;padding:7px 11px;font-weight:700;}
.branding-clear-file:hover{background:#ffe1e5;}

/* Examination Results redesign: scoped to this page only. */
.page-results{background:#f0f5ff}
.page-results .content{max-width:none;padding:23px 20px 34px}
.page-results .exam-results-panel{background:#f1f5ff;border:1px solid #d3e2fa;border-radius:22px;box-shadow:0 8px 22px #17427b1c;overflow:hidden;padding:16px 14px 20px}
.exam-results-heading{display:flex;gap:15px;align-items:center;padding:2px 12px 15px}
.exam-results-heading h2{font-size:23px!important;color:#081d55;font-weight:800}
.exam-results-title-icon{display:grid;place-items:center;width:38px;height:42px;border-radius:9px;background:#0675f5;color:white;font-size:27px;box-shadow:0 4px 9px #075ad445}
.exam-results-filters{display:grid;grid-template-columns:minmax(170px,350px) minmax(170px,300px) auto;align-items:end;gap:22px;padding:4px 12px 18px}
.exam-results-filters label{display:flex;flex-direction:column;gap:7px;font-weight:750;font-size:13px;color:#142349}
.exam-results-filters select{min-height:46px;border-radius:10px;border:1px solid #d5e1f3;background:#fff;box-shadow:0 3px 6px #1b37641a;padding:0 14px;color:#182b58;font-weight:650;max-width:100%}
.exam-results-apply{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.exam-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;padding:13px 12px 18px;margin:0 -14px 0}
.exam-results-exports,.exam-results-search{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.exam-results-toolbar .btn{min-height:43px;padding:11px 21px;border-radius:9px;font-weight:750;box-shadow:0 4px 10px #1c428017}
.exam-results-search input{min-width:230px;width:min(290px,47vw);min-height:45px;border-radius:10px;background:#f8fbff;border:1px solid #d5dff1;padding:0 15px}
.exam-results-scroll{margin:0 -14px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.exam-results-table{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0;background:white}
.exam-results-table thead th{background:linear-gradient(180deg,#358de9,#1974d9)!important;color:white!important;font-weight:750;font-size:12px!important;text-align:center;padding:13px 9px;white-space:nowrap}
.exam-results-table thead th small{display:block;color:#eaf4ff;font-weight:550;margin-top:2px}
.exam-results-table tbody td{text-align:center;font-size:12px!important;padding:12px 9px;border-bottom:1px solid #e3eaf5;white-space:nowrap}
.exam-results-table tbody tr:nth-child(even){background:#f8fbff}
.exam-results-table tbody tr:hover{background:#eaf4ff}
.exam-results-table .person{text-align:left;min-width:140px;display:flex;align-items:center;gap:8px}
.exam-results-table tbody tr[hidden]{display:none!important}
.exam-class-chip{display:inline-block;border-radius:7px;background:#e2f0ff;color:#0756b8;padding:6px 8px;font-weight:700}
.exam-total-chip{border-radius:8px;background:#e8f3ff;display:inline-block;padding:9px 11px;color:#123377;font-size:15px}
.exam-results-table .btn.red-btn{border-radius:9px;font-weight:700}
.exam-results-panel .empty{background:white;margin:0 -14px;padding:24px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.exam-results-filters{grid-template-columns:1fr 1fr;gap:12px}.exam-results-apply{display:inline-flex;justify-content:center;grid-column:1/-1}.exam-results-toolbar{align-items:stretch}.exam-results-search{width:100%}.exam-results-search input{flex:1;width:auto;min-width:100px}}
@media(max-width:520px){.exam-results-filters{grid-template-columns:1fr}.exam-results-apply{grid-column:auto}.page-results .content{padding:12px 9px}.page-results .exam-results-panel{padding:12px 10px}.exam-results-heading h2{font-size:19px!important}.exam-results-exports{width:100%}.exam-results-exports .btn{flex:1;justify-content:center;text-align:center}.exam-results-toolbar{margin-left:-10px;margin-right:-10px}.exam-results-scroll{margin-left:-10px;margin-right:-10px}}
@media print{.page-results .exam-results-filters,.page-results .exam-results-toolbar,.page-results #resultEmptySearch{display:none!important}.page-results .exam-results-panel{padding:0;box-shadow:none;border:0}.exam-results-table{min-width:0;font-size:8px}}

/* Results screen: definitive scoped layout. Keeps other pages untouched. */
@media screen {
 body.page-results .content { padding: 20px 18px 32px !important; }
 body.page-results .page-heading { align-items: center; margin: 0 2px 16px; }
 body.page-results .page-heading h1 { font-size: 28px; line-height: 1.2; }
 body.page-results .exam-page-back { margin-bottom: 16px; }
 body.page-results .exam-results-panel { padding: 0 !important; background: #eef3ff !important; border: 1px solid #cfdef5 !important; border-radius: 20px !important; overflow: hidden !important; box-shadow: 0 8px 24px rgba(26,65,134,.12) !important; }
 body.page-results .exam-results-heading { padding: 19px 22px 8px !important; display: flex !important; align-items: center; gap: 13px; }
 body.page-results .exam-results-heading h2 { margin: 0; font-size: 22px !important; }
 body.page-results .exam-results-title-icon { flex: 0 0 38px; display: grid !important; place-items: center; background: #0873ef; color: white; }
 body.page-results form.exam-results-filters { display: grid !important; grid-template-columns: minmax(220px,350px) minmax(220px,290px) auto !important; gap: 18px !important; align-items: end !important; justify-content: start; padding: 8px 22px 22px !important; margin: 0 !important; }
 body.page-results form.exam-results-filters label { display: flex !important; flex-direction: column; gap: 7px; margin: 0 !important; min-width: 0; font-size: 13px; }
 body.page-results form.exam-results-filters select { display: block; width: 100% !important; margin: 0 !important; min-height: 45px !important; border-radius: 10px !important; }
 body.page-results form.exam-results-filters .exam-results-apply { margin: 0 !important; min-height: 44px; white-space: nowrap; padding: 0 17px; border-radius: 9px; }
 body.page-results .exam-results-toolbar { display: flex !important; justify-content: space-between !important; align-items: center !important; flex-wrap: wrap; gap: 12px; background: #fff !important; margin: 0 !important; padding: 14px 18px !important; }
 body.page-results .exam-results-exports, body.page-results .exam-results-search { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; }
 body.page-results .exam-results-search { margin-left: auto; }
 body.page-results .exam-results-search label.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; padding: 0 !important; margin: -1px !important; }
 body.page-results .exam-results-search input { display: block; margin: 0 !important; width: 285px !important; min-height: 44px !important; flex: 1 1 180px; }
 body.page-results .exam-results-search button { white-space: nowrap; }
 body.page-results .exam-results-scroll { display: block; overflow-x: auto !important; max-width: 100%; margin: 0 !important; border-radius: 12px 12px 0 0; padding: 0 12px 13px; }
 body.page-results .exam-results-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; background: white; }
 body.page-results .exam-results-table thead th { background: #287bdc !important; color: #fff !important; font-size: 12px !important; padding: 15px 12px !important; }
 body.page-results .exam-results-table thead th:first-child { border-top-left-radius: 12px; }
 body.page-results .exam-results-table thead th:last-child { border-top-right-radius: 12px; }
 body.page-results .exam-results-table tbody td { padding: 14px 11px !important; font-size: 12px !important; }
 body.page-results .exam-results-panel > .empty { margin: 0 !important; }
}
@media screen and (max-width: 1050px) {
 body.page-results form.exam-results-filters { grid-template-columns: minmax(160px,1fr) minmax(160px,1fr) auto !important; gap: 12px !important; }
 body.page-results .exam-results-search { margin-left: 0; }
}
@media screen and (max-width: 740px) {
 body.page-results form.exam-results-filters { grid-template-columns: 1fr 1fr !important; }
 body.page-results form.exam-results-filters .exam-results-apply { grid-column: 1/-1; }
 body.page-results .exam-results-toolbar { align-items: stretch !important; }
 body.page-results .exam-results-search { width: 100%; }
 body.page-results .exam-results-search input { width: auto !important; }
}
@media screen and (max-width: 480px) {
 body.page-results form.exam-results-filters { grid-template-columns: 1fr !important; padding: 12px 14px 18px !important; }
 body.page-results form.exam-results-filters .exam-results-apply { grid-column: 1; }
 body.page-results .exam-results-toolbar { padding: 12px !important; }
 body.page-results .exam-results-exports .btn { flex: 1 1 auto; text-align: center; }
 body.page-results .exam-results-heading { padding: 15px 14px 6px !important; }
}

/* 2026-11-11 — Print-only Class Performance report correction.
   Scoped to exam_overview: preserve all existing screen layouts and calculations. */
@media print {
  @page { size: A4 portrait; margin: 8mm; }
  html:has(body.page-exam_overview), body.page-exam_overview { zoom: 1 !important; width: auto !important; min-width: 0 !important; height: auto !important; }
  body.page-exam_overview { background: #fff !important; color: #142b47 !important; font-size: 10pt !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body.page-exam_overview .app-shell,
  body.page-exam_overview .main,
  body.page-exam_overview .content { display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important; height: auto !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  body.page-exam_overview .sidebar,
  body.page-exam_overview .topbar,
  body.page-exam_overview .page-heading,
  body.page-exam_overview .exam-page-back,
  body.page-exam_overview .print-school-letterhead,
  body.page-exam_overview .filters,
  body.page-exam_overview .panel-heading a,
  body.page-exam_overview .panel-heading button,
  body.page-exam_overview button,
  body.page-exam_overview .zoom-controls { display: none !important; }
  body.page-exam_overview .content > section.panel.pad {
    display: block !important; width: 100% !important; max-width: none !important;
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    margin: 0 !important; padding: 0 !important; break-inside: auto !important;
    page-break-inside: auto !important;
  }
  body.page-exam_overview .panel-heading { display: block !important; padding: 0 0 3mm !important; margin: 0 0 3mm !important; border-bottom: 2px solid #1264ba !important; }
  body.page-exam_overview .panel-heading h2 { font-size: 17pt !important; line-height: 1.2 !important; margin: 0 !important; }
  body.page-exam_overview .form-note { margin: 0 0 4mm !important; padding: 0 !important; font-size: 9pt !important; line-height: 1.35 !important; }
  body.page-exam_overview .stats-grid.performance-stats { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 2.5mm !important; margin: 0 0 5mm !important; }
  body.page-exam_overview .performance-stats .stat { min-height: 17mm !important; padding: 3mm !important; border-radius: 3mm !important; display: flex !important; gap: 2mm !important; align-items: center !important; box-shadow: none !important; break-inside: avoid !important; }
  body.page-exam_overview .performance-stats .stat-icon { width: 8mm !important; height: 8mm !important; min-width: 8mm !important; font-size: 13pt !important; }
  body.page-exam_overview .performance-stats .stat-number { font-size: 15pt !important; line-height: 1.05 !important; }
  body.page-exam_overview .performance-stats .stat-label { font-size: 7.5pt !important; line-height: 1.2 !important; }
  body.page-exam_overview .performance-columns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4mm !important; margin: 0 0 5mm !important; break-inside: avoid !important; page-break-inside: avoid !important; }
  body.page-exam_overview .performance-columns > section.panel.pad { display: block !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 3mm !important; border: 1px solid #dce7f4 !important; box-shadow: none !important; break-inside: avoid !important; }
  body.page-exam_overview h3 { font-size: 11pt !important; margin: 2mm 0 2.5mm !important; line-height: 1.2 !important; }
  body.page-exam_overview .performance-bars { gap: 3mm !important; font-size: 9pt !important; }
  body.page-exam_overview .performance-bars progress { height: 3mm !important; margin-top: 1mm !important; }
  body.page-exam_overview .table-wrap { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; overflow: visible !important; padding: 0 !important; }
  body.page-exam_overview table { width: 100% !important; min-width: 0 !important; table-layout: auto !important; border-collapse: collapse !important; font-size: 8.5pt !important; }
  body.page-exam_overview th { background: #eaf2fc !important; color: #153d68 !important; padding: 2mm 1.5mm !important; font-size: 8pt !important; text-align: left !important; }
  body.page-exam_overview td { padding: 2mm 1.5mm !important; border-bottom: 1px solid #e4edf5 !important; line-height: 1.2 !important; overflow-wrap: anywhere !important; }
  body.page-exam_overview tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.page-exam_overview thead { display: table-header-group !important; }
  body.page-exam_overview .performance-columns th,
  body.page-exam_overview .performance-columns td { padding: 1.5mm 1mm !important; font-size: 8pt !important; }
  body.page-exam_overview .badge { padding: 1mm 2mm !important; font-size: 7.5pt !important; }
}


/* Official Imamu Malik Class Performance letterhead — PDF/print only. */
.performance-print-header { display: none; }
@media print {
 body.page-exam_overview .performance-print-header {
  display: block !important; margin: 0 0 4mm !important; padding: 0 !important;
  color: #102b58 !important; break-inside: avoid !important;
 }
 body.page-exam_overview .performance-print-brand {
  display: grid !important; grid-template-columns: minmax(0,1fr) 30mm minmax(0,1fr) !important;
  align-items: center !important; gap: 4mm !important; padding: 1mm 1mm 3mm !important;
  border-bottom: 1.2pt solid #1765c1 !important;
 }
 body.page-exam_overview .performance-print-school,
 body.page-exam_overview .performance-print-arabic {
  display: flex !important; flex-direction: column !important; gap: 1mm !important;
  min-width: 0 !important; line-height: 1.2 !important;
 }
 body.page-exam_overview .performance-print-school strong { font-size: 16pt !important; font-weight: 800 !important; letter-spacing: .1px !important; }
 body.page-exam_overview .performance-print-school span { font-size: 8.4pt !important; letter-spacing: .5px !important; font-weight: 600 !important; }
 body.page-exam_overview .performance-print-logo { text-align: center !important; }
 body.page-exam_overview .performance-print-logo img { display: inline-block !important; width: 27mm !important; height: 27mm !important; object-fit: contain !important; }
 body.page-exam_overview .performance-print-arabic { text-align: right !important; font-family: Tahoma,Arial,sans-serif !important; }
 body.page-exam_overview .performance-print-arabic strong { font-size: 15pt !important; font-weight: 800 !important; }
 body.page-exam_overview .performance-print-arabic span { font-size: 10pt !important; font-weight: 400 !important; }
 body.page-exam_overview .performance-print-title { text-align: center !important; font-size: 14pt !important; font-weight: 800 !important; letter-spacing: .5px !important; padding: 3.5mm 0 2.5mm !important; }
 body.page-exam_overview .performance-print-details { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 2mm !important; margin-bottom: 2.5mm !important; }
 body.page-exam_overview .performance-print-details > div { background: #edf4fd !important; border: 1px solid #d5e5f5 !important; border-radius: 2mm !important; padding: 2mm !important; display: flex !important; flex-direction: column !important; gap: .7mm !important; min-width: 0 !important; }
 body.page-exam_overview .performance-print-details span { font-size: 7.5pt !important; color: #4c6682 !important; }
 body.page-exam_overview .performance-print-details strong { font-size: 10pt !important; overflow-wrap: anywhere !important; }
 body.page-exam_overview .class-performance-report > .panel-heading { display:none !important; }
 body.page-exam_overview .form-note { font-size: 8pt !important; margin: 0 0 3mm !important; }
 body.page-exam_overview .stats-grid.performance-stats { margin-bottom: 3mm !important; }
 body.page-exam_overview .performance-stats .stat { min-height: 14mm !important; padding: 2mm !important; }
 body.page-exam_overview .performance-columns { margin-bottom: 3mm !important; }
}

/* ===== Dashboard only redesign: button-style tiles, keep everything else unchanged ===== */
body.page-dashboard .page-heading{
  margin-bottom:18px;
}
body.page-dashboard .stats-grid{
  gap:16px;
  margin-bottom:18px;
}
body.page-dashboard .stat{
  position:relative;
  overflow:hidden;
  min-height:122px;
  padding:18px 16px;
  border-radius:18px!important;
  border:1px solid rgba(10,67,145,.08);
  box-shadow:0 12px 28px rgba(13,40,85,.10);
  align-items:flex-start;
  gap:14px;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor:default;
}
body.page-dashboard .stat::after{
  content:"";
  position:absolute;
  inset:auto -18px -18px auto;
  width:76px;
  height:76px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
}
body.page-dashboard .stat:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(13,40,85,.14);
  filter:brightness(1.01);
}
body.page-dashboard .stat-icon{
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:16px;
  font-size:24px;
  box-shadow:0 10px 18px rgba(8,106,242,.24);
}
body.page-dashboard .stat > div:last-child{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:84px;
}
body.page-dashboard .stat-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  opacity:.92;
}
body.page-dashboard .stat-number{
  font-size:30px;
  line-height:1;
  margin-top:6px;
}
body.page-dashboard .stat-detail{
  margin-top:7px;
  font-size:11px;
  font-weight:600;
}
body.page-dashboard .panel{
  border-radius:18px!important;
}
body.page-dashboard .panel-heading{
  padding:16px 18px;
}
body.page-dashboard .panel-heading h2{
  font-size:18px!important;
}
body.page-dashboard .quick-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:16px 18px 18px;
}
body.page-dashboard .quick-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:64px;
  padding:16px 14px;
  border-radius:16px;
  border:1px solid #cfe1fb;
  background:linear-gradient(180deg,#f8fbff 0%,#edf5ff 100%);
  color:#0b4aa1;
  font-size:14px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(17,60,120,.08);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
body.page-dashboard .quick-grid a:hover{
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(17,60,120,.12);
  background:linear-gradient(180deg,#ffffff 0%,#ebf4ff 100%);
}
body.page-dashboard .top-students-filter{
  padding:14px 16px 6px;
  gap:12px;
}
body.page-dashboard .top-students-filter .btn{
  min-width:96px;
}
body.page-dashboard .bottom-trio{
  gap:14px;
  margin-top:14px;
}
body.page-dashboard .bottom-trio .panel,
body.page-dashboard .split-2 .panel{
  box-shadow:0 10px 26px rgba(17,43,81,.08)!important;
}
body.page-dashboard .badge{
  border-radius:999px;
}
@media screen and (max-width:850px){
  body.page-dashboard .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.page-dashboard .stat{
    min-height:108px;
    padding:14px 12px;
    gap:10px;
  }
  body.page-dashboard .stat-icon{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:14px;
    font-size:21px;
  }
  body.page-dashboard .stat-number{
    font-size:24px;
  }
  body.page-dashboard .quick-grid{
    grid-template-columns:1fr;
    padding:14px;
  }
  body.page-dashboard .panel-heading{
    padding:14px 14px 10px;
  }
  body.page-dashboard .bottom-trio,
  body.page-dashboard .split-2{
    grid-template-columns:1fr;
  }
}
@media screen and (max-width:480px){
  body.page-dashboard .page-heading h1{
    font-size:24px!important;
  }
  body.page-dashboard .stats-grid{
    grid-template-columns:1fr 1fr!important;
  }
  body.page-dashboard .stat{
    min-height:96px;
    border-radius:16px!important;
    padding:12px 11px;
  }
  body.page-dashboard .stat-label{
    font-size:10px;
  }
  body.page-dashboard .stat-number{
    font-size:22px;
  }
  body.page-dashboard .stat-detail{
    font-size:10px;
  }
  body.page-dashboard .quick-grid a{
    min-height:58px;
    font-size:13px;
  }
}

/* Sidebar icon refresh only: no menu dimensions or layout changed. */
.sidebar .nav-symbol .school-nav-svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;flex:none;}
.sidebar .nav-item .nav-symbol{display:flex;align-items:center;justify-content:center;}


/* Consistent new outline icons for on-screen actions; no change to functionality. */
.school-action-icon{display:inline-block;vertical-align:middle;flex:0 0 auto;width:17px;height:17px;stroke:currentColor;pointer-events:none}
.school-action-iconified{display:inline-flex;align-items:center;gap:7px}
.content .panel-heading h2.school-action-iconified,.content .page-heading h1.school-action-iconified{display:flex;gap:10px}
.content .panel-heading h2 .school-action-icon{width:20px;height:20px}
.content .page-heading h1 .school-action-icon{width:24px;height:24px}
.content .btn.tiny .school-action-icon{width:13px;height:13px}
.content .quick-grid a .school-action-icon{width:19px;height:19px}
.profile-dropdown a.school-action-iconified{display:flex;gap:9px}
.topbar .hamburger .school-action-icon{width:21px;height:21px}
@media print{.school-action-icon{display:none!important}}


/* Mobile sidebar fix only; remaining styles unchanged. */
.school-sidebar-backdrop{display:none}
.school-sidebar-close{display:none}
@media screen and (max-width:850px){
 body .sidebar{width:min(300px,82vw)!important;max-width:82vw!important;transform:translateX(-110%)!important;overflow:hidden!important;visibility:hidden;transition:transform .22s ease,visibility .22s ease}
 body .sidebar.school-sidebar-open:not(.collapsed){transform:translateX(0)!important;visibility:visible}
 body .sidebar:not(.school-sidebar-open){transform:translateX(-110%)!important}
 .school-sidebar-close{display:flex;position:absolute;top:15px;right:10px;width:38px;height:38px;align-items:center;justify-content:center;background:#ffffff20;border:1px solid #ffffff40;border-radius:11px;color:#fff;font-size:31px;line-height:1;z-index:2}
 .sidebar .brand{padding-right:53px}
 .school-sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;z-index:1099;border:0;padding:0;background:rgba(3,15,34,.48);cursor:pointer}
 body.school-mobile-menu-open{overflow:hidden}
}
@media print{.school-sidebar-backdrop,.school-sidebar-close{display:none!important}}
