:root{--bg:#f7f9fd;--surface:#fff;--text:#17253b;--muted:#718096;--line:#e5eaf2;--primary:#5a73f7;--mint:#27bea0;--amber:#f2b94b;--rose:#e96578;--cyan:#45b9d8;--shadow:0 20px 60px rgba(29,55,90,.09);font-family:"IBM Plex Sans Arabic","Noto Kufi Arabic","Tajawal",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{background:radial-gradient(circle at 5% 0,#eef3ff 0,transparent 28%),radial-gradient(circle at 100% 18%,#eafaf5 0,transparent 25%),#f7f9fd}button{font:inherit;cursor:pointer}[hidden]{display:none!important}.dash-topbar{position:sticky;top:0;z-index:70;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:12px max(16px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.9);backdrop-filter:blur(20px);border-bottom:1px solid rgba(224,230,239,.88)}.back-btn{justify-self:start;display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#64748b;font-size:12px;font-weight:850;padding:9px 11px;border-radius:12px}.back-btn:hover{background:#f2f4f8}.back-arrow{font-size:17px}.dash-brand{justify-self:center;display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand-icon{width:43px;height:43px;border-radius:14px;box-shadow:0 9px 24px rgba(80,102,204,.17)}.brand-name{display:flex;align-items:center;gap:7px}.dash-brand strong{font-size:16px;font-weight:950}.dash-brand em{font-style:normal;font-size:8px;letter-spacing:1.4px;color:var(--primary);font-weight:950;background:#eef1ff;border-radius:999px;padding:3px 6px}.dash-brand small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.top-actions{justify-self:end;display:flex;align-items:center;gap:8px}.refresh-btn{display:flex;align-items:center;gap:6px;border:1px solid #dfe5ff;background:#f0f2ff;color:#536ce6;padding:8px 11px;border-radius:12px;font-weight:900}.lang-switch{display:flex;padding:4px;background:#f2f4f8;border:1px solid var(--line);border-radius:13px}.lang-switch button{border:0;background:transparent;color:#7a8798;padding:7px 10px;border-radius:9px;font-weight:850}.lang-switch button.active{background:#fff;color:var(--primary);box-shadow:0 4px 12px rgba(36,58,96,.08)}.dashboard-shell{max-width:1180px;margin:auto;padding:26px 18px 92px}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px;border:1px solid #e2e7f1;border-radius:30px;background:linear-gradient(135deg,#fff 0%,#f5f7ff 62%,#eefbf7 100%);box-shadow:var(--shadow)}.live-pill{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:900;color:#278f78;background:#eaf9f4;border:1px solid #d6f0e7;padding:7px 10px;border-radius:999px}.live-pill i{width:7px;height:7px;border-radius:50%;background:#27bea0;box-shadow:0 0 0 4px rgba(39,190,160,.10)}.dashboard-hero h1{font-size:clamp(30px,4.5vw,46px);margin:13px 0 7px;letter-spacing:-1px}.dashboard-hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.75}.update-card{flex:0 0 auto;min-width:270px;max-width:330px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.78);border:1px solid #e2e7ef}.update-card span,.update-card small{display:block;color:var(--muted);font-size:9px}.update-card strong{display:block;font-size:15px;margin:6px 0}.section-card{margin-top:16px;padding:23px;border:1px solid var(--line);border-radius:25px;background:rgba(255,255,255,.96);box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}.heading-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-weight:950;font-size:17px}.heading-icon.school{background:#eef1ff;color:#536ce6}.heading-icon.people{background:#eaf9f4;color:#219d83}.heading-icon.note{background:#fff7e8;color:#a77418}.section-heading h2{font-size:19px;margin:0 0 4px}.section-heading p{margin:0;color:var(--muted);font-size:10px}.school-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.kpi,.super-kpi{min-height:132px;display:flex;flex-direction:column;justify-content:flex-end;padding:14px;border:1px solid #edf0f5;border-radius:17px;background:#fbfcfe}.kpi-icon,.super-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;margin-bottom:auto;font-weight:950}.blue .kpi-icon,.blue .super-icon{background:#eef1ff;color:#536ce6}.green .kpi-icon,.green .super-icon{background:#eaf9f4;color:#219d83}.amber .kpi-icon,.amber .super-icon{background:#fff7e8;color:#a77418}.red .kpi-icon{background:#fff0f2;color:#bd5667}.kpi>span:not(.kpi-icon),.super-kpi>span:not(.super-icon){font-size:10px;color:var(--muted)}.kpi strong,.super-kpi strong{font-size:28px;line-height:1.1;margin:5px 0 2px}.kpi small,.super-kpi small{font-size:9px;color:#9aa6b4}.kpi.rate{background:linear-gradient(145deg,#f5f7ff,#eef1ff)}.rate-mini-icon{font-size:22px;color:#536ce6;margin-bottom:auto}.kpi.rate strong,.super-kpi.rate-card strong{font-size:30px;margin:7px 0 9px}.progress-track{height:9px;border-radius:999px;background:#e1e6ed;overflow:hidden}.progress-track i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#5a73f7,#44a9df);transition:width .55s ease}.supervisor-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.super-kpi.rate-card{background:linear-gradient(145deg,#f0faf7,#eaf9f4)}.green-track i{background:linear-gradient(90deg,#27aa8e,#3cc1a1)}.visual-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.compact{margin-bottom:10px}.donut-layout{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(180px,.7fr);align-items:center;gap:20px;padding:4px}.donut{--complete-angle:0deg;--progress-end:0deg;width:min(255px,74vw);aspect-ratio:1;border-radius:50%;margin:auto;background:conic-gradient(#27bea0 0 var(--complete-angle),#f2b94b var(--complete-angle) var(--progress-end),#e96578 var(--progress-end) 360deg);position:relative}.donut:after{content:"";position:absolute;inset:24%;background:#fff;border-radius:50%;box-shadow:0 0 0 1px #eef1f4}.donut-center{position:absolute;inset:28%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.donut-center strong{font-size:33px;line-height:1}.donut-center span{font-weight:900;font-size:11px;margin-top:4px}.donut-center small{font-size:9px;color:var(--muted);margin-top:2px}.legend{display:grid;gap:10px}.legend>div{display:flex;align-items:center;gap:9px;padding:11px;border-radius:13px;background:#fafbfe;border:1px solid #edf0f4}.legend .dot{width:12px;height:12px;border-radius:50%;flex:none}.green-dot{background:#27bea0}.amber-dot{background:#f2b94b}.red-dot{background:#e96578}.legend b{display:block;font-size:11px}.legend small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.vision-panel{display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:linear-gradient(150deg,#f8f9ff,#eefbf7);position:relative}.vision-panel:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(90,115,247,.05);right:-100px;top:-80px}.brand-visual{position:relative;z-index:1;text-align:center}.big-mark{width:100px;height:100px;margin:0 auto 12px;padding:10px;border-radius:30px;background:rgba(255,255,255,.72);border:1px solid #e3e8f0;box-shadow:0 15px 40px rgba(50,72,117,.09)}.big-mark img{width:100%;height:100%;border-radius:22px}.brand-visual>span{font-size:9px;font-weight:900;color:#536ce6;background:#eef1ff;border-radius:999px;padding:5px 9px}.brand-visual h2{font-size:30px;margin:10px 0 4px}.brand-visual p{margin:0;color:#63768a;font-size:11px}.brand-visual p strong+strong:before{content:" • ";color:#27bea0}.coverage-box{position:relative;z-index:1;margin:17px auto 0;width:min(310px,100%);text-align:center;padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.82);border:1px solid #e2e7ee}.coverage-box span,.coverage-box small{display:block;font-size:9px;color:var(--muted)}.coverage-box strong{display:block;font-size:28px;margin:3px 0}.executor-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}.executor-table{width:100%;border-collapse:collapse;min-width:880px}.executor-table th,.executor-table td{padding:11px;border-bottom:1px solid #edf0f4;text-align:start;font-size:10px}.executor-table th{background:#f6f8fc;color:#607187;white-space:nowrap}.executor-name{font-weight:950;font-size:11px}.rate-cell{font-weight:900}.rank-badge{width:27px;height:27px;border-radius:9px;background:#eef1ff;color:#536ce6;display:grid;place-items:center;font-weight:950}.mini-track{height:9px;min-width:130px;border-radius:999px;background:#e1e6ed;overflow:hidden}.mini-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#27aa8e,#3cc1a1)}.mini-track.warn i{background:linear-gradient(90deg,#e0a42e,#f2b94b)}.notes-list{display:grid;gap:9px}.note-row{display:grid;grid-template-columns:auto 1fr auto;gap:9px;padding:11px 12px;border-radius:14px;background:#fafbfe;border:1px solid #edf0f4}.note-bullet{width:8px;height:8px;border-radius:50%;margin-top:5px}.note-row.progress .note-bullet{background:#f2b94b}.note-row.blocked .note-bullet{background:#e96578}.note-row strong{display:block;font-size:10px;margin-bottom:3px}.note-row p{margin:0;color:#617487;font-size:10px;line-height:1.65}.note-row small{color:#8b98a7;font-size:9px;white-space:nowrap}.empty-state{text-align:center;padding:22px;color:var(--muted);font-size:10px}.dashboard-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:3px;color:#78889a;font-size:9px}.footer-live{color:#27a589}.error-banner{margin-top:15px;padding:12px 14px;border-radius:14px;background:#fff0f2;border:1px solid #f4dce1;color:#b74f61;font-size:11px}.loading-overlay{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;background:rgba(247,249,253,.9);backdrop-filter:blur(6px);color:#52667b;font-weight:900;font-size:11px}.loading-overlay.hidden{display:none}.loader{width:36px;height:36px;border-radius:50%;border:4px solid #e1e5ee;border-top-color:#5a73f7;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:88px;left:50%;z-index:110;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:#17253b;color:#fff;border-radius:12px;padding:10px 14px;font-size:11px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-nav{display:none}
@media(max-width:980px){.school-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.school-kpis .rate{grid-column:1/-1}.supervisor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-grid{grid-template-columns:1fr}}
@media(max-width:660px){.dash-topbar{grid-template-columns:auto 1fr auto;padding:9px 11px}.back-btn span:not(.back-arrow),.dash-brand small,.refresh-btn span:last-child{display:none}.dash-brand{justify-self:start}.brand-icon{width:39px;height:39px}.brand-name em{display:none}.top-actions{gap:5px}.dashboard-shell{padding:17px 12px 100px}.dashboard-hero{padding:22px 19px;border-radius:23px;align-items:flex-start;flex-direction:column}.dashboard-hero h1{font-size:30px}.update-card{min-width:0;width:100%;max-width:none}.section-card{padding:17px;border-radius:21px}.school-kpis,.supervisor-kpis{grid-template-columns:1fr 1fr}.kpi,.super-kpi{min-height:118px;padding:11px}.kpi strong,.super-kpi strong{font-size:24px}.donut-layout{grid-template-columns:1fr}.legend{grid-template-columns:repeat(3,1fr)}.legend>div{align-items:flex-start}.dashboard-footer{align-items:flex-start;flex-direction:column}.mobile-nav{position:fixed;z-index:80;display:grid;grid-template-columns:repeat(3,1fr);bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;padding:7px;border:1px solid rgba(220,226,236,.95);border-radius:20px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(28,47,78,.18)}.mobile-nav a{text-decoration:none;color:#7b8797;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 5px;border-radius:14px;font-size:18px}.mobile-nav a b{font-size:9px}.mobile-nav a.active{color:#526bea;background:#f0f2ff}}
@media(max-width:470px){.school-kpis,.supervisor-kpis{grid-template-columns:1fr 1fr}.legend{grid-template-columns:1fr}.note-row{grid-template-columns:auto 1fr}.note-row small{grid-column:2}.brand-visual p strong{display:block}.brand-visual p strong+strong:before{content:""}}

/* ===== V16 analytics UX ===== */
.stats-skeleton{display:grid;gap:12px}.stats-skeleton-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.stats-skeleton-wide{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-skeleton-table{display:grid;gap:8px}.stats-skeleton i{display:block;border-radius:17px;background:linear-gradient(90deg,#edf2f7 20%,#f8fafd 38%,#edf2f7 60%);background-size:220% 100%;animation:skeletonMove 1.3s ease-in-out infinite}.stats-skeleton-grid i{height:110px}.stats-skeleton-wide i{height:220px}.stats-skeleton-table i{height:44px}.executor-person-btn{border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:8px;padding:0;font-weight:900;cursor:pointer}.executor-avatar-mini{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#e8efff,#e0f8f2);color:#5269d6;font-size:9px;font-weight:950;flex:none}.executor-row{cursor:pointer;transition:.18s}.executor-row:hover{background:#f8faff!important}.executor-detail-modal{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:18px}.executor-detail-backdrop{position:absolute;inset:0;background:rgba(15,27,44,.42);backdrop-filter:blur(10px)}.executor-detail-card{position:relative;z-index:1;width:min(720px,100%);max-height:88vh;overflow:auto;padding:25px;border:1px solid rgba(224,230,240,.95);border-radius:25px;background:rgba(255,255,255,.94);box-shadow:0 35px 100px rgba(24,43,75,.26);backdrop-filter:blur(28px)}.executor-detail-close{position:absolute;top:12px;inset-inline-end:12px;width:36px;height:36px;border:1px solid #e3e8ef;border-radius:11px;background:#f6f8fb;color:#64748b;font-size:22px}.executor-detail-head{display:flex;align-items:center;gap:13px;padding-inline-end:45px}.executor-avatar-lg{width:52px;height:52px;font-size:15px}.executor-detail-head span#detailKicker{display:block;color:#667ce2;font-size:8px;font-weight:950}.executor-detail-head h2{margin:3px 0;font-size:22px}.executor-detail-head p{margin:0;color:#8795a7;font-size:10px}.detail-schools{display:grid;gap:8px;margin-top:18px}.detail-school-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e7ebf1;background:#fafcff;border-radius:14px;padding:12px}.detail-school-row strong{display:block;font-size:10px}.detail-school-row small{display:block;color:#8996a8;font-size:8px;margin-top:3px}.detail-school-metrics{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.detail-school-metrics>span:not(.status){padding:6px 8px;border-radius:9px;background:#f0f3f8;color:#7b8798;font-size:8px}.detail-school-metrics b{color:#1d2c41;margin-inline-start:3px}body.detail-modal-open{overflow:hidden}
@media(max-width:650px){.stats-skeleton-grid{grid-template-columns:1fr 1fr}.stats-skeleton-wide{grid-template-columns:1fr}.executor-detail-card{padding:20px 15px}.detail-school-row{align-items:flex-start;flex-direction:column}.detail-school-metrics{justify-content:flex-start;width:100%}.executor-table{min-width:650px!important}}

.executor-name-btn{border:0;background:transparent;padding:5px 7px;border-radius:10px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:inherit;font:inherit;font-weight:850}.executor-name-btn:hover{background:#edf3ff;color:#3158d8}.executor-name-btn .stats-avatar{width:29px;height:29px;border-radius:10px;font-size:9px}.stats-detail-card{max-width:620px!important}.stats-detail-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.stats-detail-head .stats-avatar{width:48px;height:48px;border-radius:15px;font-size:14px}.stats-detail-head h2{margin:3px 0;font-size:21px}.stats-detail-head p{font-size:10px;color:#7d8a9c;margin:0}.executor-detail-schools{display:grid;gap:8px;max-height:52vh;overflow:auto}.executor-school-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #e5ecf4;border-radius:13px;background:#fafcff}.executor-school-row strong{font-size:10px}.executor-school-row small{display:block;color:#8491a2;font-size:8px;margin-top:3px}.executor-school-count{font-size:10px;font-weight:900;white-space:nowrap}
