@font-face{font-family:Cairo;src:url('cairo-400.woff2') format('woff2');font-weight:400;font-display:block}@font-face{font-family:Cairo;src:url('cairo-600.woff2') format('woff2');font-weight:600;font-display:block}@font-face{font-family:Cairo;src:url('cairo-800.woff2') format('woff2');font-weight:800;font-display:block}
:root{--deep:#0a3845;--teal:#0d6265;--green:#218b78;--gold:#d3b57c;--line:#d5e4e0;--muted:#57717a;--ink:#173d44;--bg:#f3f7f5}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);direction:rtl;font:400 13px/1.75 Cairo,Tahoma,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{width:min(1320px,calc(100% - 38px));margin:0 auto}.topbar{background:white;border-bottom:1px solid #d3e5df}.top-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between}.signature{display:flex;align-items:center;gap:11px;color:#18565b;font-size:16px}.ag{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#0e565a;border:1px solid #6c9d95;color:#f1ddab;font:800 15px Cairo;direction:ltr}.return,.outline,.primary,.danger{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:9px 15px;min-height:40px;border-radius:11px;font-weight:800;border:1px solid #b4d2ca;background:#fff;color:#135d60}.primary{background:#0c5c63;color:white;border-color:#0c5c63}.danger{color:#9c4044;background:#fff4f4;border-color:#e9c9c9}.mini{min-height:35px;padding:6px 12px;border-radius:9px;font-size:11px}.full{width:100%}.workspace{padding-bottom:40px}.hero{min-height:220px;border-radius:22px;background:radial-gradient(circle at 10% 10%,#287d77,#0c4855 47%,#082f3c 100%);display:flex;justify-content:space-between;align-items:center;color:white;gap:30px;margin:24px 0 16px;padding:33px 42px;position:relative;overflow:hidden;border-top:4px solid #d9c28b;box-shadow:0 16px 38px #103c4421}.eyebrow{color:#b7ded5;font-size:12px;font-weight:800}.hero h1{margin:6px 0;font-size:32px;font-weight:800;line-height:1.5}.hero h1 em{color:#ead09b;font-style:normal}.hero p{margin:0;max-width:720px;font-size:14px;color:#dbede8}.hero-foot{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.hero-foot span{border:1px solid #c5e5d447;background:#ffffff14;border-radius:9px;padding:6px 12px;font-size:11px;font-weight:600}.hero-art{height:148px;width:210px;min-width:200px;position:relative;display:flex;align-items:center;justify-content:center}.hero-art span{font-size:35px;color:#e9d4a5;font-weight:800;z-index:3}.a-line{width:40px;position:absolute;bottom:12px;border-radius:8px 8px 0 0;background:#5bc8b16b}.a1{right:18px;height:65px}.a2{right:70px;height:108px}.a3{right:123px;height:87px}.callout{background:#fffaf0;color:#775f38;border:1px solid #ead9b8;border-radius:13px;padding:12px 18px;margin-bottom:18px}.app-layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:18px;align-items:start}.side,.main-panel{background:white;border:1px solid var(--line);border-radius:19px;box-shadow:0 5px 20px #0a384509;min-width:0}.side{padding:18px;position:sticky;top:15px}.side-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.side-head>strong{font-size:14px}.side-count{font-size:11px;color:#648079;margin:8px 0 14px}.library{display:grid;gap:8px}.lib-item{background:#f8fbfa;border:1px solid #d8e8e3;border-radius:12px;padding:12px;text-align:right;display:grid;gap:3px;color:#25565c;width:100%}.lib-item.selected{border-color:#6ba7a1;background:#eaf5f1;box-shadow:inset 4px 0 #0d7773}.lib-item strong{font-size:12px}.lib-item small{font-size:10px;color:#638078}.side-import{display:grid;gap:8px;margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.side-import label{cursor:pointer}.side-note{font-size:10px;color:#7a8583;line-height:1.85}.main-panel{padding:20px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2ece7;padding-bottom:15px;margin-bottom:20px}.tablist{display:flex;flex-wrap:wrap;gap:8px}.tablist button{border:1px solid #cfe1db;background:#f8faf9;border-radius:10px;color:#33646a;padding:9px 12px;font-size:12px;font-weight:800}.tablist button.active{background:#0b5b61;color:white;border-color:#0b5b61}#saveStatus{font-size:10px;color:#6a8980}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 19px;flex-wrap:wrap}.section-head h2{margin:0;font-size:23px;font-weight:800;line-height:1.5}.kicker{color:#2b8a81;font-size:11px;font-weight:800}.verified,.unit{font-size:10px;color:#567872;border:1px solid #d6e6e1;border-radius:20px;padding:5px 10px;background:#f4faf7}.summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.summary-stat{border:1px solid var(--border);background:var(--wash);border-radius:15px;padding:15px;min-width:0}.summary-stat small{color:var(--text);display:block;font-weight:600}.summary-stat strong{color:var(--ink);display:block;font-size:24px;line-height:1.6;font-weight:800}.summary-stat span{display:block;font-size:10px;color:#627876}.warnings:empty{display:none}.warnings{display:grid;gap:7px;margin-bottom:14px}.warn{background:#fff8ed;border:1px solid #ead8b3;border-radius:10px;padding:10px 12px;color:#795a2b}.visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.view-card{border:1px solid #d9e7e1;border-radius:16px;background:white;padding:16px;min-width:0}.view-card.wide{grid-column:1/-1}.view-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.view-title h3{margin:0;font-size:16px;line-height:1.5}.table-scroll{overflow:auto;border:1px solid #d8e9e3;border-radius:12px}.data-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;direction:rtl;min-width:550px}.data-table th{background:#0c5460;color:white;font-weight:800}.data-table th,.data-table td{border-bottom:1px solid #e4efeb;border-inline-start:1px solid #e4efeb;text-align:center;vertical-align:middle;padding:10px 8px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.data-table tr:last-child td{border-bottom:0}.data-table tr:nth-child(odd) td{background:#f7faf9}.data-table .subject-value{font-weight:800}.bar-row{display:grid;grid-template-columns:125px minmax(0,1fr) 50px;align-items:center;gap:10px;margin:14px 0;direction:rtl}.bar-row .name{font-weight:800;color:var(--c)}.bar-track{height:15px;background:#eaf1ef;border:1px solid #e2ebe8;border-radius:12px;overflow:hidden;direction:rtl}.bar-fill{height:100%;background:var(--c);border-radius:10px}.bar-row .num{direction:ltr;text-align:center;color:var(--c);font-weight:800}.legend{display:flex;gap:15px;flex-wrap:wrap;margin:7px 0 14px;color:#517179;font-size:10px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:5px}.subject-chart{margin:0 0 22px;padding:10px 14px;background:#f9fbfa;border-radius:14px}.subject-chart>h4{font-size:13px;margin:0 0 6px;color:var(--c)}.pass-tiles{display:grid;grid-template-columns:1fr;gap:9px}.pass-item{display:flex;align-items:center;gap:12px;padding:9px 11px;background:var(--wash);border:1px solid var(--border);border-radius:12px}.donut{--val:0;flex:0 0 56px;width:56px;height:56px;background:conic-gradient(var(--color) calc(var(--val)*1%),#e3eeea 0);border-radius:50%;display:grid;place-items:center}.donut::after{content:"";width:39px;height:39px;border-radius:50%;background:var(--wash);grid-area:1/1}.pass-item strong{color:var(--color);font-size:20px}.pass-item small{display:block;color:#5c7672}.priority-item{padding:10px 12px;border:1px solid #dae8e5;border-radius:10px;margin-bottom:8px;display:flex;justify-content:space-between;gap:8px;align-items:center}.priority-item strong{font-size:12px}.priority-item span{color:#9a6543;font-size:11px}.empty{padding:24px;text-align:center;border:1px dashed #d5e2df;border-radius:12px;background:#f8fbfa;color:#648079}.input-panel,.subject-editor,.plan-editor{border:1px solid #d4e6e0;border-radius:16px;padding:16px;background:#fbfdfc;margin-bottom:16px}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.fields label,.input-grid label,.plan-fields label{font-size:12px;color:#305d60;font-weight:800;display:flex;flex-direction:column;gap:5px;min-width:0}input,select,textarea{min-width:0;width:100%;background:white;border:1px solid #cadaD6;border-radius:9px;padding:9px 11px;direction:rtl;color:#173d44;outline:0}input:focus,textarea:focus,select:focus{border-color:#368e84;box-shadow:0 0 0 3px #c2e4dca8}input[type=number]{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:75px}.field-notice{border-inline-start:3px solid #a2c9b6;padding:10px;background:#f0f8f5;color:#416f6c;border-radius:8px;margin:15px 0;font-size:12px}.input-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.subject-editor{background:var(--soft);border-color:var(--border)}.subject-editor h3,.plan-editor h3{color:var(--color);margin:0;font-size:18px}.item-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.section-mini{margin:15px 0 7px;color:#38696a;font-weight:800}.domains-editor{display:grid;gap:8px}.domain-line{display:grid;grid-template-columns:2fr repeat(3,minmax(0,1fr)) 34px;gap:7px;align-items:center}.domain-line input{padding:6px;font-size:11px}.domain-line button{height:32px;border:1px solid #edd4d4;background:#fff6f6;color:#ab4c56;border-radius:7px}.plan-editor{background:var(--soft);border-color:var(--border)}.plan-editor h3{margin-bottom:12px}.plan-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.plan-fields label.wide{grid-column:1/-1}.exports{display:flex;gap:8px;flex-wrap:wrap}.preview{background:#e8efec;padding:16px;border-radius:14px;max-height:870px;overflow:auto}.report-page{width:794px;height:1123px;min-width:794px;max-height:1123px;position:relative;overflow:hidden;direction:rtl;background:#fff;box-shadow:0 8px 24px #23464a22;margin:0 auto 17px;box-sizing:border-box;font:400 12px/1.65 Cairo,Tahoma,sans-serif;color:#173d44}.report-head{position:absolute;inset:0 0 auto;height:132px;background:#0a3845}.report-head img{width:794px;height:132px;display:block}.report-main{position:absolute;top:151px;bottom:61px;left:38px;right:38px;overflow:hidden}.report-main h2{color:#0b4b56;font-size:21px;border-bottom:2px solid #d3e6dc;margin:0 0 12px;padding-bottom:7px}.report-main h3{font-size:15px;color:#0e6265}.report-subtitle{font-size:11px;color:#67837c}.report-table{direction:rtl;border-collapse:separate;border-spacing:0;border:1px solid #cfded7;border-radius:12px;overflow:hidden;width:100%;table-layout:fixed;margin:12px 0}.report-table th,.report-table td{text-align:center;vertical-align:middle;overflow-wrap:anywhere;padding:9px 8px;font-size:11px;border-bottom:1px solid #e4ede8;border-inline-start:1px solid #e2ece8}.report-table th{background:#0d5360;color:white}.report-table tr:last-child td{border-bottom:0}.report-table tr:nth-child(odd) td{background:#f5faf8}.report-table .r-subject{font-weight:800}.report-chart{margin:12px 0 18px}.report-mini-row{margin:10px 0}.report-boxes{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0}.report-box{border:1px solid var(--border);background:var(--wash);border-radius:12px;padding:12px;min-height:70px;text-align:center}.report-box strong{display:block;color:var(--color);font-size:16px}.report-box span{display:block;color:#607772}.report-note{background:#eff6f3;border:1px solid #d4e8dd;border-radius:10px;padding:10px 13px;font-size:11px;margin:12px 0}.report-plan{border:1px solid var(--border);overflow:hidden;border-radius:12px;margin:13px 0}.report-plan .plan-title{background:var(--color);color:#fff;text-align:center;padding:10px;font-size:13px;font-weight:800}.report-plan-row{display:grid;grid-template-columns:160px 1fr}.report-plan-row>div{padding:9px 11px;border-bottom:1px solid var(--border);text-align:center;overflow-wrap:anywhere}.report-plan-row>div:first-child{background:var(--wash);color:var(--color);font-weight:800;border-left:1px solid var(--border)}.report-foot{position:absolute;inset:auto 0 0;height:26px}.report-foot img{width:794px;height:26px;display:block}.report-page-num{position:absolute;bottom:30px;left:38px;direction:rtl;display:flex;gap:4px;font-size:11px;color:#427c66}.report-page-num b{direction:ltr}.report-small{font-size:10px;color:#647f78}.report-bars .bar-row{grid-template-columns:115px 1fr 45px;margin:10px 0}.toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:99;background:#0d4a57;color:#fff;border-radius:13px;padding:12px 20px;font-weight:800;display:none;box-shadow:0 12px 26px #16465755;max-width:92vw;text-align:center}.toast.visible{display:block}.toast.error{background:#8f3b45}#renderStage{position:fixed;left:-25000px;top:0;width:794px;z-index:-1;overflow:visible}.site-footer{text-align:center;background:#0a3845;color:#cbe1d9;padding:20px;margin-top:25px;font-size:11px}.tone-a{--color:#0d6265;--wash:#eaf5f1;--soft:#f7fbf9;--border:#c8e4da}.tone-b{--color:#886130;--wash:#fbf5e9;--soft:#fdfbf6;--border:#eadcc2}.tone-c{--color:#5a5d98;--wash:#f1f0fa;--soft:#faf9fe;--border:#dddbef}.tone-d{--color:#965461;--wash:#f9eff0;--soft:#fdf8f9;--border:#eed8de}.tone-e{--color:#2d6889;--wash:#eaf3f8;--soft:#f7fafc;--border:#cde0ea}
@media(max-width:1050px){.app-layout{grid-template-columns:220px minmax(0,1fr)}.fields{grid-template-columns:repeat(2,1fr)}.summary-stats{grid-template-columns:repeat(2,1fr)}.input-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:730px){.shell{width:calc(100% - 24px)}.hero{padding:23px 19px;border-radius:16px}.hero h1{font-size:23px}.hero-art{display:none}.app-layout{display:flex;flex-direction:column}.side{position:static;width:100%}.library{display:flex;overflow:auto;gap:8px}.lib-item{min-width:175px;width:auto}.main-panel{width:100%;padding:14px}.toolbar{flex-direction:column;align-items:stretch}.tablist{display:grid;grid-template-columns:repeat(2,1fr)}.tablist button{padding:7px 5px;font-size:10px}.visual-grid{grid-template-columns:1fr}.summary-stats{grid-template-columns:repeat(2,1fr)}.fields,.input-grid,.plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.domain-line{grid-template-columns:minmax(120px,2fr) repeat(3,minmax(54px,1fr)) 30px;gap:3px}.domain-line input{font-size:10px;padding:5px 2px}.section-head h2{font-size:19px}.preview .report-page{zoom:.43}.preview{padding:8px 0}.signature{font-size:12px}.ag{width:35px;height:35px;font-size:12px}.return{font-size:10px;padding:6px 8px}.bar-row{grid-template-columns:95px 1fr 45px}}@media(max-width:390px){.fields,.input-grid,.plan-fields{grid-template-columns:1fr}.preview .report-page{zoom:.36}}
@media print{@page{size:A4;margin:0}body{background:white}.topbar,.hero,.callout,.side,.toolbar,.side-import,.site-footer,.section-head{display:none!important}.main-panel,.workspace,.app-layout{width:100%!important;margin:0!important;padding:0!important;border:0!important;background:white!important;box-shadow:none!important}.tab-content:not(#report){display:none!important}#report{display:block!important}.preview{max-height:none!important;overflow:visible!important;background:white!important}.report-page{zoom:1!important;margin:0!important;box-shadow:none!important;break-after:page}.report-page:last-child{break-after:auto}}

/* Fixed-resolution report rendering, independent of mobile viewport and preview zoom. */
#renderStage .report-page{zoom:1!important;transform:none!important;box-shadow:none!important;margin:0!important;}
#renderStage .report-main{font-size:12px!important;}

.candidate-review{padding:16px;margin:18px 0;background:#fffaf0;border:1px solid #ead6b5;border-radius:14px}.candidate-review h3{margin:0 0 10px;color:#7b5b31;font-size:15px}.candidate-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 140px 75px;gap:9px;align-items:center;border-top:1px solid #e9dbc4;padding:8px 0}.candidate-row p{margin:0;font-size:10px;overflow-wrap:anywhere}.candidate-row small{color:#7c775f}.candidate-row button{padding:5px;border:1px solid #c4aa7f;background:#f8eedb;border-radius:8px;color:#715730;font-weight:800}.candidate-review select{padding:6px;font-size:11px}@media(max-width:730px){.candidate-row{grid-template-columns:1fr 1fr}.candidate-row p{grid-column:1/-1}}

/* V26: print-safe premium NAFES graphics, color coding and Arabic clarity. */
.report-page,.report-page *{font-family:Cairo,Tahoma,sans-serif;letter-spacing:0;font-synthesis:none;text-shadow:none}
.report-main h2,.report-main h3{direction:rtl;text-align:right;line-height:1.7}
.report-table{direction:rtl;table-layout:fixed;overflow:hidden;border-radius:11px;}
.report-table th,.report-table td{direction:rtl;text-align:center!important;vertical-align:middle!important;font-size:11px;line-height:1.65;word-break:normal;overflow-wrap:anywhere}
.report-comparison-cards{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}
.comparison-card{background:#fff;border:1.5px solid var(--subject);border-radius:13px;overflow:hidden;box-shadow:0 2px 8px #0a384508;break-inside:avoid}
.comparison-card-head{display:flex;align-items:center;gap:10px;min-height:33px;padding:5px 12px;background:var(--subject-wash);border-bottom:1px solid #dceae7;color:var(--subject);direction:rtl}
.comparison-card-head strong{font-size:13px;font-weight:800;flex:1;text-align:right}
.comparison-rank{display:grid;place-items:center;border-radius:7px;background:var(--subject);color:#fff;font:800 11px/1.8 Cairo,sans-serif;width:29px;height:22px}
.comparison-chip{font-size:9px;font-weight:700;background:#fff;border:1px solid #dce7e4;border-radius:7px;padding:2px 8px}
.comparison-card-body{padding:7px 12px 3px;display:grid;gap:4px}
.comparison-bar{display:grid;grid-template-columns:115px minmax(0,1fr) 60px;align-items:center;gap:9px;direction:rtl;min-height:18px}
.comparison-label{font-size:10px;color:#3d6165;text-align:right}
.comparison-track{position:relative;height:11px;background:#e9f0ed;border:1px solid #dee9e5;border-radius:15px;overflow:hidden;direction:rtl}
.comparison-track:before,.comparison-track:after{content:"";position:absolute;top:0;bottom:0;width:1px;background:#c4d7d0;z-index:2}
.comparison-track:before{right:25%}.comparison-track:after{right:50%}
.comparison-fill{height:100%;display:block;background:var(--bar-ink);border-radius:15px}
.comparison-bar b{font-size:10px;color:var(--bar-ink);text-align:center;font-weight:800}
.comparison-scale{direction:ltr;display:flex;justify-content:space-between;gap:5px;padding:2px 13px 6px;color:#76918b;font-size:8px}
.performance-chart{margin:9px 0 14px;border:1px solid #d7e5df;border-radius:11px;padding:10px 12px;background:#fbfdfc;break-inside:avoid}
.performance-title{display:flex;justify-content:space-between;color:#125a61;font-size:11px;font-weight:800;margin:0 0 8px}
.performance-title small{font-size:9px;color:#758e87}
.performance-track{height:18px;width:100%;display:flex;overflow:hidden;border-radius:11px;background:#e5ede9;border:2px solid #fff;box-shadow:0 0 0 1px #d5e5dc}
.performance-track>div{height:100%;flex:none;min-width:0}
.performance-legend{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:9px}
.performance-legend>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;text-align:center;font-size:9px;color:#3a5960}
.performance-legend i{height:9px;width:9px;flex:0 0 9px;border-radius:3px}
.performance-legend strong{font-weight:700;white-space:nowrap}
.performance-legend span{font-weight:800;font-size:9px}
#renderStage .report-comparison-cards,#renderStage .performance-chart{transform:none!important;zoom:1!important}

/* Keep pagination readable in the same visual order as the Word footer. */
.report-page-num{direction:ltr!important;unicode-bidi:isolate;justify-content:flex-start;align-items:center;gap:5px}
.report-page-num b{direction:ltr!important;unicode-bidi:isolate;font-weight:800}
.report-page-num span{direction:rtl;unicode-bidi:isolate}

/* V31 — NAFES report identity cards: label above the school / grade value. */
.report-page .report-identity-card{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:5px;min-height:80px;padding:11px 15px;direction:rtl;text-align:center;
}
.report-page .report-identity-card .report-identity-label{
 display:block;order:0;font:800 12px/1.5 Cairo,Tahoma,sans-serif;
 color:var(--color);width:100%;
}
.report-page .report-identity-card .report-identity-value{
 display:block;order:1;font:800 16px/1.65 Cairo,Tahoma,sans-serif;
 color:#173d44;overflow-wrap:anywhere;max-width:100%;
}

/* V39: numbers run in Arabic reading order, anchored bottom-left on every A4 report. */
.report-page .report-page-num{position:absolute!important;left:38px!important;right:auto!important;bottom:30px!important;direction:rtl!important;unicode-bidi:isolate!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;white-space:nowrap!important;color:#275d58!important;font:700 11px/17px Cairo,Tahoma,sans-serif!important}
.report-page .report-page-num b{direction:ltr!important;unicode-bidi:isolate!important;display:inline-block!important;font:inherit!important}
.report-page .report-page-num span{direction:rtl!important;unicode-bidi:isolate!important}
