:root{font-family:system-ui,-apple-system,"Segoe UI","Noto Naskh Arabic",Tahoma,sans-serif;font-size:14px;color:#17344d;background:#f3f7fa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}a{color:#0a7297}h1,h2,h3,p{margin-top:0}h2{font-size:1.3rem}h3{font-size:1.08rem}svg{vertical-align:middle}button:disabled{opacity:.55;cursor:not-allowed}
:root{--navy:#102f4b;--teal:#087f76;--mint:#ddf8f2;--line:#e0e8ef;--white:#fff;--red:#ba3b40;--gray:#657b8e;--shadow:0 8px 28px rgba(16,47,75,.06)}
.loading{display:grid;place-content:center;text-align:center;min-height:80vh;color:var(--gray)}.spinner{width:32px;height:32px;border:3px solid #d8e9eb;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite;margin:auto auto 18px}@keyframes spin{to{transform:rotate(360deg)}}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(350px,500px)}.auth-hero{background:radial-gradient(circle at 20% 30%,#236782 0,#102f4b 55%,#092139 100%);padding:clamp(30px,5vw,80px);color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:48px}.brand{display:flex;align-items:center;gap:12px;font-weight:800}.brand img{width:44px;height:44px}.brand .latin{font-size:1rem;letter-spacing:.07em}.brand small{display:block;color:#9ad4d9;font-weight:400}.auth-hero h1{font-size:clamp(2.7rem,5vw,5.1rem);line-height:1.27;letter-spacing:-.025em;max-width:700px}.auth-hero p{color:#cae2ed;font-size:1.05rem;max-width:580px;line-height:2}.feature-pill{border:1px solid #ffffff32;border-radius:999px;display:inline-block;padding:8px 15px;color:#e2fcf6;font-size:.9rem}.auth-panel{display:flex;align-items:center;padding:clamp(24px,5vw,65px);background:#fff}.auth-card{width:100%;max-width:480px;margin:auto}.auth-card h2{font-size:1.9rem;letter-spacing:-.03em;margin-top:18px}.muted{color:var(--gray);line-height:1.7}.auth-toggle{display:flex;gap:5px;border:1px solid var(--line);border-radius:12px;padding:4px;margin:25px 0}.auth-toggle button{flex:1;background:transparent;border:0;border-radius:9px;padding:12px}.auth-toggle .selected{background:var(--navy);color:#fff}
label{display:block;color:#38536b;font-weight:700;margin-bottom:7px;font-size:.91rem}.form-field{margin-bottom:16px}.input,.select,input[type=date],input[type=month]{width:100%;height:42px;border:1px solid #d1dfe8;background:#fff;border-radius:10px;color:#17344d;padding:0 12px;outline:none}.input:focus,.select:focus{border-color:#14a598;box-shadow:0 0 0 3px #15ac8d24}.button{background:var(--teal);border:1px solid var(--teal);color:#fff;border-radius:10px;padding:10px 15px;min-height:41px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.3}.button:hover{filter:brightness(.96)}.button.full{width:100%}.button.secondary{background:#fff;border-color:#d5e1e8;color:#244961}.button.light{background:#e6f5f2;border-color:#ceeee6;color:#176b66}.button.danger{background:#fff6f6;border-color:#fad1d1;color:#ac3039}.button.small{padding:6px 10px;min-height:32px;font-size:.88rem}.button.ink{background:var(--navy);border-color:var(--navy)}.mini-link{border:0;background:none;color:var(--teal);font-weight:700;padding:6px}.privacy-note{padding:14px 16px;background:#eaf7f4;border:1px solid #c7eae3;border-radius:12px;color:#1b665f;line-height:1.75}.auth-footer{margin-top:26px;border-top:1px solid var(--line);padding-top:20px;color:#738899;font-size:.86rem;line-height:1.6}
.layout{min-height:100vh;display:grid;grid-template-columns:235px minmax(0,1fr)}.sidebar{background:#102f4b;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:25px 14px;color:#d9edf3}.sidebar .brand{margin:0 10px 36px;color:#fff}.nav-title{margin:0 14px 12px;color:#8cabbf;font-size:.72rem;font-weight:800;letter-spacing:.1em}.nav{display:grid;gap:7px}.navbtn{border:0;background:transparent;color:#c6d9e3;text-align:start;padding:12px 14px;border-radius:10px;display:flex;align-items:center;gap:10px;width:100%;font-weight:650}.navbtn.active{background:#245270;color:#fff;box-shadow:inset 3px 0 #4de2c6}.navbtn:hover{background:#1d4865}.navbtn .sym{font-size:1.25rem;width:25px;text-align:center}.side-bottom{margin-top:auto;border-top:1px solid #ffffff22;padding:14px 10px 2px}.side-bottom small{color:#a8c2d1;display:block;line-height:1.7}.main{min-width:0}.topbar{height:87px;display:flex;align-items:center;justify-content:space-between;padding:14px clamp(18px,3vw,38px);border-bottom:1px solid var(--line);background:#fff;gap:12px}.topbar .school-heading{font-size:1.15rem;font-weight:900}.topbar .school-heading small{display:block;font-size:.78rem;color:var(--gray);font-weight:500;margin-top:3px}.top-actions{display:flex;gap:8px;align-items:center}.avatar{height:36px;width:36px;border-radius:50%;background:#def4ec;color:#137268;display:grid;place-items:center;font-weight:900}.mainbody{max-width:1340px;margin:auto;padding:30px clamp(16px,3vw,38px) 60px}.hello{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px}.hello h1{font-size:clamp(1.55rem,2.4vw,2rem);letter-spacing:-.02em;margin:0 0 7px}.hello p{color:var(--gray);margin:0}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input{max-width:190px}.tag{font-size:.8rem;border:1px solid #d6e4ea;border-radius:6px;padding:5px 8px;color:#55708a;background:#fff;white-space:nowrap}.tag.green{background:#e8f8ee;color:#167f53;border-color:#d0ebdc}.tag.orange{background:#fff5e6;color:#9b6a12;border-color:#f4e0b6}.tag.red{background:#fff0f0;color:#ae4851;border-color:#f6dadd}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px 18px;box-shadow:var(--shadow)}.stat .stat-label{display:flex;justify-content:space-between;gap:8px;color:#5b7285;font-size:.9rem}.stat .iconbadge{height:31px;width:31px;border-radius:9px;background:#e9f7f4;display:grid;place-items:center}.stat strong{display:block;font-size:1.9rem;line-height:1.4;color:#153c55;margin:5px 0}.stat small{color:#8091a0}.card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:22px;margin-bottom:20px;min-width:0}.card h3{margin-bottom:16px}.cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.cardhead h3{margin:0}.twocol{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.callout{border:1px solid #c8e8e1;background:#f2faf8;color:#276d65;border-radius:12px;padding:15px 18px;line-height:1.8;margin:15px 0}.callout b{color:#0b655c}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.grid-form .span-all{grid-column:1/-1}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap;font-size:.92rem}th{background:#f6f9fb;color:#547086;font-weight:750;padding:12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid #edf1f5}td b{color:#1f4058}tr:hover td{background:#fafcfe}.actions{display:flex;gap:6px}.empty{text-align:center;padding:36px 16px;color:#7b93a4;border:1px dashed #d5e3eb;border-radius:12px}.empty .emoji{font-size:2rem;display:block;margin-bottom:10px}.cards-side{display:grid;gap:14px}.step-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:12px 0}.step-row:last-child{border:0}.step-num{display:grid;place-items:center;border-radius:10px;height:36px;width:36px;background:#e8f7f2;color:#0d7269;font-weight:900}.step-row strong{display:block}.step-row small{color:var(--gray)}.progressbar{height:10px;border-radius:20px;background:#e6edf2;overflow:hidden;margin:17px 0}.progressbar>span{display:block;height:100%;background:linear-gradient(90deg,#15a798,#48c7ba);border-radius:20px}.txt-small{font-size:.86rem;color:var(--gray)}.rowbetween{display:flex;justify-content:space-between;gap:12px;align-items:center}.kpi-list{display:grid;gap:12px}.kpi-list>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;gap:9px}.kpi-list strong{font-variant-numeric:tabular-nums}.notice{font-size:.88rem;color:#688194;line-height:1.8;margin-top:12px}.camera-shell{position:relative;background:#0c2031;min-height:240px;border-radius:13px;overflow:hidden;display:grid;place-items:center;color:#bdd6e1;text-align:center}.camera-shell video{width:100%;max-height:320px;object-fit:cover;display:block}.scan-outline{position:absolute;width:185px;height:185px;border:3px solid #55e6c9;border-radius:18px;box-shadow:0 0 0 2000px #00000018;pointer-events:none}.scan-status{padding:10px;border-radius:10px;margin:9px 0;font-weight:750}.scan-status.good{background:#e9f8f2;color:#15805c}.scan-status.bad{background:#fff0f0;color:#b33d4b}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.filters .form-field{margin:0}.table-narrow{max-height:500px;overflow:auto}.footer-note{color:#8395a5;font-size:.84rem;line-height:1.7;text-align:center;margin:35px 0 0}.pillrow{display:flex;gap:7px;flex-wrap:wrap}.pillrow button{border:1px solid #d9e5eb;background:#fff;padding:9px 15px;border-radius:10px;color:#4a6679;font-weight:750}.pillrow button.current{background:#dff8f3;border-color:#b3e9dc;color:#0b7369}.modal-wrap{position:fixed;inset:0;z-index:20;background:#071e31bd;display:grid;place-items:center;padding:15px}.modal{background:#fff;border-radius:19px;padding:26px;min-width:280px;max-width:430px;width:100%;text-align:center;box-shadow:0 20px 80px #081b2b45}.modal .qr{display:grid;place-items:center;margin:16px auto;background:#fff;padding:12px;width:max-content;border:1px solid var(--line);border-radius:10px}.modal h2{margin-bottom:5px}.modal p{color:var(--gray)}.modal .actions{justify-content:center;margin-top:18px}.toast{position:fixed;z-index:30;bottom:22px;left:22px;background:#153f50;color:#fff;padding:13px 17px;border-radius:11px;max-width:min(440px,calc(100vw - 36px));box-shadow:0 10px 40px #0003;line-height:1.6}.toast.error{background:#9d3640}.hidden{display:none!important}.locale-chip{min-width:49px}.privacy-summary{border:1px solid #d7e8ef;border-radius:13px;padding:17px;background:#fff;line-height:1.9}.label-inline{margin-bottom:0}.auth-lang{position:absolute;top:20px;left:22px;color:#fff;border:1px solid #ffffff66;background:#123c56;border-radius:9px;padding:7px 12px}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:1fr}.layout{grid-template-columns:210px 1fr}}@media(max-width:780px){.auth-wrap{grid-template-columns:1fr}.auth-hero{padding:32px;gap:17px}.auth-hero h1{font-size:2.2rem}.auth-hero p{font-size:.95rem}.auth-panel{padding:30px 20px}.layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:12px 12px 8px}.sidebar .brand{margin:0 6px 9px}.nav{display:flex;overflow-x:auto;padding:5px 2px;gap:6px;scrollbar-width:none}.navbtn{white-space:nowrap;width:auto;padding:9px 11px}.nav-title,.side-bottom{display:none}.topbar{height:auto;padding:15px 19px}.mainbody{padding:23px 15px 40px}.hello{display:block}.hello .toolbar{margin-top:13px}.auth-hero .brand{margin-bottom:0}}@media(max-width:480px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:12px}.stat strong{font-size:1.45rem}.stat small{font-size:.75rem}.card{padding:15px;border-radius:12px}.top-actions{gap:4px}.top-actions .tag{display:none}.grid-form{grid-template-columns:1fr}.auth-hero{padding:24px}.topbar .school-heading{font-size:.99rem}}
@media print{.sidebar,.topbar,.hello .toolbar,.button,.actions,.camera-shell,.toast,.footer-note,.notice,.auth-wrap{display:none!important}.layout{display:block}.mainbody{padding:0}.card,.stat{break-inside:avoid;border:1px solid #ddd;box-shadow:none}.modal-wrap{background:#fff}.modal .button{display:none!important}.modal{box-shadow:none}.stats{grid-template-columns:repeat(4,1fr)}}
@media print{body:has(#qr-modal) .layout{display:none!important}body:has(#qr-modal) .modal-wrap{position:static;display:block;background:#fff;padding:0}body:has(#qr-modal) .modal{margin:20px auto;border:0}body:has(#qr-modal) .modal .actions{display:none!important}}
/* Campus Nabz Cloud v0.5 pilot UI: the most-used actions are visible on first screen */
.quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:0 0 20px}
.quick-card{display:flex;align-items:center;gap:12px;min-height:74px;padding:13px 16px;border:1px solid #cde3e4;border-radius:14px;background:#fff;color:#136879;text-align:start;cursor:pointer;box-shadow:0 4px 16px #123c5610;font-size:1.22rem}
.quick-card:hover,.quick-card:focus{border-color:#20a99b;background:#f0fbf8}
.quick-card b{font-size:.95rem;color:#20475d}
.quick-header{position:sticky;top:0;z-index:4;display:flex;gap:8px;flex-wrap:wrap;margin:-10px 0 18px;padding:8px 0;background:#f4f7fbf0;backdrop-filter:blur(7px)}
.offline-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;background:#eaf6f6;border:1px solid #cae4e8;border-radius:12px;padding:11px 15px;margin:12px 0 20px;color:#28536a;font-size:.86rem}
.offline-bar button{margin-inline-start:auto}.inactive-row{opacity:.57}.row-sub{display:block;color:#829aaa;margin-top:4px}
.modal.editor{max-width:550px;text-align:start;max-height:90vh;overflow:auto}.editor .form-field{margin-bottom:10px}.editor label{text-align:start}
.checkline{display:flex;align-items:center;gap:8px;margin:10px 0}.checkline input{width:20px;height:20px}
.modal.qr-id{max-width:390px}.id-card-head{border-radius:12px;background:#0e7770;color:white;padding:13px 10px;font-weight:800;font-size:1.1rem;margin-bottom:14px}
.card-photo{height:92px;width:92px;background:#eff5f8;display:grid;place-items:center;overflow:hidden;border:2px solid #d4e4ec;border-radius:50%;margin:9px auto;font-size:2rem}.card-photo img{height:100%;width:100%;object-fit:cover}
.photo-picker{display:block;margin:8px auto;font-size:.85rem;color:#386476;cursor:pointer}.photo-picker input{display:block;max-width:210px;margin:8px auto;font-size:.8rem}
.modal.printable{max-width:860px;max-height:90vh;overflow:auto;text-align:start}.printable h3{margin:17px 0 9px}.printable table{white-space:normal;font-size:.88rem}
#print-modal{z-index:29}
@media(max-width:480px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-card{padding:12px;min-height:67px}.quick-card b{font-size:.84rem}.quick-header{position:static}.offline-bar{font-size:.8rem}}
@media print{body:has(#print-modal)>#app{display:none!important}body:has(#print-modal) #print-modal{position:static;background:#fff;display:block;padding:0}body:has(#print-modal) #print-modal .printable{max-height:none;max-width:none;border-radius:0;box-shadow:none;padding:10px}body:has(#print-modal) #print-modal .actions{display:none!important}body:has(#print-modal) #print-modal table{width:100%;border-collapse:collapse}body:has(#print-modal) #print-modal th,body:has(#print-modal) #print-modal td{border:1px solid #ddd;padding:7px}}
/* V0.6 QUICK DESK — comfortable type, card studio, class setup & import */
:root {font-size:15px; --teal:#087d78}
.navbtn{font-size:1.02rem;min-height:43px}.quick-card{min-height:78px}.input,.select{height:46px;font-size:1rem}.button{font-size:.98rem;min-height:42px}
.daily-alert{background:linear-gradient(100deg,#e5f6ee,#f5fbff);border:1px solid #d0e5ea;color:#205365;padding:11px 16px;border-radius:12px;margin:0 0 12px;display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-weight:700}
.profile-logo{width:75px;height:75px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid #d9e3e8;display:block;margin:12px 0}
.person-cell{display:flex;align-items:center;gap:9px}.mini-avatar{flex-shrink:0;width:39px;height:39px;border-radius:50%;overflow:hidden;background:#e4f2f0;display:grid;place-items:center;font-size:1.2rem;color:#0e6c64}.mini-avatar img{width:100%;height:100%;object-fit:cover}
.import-preview{overflow:auto;margin-top:18px}.import-preview table{margin:11px 0}.import-preview>p{font-weight:700}
.root-status{min-width:140px;height:36px}.modal.qr-id{max-width:410px}.qr-modal-preview .print-id-card{margin:0 auto;max-width:340px;min-height:320px}.qr-modal-preview .print-id-card .main-qr svg{max-width:114px}
.print-id-card{background:#fff;color:#163c4d;border:1px dashed #bed0d6;border-radius:13px;overflow:hidden;display:flex;flex-direction:column;font-family:Arial,"Segoe UI",sans-serif;break-inside:avoid;line-height:1.3}
.print-id-card header{background:var(--card-color,#087d78);color:#fff;padding:12px 10px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:61px}
.print-id-card header strong{font-size:1.04rem;display:block}.print-id-card header small{font-size:.69rem;display:block;color:#e7f8f5;margin-top:3px}
.print-id-card .card-brand-photo{width:36px;height:36px;border-radius:7px;background:#fff;color:#075a54;display:grid;place-items:center;flex-shrink:0;overflow:hidden}
.print-id-card .card-brand-photo img{width:100%;height:100%;object-fit:contain}
.print-id-card .card-core{padding:9px;display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;min-height:0}
.print-id-card .mini-face{width:61px;height:61px;border-radius:50%;border:2px solid #d5eee8;background:#ecf6f7;overflow:hidden;display:grid;place-items:center;font-weight:bold}
.print-id-card .mini-face img{width:100%;height:100%;object-fit:cover}
.print-id-card .id-details{display:grid;gap:3px;text-align:center;overflow-wrap:anywhere}.print-id-card .id-details b{font-size:1.03rem}.print-id-card .id-details span{font-size:.75rem;color:#3e5664}.print-id-card .main-qr{background:#fff;padding:3px}.print-id-card .main-qr svg{max-height:100px;width:auto}
.print-id-card footer{display:grid;justify-items:center;gap:3px;background:#eaf5f3;border-top:1px solid #d7e6e5;padding:8px 5px;font-size:.72rem;overflow-wrap:anywhere;text-align:center}
.print-id-card footer .em-qr svg{height:36px;width:36px}.print-id-card footer span svg{max-height:42px;margin-left:5px}
.print-help{background:#eff5f5;border-radius:8px;padding:10px;margin-bottom:16px!important}
.a4-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6mm;padding:4mm 2mm;page-break-after:always;break-after:page}.a4-cards:last-child,.sticker-grid:last-child{page-break-after:auto;break-after:auto}
.a4-cards .print-id-card{min-height:110mm;max-height:122mm;border-radius:8px}.a4-cards .print-id-card header{min-height:16mm;padding:6px}.a4-cards .print-id-card header strong{font-size:10pt}.a4-cards .print-id-card header small{font-size:7pt}.a4-cards .print-id-card .mini-face{width:19mm;height:19mm}.a4-cards .print-id-card .main-qr svg{max-height:26mm}.a4-cards .print-id-card footer{font-size:7pt}
.sticker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4mm;padding:4mm;break-after:page}.sticker{display:grid;justify-items:center;align-content:center;border:1px dashed #adbebf;padding:6px;min-height:36mm;text-align:center}.sticker strong{font-size:8pt}.sticker small{font-size:7pt}
.admission-heading{display:flex;align-items:center;gap:16px}.admission-heading img{height:65px;width:65px;object-fit:contain}.admission-heading h2 small{display:block;font-size:.8rem;color:#567}
.admission-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.admission-form-grid>div{padding:11px 8px;border:1px solid #dce5e9;border-radius:6px}.writing-line{border-bottom:1px solid #9fb2bb;height:32px}
#scan-success{position:fixed;inset:18% 12%;margin:auto;z-index:9999;background:#e8fff4;border:4px solid #0ca86c;box-shadow:0 10px 70px #0005;border-radius:25px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:#0b7253;font-size:clamp(1.45rem,3vw,2.2rem);padding:24px}
.scan-success-icon{font-size:3.2rem;border-radius:50%;background:#0ba66c;color:#fff;width:75px;height:75px;display:grid;place-items:center}
#scan-success small{font-size:.9rem;color:#537e70}
@media(max-width:640px){.daily-alert{font-size:.9rem}.top-actions{flex-wrap:wrap;justify-content:flex-end}.mainbody{padding:14px 11px 40px}.a4-cards{gap:2mm}}
@page{size:A4 portrait;margin:7mm}
@media print{
 body:has(#print-modal) .print-help{display:none!important}
 body:has(#print-modal) .modal.printable{padding:0!important;width:100%!important;max-width:none!important}
 body:has(#print-modal) .modal.printable>header{display:none!important}
 body:has(#print-modal) .modal.printable>.notice{display:none!important}
 .a4-cards{padding:0!important;gap:4mm!important;width:100%!important}
 .a4-cards .print-id-card{height:123mm!important;max-height:123mm!important;min-height:123mm!important;border:1px dashed #aaa!important}
 .a4-cards .print-id-card .main-qr svg{height:29mm!important;width:29mm!important}
 .sticker-grid{padding:0!important}
 #scan-success{display:none!important}
}
/* V0.7 QUICK BILLING – clean professional receipts and payroll */
:root{--nbz-ink:#18374c;--nbz-teal:#087d78;--nbz-light:#eff7f6}
.punch-panel{border-left:5px solid #087d78}.punch-panel .pillrow{display:flex;gap:12px;margin:10px 0 18px}
.punch-panel .pillrow button{min-width:115px}.punch-panel .table-wrap{margin-top:15px}
.receipt-brand{display:flex;align-items:center;gap:10px;padding-bottom:9px;border-bottom:2px solid var(--nbz-teal);color:var(--nbz-ink)}
.receipt-brand img{height:35px;width:35px;object-fit:contain}.receipt-brand h3{font-size:14px;margin:0 0 3px}.receipt-brand small{font-size:9px;line-height:1.2;color:#617b89;display:block}
.receipt-logo{height:35px;width:35px;display:grid;place-items:center;background:#ecf6f4;border-radius:7px}
.fee-voucher{background:white;border:1px solid #c1d3d7;border-radius:8px;padding:9px;color:var(--nbz-ink);font-family:Arial,sans-serif;break-inside:avoid;display:flex;flex-direction:column;gap:7px;min-height:66mm}
.voucher-name{font-size:13px;font-weight:800;display:flex;flex-direction:column;gap:2px}.voucher-name small{font-size:10px;color:#587382;font-weight:500}
.voucher-grid{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:10px;border-top:1px solid #e1e8eb;padding-top:7px}.voucher-grid strong{text-align:right;color:#155f60}
.voucher-foot{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:9px;color:#5d747c;border-top:1px dashed #c8dce0;padding-top:7px;margin-top:auto}.voucher-foot small{font-size:9px}
.voucher-one{max-width:102mm;margin:0 auto}.voucher-six{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6mm;page-break-after:always;break-after:page;margin-bottom:15px}.voucher-six:last-child{page-break-after:auto;break-after:auto}.voucher-six .fee-voucher{min-height:74mm;max-height:80mm}
.voided{color:#9f1522;font-weight:900}.salary-slip{max-width:185mm;margin:0 auto;color:#173747;background:white;font-family:Arial,sans-serif}.salary-slip .receipt-brand{margin-bottom:25px}.salary-slip>h2{text-align:center;letter-spacing:.09em;font-size:23px;color:#0d5b60;padding-bottom:14px;border-bottom:1px solid #d5e4e5;margin-bottom:25px}
.salary-info{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:12px 0 25px}.salary-info>div{border-bottom:1px solid #d8e3e8;padding:7px;display:flex;flex-direction:column;gap:6px;font-size:13px}.salary-info b{color:#63808c;font-size:11px;text-transform:uppercase}.salary-slip table{margin:15px 0 22px;width:100%;border-collapse:collapse}.salary-slip th{background:#0e716c;color:#fff}.salary-slip td,.salary-slip th{padding:12px;border:1px solid #d8e6e9;font-size:13px}.salary-slip h3{font-size:15px;color:#0f5555}.salary-slip .notice{font-size:11px}
.slip-payment{margin:25px 0 20px;border:1px solid #d4e4e6;background:#f4f9f8;border-radius:7px;padding:13px;font-size:12px}.slip-sign{display:flex;justify-content:space-between;gap:15px;margin-top:60px;padding-top:15px}.slip-sign span{flex:1;text-align:center;font-size:11px;line-height:2}
/* CR80 portrait (54 x 86 mm): exactly 6 on A4, at actual size */
.a4-cards{display:grid;grid-template-columns:repeat(3,54mm);grid-template-rows:repeat(2,86mm);gap:5mm;justify-content:center;margin:0 auto}
.a4-cards .print-id-card{width:54mm!important;height:86mm!important;min-height:86mm!important;max-height:86mm!important;box-sizing:border-box;border-radius:3mm;overflow:hidden}
.a4-cards .print-id-card header{min-height:12mm;height:12mm;padding:2mm 2mm;flex-shrink:0}
.a4-cards .print-id-card header strong{font-size:8.5pt}.a4-cards .print-id-card header small{font-size:6.5pt}
.a4-cards .print-id-card .card-core{padding:1.5mm;display:grid;grid-template-columns:1fr 30mm;grid-template-rows:20mm auto;gap:1mm;align-items:center}
.a4-cards .print-id-card .mini-face{width:18mm;height:18mm;grid-column:1;grid-row:1}
.a4-cards .print-id-card .id-details{grid-column:1 / -1;grid-row:2;gap:1mm;align-content:start}
.a4-cards .print-id-card .id-details b{font-size:9pt}.a4-cards .print-id-card .id-details span{font-size:6.9pt}
.a4-cards .print-id-card .main-qr{grid-column:2;grid-row:1;justify-self:center;align-self:center}
.a4-cards .print-id-card .main-qr svg{height:29mm!important;width:29mm!important;max-height:26mm!important}
.a4-cards .print-id-card footer{padding:1.5mm;gap:.6mm;font-size:6.8pt}
.a4-cards .print-id-card footer .em-qr svg{height:6mm;width:6mm}
.qr-modal-preview .print-id-card .main-qr svg{width:145px;max-width:none;height:145px;max-height:none}
@media(max-width:780px){.voucher-six{grid-template-columns:1fr 1fr}.receipt-brand h3{font-size:12px}.salary-info{grid-template-columns:1fr 1fr}}
@media print{
 .voucher-six{grid-template-columns:repeat(2,90mm)!important;gap:4mm!important;width:184mm!important;margin:0 auto!important}
 .voucher-six .fee-voucher{height:80mm!important;max-height:80mm!important;min-height:80mm!important;padding:4mm!important}
 .voucher-one .fee-voucher{width:94mm!important;min-height:70mm!important}
 .salary-slip{width:180mm!important;max-width:180mm!important;margin:0 auto!important;min-height:250mm}
 .salary-slip .slip-sign{margin-top:35mm!important}
 .a4-cards{grid-template-columns:repeat(3,54mm)!important;grid-template-rows:repeat(2,86mm)!important;gap:4mm!important;width:170mm!important;page-break-after:always!important}
 .a4-cards:last-child{page-break-after:auto!important}
 .a4-cards .print-id-card{height:86mm!important;min-height:86mm!important;max-height:86mm!important}
 .a4-cards .print-id-card .main-qr svg{width:29mm!important;height:29mm!important}
}

/* V0.8 calendar: compact touch-friendly weekly timetable */
[hidden]{display:none!important}
.calendar-table{min-width:650px;white-space:normal}
.calendar-table td,.calendar-table th{padding:10px 9px;vertical-align:middle}
.calendar-table input[type=time]{min-width:112px;max-width:155px;padding:9px}
.calendar-table label{display:flex;align-items:center;gap:7px;margin:0;font-size:.88rem}
.calendar-table input[type=checkbox]{width:18px;height:18px;accent-color:#087d78}
@media(max-width:640px){.calendar-table{font-size:.86rem}.calendar-table input[type=time]{min-width:108px}.calendar-table td,.calendar-table th{padding:9px 6px}}

/* V0.9 Staff ID Studio — 54 × 86 mm portrait, consistent with the student card sheet. */
.staff-id-card header{background:var(--card-color,#087d78);color:#fff}
.staff-id-card .id-details span:first-of-type{color:var(--card-color,#087d78);font-weight:800}
.staff-id-card footer{border-top:2px solid var(--card-color,#087d78)}
.staff-id-card .main-qr svg{width:100%;height:auto;max-width:30mm;max-height:30mm}
.single-id-wrap{display:flex;justify-content:center;margin:8mm auto;direction:ltr}
.single-id-wrap .print-id-card{width:54mm;height:86mm;min-height:86mm;max-height:86mm;box-sizing:border-box;border-radius:3mm}
.single-id-wrap .print-id-card header{min-height:12mm;height:12mm;padding:2mm;flex-shrink:0}
.single-id-wrap .print-id-card header strong{font-size:8.5pt}
.single-id-wrap .print-id-card header small{font-size:6.5pt}
.single-id-wrap .print-id-card .card-core{padding:1.5mm;display:grid;grid-template-columns:1fr 30mm;grid-template-rows:20mm auto;gap:1mm;align-items:center}
.single-id-wrap .print-id-card .mini-face{width:18mm;height:18mm;grid-column:1;grid-row:1}
.single-id-wrap .print-id-card .id-details{grid-column:1/-1;grid-row:2;gap:1mm;align-content:start}
.single-id-wrap .print-id-card .id-details b{font-size:9pt}
.single-id-wrap .print-id-card .id-details span{font-size:6.9pt}
.single-id-wrap .print-id-card .main-qr{grid-column:2;grid-row:1;justify-self:center;align-self:center}
.single-id-wrap .print-id-card .main-qr svg{height:29mm!important;width:29mm!important;max-height:29mm!important;max-width:29mm!important}
.single-id-wrap .print-id-card footer{padding:1.5mm;gap:1mm;font-size:6.7pt}
@media print{
  .single-id-wrap{margin:0 auto!important;justify-content:center}
  .single-id-wrap .print-id-card{width:54mm!important;height:86mm!important;min-height:86mm!important;max-height:86mm!important;border:1px dashed #aaa!important}
  .a4-cards .staff-id-card .main-qr svg{height:29mm!important;width:29mm!important;max-height:29mm!important;max-width:29mm!important}
}

/* V0.10 staff CR80 layout: QR gets a real 26mm-tall row BELOW the header. */
.staff-id-card .card-core,
.a4-cards .staff-id-card .card-core,
.single-id-wrap .staff-id-card .card-core{
  display:grid!important;
  grid-template-columns:18mm minmax(0,1fr)!important;
  grid-template-rows:18mm 28mm!important;
  grid-auto-flow:row;
  align-content:start!important;
  justify-items:stretch!important;
  align-items:start!important;
  gap:1mm 1.5mm!important;
  padding:2mm!important;
  min-height:0!important;
  flex:1 1 auto!important;
}
.staff-id-card .mini-face,
.a4-cards .staff-id-card .mini-face,
.single-id-wrap .staff-id-card .mini-face{
  grid-column:1!important;grid-row:1!important;
  width:17mm!important;height:17mm!important;
}
.staff-id-card .id-details,
.a4-cards .staff-id-card .id-details,
.single-id-wrap .staff-id-card .id-details{
  grid-column:2!important;grid-row:1!important;text-align:left!important;
  gap:.6mm!important;font-size:7pt!important;
  min-width:0!important;max-height:18mm!important;overflow:hidden!important;
}
.staff-id-card .id-details b{font-size:8.6pt!important;line-height:1.15!important}
.staff-id-card .id-details span{font-size:6.7pt!important;line-height:1.1!important}
.staff-id-card .main-qr,
.a4-cards .staff-id-card .main-qr,
.single-id-wrap .staff-id-card .main-qr{
  grid-column:1/-1!important;grid-row:2!important;
  align-self:center!important;justify-self:center!important;
  padding:1mm!important;margin:0!important;
  width:27mm!important;height:27mm!important;
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
}
.staff-id-card .main-qr svg,
.a4-cards .staff-id-card .main-qr svg,
.single-id-wrap .staff-id-card .main-qr svg{
  width:25mm!important;height:25mm!important;max-width:25mm!important;max-height:25mm!important;
  display:block!important;
}
.staff-id-card header,
.a4-cards .staff-id-card header,
.single-id-wrap .staff-id-card header{height:12mm!important;min-height:12mm!important;max-height:12mm!important;box-sizing:border-box!important;flex-shrink:0!important;overflow:hidden!important}
.staff-id-card footer,
.a4-cards .staff-id-card footer,
.single-id-wrap .staff-id-card footer{min-height:12mm!important;max-height:15mm!important;overflow:hidden!important;box-sizing:border-box!important;font-size:6.5pt!important;padding:1mm!important}
@media print{
 .a4-cards .staff-id-card,.single-id-wrap .staff-id-card{width:54mm!important;height:86mm!important;max-height:86mm!important;min-height:86mm!important;overflow:hidden!important;break-inside:avoid!important}
 .a4-cards{break-inside:avoid!important}
}

/* V0.11 — one class at a time, clear section teachers, independent staff register */
.attendance-switch{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 18px}
.attendance-switch .button{flex:1;min-width:min(100%,210px);font-size:1rem;min-height:48px}
.attendance-class-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:12px}
.attendance-class-tile{appearance:none;border:1px solid #d7e5eb;border-radius:13px;background:#fff;color:#294f67;padding:13px 14px;display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:7px;min-height:105px;transition:border-color .15s,background .15s,box-shadow .15s}
.attendance-class-tile strong{font-size:1.12rem;color:#153e54;line-height:1.25}
.attendance-class-tile span{font-size:.88rem}
.attendance-class-tile small{font-size:.83rem;color:#6d8190}
.attendance-class-tile.current{border-color:#087f76;background:#e9f8f4;box-shadow:inset 0 0 0 1px #087f76}
.attendance-class-tile:focus-visible,.attendance-switch .button:focus-visible{outline:3px solid #4fc9b7;outline-offset:2px}
.attendance-mini-stats{display:flex;flex-wrap:wrap;gap:8px 15px;align-items:center;font-size:.87rem;color:#55748a;margin:7px 0}
.attendance-mini-stats span{white-space:nowrap}
.att-good{color:#17845f!important;font-weight:750}.att-bad{color:#ac4650!important;font-weight:750}
.attendance-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.attendance-section:first-of-type{margin-top:7px}
.attendance-section-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.attendance-section-heading h4{font-size:1.12rem;margin:0 0 5px;color:#1f4c60}
.attendance-section-heading p{font-size:.89rem;color:#3c6b75;margin:0}
.attendance-section .actions{flex-wrap:wrap;justify-content:flex-start}
.attendance-staff-stats{border-radius:10px;background:#f4f8f9;border:1px solid #e0eaed;padding:12px;margin-bottom:15px}
@media(max-width:680px){.attendance-class-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attendance-class-tile{padding:10px;min-height:100px}.attendance-mini-stats{gap:6px 10px}.attendance-section-heading{align-items:flex-start}.attendance-section .table-wrap{margin-left:-10px;margin-right:-10px}.attendance-section th,.attendance-section td{padding:9px 7px}}
@media print{.attendance-switch,.attendance-class-grid{display:none!important}}

/* V0.12: print actions always accessible at top on small or zoomed screens */
@media screen {
 .modal-wrap:has(.modal.printable){align-items:start;overflow-y:auto;overscroll-behavior:contain;padding:12px;}
 .modal-wrap .modal.printable{max-height:none;overflow:visible;margin:0 auto;max-width:min(900px,100%);padding:16px;}
 .modal-wrap .modal.printable>.print-controls{position:sticky;top:0;z-index:8;display:flex;justify-content:flex-end;gap:10px;background:#fff;border:1px solid #d6e3eb;box-shadow:0 4px 18px #071e3115;border-radius:10px;padding:10px;margin:0 0 14px;}
 .fee-status-filters{margin:14px 0;gap:7px;}
 .fee-status-filters button{font-size:.8rem;padding:8px 12px;}
}
@media print{.print-controls{display:none!important}}

/* V0.13: clearer photo confirmation, accessible report range controls and school pulse */
.card-upload{margin:12px 0;padding:14px;border:1px solid #cde2e5;border-radius:12px;background:#f3faf9;display:grid;gap:10px}
.card-upload label{font-size:.92rem;font-weight:700}
.card-upload input[type=file]{width:100%;font-size:.88rem}
.card-upload .checkline{display:flex;gap:9px;align-items:center;font-weight:400}
.report-builder{border-left:4px solid #0a847b}
.report-builder>.grid-form{margin-top:13px}
.report-builder .toolbar{gap:12px;flex-wrap:wrap}
.report-person{break-before:page;page-break-before:always;margin-top:20px}
.report-person h3{margin:12px 0;color:#193e55}
.report-person table{font-size:.84rem}
.dashboard-pulse{border-top:4px solid #149e95;margin-bottom:20px}
.dashboard-pulse h3{margin:0 0 13px;font-size:1.08rem}
.pulse-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}
.pulse-bars>div{display:grid;gap:7px}
.pulse-bars small{color:#597483}
.progress-track{height:11px;border-radius:999px;background:#e5eff2;overflow:hidden}
.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#0a8981,#49c5ac);border-radius:999px}
.dashboard-pulse p{margin:12px 0 0;font-size:.9rem;color:#48616d}
@media(max-width:680px){.report-builder .grid-form{display:grid;grid-template-columns:1fr}.report-builder .toolbar .button{flex:1}.card-upload{padding:10px}}
@media print{.report-builder{display:none!important}.report-person{break-before:page;page-break-before:always}.report-person table{font-size:8pt}.dashboard-pulse{display:none!important}}

/* V0.14 monthly report and fee invitation; print controls stay visible on mobile. */
.fee-invite {border:1px solid #b6c6cc;border-radius:12px;padding:18px;margin:12px 0;break-inside:avoid}
.fee-invite h3 {margin:0 0 14px;color:#0c696c}
.monthly-pack {font-size:12px;}
.monthly-pack table {font-size:10px;}
.monthly-pack td,.monthly-pack th {padding:4px 6px;}
.print-new-page {break-before:page;page-break-before:always;padding-top:10mm}
.fee-standard,.fee-discount,.fee-discount-percent {font-variant-numeric:tabular-nums}
@media print {.print-new-page{break-before:page;page-break-before:always}.fee-invite{border:1px solid #555}}

/* Campus Nabz v0.15 — fix QR photo controls leaking into print and fit full card on screen */
@media screen {
  .modal-wrap:has(.modal.qr-id){overflow-y:auto;align-items:start;justify-items:center;padding:10px;}
  .modal.qr-id{width:min(340px,calc(100vw - 20px));max-width:340px;max-height:calc(100dvh - 20px);overflow:auto;padding:12px;margin:0 auto;}
  .qr-modal-preview .print-id-card{width:min(220px,100%);max-width:220px;min-height:0;max-height:none;margin:0 auto;}
  .qr-modal-preview .print-id-card header{padding:7px 6px;min-height:42px;font-size:.85rem;}
  .qr-modal-preview .print-id-card header strong{font-size:.83rem;}
  .qr-modal-preview .print-id-card .card-core{padding:5px;gap:4px;}
  .qr-modal-preview .print-id-card .mini-face{height:44px;width:44px;}
  .qr-modal-preview .print-id-card .id-details b{font-size:.85rem;}
  .qr-modal-preview .print-id-card .id-details span{font-size:.65rem;}
  .qr-modal-preview .print-id-card .main-qr svg{width:95px!important;height:95px!important;max-width:95px!important;max-height:95px!important;}
  .qr-modal-preview .print-id-card footer{padding:4px;font-size:.58rem;}
  .qr-modal-preview .print-id-card footer .em-qr svg{width:25px;height:25px;}
  .modal.qr-id .card-upload{padding:9px;margin:7px 0;gap:6px;}
  .modal.qr-id .card-upload p{font-size:.72rem;margin:0;}
  .modal.qr-id .actions{position:sticky;bottom:0;background:white;padding:8px 0 2px;margin-top:5px;z-index:2;}
  .modal.qr-id .actions button{min-height:38px;font-size:.8rem;}
}
@media print {
  body:has(#qr-modal) #qr-modal .card-upload,
  body:has(#qr-modal) #qr-modal .notice,
  body:has(#qr-modal) #qr-modal input,
  body:has(#qr-modal) #qr-modal button {display:none!important;}
  body:has(#qr-modal) #qr-modal .modal.qr-id{width:54mm!important;max-width:54mm!important;min-width:54mm!important;margin:0 auto!important;padding:0!important;overflow:visible!important;border:0!important;}
  body:has(#qr-modal) #qr-modal .qr-modal-preview .print-id-card{width:54mm!important;height:86mm!important;max-width:54mm!important;min-height:86mm!important;max-height:86mm!important;box-sizing:border-box;}
  body:has(#qr-modal) #qr-modal .qr-modal-preview .print-id-card .main-qr svg{width:25mm!important;height:25mm!important;max-width:25mm!important;max-height:25mm!important;}
  .bulk-student-pack,.bulk-fee-invite{break-inside:avoid;break-after:page;page-break-after:always;margin:0 auto;max-width:184mm;}
  .bulk-student-pack{font-size:10pt;padding-top:3mm;}
  .bulk-student-pack h2{font-size:15pt;margin:7px 0;}
  .bulk-student-pack h3{font-size:12pt;margin:9px 0;}
  .bulk-student-pack table{width:100%;white-space:normal;font-size:8.3pt;}
  .bulk-student-pack td,.bulk-student-pack th{padding:3mm 2mm;}
  .bulk-student-pack .receipt-brand{margin-bottom:6mm;}
  .bulk-fee-invite .fee-invite{margin:8mm auto;}
  .bulk-fee-invite:last-child{break-after:auto;page-break-after:auto;}
}
@media screen {
  .bulk-student-pack,.bulk-fee-invite{background:white;border:1px dashed #d1e0e5;border-radius:8px;margin:18px 0;padding:14px;}
  .bulk-student-pack h2{font-size:17px;}
  .bulk-sign{margin-top:18px;font-size:.85rem;}
}

@media screen {
 .modal.qr-id .qr-privacy-note{font-size:.7rem;line-height:1.3;margin:5px 0 3px;color:#607e8f;}
 .modal.qr-id .card-upload>strong{font-size:.84rem;}
 .modal.qr-id .card-upload .checkline{font-size:.76rem;line-height:1.3;}
 .modal.qr-id .card-upload label{font-size:.78rem;}
 .modal.qr-id .card-upload .button{min-height:37px;padding:6px 10px;font-size:.78rem;}
}

.day-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin:7px 0 11px;}
.day-pill{border:1px solid #d6e5e7;border-radius:5px;padding:3px;text-align:center;font-size:.62rem;white-space:nowrap;}
.day-pill b{font-size:.72rem;color:#20536a;}
@media(max-width:630px){.day-grid{grid-template-columns:repeat(6,minmax(0,1fr));}}
@media print{.day-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:1.5mm;}.day-pill{font-size:7pt;padding:1mm;}.day-pill b{font-size:7pt;}}

/* V0.16: scrollable full overview, module-only navigation and page-aware highlights */
.overview-flow-head{padding:18px 20px;background:#eaf5f6;border:1px solid #d3e7e8;border-radius:15px;margin:26px 0 14px}
.overview-flow-head h2{margin-bottom:5px}.overview-flow-head p{font-size:.88rem;color:#4b7284;margin-bottom:0}
.overview-section{background:#fff;border:1px solid #d7e5ec;border-inline-start:5px solid #087d78;border-radius:14px;margin-bottom:20px;padding:20px;scroll-margin-top:85px;min-height:135px}
.overview-section:nth-of-type(even){border-inline-start-color:#2766a6}
.overview-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}
.overview-section-head h2{font-size:1.15rem;margin:0 0 6px}.overview-section-head p{color:#688195;margin:0;font-size:.85rem}
.overview-metrics{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:9px}.overview-metric{display:grid;gap:3px;min-width:135px;background:#f0f8f8;border-radius:9px;padding:10px}.overview-metric b{font-size:1.12rem;color:#12566a}.overview-metric span{font-size:.78rem;color:#4a7082}
.sidebar{overflow-y:auto;overscroll-behavior:contain}.navbtn.active{background:#24617a!important;box-shadow:inset 4px 0 #44edcb!important}
@media(max-width:780px){.sidebar{overflow-y:visible;height:auto;position:sticky;top:0;z-index:10}.nav{scrollbar-width:thin}.overview-section{padding:13px;min-height:0}.overview-section-head{flex-wrap:wrap}.overview-metric{min-width:100px;flex:1}}
/* Print colors: browser printer settings may override these rules. */
@media print{
 .print-id-card,.print-id-card *, .receipt-brand,.receipt-brand *,.bulk-student-pack,.bulk-fee-mini,.fee-invite,.salary-slip{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 .print-id-card header,.staff-id-card header{background-color:var(--card-color,#087d78)!important;color:#fff!important;border-bottom:3px solid var(--card-color,#087d78)!important}
 .print-id-card footer{background-color:#eaf5f3!important;border-top:2px solid var(--card-color,#087d78)!important}
 .bulk-student-pack{break-before:auto!important;page-break-before:auto!important;break-inside:auto!important;page-break-inside:auto!important;break-after:page!important;page-break-after:always!important;max-width:184mm!important;padding:1mm 0!important;font-size:9pt!important}
 .bulk-student-pack:last-child{break-after:auto!important;page-break-after:auto!important}
 .bulk-student-pack h2{font-size:12pt!important;margin:2mm 0!important}
 .bulk-student-pack h3,.bulk-student-pack h4{font-size:9pt!important;margin:2mm 0!important}
 .bulk-student-pack .receipt-brand{margin-bottom:2mm!important}
 .bulk-student-pack table{font-size:7.2pt!important;margin:2mm 0!important}
 .bulk-student-pack td,.bulk-student-pack th{padding:1.3mm!important}
 .bulk-student-pack .day-grid{gap:1mm!important;margin:1mm 0!important}
 .bulk-student-pack .day-pill{font-size:7pt!important;padding:1mm!important}
 .bulk-student-pack .notice{font-size:7.2pt!important;margin:1mm 0!important}
 .bulk-student-pack .bulk-sign{font-size:8pt!important;margin:2mm 0!important}
 .bulk-fee-mini{border:1px solid #678996;border-radius:6px;padding:2mm;break-inside:avoid!important;margin-top:3mm!important}
 .bulk-fee-mini h3{margin:0 0 2mm!important}.bulk-fee-mini p{font-size:7.5pt;margin:2mm 0 0!important}
 .bulk-fee-values{display:flex;gap:7mm;flex-wrap:wrap}.bulk-fee-values span{font-size:8pt}.bulk-fee-values b{display:block}
 .inline-single-invite{break-before:auto!important;page-break-before:auto!important;padding:0!important}.inline-single-invite .fee-invite{margin:2mm 0!important;padding:3mm!important}.inline-single-invite .receipt-brand{display:none!important}
}
@media screen{.bulk-fee-mini{border:1px solid #acc7cb;border-radius:9px;background:#f3f8f8;padding:12px;margin-top:12px}.bulk-fee-mini h3{margin-bottom:6px}.bulk-fee-values{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.bulk-fee-values b{display:block}}

/* v0.16.1: photo picker/temporary photo controls never appear in printed cards. */
@media print { body:has(#qr-modal) .card-upload { display:none !important; } }

/* V0.17 DESIGN SYSTEM — a single identity style for student/staff, one and six-up. */
:root{--nbz-ink:#13334c;--nbz-teal:#087d78;--nbz-soft:#eff8f6;--nbz-line:#d9e7ec;--nbz-shadow:0 5px 18px rgba(15,54,77,.065)}
body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.52;letter-spacing:0;}
[dir="rtl"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.78}
.topbar{border-bottom:1px solid #dce9ee;box-shadow:0 4px 12px #0b37470c}
.school-heading{font-weight:850;letter-spacing:-.025em}
.mainbody{max-width:1480px;margin-inline:auto}
.hello h1{font-weight:850;letter-spacing:-.032em;color:#153852}
.stat,.card,.overview-section{border-color:var(--nbz-line);box-shadow:var(--nbz-shadow);border-radius:15px}
.card h3,.overview-section h2{font-weight:800;color:#163b50;letter-spacing:-.015em}
.stat strong{color:#0b625e}
.button{font-weight:750;box-shadow:none}
.button:not(.secondary){background:#087d78}
.button:not(.secondary):hover{background:#086a68}
.navbtn{font-weight:710;letter-spacing:-.005em}
.navbtn.active{border-left:4px solid #53e2c1;background:#21506b;color:#fff}
.input:focus,.select:focus,textarea:focus{outline:2px solid #34b6a2;outline-offset:1px}
.profile-emblem-preview{display:flex;align-items:center;gap:12px;padding:10px;margin:9px 0;background:#f2f8f9;border:1px solid #dbe9e9;border-radius:11px}
.profile-emblem-preview small{color:#657f8e}
.list-initial{font-size:16px;font-weight:850;letter-spacing:.02em;color:#0c7770}
.school-seal{position:relative;flex-shrink:0;display:inline-grid;place-items:center;width:36px;height:36px;border:2px solid #bfe8e2;border-radius:50%;background:#fff;color:#0e5c66;font-weight:900;font-size:13px;line-height:1;overflow:hidden}
.school-seal-initials{position:absolute;inset:0;display:grid;place-items:center}
.school-seal-img{position:absolute;inset:1px;width:calc(100% - 2px);height:calc(100% - 2px);object-fit:contain;background:#fff;border-radius:50%}
/* 54 × 86 mm CR80 portrait. SAME markup for all singles, sheets, staff and students. */
.print-id-card.unified-id,
.a4-cards .print-id-card.unified-id,
.single-id-wrap .print-id-card.unified-id,
.qr-modal-preview .print-id-card.unified-id{
 width:54mm!important;height:86mm!important;min-width:54mm!important;min-height:86mm!important;max-width:54mm!important;max-height:86mm!important;
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
 border:1px solid #c9d8df!important;border-radius:2.5mm!important;margin:0 auto!important;
 background:#fff!important;color:#183847!important;font-family:Arial,"Segoe UI",sans-serif!important;
 box-shadow:none!important;break-inside:avoid!important;
}
.print-id-card.unified-id .u-id-head,
.a4-cards .print-id-card.unified-id .u-id-head,
.single-id-wrap .print-id-card.unified-id .u-id-head{
 height:17mm!important;min-height:17mm!important;max-height:17mm!important;display:flex!important;gap:2mm!important;align-items:center!important;
 padding:2mm 2.5mm!important;box-sizing:border-box!important;flex:0 0 17mm!important;
 border:0!important;background:var(--card-color,#087d78)!important;color:#fff!important;
}
.unified-id .school-seal{width:11mm;height:11mm;border:1px solid #d9ece9;font-size:10pt}
.unified-id .u-id-school{display:grid;min-width:0;flex:1;text-align:left;gap:1mm}
.unified-id .u-id-school strong{font-size:9.5pt;line-height:1.14;max-height:9mm;overflow:hidden;color:#fff}
.unified-id .u-id-school small{font-size:5.8pt;color:#ddf6ed;letter-spacing:.08em;font-weight:650}
.unified-id .u-id-body{flex:1;display:flex;min-height:0;align-items:center;justify-content:flex-start;flex-direction:column;padding:2mm 2mm 1mm;gap:.75mm;text-align:center}
.unified-id .u-id-name{display:block;font-size:11pt;line-height:1.15;color:#102e48;max-height:8mm;overflow:hidden;overflow-wrap:anywhere}
.unified-id .u-id-detail{font-size:8pt;font-weight:800;color:var(--card-color,#087d78);line-height:1.14}
.unified-id .u-id-guardian{font-size:6.8pt;color:#526b78;line-height:1.25;max-height:6mm;overflow:hidden}
.unified-id .u-id-qr{margin:1mm auto 0;background:#fff;display:grid;place-items:center;padding:1mm;min-height:28mm}
.unified-id .u-id-qr svg{display:block!important;width:27mm!important;height:27mm!important;min-width:27mm!important;min-height:27mm!important;max-height:27mm!important;max-width:27mm!important}
.unified-id .u-id-code{font-size:7.5pt;letter-spacing:.09em;font-weight:850;color:#254456;line-height:1.2}
.print-id-card.unified-id .u-id-foot,
.a4-cards .print-id-card.unified-id .u-id-foot{
 height:11mm!important;min-height:11mm!important;max-height:11mm!important;box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:.3mm!important;
 padding:1mm 1.5mm!important;border:0!important;border-top:1.2mm solid var(--card-color,#087d78)!important;
 background:#edf8f5!important;color:#345b66!important;text-align:center!important;overflow:hidden!important;
}
.unified-id .u-id-foot small{font-size:6pt;white-space:nowrap;max-width:100%;text-overflow:ellipsis;overflow:hidden}
.unified-id .u-id-foot b{font-size:6.5pt;line-height:1.1;color:#0b5c5d;white-space:nowrap;max-width:100%;overflow:hidden}
.a4-cards{grid-template-columns:repeat(3,54mm)!important;grid-auto-rows:86mm!important;justify-content:space-evenly!important;align-content:start!important;gap:5mm!important;padding:2mm 0!important;page-break-after:always;break-after:page}
.a4-cards:last-child{page-break-after:auto;break-after:auto}
.single-id-wrap{display:grid;justify-items:center;min-height:86mm}
.qr-modal-preview{display:grid;justify-items:center;max-height:min(71vh,395px);overflow-y:auto}
#qr-modal .modal.qr-id{max-height:95vh;overflow-y:auto}
#qr-modal .qr-modal-preview .unified-id{flex-shrink:0}
.unified-sticker{gap:2px;min-height:35mm!important;padding:3mm!important}
.unified-sticker .sticker-brand{display:flex;align-items:center;gap:1.5mm;max-width:100%;font-size:7pt;overflow:hidden}
.unified-sticker .school-seal{height:7mm;width:7mm;font-size:7pt}
.unified-sticker .sticker-qr svg{width:19mm;height:19mm;max-width:19mm;max-height:19mm}
.unified-sticker strong{font-size:7pt}.unified-sticker small{font-size:6pt;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.official-letterhead{display:flex;align-items:center;gap:12px;border-bottom:3px solid #087d78;padding:0 0 11px;margin:0 0 18px;text-align:left}
.official-letterhead .letterhead-seal{width:57px;height:57px;font-size:21px;border-width:3px}
.official-letterhead .letterhead-title{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.letterhead-title strong{font-weight:900;font-size:20px;color:#163b51;line-height:1.2}
.letterhead-title small{font-size:11px;color:#647e8a}
.letterhead-title span{color:#086f6d;font-weight:800;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.receipt-brand .school-seal{width:37px;height:37px}
@media print{
 *{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 @page{size:A4 portrait;margin:7mm}
 .a4-cards{gap:5mm!important;padding:1mm 0!important}
 .a4-cards .unified-id,.single-id-wrap .unified-id{width:54mm!important;height:86mm!important;min-height:86mm!important;max-height:86mm!important}
 .print-id-card.unified-id .u-id-head{background:var(--card-color,#087d78)!important;color:white!important}
 .print-id-card.unified-id .u-id-foot{background:#edf8f5!important}
 .official-letterhead{break-inside:avoid!important}
 body:has(#qr-modal) #qr-modal .qr-id{padding:0!important;max-height:none!important;overflow:visible!important}
 body:has(#qr-modal) #qr-modal .qr-modal-preview{max-height:none!important;overflow:visible!important}
 body:has(#print-modal) .printable .official-letterhead{display:flex!important}
}
@media(max-width:700px){.official-letterhead .letterhead-title strong{font-size:16px}.mainbody{padding-left:11px;padding-right:11px}}

/* 0.19.2: responsive school search on Super Admin screen */
.root-search-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:10px 0 18px}.root-search-bar label{flex:1;min-width:180px;font-weight:600}.root-search-bar input{display:block;width:100%;margin-top:6px}.root-search-bar button{align-self:flex-end}@media(max-width:640px){.root-search-bar{display:flex;flex-direction:column;align-items:stretch}.root-search-bar label,.root-search-bar button{width:100%}}

/* Campus Nabz V0.19.3 — the horizontal control is ABOVE long tables. */
.table-wrap.smart-table-wrap{overflow:visible!important;max-width:100%;min-width:0;position:relative}
.smart-table-wrap .table-scroll-body{overflow:auto;max-width:100%;max-height:min(68vh,600px);overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;border:1px solid #e2ebef;border-radius:0 0 10px 10px}
.smart-table-wrap .table-scroll-top{display:block;position:sticky;top:0;z-index:8;overflow-x:auto;overflow-y:hidden;height:21px;max-width:100%;background:#eaf5f4;border:1px solid #beddd9;border-radius:8px 8px 0 0;scrollbar-width:auto;scrollbar-color:#2b827c #eaf5f4}
.smart-table-wrap .table-scroll-top[hidden]{display:none!important}
.smart-table-wrap .table-scroll-top-width{height:1px;min-width:100%}
.smart-table-wrap .table-scroll-body table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}
.smart-table-wrap .table-scroll-body thead th{position:sticky;top:0;z-index:2;background:#f1f7f9;box-shadow:0 1px 0 #d6e5ea}
.smart-table-wrap .table-scroll-body th:first-child,.smart-table-wrap .table-scroll-body td:first-child{position:sticky;left:0;z-index:3;background:#fff;min-width:150px;max-width:250px;white-space:normal;overflow-wrap:anywhere;box-shadow:3px 0 7px -5px #17344d75}
.smart-table-wrap .table-scroll-body th:first-child{background:#e7f3f3;z-index:5}
.smart-table-wrap .table-scroll-body tr:hover td:first-child{background:#f3fbf9}
html[dir="rtl"] .smart-table-wrap .table-scroll-body th:first-child,html[dir="rtl"] .smart-table-wrap .table-scroll-body td:first-child{left:auto;right:0;box-shadow:-3px 0 7px -5px #17344d75}
.smart-table-wrap .table-scroll-body td,.smart-table-wrap .table-scroll-body th{vertical-align:middle}
.school-link-open{margin:12px auto 8px;text-decoration:none}
@media(max-width:780px){.smart-table-wrap .table-scroll-body{max-height:60vh}.smart-table-wrap .table-scroll-body td:first-child,.smart-table-wrap .table-scroll-body th:first-child{min-width:125px;max-width:170px}.smart-table-wrap .table-scroll-top{top:0}}
@media print{.smart-table-wrap .table-scroll-top{display:none!important}.smart-table-wrap .table-scroll-body{overflow:visible!important;max-height:none!important;border:0!important}.smart-table-wrap .table-scroll-body th:first-child,.smart-table-wrap .table-scroll-body td:first-child,.smart-table-wrap .table-scroll-body thead th{position:static!important;box-shadow:none!important}}

/* V0.19.4 — learning hub & principal daily checks. Existing admin pages remain unchanged. */
.learning-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:28px 30px;margin:0 0 16px;border-radius:20px;background:linear-gradient(115deg,#102f50,#0a6b68 80%);color:#fff;box-shadow:0 12px 30px #0b385528}
.learning-hero h1{font-size:clamp(1.55rem,3vw,2.25rem);margin:8px 0}.learning-hero p{color:#d7f3ee;margin:4px 0;max-width:650px;line-height:1.65}
.learning-eyebrow{font-size:.72rem;letter-spacing:.16em;color:#a9ecda;font-weight:800}
.learning-hero-icon{font-size:3.2rem;display:grid;place-items:center;background:#ffffff25;border:1px solid #ffffff40;width:98px;height:98px;border-radius:23px;flex-shrink:0}
.principal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.principal-toolbar .toolbar{align-items:end;display:flex;flex-wrap:wrap;gap:10px}.principal-toolbar label{display:grid;gap:5px;min-width:180px;color:#1c5160;font-size:.82rem;font-weight:700}
.principal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:10px;margin-bottom:18px}
.principal-check-card{border:1px solid #dce8ef;border-radius:14px;background:white;padding:14px;display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:11px;row-gap:9px;box-shadow:0 3px 12px #142f4a07}
.principal-index{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#e9f6f3;color:#18766e;font-weight:800;font-size:.78rem}
.principal-question{display:grid;gap:4px}.principal-question b{font-size:.97rem;line-height:1.5;color:#133d51}.principal-question small{font-size:.77rem;color:#61798b;line-height:1.4}
.principal-choices{display:flex;gap:7px;grid-column:2;flex-wrap:wrap}.principal-choices button{border:1px solid #d9e4e8;background:#f7fafb;color:#45616e;min-height:36px;min-width:72px;padding:6px 11px;border-radius:9px;cursor:pointer;font-weight:700}
.principal-choices button.choice-yes.chosen{background:#dcf7e9;color:#096541;border-color:#83c9a3}.principal-choices button.choice-no.chosen{background:#ffeded;color:#a32d38;border-color:#e6a7ae}.principal-choices button.choice-clear.chosen{background:#eaf1f5;color:#465b74;border-color:#a9bacc}
.principal-choices button:focus-visible{outline:3px solid #2ec8c0;outline-offset:2px}.principal-notes{height:auto;min-height:100px;resize:vertical}
.principal-history{display:grid;gap:6px;max-height:310px;overflow:auto}.principal-history>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:10px;border-bottom:1px solid #e4eef2}
.library-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.library-stats>div{display:grid;gap:3px;background:#fff;border:1px solid #dbe7ee;border-radius:12px;padding:15px;text-align:center}.library-stats b{font-size:1.55rem;color:#0d696d}.library-stats small{font-size:.75rem;color:#637e8b}
.resource-field{display:grid;gap:5px;flex:1;min-width:160px;font-weight:700;font-size:.82rem;color:#244f67}
.resource-results{margin:20px 0}.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px}.resource-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;background:#fff;border:1px solid #deeaee;border-radius:14px;padding:18px;min-height:188px;box-shadow:0 4px 20px #123a5007}.resource-card:hover{border-color:#66b9b1;box-shadow:0 8px 25px #175d6120}.resource-card h3{font-size:1rem;line-height:1.6;color:#143d56;margin:0}.resource-group{font-size:.72rem;color:#0d7675;font-weight:700}.resource-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.72rem;color:#6b8190;width:100%;margin-top:auto}.resource-tag{border-radius:6px;padding:2px 8px;background:#e6f4f1;color:#136a5e;font-weight:800}.resource-card .button{align-self:stretch;text-align:center}
@media(max-width:680px){.learning-hero{padding:20px}.learning-hero-icon{width:52px;height:52px;font-size:2rem}.learning-eyebrow{font-size:.62rem}.library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.principal-choices{grid-column:1/-1}.principal-question{align-self:center}}
@media print{.learning-hero,.principal-toolbar,.principal-choices,.resource-field,.resource-results{display:none!important}}

.principal-tip{margin:8px 0 0;padding:9px 12px;border-left:3px solid #dc9f3c;background:#fff7e8;border-radius:8px;color:#70511a;font-size:12px;line-height:1.8}.principal-tip[hidden]{display:none!important}

/* Login-only link; hidden automatically after successful authentication. */
.auth-demo-link{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:14px}.auth-demo-link a{border:1px solid #b8d9d9;background:#f1fbf9;color:#006c73;padding:9px 13px;font-weight:750;border-radius:10px;text-decoration:none}

/* V0.19.9 — real narrow-screen layout: only vertical page scrolling. */
@media screen and (max-width: 780px){
 html,body,#app{width:100%;max-width:100%;overflow-x:clip!important;min-width:0}
 .layout,.main,.mainbody,.sidebar,.topbar,.card,.table-wrap,.overview-section,.overview-section-head{min-width:0!important;width:auto;max-width:100%;box-sizing:border-box}
 .layout{display:block!important;max-width:100%}
 .sidebar{position:static!important;height:auto!important;max-height:none!important;overflow:visible!important}
 .sidebar .nav{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;white-space:normal!important;gap:5px}
 .sidebar .navbtn{white-space:normal!important;flex:1 1 115px;width:auto!important;min-width:0!important;text-align:center}
 .topbar{flex-wrap:wrap;gap:9px!important}
 .top-actions{display:flex;flex-wrap:wrap;min-width:0}
 .quick-header,.toolbar,.actions,.filters,.cardhead,.rowbetween{max-width:100%;flex-wrap:wrap!important}
 .table-wrap{overflow:visible!important;max-height:none!important;height:auto!important}
 .table-wrap table{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important;table-layout:auto!important}
 .table-wrap thead{display:none!important}
 .table-wrap tbody{display:grid!important;grid-template-columns:1fr!important;gap:10px;min-width:0}
 .table-wrap tbody tr{display:block!important;background:#fff!important;border:1px solid #d7e6ec!important;border-radius:12px!important;padding:9px 11px!important;box-shadow:0 3px 10px #1846600a;min-width:0!important;width:100%!important}
 .table-wrap tbody td{display:flex!important;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0!important;max-width:100%!important;width:100%!important;position:static!important;white-space:normal!important;overflow-wrap:anywhere;box-shadow:none!important;padding:7px 2px!important;border-bottom:1px solid #edf2f5!important}
 .table-wrap tbody td:last-child{border-bottom:0!important}
 .table-wrap tbody td::before{content:attr(data-label);flex:0 0 34%;max-width:34%;font-weight:750;color:#587282;font-size:.8rem;line-height:1.4;text-align:start}
 .table-wrap tbody td:not([data-label])::before,.table-wrap tbody td[data-label=""]::before{content:none}
 .table-wrap tbody td .actions,.table-wrap tbody td button{max-width:100%}
 .smart-table-wrap .table-scroll-body{overflow:visible!important;max-height:none!important;height:auto!important;border:0!important}
 .smart-table-wrap .table-scroll-top{display:none!important}
 .principal-grid{grid-template-columns:1fr!important}
 .learning-hero{min-width:0;max-width:100%;flex-wrap:wrap}
 input,select,textarea,.input,.select{min-width:0;max-width:100%;box-sizing:border-box}
}
/* On desktop lists scroll with document, not an inner 600px cage. */
@media screen and (min-width:781px){
 .table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
 .smart-table-wrap .table-scroll-body{max-height:none!important;overflow-y:visible!important}
 .smart-table-wrap .table-scroll-top{display:none!important}
}
.principal-error{margin:0 0 14px;padding:12px 15px;border:1px solid #f0c49a;border-radius:10px;background:#fff2dd;color:#8e4a18;font-weight:700;line-height:1.6}
.principal-error small{display:block;font-weight:400;overflow-wrap:anywhere}
.principal-check-card button:disabled{cursor:not-allowed;opacity:.65}

.quick-grid a.quick-card{text-decoration:none;color:inherit;display:flex;align-items:center;gap:9px}

/* V0.20 complete mobile school: only the document scrolls, modules never disappear. */
.cn-mobile-menu{display:none}
.cn-tools-frame{width:100%;height:82vh;min-height:640px;border:1px solid #d7e7ec;border-radius:13px;background:#fff;display:block}
.cn-fast-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;font-size:1.08rem}
.cn-fast-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:13px 0}
.cn-fast-list{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.cn-fast-row{display:grid;grid-template-columns:minmax(0,1fr) 108px 98px;gap:12px;align-items:center;border:1px solid #e1eaf0;background:#fff;border-radius:12px;padding:11px 13px;min-width:0}
.cn-fast-row b{display:block;overflow-wrap:anywhere}.cn-fast-row small{display:block;color:#617789;margin-top:4px;overflow-wrap:anywhere}
.cn-fast-mark-status{font-size:.78rem;color:#47666f;font-weight:700}
.cn-fast-buttons{display:flex;justify-content:end;gap:7px}.cn-fast-buttons button{font-size:20px;font-weight:900;min-width:43px;min-height:43px;border:1px solid #b6d8ce;background:#e7f8f0;color:#087b4e;border-radius:10px;cursor:pointer}.cn-fast-buttons button:last-child{color:#ab303e;background:#fff1f1;border-color:#eec6c6}
.cn-fast-buttons button:disabled{opacity:.4}.cn-class-archive{display:grid;gap:8px}.cn-class-archive>div{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;border:1px solid #dbe5eb;border-radius:11px;padding:10px 12px}
.cn-scanner-active{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border-radius:0!important;z-index:99999!important;background:#000!important;display:block!important;padding:0!important;overflow:hidden!important}
.cn-scanner-active video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cn-scan-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(78vw,360px);aspect-ratio:1;border:3px solid #42e9bb;border-radius:22px;box-shadow:0 0 0 100vmax #0004;pointer-events:none}
.cn-camera-top,.cn-camera-actions{position:absolute;left:10px;right:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;color:#fff;z-index:3}.cn-camera-top{top:max(16px,env(safe-area-inset-top))}.cn-camera-actions{bottom:max(20px,env(safe-area-inset-bottom));justify-content:center}
.cn-camera-result{position:absolute;left:5%;right:5%;top:38%;z-index:4;border-radius:20px;padding:25px 20px;text-align:center;line-height:1.8;font-size:clamp(19px,5vw,29px);font-weight:900;box-shadow:0 10px 50px #0008;color:#fff}.cn-camera-result.good{background:#086f53e8}.cn-camera-result.bad{background:#9e293be8}
@media(max-width:780px){
 .cn-mobile-menu{display:inline-flex!important}
 .sidebar{padding:10px 8px!important;background:#102f4b!important;min-width:0}
 .sidebar .brand,.sidebar .nav-title,.sidebar .side-bottom{display:none!important}
 .sidebar .nav.cn-nav-closed{display:none!important}
 .sidebar .nav.cn-nav-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;padding:3px 2px 8px;max-height:none!important;overflow:visible!important}
 .sidebar .navbtn{display:flex!important;align-items:center;justify-content:start!important;text-align:start!important;white-space:normal!important;width:auto!important;min-width:0;min-height:46px!important;padding:8px!important;font-size:.88rem!important}
 .topbar{padding:10px!important}.school-heading{overflow-wrap:anywhere}.cn-fast-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}.cn-fast-row .cn-fast-buttons{grid-column:1/-1;justify-content:start}.cn-fast-controls{grid-template-columns:1fr}.cn-tools-frame{height:78dvh;min-height:560px}
 .mainbody,.overview-section,.card{max-width:100vw!important;overflow-wrap:anywhere}
}
@media print{.cn-mobile-menu,.cn-fast-buttons,.cn-tools-frame{display:none!important}}

/* Campus Nabz V0.20.1 — mobile-only fixed shortcuts and accessible history navigation. */
.cn-bottom-nav,.cn-mobile-back{display:none}
body.cn-camera-open{overflow:hidden!important;overscroll-behavior:none}
body.cn-camera-open>#camera-shell.cn-scanner-active{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 display:block!important;width:100vw!important;height:100vh!important;height:100dvh!important;
 max-height:none!important;max-width:none!important;transform:none!important;
 border:0!important;border-radius:0!important;margin:0!important;padding:0!important;
 background:#030d17!important;overflow:hidden!important;
}
body.cn-camera-open>#camera-shell video{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
.cn-wa{color:#086f47!important;border-color:#73c8aa!important}
@media screen and (max-width:780px){
 .cn-mobile-back{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px}
 .cn-bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;z-index:85;
  grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:#fff;
  border-top:1px solid #d6e5e8;box-shadow:0 -8px 24px #152f4430;
  padding:7px 6px max(8px,env(safe-area-inset-bottom));direction:ltr}
 .cn-bottom-nav button{border:0;background:transparent;color:#426177;min-width:0;padding:3px 1px;
  font-size:clamp(.65rem,2.5vw,.83rem);font-weight:750;display:flex;flex-direction:column;gap:2px;
  align-items:center;justify-content:center;min-height:49px;white-space:normal;line-height:1.18}
 .cn-bottom-nav button span{font-size:1.35rem;font-weight:800;line-height:1}
 .cn-bottom-nav button.chosen{color:#076b5b;background:#e9f8f2;border-radius:9px}
 .mainbody{padding-bottom:calc(95px + env(safe-area-inset-bottom))!important}
 .footer-note{margin-bottom:20px}
 .cn-tools-frame{min-height:720px;overflow:hidden}
 .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media print{.cn-bottom-nav,.cn-mobile-back,.cn-wa{display:none!important}}

.cn-check-secondary{display:none!important}

/* V0.20.2 — clean, large, app-like school dashboard. The user role ALWAYS controls actions. */
@media screen {
 .cn-app-topbar{background:linear-gradient(115deg,#063c56 0%,#0b5870 55%,#087f78 100%)!important;border-bottom:0!important;box-shadow:0 9px 28px #0c36442a!important;color:#fff!important;min-height:95px;height:auto!important;gap:12px!important}
 .cn-app-topbar .school-heading{color:#fff!important;font-size:clamp(1.25rem,2.9vw,1.75rem)!important;line-height:1.15!important;font-weight:850!important;min-width:0;overflow-wrap:anywhere}
 .cn-app-topbar .school-heading>strong{display:block;font-weight:900;letter-spacing:-.02em}
 .cn-app-topbar .school-heading small{color:#d4f4f3!important;font-size:.88rem!important;font-weight:600!important}
 .cn-role-chip{display:inline-flex;margin-top:8px;background:#e4fcf5;color:#075a4d;font-size:.73rem;line-height:1.2;padding:6px 10px;border-radius:99px;font-weight:850;max-width:100%;white-space:normal}
 .cn-app-topbar .top-actions{display:flex;flex-wrap:wrap!important;align-items:center;gap:8px!important;justify-content:flex-end;min-width:0}
 .cn-app-topbar .top-actions>.button,.cn-app-settings>summary{background:#fff!important;color:#06455a!important;border:1px solid #c6f3eb!important;border-radius:12px!important;font-weight:850!important;min-height:43px;display:inline-flex;align-items:center;padding:9px 13px;white-space:nowrap}
 .cn-app-settings{position:relative;align-self:center;z-index:45}
 .cn-app-settings>summary{cursor:pointer;list-style:none;user-select:none}
 .cn-app-settings>summary::-webkit-details-marker{display:none}
 .cn-settings-actions{position:absolute;right:0;top:calc(100% + 6px);display:grid;gap:7px;min-width:205px;background:#fff;color:#12394c;padding:12px;border:1px solid #d6e7e7;border-radius:14px;box-shadow:0 12px 42px #001e3045;z-index:50}
 .cn-settings-actions button{width:100%;min-height:43px;text-align:center;white-space:normal}
 .cn-command-panel{margin:0 0 26px;border-radius:22px;background:#fff;border:1px solid #cbdfe3;box-shadow:0 12px 38px #102f4b14;overflow:hidden;max-width:100%}
 .cn-command-head{background:linear-gradient(115deg,#e8faf6 0%,#eff7ff 100%);padding:23px 25px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
 .cn-command-eyebrow{display:inline-block;color:#087368;font-size:.73rem;font-weight:900;letter-spacing:.06em;margin-bottom:8px}
 .cn-command-head h2{font-size:clamp(1.5rem,3.4vw,2rem);font-weight:900;line-height:1.22;letter-spacing:-.024em;margin:0 0 7px;color:#0c3b4a}
 .cn-command-head p{color:#537381;font-size:clamp(.88rem,2.1vw,1rem);margin:0;font-weight:600;line-height:1.45}
 .cn-hero-mark{width:57px;height:57px;flex:0 0 57px;border-radius:16px;background:#11786e;color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:900}
 .cn-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:17px}
 .cn-action-tile{appearance:none;cursor:pointer;border:1px solid #d2e4e6;background:#f8fbfd;padding:17px 13px;border-radius:16px;display:flex;gap:11px;align-items:center;text-align:start;min-width:0;min-height:94px;transition:transform .15s,box-shadow .15s;border-inline-start-width:5px}
 .cn-action-tile:hover,.cn-action-tile:focus-visible{transform:translateY(-2px);box-shadow:0 7px 23px #133b511c;outline-offset:2px}
 .cn-action-icon{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;background:#d5f5ef;border-radius:14px;font-size:1.8rem;color:#076b63;font-weight:900}
 .cn-action-copy{display:grid;gap:4px;min-width:0;line-height:1.2}.cn-action-copy strong{font-size:1.13rem;font-weight:900;color:#163b4f;overflow-wrap:anywhere}.cn-action-copy small{font-size:.79rem;font-weight:580;color:#5b7788;line-height:1.34;overflow-wrap:anywhere}
 .cn-action-arrow{font-size:1.6rem;font-weight:900;color:#5b7883;margin-inline-start:auto}
 .cn-tile-teal{border-inline-start-color:#008a7b}.cn-tile-sky{border-inline-start-color:#1885bb}.cn-tile-blue{border-inline-start-color:#2b64d5}.cn-tile-purple{border-inline-start-color:#7457c4}.cn-tile-green{border-inline-start-color:#159a69}.cn-tile-amber{border-inline-start-color:#d98b18}
 .cn-tile-blue .cn-action-icon{background:#e7eefe;color:#245cb9}.cn-tile-purple .cn-action-icon{background:#eee9ff;color:#6444aa}.cn-tile-green .cn-action-icon{background:#e1f8e9;color:#13774d}.cn-tile-amber .cn-action-icon{background:#fff3dc;color:#a66b0d}
 .cn-operations-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;background:#f6fafa;border-top:1px solid #e3eeee;font-size:.8rem;line-height:1.45;color:#315f68;font-weight:700}
 .cn-access-hint{max-width:75%;font-weight:650}
 .quick-header.cn-hidden-home-shortcuts{display:none!important}
 .toast{top:12px;bottom:auto!important;left:50%;transform:translateX(-50%);max-width:min(460px,calc(100vw - 22px));z-index:2147483500;box-shadow:0 12px 32px #123c4755}
}
@media screen and (max-width:780px){
 .cn-app-topbar{padding:17px 14px 13px!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:10px!important}
 .cn-app-topbar .school-heading{flex:1 1 100%;width:100%;font-size:1.45rem!important}
 .cn-app-topbar .top-actions{justify-content:flex-start!important;width:100%;gap:8px!important}
 .cn-app-topbar .top-actions>.button,.cn-app-settings>summary{min-height:43px!important;padding:9px 13px!important;font-size:.89rem!important}
 .cn-command-panel{border-radius:18px;margin-bottom:24px}
 .cn-command-head{padding:17px 16px 15px}
 .cn-command-head h2{font-size:1.46rem}
 .cn-command-head p{font-size:.88rem}
 .cn-hero-mark{width:46px;height:46px;flex-basis:46px;font-size:1.6rem}
 .cn-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
 .cn-action-tile{padding:14px 9px;border-radius:14px;min-height:98px;gap:8px;flex-wrap:wrap;align-content:center}
 .cn-action-icon{width:40px;height:40px;flex:0 0 40px;font-size:1.55rem;border-radius:11px}
 .cn-action-copy{flex:1 1 calc(100% - 49px)}.cn-action-copy strong{font-size:1rem}.cn-action-copy small{font-size:.74rem}.cn-action-arrow{display:none}
 .cn-operations-foot{flex-wrap:wrap;padding:10px 13px;gap:5px}.cn-access-hint{max-width:100%;width:100%;font-size:.78rem}
 .mainbody{padding:15px 12px calc(110px + env(safe-area-inset-bottom))!important}
 .stats .stat-label span:first-child{font-weight:800;font-size:.9rem}.stat strong{font-size:1.65rem!important;font-weight:900!important}
 .cn-app-settings .cn-settings-actions{right:auto;left:0;max-width:calc(100vw - 25px)}
 .toast{top:65px!important}
}
@media screen and (max-width:390px){.cn-action-copy small{font-size:.7rem}.cn-primary-grid{gap:8px;padding:9px}.cn-action-tile{padding:12px 8px}.cn-command-head h2{font-size:1.28rem}}
@media print{.cn-command-panel,.cn-app-settings{display:none!important}}
