@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans Arabic',Tahoma,Arial,sans-serif;color:#243c39;background:#f5f7f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #dfe6e4;border-radius:10px;padding:10px 12px;background:white;color:#243c39;min-width:0;outline:none}input:focus,select:focus{border-color:#148976;box-shadow:0 0 0 3px #10816b12}small{display:block;font-size:13px;color:#84938f}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:18px}h3{font-size:15px}p{color:#84938f;font-size:15px}aside{width:236px;position:fixed;inset:0 0 0 auto;background:#fff;border-left:1px solid #e7edeb;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:800}.brand>span{background:#117c68;color:white;border-radius:13px;width:46px;height:46px;display:grid;place-items:center}.brand small{font-weight:400;font-size:12px}.schoolyear{border:1px solid #e8eeec;border-radius:10px;padding:13px;margin:30px 0;font-size:12px;color:#83938f}.schoolyear b{display:block;color:#364e48;font-size:13px;margin-top:5px}.navlabel{color:#9baba5;font-size:12px;margin:0 14px 10px}nav button{display:flex;width:100%;justify-content:flex-start;padding:14px 12px;font-size:12px;margin:5px 0;border-radius:9px;color:#7a8b85;gap:10px}nav button.active{background:#e9f5f0;color:#08735e;font-weight:700}nav i{width:6px;height:6px;border-radius:50%;background:#0d8d70;margin-right:auto}.sidebottom{margin-top:auto;font-size:13px;color:#5b7369}.sidebottom small{margin-top:8px}.statusdot{display:inline-block;width:7px;height:7px;background:#29ac81;border-radius:50%;margin-left:7px}main{margin-right:236px}header{height:83px;background:#fff;border-bottom:1px solid #e8edeb;padding:0 36px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.muted{color:#8d9b96;font-size:13px}.profile{display:flex;align-items:center;gap:10px}.profile>span{font-size:11px}.content{padding:30px 32px;max-width:1700px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;color:#148573;margin-bottom:6px}.heading p{margin-top:7px}.primary{background:#10816b;color:white;border-radius:10px;padding:11px 18px;font-size:12px;font-weight:600;box-shadow:0 3px 8px #0c6b6212}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.stats>div{background:white;border:1px solid #e5ebe8;border-radius:13px;padding:18px 21px;position:relative}.stats span{font-size:13px;color:#88968f}.stats b{display:block;font-size:28px;margin-top:7px;line-height:1.5}.stats small{display:inline;font-size:16px;margin-right:9px;font-weight:400}.stats svg{position:absolute;left:22px;top:25px;color:#68a896;background:#edf6f1;padding:9px;box-sizing:content-box;border-radius:10px}.scanner{background:white;border:1px solid #e1e9e5;border-radius:14px;padding:22px;margin-bottom:30px}.scantitle{display:flex;gap:12px;align-items:center;margin-bottom:17px}.scanicon{background:#eaf5f0;color:#14836a;padding:10px;border-radius:11px;display:flex}.scantitle p{font-size:13px;margin-top:3px}.pill{border-radius:6px;padding:3px 9px;background:#f0f5f2;font-size:10px;color:#648576}.scantitle>.pill{margin-right:auto}.scanform{display:flex;align-items:center;gap:12px;background:#f8faf9;border:1px solid #dee8e2;border-radius:10px;padding:7px 12px;color:#7c9b8d}.scanform input{flex:1;border:0;background:transparent;font-size:18px;letter-spacing:1px}.hint{font-size:12px;color:#8e9c95;margin-top:10px}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.sectiontitle h2 span{font-size:10px;font-weight:400;margin-right:8px;background:#e9efec;padding:3px 9px;border-radius:12px}.sessions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.session{background:white;border:1px solid #e1e9e5;border-top:3px solid #62ad96;border-radius:12px;padding:16px 14px;min-height:360px;display:flex;flex-direction:column}.color1{border-top-color:#819cce}.color2{border-top-color:#d4ad6f}.color3{border-top-color:#a490bc}.sessiontop{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.sessiontop button{border:1px solid #e1e9e5;border-radius:7px;padding:3px;color:#77988a}.session h2{font-size:17px;margin-bottom:3px}.session p{font-size:13px}.time{display:flex;gap:5px;align-items:center;font-size:12px;color:#8c9c94;margin:12px 0 18px;flex-wrap:wrap}.time span{margin-right:auto;font-size:11px}.rosterhead{border-top:1px solid #eef2ef;padding-top:14px;font-size:12px;color:#81958a;display:flex;justify-content:space-between}.roster{flex:1}.dropzone{border:1px dashed #dbe7df;border-radius:9px;padding:29px 5px;text-align:center;margin:13px 0;color:#a5b9ac}.dropzone p{margin:8px 0 4px;color:#849f8d}.dropzone small{font-size:11px}.sessionfoot{border-top:1px solid #eff2f0;padding-top:13px;display:flex;justify-content:space-between;font-size:11px;color:#8c9d94}.sessionfoot button{font-size:11px;color:#657b6c;padding:0}.vacant{border:1px dashed #d4dfd8;background:#f6f9f7;justify-content:center;text-align:center;align-items:center;color:#8b9e91;gap:14px}.vacant h3{font-size:13px;font-weight:500}.vacant p{line-height:2;font-size:13px}.vacant>span:last-child{font-size:10px;color:#1e8a6a}.vacantplus{background:white;padding:14px;border-radius:50%;border:1px solid #e1e9e2}.footnote{display:flex;justify-content:center;gap:8px;align-items:center;color:#91a299;font-size:12px;margin-top:25px}.selected{display:flex;align-items:center;gap:12px;background:#e7f5ed;border:1px solid #b7dbca;border-radius:9px;padding:12px;margin-top:15px;cursor:grab}.selected b{font-size:13px}.selected>span{margin-right:auto;font-size:11px;color:#288365}.studentrow{display:flex;gap:7px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f3f1}.studentrow b{font-size:11px}.studentrow small{font-size:10px}.studentrow button{margin-right:auto;padding:0}.avatar{border-radius:8px;background:#edf4ef;color:#608b72;width:27px;height:30px;display:grid;place-items:center;font-size:12px}.assign{background:#e7f6ec;color:#17734e;padding:8px;font-size:10px;border-radius:8px;margin:8px 0}.panel{background:white;padding:24px;border:1px solid #e2e9e5;border-radius:13px;margin-bottom:20px;overflow:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.toolbar button{font-size:12px;color:#147b60}.search{display:flex;align-items:center;gap:6px}.search input{font-size:12px}.chips{display:flex;flex-wrap:wrap;gap:10px}.chip{font-size:12px;padding:9px 15px;border:1px solid #e1ebe4;border-radius:8px;background:#f6faf7}table{width:100%;border-collapse:collapse;text-align:right;font-size:12px}th{color:#83978b;font-weight:500;background:#f6f9f7;padding:13px;white-space:nowrap}td{padding:16px 13px;border-bottom:1px solid #edf2ed}.code{font-family:monospace;color:#168366}.empty{text-align:center;padding:45px 15px;color:#8b9d91;font-size:15px}.notice{background:#fff8df;border:1px solid #ede0ad;padding:12px 16px;border-radius:9px;margin-bottom:18px;font-size:12px;display:flex;justify-content:space-between}.overlay{position:fixed;inset:0;background:#183a325c;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10;padding:20px}.dialog{background:white;border-radius:18px;padding:27px;width:470px;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #133d3326}.dialog label{display:block;font-size:12px;margin:12px 0;color:#546f60}.dialog label input,.dialog label select,.dialog>input{width:100%;margin-top:6px}.full{width:100%;margin-top:18px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.matches{max-height:170px;overflow:auto}.matches button{display:flex;width:100%;padding:10px;border-bottom:1px solid #edf2ef;justify-content:space-between;font-size:12px}.matches small{font-size:11px}.divider{font-size:13px;text-align:center;border-top:1px solid #e5eee7;padding-top:17px;margin-top:17px;color:#90a195}button:hover{filter:brightness(.95)}button:focus-visible{outline:3px solid #81bea9;outline-offset:3px}@media(min-width:1550px){.session{min-height:430px}}@media(max-width:1100px){aside{width:195px;padding:25px 14px}main{margin-right:195px}.content{padding:25px 20px}.sessions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){aside{position:static;width:100%;padding:15px}.brand{font-size:22px}.schoolyear,.navlabel,.sidebottom{display:none}nav{display:flex;overflow:auto;margin-top:10px}nav button{font-size:10px;min-width:115px;padding:10px 6px}nav svg{width:16px}main{margin:0}header{display:none}.content{padding:20px 14px}.heading{gap:12px}h1{font-size:24px}.heading p{font-size:13px}.primary{padding:10px 12px;font-size:11px}.stats{gap:8px}.stats>div{padding:14px 9px}.stats svg{display:none}.stats span{font-size:11px}.stats b{font-size:24px}.scanner{padding:14px}.scanform{gap:5px}.scanform>svg{display:none}.scanform input{width:80px;font-size:14px;padding:8px}.scanform button{font-size:10px}.sectiontitle .muted{display:none}.sessions{gap:10px}.session{padding:13px 10px}.session h2{font-size:15px}.footnote{flex-wrap:wrap;font-size:11px}.selected>span{font-size:9px}.toolbar{flex-wrap:wrap}.panel{padding:16px}.dialog{padding:20px}}
.stage-primary{--stage-color:#167343;--stage-bg:#eaf7ee;--stage-border:#b6dfc5}.stage-middle{--stage-color:#2459ad;--stage-bg:#edf4ff;--stage-border:#bed3f4}.stage-secondary{--stage-color:#a34a0b;--stage-bg:#fff3e6;--stage-border:#f3cea7}.stage-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.stage-summary{display:flex;align-items:center;gap:10px;padding:17px;border:1px solid var(--stage-border);background:var(--stage-bg);color:var(--stage-color);border-radius:12px}.stage-summary b{font-size:14px}.stage-summary small{margin-right:auto;color:var(--stage-color);font-size:11px}.stage-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--stage-color);flex-shrink:0}.stage-badge{display:inline-flex;align-items:center;gap:7px;background:var(--stage-bg);color:var(--stage-color);border:1px solid var(--stage-border);padding:4px 10px;border-radius:7px;font-size:11px;white-space:nowrap}.stage-field{padding:0;border:0;margin:15px 0}.stage-field legend{font-size:12px;color:#546f60;margin-bottom:9px}.stage-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dialog .stage-choice{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;padding:11px 7px;border:1px solid var(--stage-border);border-radius:9px;color:var(--stage-color);cursor:pointer;background:white;font-size:12px;position:relative}.stage-choice input{position:absolute;opacity:0;inset:0;cursor:pointer}.stage-choice:has(input:checked){background:var(--stage-bg);box-shadow:0 0 0 1px var(--stage-color);font-weight:700}.stage-choice:has(input:focus-visible){outline:3px solid var(--stage-color);outline-offset:3px}@media(max-width:700px){.stage-overview{gap:8px}.stage-summary{padding:12px 8px;flex-wrap:wrap;gap:6px}.stage-summary b{font-size:12px}.stage-summary small{width:100%;margin-right:14px;font-size:10px}}
.students-table-wrap{overflow-x:auto}.students-table{min-width:720px;direction:rtl}.student-name-edit{display:inline-flex;flex-direction:column;gap:2px;font-weight:600;padding:3px 7px;border-radius:6px}.student-name-edit small{font-size:11px;font-weight:400;color:#60846d}.student-name-edit:hover{background:#eaf6ed}.student-phone{width:fit-content;font-variant-numeric:tabular-nums;line-height:1.9;white-space:nowrap}
.teacher-photo{display:block;width:52px;height:52px;object-fit:cover;object-position:center;border-radius:12px;flex-shrink:0;border:2px solid #fff;box-shadow:0 1px 5px #193c3018}.teacher-photo-fallback{display:grid;place-items:center;background:#e6eee9;color:#547861;font-size:23px;font-weight:700}.teacher-photo-cell{display:flex;align-items:center;gap:10px}.photo-upload{display:inline-flex;position:relative;cursor:pointer;color:#117c68;font-size:12px;white-space:nowrap;border:1px solid #dce9e1;border-radius:7px;padding:7px 10px}.photo-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.photo-upload:has(input:focus-visible){outline:3px solid #69ad95;outline-offset:3px}.photo-upload:has(input:disabled){opacity:.5;cursor:wait}.session.stage-primary,.session.stage-middle,.session.stage-secondary{border-top-color:var(--stage-color)}.session-identity{display:flex;align-items:center;gap:11px;background:var(--stage-bg,#edf6f0);color:var(--stage-color,#217047);border:1px solid var(--stage-border,#cbe4d5);border-radius:10px;padding:12px;margin-bottom:16px;min-height:82px}.session>.session-identity{margin:-4px -3px 16px}.session-identity>div{min-width:0;flex:1}.session-identity strong{display:block;font-size:15px;font-weight:800;line-height:1.7;overflow-wrap:anywhere}.session-identity span:not(.teacher-photo){display:block;font-size:12px;font-weight:600;line-height:1.8;margin-top:3px}.session:has(.session-identity):hover{border-color:var(--stage-border)}@media(max-width:700px){.session-identity{gap:8px;padding:9px}.session-identity .teacher-photo{width:43px;height:43px}.session-identity strong{font-size:13px}.session-identity span:not(.teacher-photo){font-size:11px}}

/* Enlarge all table content by 3px, including nested labels. */
table{font-size:15px}table small{font-size:16px}table .stage-badge{font-size:14px}table .student-name-edit small{font-size:14px}table .photo-upload{font-size:15px}table .teacher-photo-fallback{font-size:26px}.panel.empty>.primary{margin-top:16px}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{background:white;border:1px solid #dce7e3;border-radius:24px;padding:36px;width:min(720px,100%);box-shadow:0 16px 70px #173e3910}.auth-card h1{font-size:28px}.auth-card p,.auth-card li{line-height:1.9}.auth-card li{margin-bottom:16px}.auth-card form{display:grid;gap:16px}.auth-card label{display:grid;gap:8px}.auth-card .remember{display:flex;align-items:center}.auth-card .remember input{width:auto}.auth-card input{padding:12px;border:1px solid #c7d8d1;border-radius:10px;width:100%}
