@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');
:root{--bg:#f5f7f8;--ink:#203c40;--muted:#718288;--line:#e1e8e9;--green:#16786c;--nav:#163c40}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Cairo,'Noto Sans Arabic','Segoe UI',Tahoma,sans-serif;font-size:14px;line-height:1.75}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.primary,.secondary{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 19px;border-radius:8px;cursor:pointer;font-weight:600;white-space:nowrap;background:var(--green);color:white}button:hover,.primary:hover{background:#10645a}button:disabled{opacity:.4;cursor:not-allowed}.secondary{background:#fff;color:var(--green);border:1px solid #d8e5e3}.secondary:hover{background:#edf5f3}.sidebar{width:235px;position:fixed;inset:0 0 0 auto;background:var(--nav);color:#d2e4e1;padding:30px 17px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;padding:0 10px 33px}.brandmark{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#2b8c80;color:white;font-size:29px;font-weight:600;line-height:1}.brand b{color:#fff;font-size:23px;font-weight:600;display:block;line-height:1.4}.brand small{color:#9dbfbd;font-size:11px}.navlabel{font-size:11px;color:#87a8a7;padding:0 13px 12px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{padding:12px 13px;border-radius:8px;display:flex;align-items:center;gap:12px;font-size:13px}.sidebar nav a:hover,.sidebar nav a.active{background:#28605f;color:white}.sidebar nav a.active{box-shadow:inset -3px 0 #79c9bb}.sidebar svg{width:19px;height:19px;flex:none}.sidebarfoot{margin-top:auto;padding:15px 10px;border-top:1px solid #35575a}.version{font-size:11px;color:#a9c3c2}.logout{margin-top:10px;background:transparent;border:1px solid #496969;width:100%;font-size:12px}.shell{margin-right:235px;min-height:100vh}header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 33px;background:#fff;border-bottom:1px solid var(--line)}.crumb{font-size:13px;color:#6c8085}.crumb span{padding:0 8px;color:#b4c1c4}.profile{display:flex;gap:10px;align-items:center}.profile b{font-size:13px;display:block;font-weight:600}.profile small{font-size:11px;display:block;color:var(--muted)}.avatar{width:37px;height:37px;border-radius:50%;background:#e5f0ee;display:grid;place-items:center;color:var(--green);font-size:20px}.content{padding:31px 34px;max-width:1500px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.eyebrow{font-size:12px;color:var(--green);font-weight:600;letter-spacing:.1px}h1{font-size:28px;font-weight:600;line-height:1.5;margin:2px 0 3px}h2{font-size:17px;font-weight:600;margin:0 0 13px}h3{font-size:15px;font-weight:600}p{margin:4px 0 14px;color:var(--muted)}.heading p{margin:0;font-size:13px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:22px;min-width:0;margin-bottom:17px}.split{display:grid;grid-template-columns:1fr 1fr;gap:17px}.importsplit{grid-template-columns:1.65fr 1fr}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 15px;display:flex;flex-direction:column;gap:5px;border-top:3px solid #b7c6c7}.metric span{font-size:12px;color:var(--muted)}.metric strong{font-size:29px;font-weight:600;line-height:1.4;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.metric.good{border-top-color:#4c9f8f}.metric.good strong{color:#197768}.metric.warn{border-top-color:#cf9b45}.metric.warn strong{color:#a57225}.metric.danger{border-top-color:#c86b65}.metric.danger strong{color:#b24b45}.filters{display:flex;align-items:end;gap:11px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 17px;margin-bottom:17px}.filters label{margin:0;flex:1;min-width:120px}.filters button{height:42px}label{display:block;font-size:12px;font-weight:600;margin:0 0 14px}input,select,textarea{width:100%;border:1px solid #d6e0e1;border-radius:7px;padding:8px 11px;background:#fff;color:var(--ink);display:block;margin-top:5px;font-weight:400;min-height:42px}textarea{min-height:104px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #9acfc4;outline-offset:1px}input[type=date],input[type=time],input[type=number]{direction:ltr;text-align:right}.statline,.barlabel,.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.statline{padding:10px 0;border-bottom:1px solid #eef2f2;overflow-wrap:anywhere}.statline:last-child{border-bottom:0}.barlabel{font-size:12px;margin-top:14px}.track{height:7px;border-radius:20px;background:#edf1f2;margin-top:7px;overflow:hidden}.track i{display:block;height:100%;border-radius:20px}.track .k0{background:#c96a62}.track .k1{background:#d3a04c}.track .k2{background:#639ab5}.subtle,small{font-size:12px;color:var(--muted)}small{display:block}.subtle{font-weight:400}.sectionhead h2{margin:0}.sectionhead{margin-bottom:12px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:right}th{font-weight:600;color:#6b7f81;background:#f4f7f7;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid #e9eeee;vertical-align:middle}td b{font-weight:600}td small{font-size:11px}.num{direction:ltr;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.empty{text-align:center;padding:38px;color:var(--muted)}.status{display:inline-block;padding:3px 8px;border-radius:5px;background:#edf1f3;color:#677a80;font-size:11px;white-space:nowrap}.status.pending{background:#fff3de;color:#936411}.status.answered,.status.closed{background:#e5f3ec;color:#23785d}.status.escalated{background:#fbe9e6;color:#a74e46}.kind{font-size:11px;display:inline-block;line-height:1.7;max-width:180px}.kind.k0{color:#ad4945}.kind.k1{color:#a17528}.kind.k2{color:#437a97}.link{font-size:12px;color:var(--green);font-weight:600;white-space:nowrap}.steps{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);border-radius:10px;padding:13px 22px;margin-bottom:18px}.steps div{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.steps i,.guideitem i{width:29px;height:29px;border-radius:50%;background:#edf1f1;display:grid;place-items:center;font-style:normal;font-weight:600;flex:none}.steps .current{color:var(--green);font-weight:600}.steps .current i{background:var(--green);color:white}.steps>span{height:1px;max-width:100px;flex:1;background:var(--line)}.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:228px;gap:8px;background:#f7faf9;border:1.5px dashed #9cbeb6;border-radius:11px;color:var(--green);margin:18px 0;cursor:pointer;text-align:center;padding:15px}.drop:hover,.drop.over{background:#e8f4f0}.drop b{font-size:15px;font-weight:600}.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;margin:0}.drop .secondary{padding:6px 15px;margin-top:8px}.formfoot{display:flex;gap:12px;justify-content:space-between;align-items:center}.guideitem{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #edf1f1}.guideitem:last-child{border:0}.guideitem i{background:#e8f2ef;color:var(--green)}.guideitem b{font-weight:600;font-size:13px}.guideitem small{margin-top:3px;line-height:1.8}.notice,.alert{padding:13px 17px;border:1px solid #c6e2d8;background:#edf7f3;color:#26755f;border-radius:9px;margin-bottom:16px}.alert{background:#fff0ed;color:#a94a43;border-color:#f2c9c3}.publish{display:flex;justify-content:space-between;align-items:center;gap:20px}.publish form{display:flex;align-items:end;gap:12px}.publish label{margin:0}.publish input{max-width:130px}.divider{height:1px;background:var(--line);margin:18px 0}.actions,.pagination{display:flex;gap:10px;align-items:center}.pagination{justify-content:center;padding-top:15px}.pre{white-space:pre-wrap;overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;color:#8a999d;font-size:11px;margin-top:22px}.login{display:grid;place-items:center;min-height:100vh;background:#eaf1ef}.login-box{width:min(420px,94vw);background:white;border:1px solid #dbe5e2;border-radius:18px;padding:35px}.login-box h1{margin-top:14px}.login-box form button{width:100%}.login-box>small{margin-top:20px}.fileitem{padding:7px 10px;background:#eef6f3;margin-bottom:5px;border-radius:5px;font-size:12px;direction:ltr;text-align:left}@media(max-width:1050px){.metrics{grid-template-columns:repeat(3,1fr)}.importsplit{grid-template-columns:1fr}.sidebar{width:205px}.shell{margin-right:205px}.content{padding:24px}.publish{flex-wrap:wrap}}@media(max-width:680px){.sidebar{position:static;width:100%;padding:13px}.brand{padding:0 0 10px}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{flex-shrink:0;padding:8px}.sidebarfoot,.navlabel{display:none}.shell{margin:0}header{padding:0 15px;height:58px}.content{padding:15px}.heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:24px}.metrics{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.panel{padding:15px}.formfoot,.publish form{flex-wrap:wrap}.profile small{display:none}}@media print{.sidebar,header,.filters,.actions,footer,.heading .primary{display:none!important}.shell{margin:0}.content{padding:0;max-width:none}body{background:#fff;color:#111;font-size:11px}.panel,.metric{break-inside:avoid;box-shadow:none}.metrics{grid-template-columns:repeat(5,1fr)}.split{grid-template-columns:1fr 1fr}table{font-size:9px}td,th{padding:6px}.tablewrap{overflow:visible}.panel:has(table){break-inside:auto}tr{break-inside:avoid}@page{size:A4;margin:12mm}}

.role-supervisor{--work-accent:#08786c;--work-text:#23353e;--work-muted:#52656f;--work-border:#dde5e8;background:#f2f5f6;color:var(--work-text);font-size:15px}
.role-supervisor .sidebar{width:208px;padding:24px 14px;background:#fff;color:#42545e;border-left:1px solid var(--work-border)}
.role-supervisor .brand{padding:0 8px 35px;gap:10px}.role-supervisor .brandmark{background:var(--work-accent);border-radius:11px;width:43px;height:43px}.role-supervisor .brand b{color:#23353e;font-size:23px}.role-supervisor .brand small{color:#63747b;font-size:11px}.role-supervisor .navlabel{color:#657780;font-size:12px;padding:0 12px 10px}.role-supervisor .sidebar nav a{font-size:15px;padding:11px 12px;min-height:45px}.role-supervisor .sidebar nav a.active{color:#076e62;background:#e5f2ef;box-shadow:inset -3px 0 #08786c;font-weight:600}.role-supervisor .sidebar nav a:hover{background:#eff5f4;color:#076e62}.role-supervisor .sidebarfoot{border-color:var(--work-border);padding:15px 4px 0}.role-supervisor .version{color:#657882}.role-supervisor .logout{color:#42545e;border:1px solid #dce4e7;background:white}.role-supervisor .logout:hover{background:#edf3f2;color:#076e62}.role-supervisor .shell{margin-right:208px}.role-supervisor header{height:60px;padding:0 28px;gap:16px}.role-supervisor .crumb{color:#536670;font-size:13px}.role-supervisor .profile{min-width:0}.role-supervisor .profile b{font-size:14px;font-weight:600}.role-supervisor .profile small{font-size:12px;color:#60737d}.role-supervisor .avatar{background:#e8f4f1;color:#08796c;flex:none}.page-supervisor .content{max-width:1440px;padding:26px 28px 20px}.page-supervisor footer{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){.role-supervisor .sidebar{position:static;width:100%;padding:12px 15px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border-left:0;border-bottom:1px solid var(--work-border)}.role-supervisor .brand{padding:0}.role-supervisor .brandmark{width:36px;height:36px;font-size:22px}.role-supervisor .brand b{font-size:19px}.role-supervisor .navlabel{display:none}.role-supervisor .sidebar nav{grid-column:1/-1;display:flex;grid-row:2;gap:5px}.role-supervisor .sidebar nav a{min-height:40px;padding:8px 12px}.role-supervisor .sidebarfoot{display:block;padding:0;margin:0;border:0;grid-column:2;grid-row:1}.role-supervisor .version{display:none}.role-supervisor .logout{margin:0;padding:7px 12px;width:auto}.role-supervisor .shell{margin:0}.role-supervisor header{height:auto;min-height:58px;padding:10px 15px}.role-supervisor .crumb{display:none}.role-supervisor .profile small{display:block}.page-supervisor .content{padding:18px 13px}}
/* V1.6 supervisor: queue and persistent editor */
.page-supervisor{--desk-ink:#182e3b;--desk-muted:#536a77;--desk-line:#e0e7eb;--desk-accent:#08786c;background:#f3f6f8}
.page-supervisor .content{max-width:1600px;padding:28px 30px 24px}.desk-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.desk-heading h1{font-size:29px;line-height:1.45;font-weight:600;margin:0 0 4px;color:var(--desk-ink)}.desk-heading p{font-size:15px;color:var(--desk-muted);margin:0}.desk-refresh{display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--desk-line);background:white;border-radius:8px;padding:9px 16px;color:#395361;font-size:14px;white-space:nowrap}.desk-summary{display:grid;grid-template-columns:255px minmax(0,1fr);gap:12px;margin-bottom:20px}.desk-progress{background:#164d4a;color:white;border-radius:10px;padding:14px 18px;display:flex;flex-direction:column;justify-content:center;gap:5px}.desk-progress-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.desk-progress-label b{font-size:24px;font-weight:600;line-height:1.2}.desk-track{height:6px;background:#ffffff30;overflow:hidden;border-radius:6px}.desk-track i{display:block;height:100%;background:#8ee0c9;border-radius:6px}.desk-progress small{color:#d3e7e3;font-size:12px}.desk-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.desk-tab{background:#fff;border:1px solid var(--desk-line);border-radius:10px;padding:13px 15px;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;color:var(--desk-muted);font-size:14px}.desk-tab b{font-size:26px;line-height:1.2;font-weight:600;color:var(--desk-ink)}.desk-tab.selected{background:#eaf5f2;border:1px solid #7cb6ab;box-shadow:inset 0 -3px #08786c;color:#075c53}.desk-tab.selected b{color:#08786c}.desk-tab:hover{border-color:#8fb9b2}.desk-work{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:16px;align-items:start}.desk-queue,.desk-editor{background:white;border:1px solid var(--desk-line);border-radius:12px;overflow:hidden;min-width:0}.desk-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px 11px}.desk-queue-head h2,.desk-editor-head h2{font-size:18px;font-weight:600;margin:0;color:var(--desk-ink)}.desk-queue-head h2 span{font-size:13px;color:#08786c;background:#e8f3f0;border-radius:5px;padding:1px 8px;margin-right:5px}.desk-queue-head small,.desk-editor-head small{font-size:12px;color:var(--desk-muted)}.desk-filter{padding:0 18px 14px;display:grid;gap:8px}.desk-filter input,.desk-filter select{height:40px;font-size:14px;margin:0;border-radius:7px;border-color:#d8e2e7;color:var(--desk-ink);background:#fff;min-width:0}.desk-filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.desk-filter-row button{height:40px;padding:0 18px;border-radius:7px}.desk-filter-row a{font-size:13px}.desk-list{max-height: min(560px,65vh);overflow:auto;scrollbar-color:#bacbd0 #f4f6f7}.desk-table{table-layout:fixed;width:100%;min-width:0;font-size:14px}.desk-table thead{position:sticky;top:0;z-index:1}.desk-table th{background:#f0f4f6;color:#465d69;font-weight:600;font-size:13px;padding:10px 14px;text-align:right;border-block:1px solid var(--desk-line)}.desk-table td{padding:12px 14px;text-align:right;border-bottom:1px solid #e9edf0;vertical-align:middle;overflow-wrap:anywhere}.desk-table td:first-child,.desk-table th:first-child{padding-right:20px}.desk-table td:last-child{padding-inline:5px 12px;text-align:center}.desk-row{cursor:pointer}.desk-row:hover{background:#f5faf9}.desk-row.is-selected{background:#eaf5f2;box-shadow:inset -4px 0 #08786c}.desk-school{font-size:15px;line-height:1.5;font-weight:600;color:var(--desk-ink);display:inline-block}.desk-school:hover{color:#08786c;text-decoration:underline}.desk-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:#526a77;line-height:1.6;margin-top:3px}.desk-kind{font-size:13px;color:#345f78;display:inline-flex;align-items:center;gap:6px;font-weight:600;line-height:1.4}.desk-kind i{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}.desk-kind.k0{color:#a23d35}.desk-kind.k1{color:#8d5c13}.desk-table .desk-time{display:block;font-size:12px;color:#536a77;margin-top:4px}.desk-time[data-urgent],.desk-time[data-expired]{color:#a23d35}.desk-arrow{font-size:23px;color:#8da3ac}.desk-row.is-selected .desk-arrow{color:#08786c}.desk-foot{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#526a77;padding:12px 18px;background:#fff}.desk-editor{position:sticky;top:12px}.desk-editor-head{display:flex;align-items:center;gap:11px;padding:16px 20px;border-bottom:1px solid var(--desk-line)}.desk-editor-icon{display:grid;place-items:center;background:#e5f2ef;color:#08786c;border-radius:8px;font-size:23px;width:40px;height:40px;flex:none}.desk-index{margin-right:auto;font-size:12px;color:#536a77;white-space:nowrap}.desk-editor #reply-body{padding:20px}.desk-school-head{margin-bottom:17px}.desk-school-head h2{font-size:21px;font-weight:600;margin:8px 0 4px;line-height:1.5;color:var(--desk-ink)}.desk-state{display:inline-block;font-size:12px;color:#075c53;background:#e5f2ef;padding:3px 9px;border-radius:5px}.desk-details{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:14px;background:#f4f7f8;border:1px solid #e6ecee;border-radius:8px;margin-bottom:16px}.desk-details>div:last-child{grid-column:1/-1;border-top:1px solid #dfe7e9;padding-top:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.desk-details small{display:block;font-size:12px;color:var(--desk-muted);margin-bottom:3px}.desk-details b{display:block;font-size:14px;font-weight:600;color:var(--desk-ink);line-height:1.6}.desk-details #reply-due{color:#8d5c13;font-size:14px}.desk-details #reply-due[data-urgent],.desk-details #reply-due[data-expired]{color:#a23d35}.desk-source{padding:11px 13px;background:#faf7ee;border:1px solid #eee5d2;border-radius:8px;margin-bottom:15px;color:#6b582d}.desk-source small{font-size:12px;color:#6b582d}.desk-source p{font-size:14px;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:110px;overflow:auto}.desk-editor label{font-size:15px;color:var(--desk-ink);font-weight:600;margin:0}.desk-editor textarea{min-height:130px;resize:vertical;font-size:15px;line-height:1.7;border-color:#cfdbdf;border-radius:8px;padding:12px;margin-top:8px}.desk-editor textarea:focus{outline:2px solid #89c3b9;outline-offset:1px}.desk-editor .dialog-actions{margin-top:13px}.desk-editor .dialog-actions button{width:100%;border-radius:8px;background:#08786c;color:white;font-size:15px;min-height:43px}.desk-editor-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--desk-line);margin-top:18px;padding-top:13px;font-size:13px}.desk-next{background:#f0f4f6;border:1px solid #e0e7eb;color:#405965;padding:7px 12px;font-size:13px;border-radius:6px}.desk-next:disabled{opacity:.45;cursor:default}.desk-empty{text-align:center;padding:35px 14px!important;color:#536a77;font-size:14px}.desk-editor #reply-readonly p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;padding:14px;border:1px solid var(--desk-line);border-radius:8px}.desk-editor #reply-readonly h3{font-size:15px;font-weight:600;margin-bottom:8px}.desk-editor [hidden]{display:none!important}.desk-tab:focus-visible,.desk-school:focus-visible,.desk-next:focus-visible{outline:2px solid #08786c;outline-offset:3px}
@media(max-width:1200px){.page-supervisor .content{padding:23px 20px}.desk-summary{grid-template-columns:200px minmax(0,1fr)}.desk-tab{padding:12px}.desk-work{grid-template-columns:minmax(0,1.2fr) minmax(310px,1fr)}.desk-table td{padding:11px 9px}.desk-table td:first-child,.desk-table th:first-child{padding-right:13px}.desk-editor #reply-body{padding:15px}}@media(max-width:1050px){.desk-work{grid-template-columns:1fr}.desk-editor{position:static}.desk-list{max-height:410px}.desk-summary{grid-template-columns:1fr}.desk-progress{padding:12px 15px}.desk-tabs{gap:7px}}@media(max-width:760px){.page-supervisor .content{padding:18px 12px}.desk-heading h1{font-size:23px}.desk-heading p{font-size:13px}.desk-refresh{padding:8px 10px}.desk-summary{margin-bottom:14px;gap:8px}.desk-tabs{grid-template-columns:repeat(2,1fr)}.desk-tab{padding:10px 12px}.desk-tab b{font-size:23px}.desk-work{gap:12px}.desk-queue-head{padding:14px 12px 10px}.desk-filter{padding:0 12px 12px}.desk-filter-row{gap:5px}.desk-filter-row button{padding:0 11px}.desk-filter select,.desk-filter input{font-size:13px}.desk-table th{font-size:12px;padding:8px}.desk-table td{padding:10px 8px}.desk-school{font-size:14px}.desk-kind,.desk-time{font-size:12px}.desk-meta{font-size:11px;gap:4px}.desk-editor-head{padding:14px}.desk-editor #reply-body{padding:15px}.desk-editor-foot{flex-wrap:wrap}}
.desk-index{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
