@font-face{font-family:Cairo;font-weight:400;src:url(fonts/cairo-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:Cairo;font-weight:600;src:url(fonts/cairo-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:Cairo;font-weight:700;src:url(fonts/cairo-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:Cairo;font-weight:800;src:url(fonts/cairo-arabic-800-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:Cairo;font-weight:400 600;src:url(fonts/cairo-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Cairo;font-weight:700 800;src:url(fonts/cairo-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#1B1F3B;--mut:#6B7390;--brand:#4F46E5;--brand2:#7C3AED;--bg:#F1F3FB;--card:#fff;--line:#E4E7F2;--good:#10B981;--warn:#F59E0B;--bad:#EF4444}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{font-family:Cairo,system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;-webkit-print-color-adjust:exact;print-color-adjust:exact}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--brand)}
.hide{display:none!important}
/* ---------- الصفحة الرئيسية ---------- */
.hero{background:radial-gradient(900px 500px at 85% -10%,#7C3AED 0%,transparent 60%),radial-gradient(700px 500px at 0% 110%,#06B6D4 0%,transparent 55%),linear-gradient(135deg,#14104A 0%,#2B1FA8 55%,#4F46E5 100%);color:#fff;padding:28px 20px 64px;position:relative;overflow:hidden}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.06)}
.hero:before{width:360px;height:360px;left:-120px;top:40px}.hero:after{width:220px;height:220px;right:-60px;bottom:-60px}
.brandbar{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;max-width:1080px;margin:0 auto}
.logo{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#06B6D4,#7C3AED);display:grid;place-items:center;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.hero-in{max-width:1080px;margin:0 auto;position:relative;z-index:1}
.hero h1{font-size:clamp(28px,6vw,46px);line-height:1.25;margin:34px 0 10px;font-weight:800}
.hero h1 b{background:linear-gradient(90deg,#67E8F9,#FDE68A);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{font-size:clamp(15px,2.6vw,19px);opacity:.92;max-width:640px;margin:0 0 24px}
.drop{background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:2px dashed rgba(255,255,255,.55);border-radius:22px;padding:30px 20px;text-align:center;max-width:640px;transition:.2s;cursor:pointer;display:block}
.drop.over,.drop:hover{background:rgba(255,255,255,.18);border-color:#fff;transform:translateY(-2px)}
.drop .big{font-size:20px;font-weight:700}.drop small{opacity:.85;display:block;margin-top:4px}
.drop svg{margin-bottom:6px}
.btn{border:0;border-radius:12px;padding:10px 18px;font-weight:700;background:var(--brand);color:#fff;box-shadow:0 4px 14px rgba(79,70,229,.35);transition:.15s}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn.ghost{background:rgba(255,255,255,.16);box-shadow:none;border:1px solid rgba(255,255,255,.4)}
.btn.light{background:#fff;color:var(--brand);box-shadow:none;border:1px solid var(--line)}
.btn.sm{padding:6px 12px;font-size:13px;border-radius:10px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.feats{max-width:1080px;margin:-34px auto 0;padding:0 16px 40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;position:relative;z-index:2}
.feat{background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(27,31,59,.08);border:1px solid var(--line)}
.feat i{font-style:normal;font-size:26px;display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;margin-bottom:8px;background:linear-gradient(135deg,#EEF0FF,#F5EEFF)}
.feat h3{margin:0 0 4px;font-size:16px}.feat p{margin:0;color:var(--mut);font-size:13.5px}
.privacy{max-width:1080px;margin:0 auto;padding:0 16px 40px;color:var(--mut);font-size:13px;text-align:center}
/* ---------- التطبيق ---------- */
.top{position:sticky;top:0;z-index:20;background:linear-gradient(90deg,#14104A,#2B1FA8);color:#fff;padding:10px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.top .brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px}
.top .logo{width:32px;height:32px;border-radius:10px}
.fchip{background:rgba(255,255,255,.14);border-radius:999px;padding:3px 12px;font-size:13px;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top .sp{flex:1}
.top select{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:10px;padding:4px 8px;font-size:13px;max-width:44vw}
.top select option{color:#000}
.tabs{display:flex;gap:4px;background:#fff;border-bottom:1px solid var(--line);padding:6px 10px;position:sticky;top:52px;z-index:19;overflow-x:auto}
.tab{border:0;background:transparent;padding:8px 16px;border-radius:12px;font-weight:700;color:var(--mut);white-space:nowrap}
.tab.on{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;box-shadow:0 4px 12px rgba(79,70,229,.35)}
main{max-width:1240px;margin:0 auto;padding:14px 14px 90px}
.fbar{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.fbar label{font-size:12px;color:var(--mut);display:flex;flex-direction:column;gap:2px}
.fbar select,.fbar input{border:1px solid var(--line);border-radius:10px;padding:5px 8px;background:#fff;min-width:110px;max-width:170px;font-size:13px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#EEF0FF;color:var(--brand);border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:700;cursor:pointer}
.chip:after{content:"✕";font-size:10px}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.kpi{border-radius:18px;padding:14px 16px;color:#fff;position:relative;overflow:hidden;min-height:112px;box-shadow:0 8px 22px rgba(27,31,59,.16)}
.kpi:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.1);left:-30px;top:-40px}
.kpi .l{font-size:13px;opacity:.92;font-weight:600}.kpi .v{font-size:27px;font-weight:800;line-height:1.2;margin:2px 0}
.kpi .d{font-size:12.5px;font-weight:700;background:rgba(255,255,255,.2);border-radius:999px;padding:1px 9px;display:inline-block}
.kpi .sp{position:absolute;left:10px;bottom:8px}
.k0{background:linear-gradient(135deg,#4F46E5,#7C3AED)}.k1{background:linear-gradient(135deg,#0891B2,#06B6D4)}.k2{background:linear-gradient(135deg,#EA580C,#F59E0B)}.k3{background:linear-gradient(135deg,#DB2777,#EC4899)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 16px;box-shadow:0 4px 16px rgba(27,31,59,.05);min-width:0}
.s12{grid-column:span 12}.s7{grid-column:span 7}.s6{grid-column:span 6}.s5{grid-column:span 5}.s4{grid-column:span 4}.s8{grid-column:span 8}
.ch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.ch h3{margin:0;font-size:16px;font-weight:800;flex:1;min-width:140px}
.ch small{display:block;font-weight:400;color:var(--mut);font-size:12px}
.ctl{display:flex;gap:6px;flex-wrap:wrap}
.ctl select{border:1px solid var(--line);border-radius:9px;padding:3px 6px;background:#F8F9FE;font-size:12.5px;max-width:150px}
.hit{transition:opacity .15s}.hit:hover{opacity:.82}.clk{cursor:pointer}
.empty-chart{padding:30px;text-align:center;color:var(--mut);background:#F8F9FE;border-radius:12px}
#tip{position:fixed;z-index:99;background:#14104A;color:#fff;padding:6px 11px;border-radius:10px;font-size:13px;pointer-events:none;box-shadow:0 6px 20px rgba(0,0,0,.3);max-width:260px;transform:translate(-50%,-120%)}
table.dt{width:100%;border-collapse:collapse;font-size:13.5px}
.dt th{background:#F3F4FB;text-align:right;padding:8px 10px;font-weight:700;white-space:nowrap;cursor:pointer;position:sticky;top:0}
.dt td{padding:7px 10px;border-top:1px solid var(--line);white-space:nowrap}
.dt td.n{font-variant-numeric:tabular-nums}.dt .nul{color:#B7BCD0}
.tw{overflow:auto;max-height:560px;border:1px solid var(--line);border-radius:12px}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px}
.b-num{background:#E0E7FF;color:#4338CA}.b-cat{background:#CFFAFE;color:#0E7490}.b-date{background:#FEF3C7;color:#B45309}.b-text{background:#F1F5F9;color:#475569}.b-id{background:#F3E8FF;color:#7E22CE}
.profile{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-bottom:14px}
.pc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-size:12.5px}
.pc b{display:block;font-size:14px;margin-bottom:2px}.pc .bar{height:5px;background:#EEF0F8;border-radius:9px;margin-top:6px;overflow:hidden}.pc .bar i{display:block;height:100%;background:linear-gradient(90deg,#4F46E5,#06B6D4)}
.ins{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.in{border-radius:16px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-inline-start:6px solid var(--brand);display:flex;gap:12px}
.in.good{border-inline-start-color:var(--good)}.in.warn{border-inline-start-color:var(--warn)}.in.bad{border-inline-start-color:var(--bad)}
.in .ic{font-size:26px}.in h4{margin:0 0 2px;font-size:15px}.in p{margin:0;font-size:13.5px;color:#3A4163}
.sumbox{display:grid;grid-template-columns:240px 1fr;gap:14px;margin-bottom:14px}
.sumbox .card.dark{background:#fff;border-top:5px solid #4F46E5}
.acts li{margin:6px 0}
.ask{display:flex;gap:8px;margin-bottom:10px}
.ask input{flex:1;border:2px solid var(--line);border-radius:14px;padding:12px 14px;font-size:16px;background:#fff}
.ask input:focus{outline:0;border-color:var(--brand)}
.qchips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.qc{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;color:var(--brand)}
.ans{margin-bottom:12px}.ans .q{color:var(--mut);font-size:13px}.ans .t{font-size:16px;font-weight:700;margin:4px 0 8px}
.pager{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:10px;font-size:13px}
.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#14104A;color:#fff;padding:12px 18px;border-radius:14px;z-index:100;box-shadow:0 8px 28px rgba(0,0,0,.35);max-width:90vw;text-align:center}
.loading{position:fixed;inset:0;background:rgba(20,16,74,.72);z-index:98;display:grid;place-items:center;color:#fff;font-weight:700;font-size:18px;backdrop-filter:blur(3px)}
.spin{width:46px;height:46px;border:5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:sp 1s linear infinite;margin:0 auto 12px}
@keyframes sp{to{transform:rotate(360deg)}}
.rtool{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.rtool label{font-size:12px;color:var(--mut);display:flex;flex-direction:column;gap:2px}
.rtool input{border:1px solid var(--line);border-radius:10px;padding:6px 10px;min-width:180px}
.note{background:#FFFBEB;border:1px solid #FDE68A;color:#92400E;border-radius:12px;padding:8px 12px;font-size:13px;margin-bottom:12px}
/* ---------- التقرير (A4) ---------- */
.rwrap{display:flex;flex-direction:column;align-items:center;gap:16px}
.page{width:210mm;height:297mm;background:#fff;box-shadow:0 8px 32px rgba(27,31,59,.18);position:relative;overflow:hidden;padding:14mm 14mm 16mm;font-size:12.5px;break-after:page;page-break-after:always;display:flex;flex-direction:column}
.page:last-child{break-after:auto;page-break-after:auto}
.ph{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--brand);padding-bottom:6px;margin-bottom:12px;font-size:11.5px;color:var(--mut)}
.ph b{color:var(--brand);font-size:13px}
.pf{position:absolute;bottom:6mm;left:14mm;right:14mm;display:flex;justify-content:space-between;font-size:10.5px;color:var(--mut);border-top:1px solid var(--line);padding-top:4px}
.page h2{margin:0 0 10px;font-size:20px;font-weight:800;color:#14104A;display:flex;align-items:center;gap:8px}
.page h2 span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;font-size:15px}
.rcard{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:10px;break-inside:avoid}
.rcard h4{margin:0 0 4px;font-size:13.5px;color:#14104A}.rcard .cap{font-size:11.5px;color:var(--mut);margin-top:2px}
.rk{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.rk div{border-radius:12px;padding:8px 10px;color:#fff}.rk b{display:block;font-size:18px}.rk span{font-size:11px;opacity:.92}
.cover{padding:0;background:radial-gradient(600px 400px at 90% 0,#7C3AED,transparent 60%),radial-gradient(500px 400px at 0 100%,#06B6D4,transparent 55%),linear-gradient(150deg,#14104A,#2B1FA8 60%,#4F46E5);color:#fff}
.cover .in2{padding:22mm 18mm;display:flex;flex-direction:column;height:100%}
.cover h1{font-size:40px;line-height:1.3;margin:40mm 0 6mm;font-weight:800}
.cover .sub{font-size:17px;opacity:1;color:#E0E7FF;margin-top:4mm}.cover .meta{margin-top:10mm;font-size:13.5px;opacity:.95;line-height:2}
.cover .ck{margin-top:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cover .ck div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:14px;padding:10px 12px}.cover .ck b{font-size:22px;display:block}
.cover .ft{margin-top:10mm;font-size:12px;opacity:.8;display:flex;justify-content:space-between}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rp{font-size:13px;line-height:1.9;color:#2A3050}
.rins{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rins .in{padding:8px 10px;border-radius:10px}.rins .in .ic{font-size:18px}.rins h4{font-size:12.5px}.rins p{font-size:11.5px}
table.rt{width:100%;border-collapse:collapse;font-size:10.5px}
.rt th{background:#14104A;color:#fff;padding:5px 6px;text-align:right}.rt td{padding:4px 6px;border-bottom:1px solid var(--line)}.rt tr:nth-child(even) td{background:#F6F7FD}
@media (max-width:820px){
 .kpis{grid-template-columns:repeat(2,1fr)}
 .s7,.s6,.s5,.s4,.s8{grid-column:span 12}
 .sumbox{grid-template-columns:1fr}
 .tabs{position:fixed;bottom:0;top:auto;left:0;right:0;justify-content:space-around;border-top:1px solid var(--line);border-bottom:0;box-shadow:0 -6px 20px rgba(27,31,59,.1);padding:6px;z-index:30}
 .tab{padding:8px 10px;font-size:13px}
 .kpi .v{font-size:22px}
 .fchip{max-width:34vw}
}
@page{size:A4;margin:0}
@media print{
 html,body{background:#fff!important}
 .top,.tabs,.rtool,#tip,.toast,.loading,.fbar,.note{display:none!important}
 main{padding:0!important;max-width:none!important}
 #view>*:not(#report){display:none!important}
 .rwrap{display:block!important}
 .page{zoom:1!important;margin:0!important;box-shadow:none!important}
}

.ib{display:inline-grid;place-items:center;border-radius:12px;flex:none}
.in .ic{flex:none}.rins .in{gap:8px}
.feat i{background:linear-gradient(135deg,#EEF0FF,#F5EEFF)}

.ahead{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px 18px;margin-bottom:14px;box-shadow:0 8px 26px rgba(27,31,59,.07);border-top:5px solid var(--brand)}
.ah-top{display:flex;gap:12px;align-items:center}
.ah-ico{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#EEF0FF,#F5EEFF);display:grid;place-items:center;flex:none}
.ah-main{flex:1;min-width:0}.ah-k{font-size:12px;color:var(--mut);font-weight:700}
.ah-title{width:100%;border:0;border-bottom:2px dashed var(--line);font-size:clamp(18px,3.4vw,24px);font-weight:800;color:#14104A;padding:2px 0;background:transparent}
.ah-title:focus{outline:0;border-color:var(--brand)}
.ah-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0}
.ah-meta div{background:#F6F7FD;border-radius:12px;padding:8px 12px}.ah-meta span{display:block;font-size:11.5px;color:var(--mut);font-weight:700}.ah-meta b{font-size:14px;word-break:break-word}
.ah-cols>div{margin:6px 0}.rl{display:block;font-size:12px;font-weight:800;color:#3A4163;margin-bottom:4px}
.tg{display:inline-block;border-radius:9px;padding:3px 10px;margin:2px 3px 2px 0;font-size:13px;font-weight:700}
.tg em{font-style:normal;font-weight:600;font-size:11px;opacity:.75;margin-inline-start:4px}
.tn{background:#E0E7FF;color:#3730A3}.tc{background:#CFFAFE;color:#0E7490}.td{background:#FEF3C7;color:#92400E}
.ah-det{margin-top:8px}.ah-det summary{cursor:pointer;color:var(--brand);font-weight:700;font-size:13.5px;padding:4px 0}
.sec{font-size:15px;font-weight:800;color:#14104A;margin:18px 2px 10px;display:flex;align-items:center;gap:8px}
.sec:before{content:"";width:5px;height:20px;border-radius:4px;background:linear-gradient(180deg,#4F46E5,#06B6D4)}
.bdg{display:inline-block;font-size:11px;font-weight:800;color:#4F46E5;background:#EEF0FF;border-radius:999px;padding:1px 10px;margin-bottom:3px}
.ch h3{font-size:16.5px;line-height:1.4}
.sub{font-size:12px;color:#5A6283;margin-top:2px;line-height:1.55}
.foot{margin-top:8px;font-size:11.5px;color:#5A6283;background:#F6F7FD;border-radius:10px;padding:6px 10px}
.kpi .v small{font-size:13px;font-weight:700;opacity:.9;margin-inline-start:6px}
.kpi .kd{font-size:11.5px;opacity:.93;line-height:1.5;margin:2px 0 4px}
.kpi{min-height:150px}.kpi .d{font-size:12px}
.dt th em{font-style:normal;opacity:.7;font-weight:500}
@media (max-width:820px){.kpi{min-height:0}.ah-meta{grid-template-columns:1fr 1fr}}

#tip{white-space:pre-line}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bx{border-radius:12px;padding:8px 10px;font-size:11.5px;line-height:1.7}.bx h5{margin:0 0 3px;font-size:12.5px}.bx ul{margin:0;padding-inline-start:16px}
.bx.g{background:#ECFDF5;border:1px solid #A7F3D0}.bx.w{background:#FFFBEB;border:1px solid #FDE68A}.bx.b{background:#EEF2FF;border:1px solid #C7D2FE}
@media (max-width:820px){.card .three{grid-template-columns:1fr}}
.page .three .bx{font-size:10.8px}
.scope{margin-top:10mm;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.3);border-radius:16px;padding:12px 16px;font-size:13px;line-height:1.9}
.sc-t{font-weight:800;font-size:15px;margin-bottom:4px}.sc-p{margin-bottom:6px;opacity:.97}.sc-r{opacity:.95}
.cover h1{font-size:34px}
textarea.ah-title{resize:none;width:100%;font-family:inherit;line-height:1.5;overflow:hidden;background:transparent}
@media(min-width:820px){textarea.ah-title{height:auto}}

.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-bottom:14px}
.fc{background:#fff;border-radius:18px;padding:14px 16px;box-shadow:0 6px 18px rgba(27,31,59,.08);border-top:4px solid #4F46E5;display:flex;flex-direction:column;gap:4px}
.fc .fv{font-size:26px;font-weight:800;color:#1B1F3B}.fc .ft2{font-weight:700;color:#4F46E5;font-size:14px}.fc .fd{font-size:12.5px;font-weight:700;color:#6B7390}.fc .fd.up{color:#059669}.fc .fd.dn{color:#DC2626}
.fc .fq{font-size:12px;color:#5A6283;line-height:1.7;margin-top:2px}
.sl{margin:0;padding-inline-start:20px;line-height:2;font-size:14px}
.hl>div,.tr2{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #EEF0F8;flex-wrap:wrap}.hl span,.tr2 span{display:block;font-size:12px;color:#6B7390}
.kpi.kg,.kpi.kw,.kpi.kr{color:#fff}

@media print{.fgrid{grid-template-columns:repeat(3,1fr);gap:8px}.fc{padding:8px 10px;box-shadow:none;border:1px solid #E4E7F2;border-top:3px solid #4F46E5}.fc .fv{font-size:18px}.fc .fq{font-size:9.5px;line-height:1.5}}
.page .fgrid{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}.page .fc{padding:8px 10px;box-shadow:none;border:1px solid #E4E7F2;border-top:3px solid #4F46E5}.page .fc .fv{font-size:18px}.page .fc .fq{font-size:9.5px;line-height:1.5}.page .fc .ft2{font-size:11.5px}
/* ---------- فهم الأعمدة والتشخيص ---------- */
.rolegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px;margin-bottom:14px}
.rc2{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.rch{display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0}
.rch b{font-size:14px;color:#14104A;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc2 select{border:1px solid var(--line);border-radius:10px;padding:6px 8px;background:#F8F9FE;font-weight:700;font-size:13px;width:100%}
.rw{font-size:11.5px;color:var(--mut)}
.rs{font-size:11.5px;color:#3B4266;background:#F6F7FD;border-radius:8px;padding:4px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.b-pct{background:#FCE7F3;color:#9D174D}.b-cur{background:#DCFCE7;color:#166534}.b-note{background:#F1F5F9;color:#475569}
.dggrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 4px}
.dgt{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column}
.dgt b{font-size:20px;color:#14104A;line-height:1.3}.dgt span{font-size:12px;color:var(--mut);font-weight:700}.dgt i{font-size:11px;color:#5A6283;font-style:normal}
.dgc{margin-bottom:12px}
.dgt2 td,.dgt2 th{font-size:12px;padding:5px 7px}
@media(max-width:640px){.dggrid{grid-template-columns:repeat(2,1fr)}.rolegrid{grid-template-columns:1fr}}
.dgrlist{display:flex;flex-direction:column;gap:8px;max-height:none}
.dgr{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:#FCFCFF}
.dgrh{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#14104A;margin-bottom:5px}
.dgrh b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dpairs{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.dpairs span{display:flex;flex-direction:column;min-width:0}
.dpairs i{font-style:normal;font-size:10.5px;color:var(--mut)}
.dpairs b{font-size:12px;font-weight:700;color:#22284A;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:480px){.dpairs{grid-template-columns:1fr}}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips .chip{cursor:default}
.chips .chip:after{content:none}
/* ===== v10: Power BI style ===== */
body{background:#EEF1F8}
.pbhead{background:linear-gradient(120deg,#14104A,#2B1FA8 60%,#4F46E5);color:#fff;border-radius:20px;padding:14px 16px;margin-bottom:12px;box-shadow:0 10px 28px rgba(43,31,168,.25)}
.pb-row{display:flex;gap:12px;align-items:center}
.pbhead .ah-ico{background:rgba(255,255,255,.16);color:#fff;flex:none}
textarea.pb-title{flex:1;background:transparent;border:0;color:#fff;font:800 20px/1.35 inherit;font-family:inherit;resize:none;outline:none;padding:0;min-height:30px;overflow:hidden}
textarea.pb-title::placeholder{color:rgba(255,255,255,.6)}
.pb-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pc{background:rgba(255,255,255,.14);border-radius:999px;padding:3px 11px;font-size:12px;font-weight:600}
.pbhead .ah-det{margin-top:8px;color:#1B1F3B}.pbhead .ah-det summary{color:#C7D2FE;cursor:pointer;font-size:13px}
.pbhead .ah-det[open]{background:#fff;border-radius:12px;padding:8px}.pbhead .ah-det[open] summary{color:#4F46E5}
.fbar{position:sticky;top:50px;z-index:12;overflow-x:auto;flex-wrap:nowrap;box-shadow:0 4px 14px rgba(27,31,59,.08)}
.fbar label{flex:none}
.kpis{gap:12px}
.kpi:not(.kg):not(.kw):not(.kr){background:#fff!important;color:var(--ink);border:1px solid var(--line);border-top:5px solid #4F46E5;box-shadow:0 4px 16px rgba(27,31,59,.06)}
.kpi.k1:not(.kg):not(.kw):not(.kr){border-top-color:#06B6D4}.kpi.k2:not(.kg):not(.kw):not(.kr){border-top-color:#F59E0B}.kpi.k3:not(.kg):not(.kw):not(.kr){border-top-color:#EC4899}
.kpi:not(.kg):not(.kw):not(.kr):after{display:none}
.kpi:not(.kg):not(.kw):not(.kr) .l{color:var(--mut);opacity:1}
.kpi:not(.kg):not(.kw):not(.kr) .v{color:#14104A;font-size:30px}
.kpi:not(.kg):not(.kw):not(.kr) .kd{color:var(--mut);opacity:1}
.kpi:not(.kg):not(.kw):not(.kr) .d{background:#ECFDF5;color:#047857}
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.sc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;gap:10px;align-items:flex-start;box-shadow:0 4px 14px rgba(27,31,59,.05)}
.sc h4{margin:0 0 3px;font-size:14px;color:#14104A}.sc p{margin:0;font-size:12.5px;line-height:1.7;color:#3C4466}
.sc.good{border-right:4px solid #10B981}.sc.warn{border-right:4px solid #F59E0B}.sc.bad{border-right:4px solid #EF4444}.sc.info{border-right:4px solid #4F46E5}
.adv{margin:18px 0 90px}.adv summary{cursor:pointer;font-weight:800;color:#4F46E5;background:#fff;border:1px dashed #C7D2FE;border-radius:14px;padding:12px 16px;list-style:none}
.rank td.rk{width:26px;color:var(--mut)}.rank td.num{white-space:nowrap;font-weight:700}.rank td.bc{width:30%}.rank td.bc i{display:block;height:9px;border-radius:6px;background:linear-gradient(90deg,#4F46E5,#06B6D4)}
.rank tr.tot td{border-top:2px solid var(--line);background:#F7F8FD}
@media(max-width:820px){.strip{grid-template-columns:1fr}.fbar{top:46px}}
@media(min-width:1000px){main#view{max-width:1240px;margin-inline:auto}}

.dnwrap{display:flex;flex-direction:column;align-items:center}.dnwrap svg{max-width:260px}
.dleg{width:100%;margin-top:6px;display:grid;gap:6px}.dleg div{display:flex;align-items:center;gap:8px;font-size:14px}.dleg i{width:12px;height:12px;border-radius:50%;flex:none}.dleg span{flex:1;font-weight:600}.dleg b{color:#14104A}
textarea.pb-title{overflow:visible}
.dnwrap svg{overflow:hidden;width:100%;height:auto}

/* ===== THEME A: ليل وذهب ===== */
body.th-a{--bg:#0B100E;--card:#131B18;--line:#25322C;--ink:#F4EFE0;--mut:#A3B4AB;--brand:#D6A84F;--brand2:#2FBF8F;background:#0B100E!important;color:#F4EFE0}
body.th-a .top{background:#070B0A;border-bottom:1px solid #3A3220}
body.th-a .top .brand{color:#E9C77B}
body.th-a .tabs{background:#0F1613;border-color:#25322C}
body.th-a .tab{color:#A3B4AB}body.th-a .tab.on{background:linear-gradient(135deg,#D6A84F,#B98A2E)!important;color:#1A1405!important}
body.th-a .pbhead,body.th-a .ahead{background:linear-gradient(135deg,#17241F,#0E1613 70%);border:1px solid #4A3E1F;border-top:3px solid #D6A84F;color:#F4EFE0;box-shadow:0 14px 34px rgba(0,0,0,.45)}
body.th-a textarea.pb-title{color:#F8E9BF}
body.th-a .pc{background:rgba(214,168,79,.12);border:1px solid rgba(214,168,79,.35);color:#E9D8A6}
body.th-a .pbhead .ah-ico{background:rgba(214,168,79,.16);color:#D6A84F}
body.th-a .fbar{background:#101713;border-color:#25322C}
body.th-a .fbar label{color:#A3B4AB}
body.th-a select,body.th-a input,body.th-a textarea{background:#0B100E!important;color:#F4EFE0!important;border-color:#33433B!important}
body.th-a .sec{color:#E9C77B}body.th-a .sec:before{background:linear-gradient(180deg,#D6A84F,#2FBF8F)}
body.th-a .card,body.th-a .sc,body.th-a .kpi:not(.kg):not(.kw):not(.kr){background:linear-gradient(160deg,#161F1B,#111815)!important;border:1px solid #25322C;color:#F4EFE0;box-shadow:0 10px 26px rgba(0,0,0,.35)}
body.th-a .kpi:not(.kg):not(.kw):not(.kr){border-top:3px solid #D6A84F}
body.th-a .kpi.k1:not(.kg):not(.kw):not(.kr){border-top-color:#2FBF8F}body.th-a .kpi.k2:not(.kg):not(.kw):not(.kr){border-top-color:#C8794A}body.th-a .kpi.k3:not(.kg):not(.kw):not(.kr){border-top-color:#E9D8A6}
body.th-a .kpi:not(.kg):not(.kw):not(.kr) .v{color:#F6DFA0}
body.th-a .kpi:not(.kg):not(.kw):not(.kr) .d{background:rgba(47,191,143,.15);color:#6FE3B8}
body.th-a .card h3,body.th-a .sc h4{color:#F4EFE0}body.th-a .sc p,body.th-a .card .sub,body.th-a .foot,body.th-a .rp{color:#B6C4BC}
body.th-a .bdg{background:rgba(214,168,79,.14);color:#E9C77B}
body.th-a .adv summary{background:#101713;border-color:#4A3E1F;color:#E9C77B}
body.th-a .dt th{background:#0F1613;color:#E9C77B;border-color:#25322C}body.th-a .dt td{color:#E8E3D3;border-color:#1F2B26}
body.th-a table.dt{background:transparent}
body.th-a .rank tr.tot td{background:#0F1613}body.th-a .rank td.bc i{background:linear-gradient(90deg,#D6A84F,#2FBF8F)}
body.th-a .note,body.th-a .chip{background:#17211C;color:#E9D8A6;border-color:#33433B}
body.th-a .btn.light{background:#1A2520;color:#E9D8A6}
body.th-a .dleg b{color:#F6DFA0}
body.th-a details.ah-det[open]{background:#101713}body.th-a .pbhead .ah-det[open] summary{color:#E9C77B}
body.th-a .empty-chart{color:#A3B4AB}

/* ===== THEME B: ورق وزيتون ===== */
body.th-b{--bg:#F6F1E7;--card:#FFFDF8;--line:#E4D9C3;--ink:#1F2A24;--mut:#7C7566;--brand:#1F4D3A;--brand2:#C4572F;background:#F6F1E7!important}
body.th-b .top{background:#1F4D3A;border-bottom:3px solid #B8893B}
body.th-b .tabs{background:#FFFDF8;border-color:#E4D9C3}
body.th-b .tab{color:#6B6455}body.th-b .tab.on{background:#1F4D3A!important;color:#FFF7E3!important}
body.th-b .pbhead,body.th-b .ahead{background:#1F4D3A;border-radius:10px;border-top:0;border-bottom:4px solid #B8893B;box-shadow:0 10px 24px rgba(31,77,58,.22);color:#FFF7E3}
body.th-b textarea.pb-title{color:#FFF7E3;font-size:22px}
body.th-b .pc{background:rgba(255,247,227,.12);border-radius:6px;color:#F3E6C4}
body.th-b .pbhead .ah-ico{background:rgba(184,137,59,.28);color:#F3D894;border-radius:8px}
body.th-b .fbar{border-radius:10px;background:#FFFDF8;border-color:#E4D9C3}
body.th-b .sec{color:#1F4D3A;font-size:17px}body.th-b .sec:before{background:#C4572F;width:4px;border-radius:0}
body.th-b .card,body.th-b .sc{border-radius:10px;background:#FFFDF8;border:1px solid #E4D9C3;box-shadow:0 2px 0 #E4D9C3}
body.th-b .kpi:not(.kg):not(.kw):not(.kr){border-radius:10px;border:1px solid #E4D9C3;border-top:0;border-bottom:4px solid #1F4D3A;box-shadow:0 2px 0 #E4D9C3}
body.th-b .kpi.k1:not(.kg):not(.kw):not(.kr){border-bottom-color:#C4572F}body.th-b .kpi.k2:not(.kg):not(.kw):not(.kr){border-bottom-color:#B8893B}body.th-b .kpi.k3:not(.kg):not(.kw):not(.kr){border-bottom-color:#5E8C7B}
body.th-b .kpi:not(.kg):not(.kw):not(.kr) .v{color:#1F4D3A;font-size:32px}
body.th-b .kpi:not(.kg):not(.kw):not(.kr) .d{background:#EAF1EC;color:#1F4D3A}
body.th-b .card h3,body.th-b .sc h4{color:#1F2A24}
body.th-b .bdg{background:#F3E6C4;color:#7A5A1E;border-radius:4px}
body.th-b .adv summary{border-radius:10px;color:#1F4D3A;border-color:#B8893B;background:#FFFDF8}
body.th-b .dt th{background:#F3EBD9;color:#1F4D3A}
body.th-b .rank td.bc i{background:linear-gradient(90deg,#1F4D3A,#5E8C7B)}
body.th-b .btn{background:#C4572F;box-shadow:none}body.th-b .top .btn{background:#B8893B!important}
body.th-b select,body.th-b input{border-radius:8px;border-color:#D9CDB3}
body.th-b .sc.good{border-right-color:#1F4D3A}body.th-b .sc.warn{border-right-color:#B8893B}body.th-b .sc.bad{border-right-color:#C4572F}body.th-b .sc.info{border-right-color:#5E8C7B}
body.th-a textarea.pb-title,body.th-b textarea.pb-title{background:transparent!important;border:0!important;color:inherit}
body.th-a textarea.pb-title{color:#F8E9BF!important}body.th-b textarea.pb-title{color:#FFF7E3!important}
body.th-a .logo{background:linear-gradient(135deg,#D6A84F,#8C6A1F)}body.th-b .logo{background:linear-gradient(135deg,#B8893B,#7A5A1E)}
body.th-a .pbhead .ah-ico svg,body.th-b .pbhead .ah-ico svg{color:inherit}
/* theme extras */
body.th-a .hero{background:radial-gradient(800px 460px at 85% -10%,rgba(214,168,79,.28) 0%,transparent 60%),radial-gradient(600px 420px at 0% 110%,rgba(47,191,143,.22) 0%,transparent 55%),linear-gradient(160deg,#0B100E 0%,#121C18 60%,#1A2A22 100%)}
body.th-a .hero h1 b{background:linear-gradient(90deg,#F6DFA0,#D6A84F);-webkit-background-clip:text;background-clip:text;color:transparent}
body.th-a .drop{border-color:rgba(214,168,79,.6);background:rgba(214,168,79,.07)}
body.th-a .drop svg{stroke:#D6A84F}
body.th-a .btn.ghost{border-color:rgba(214,168,79,.5);color:#E9D8A6;background:rgba(214,168,79,.08)}
body.th-a .feat{background:#131B18;border-color:#25322C;box-shadow:0 10px 26px rgba(0,0,0,.4)}
body.th-a .feat i{background:rgba(214,168,79,.14);color:#D6A84F}body.th-a .feat h3{color:#F4EFE0}body.th-a .feat p,body.th-a .privacy{color:#A3B4AB}
body.th-a .foot{background:#0F1613;color:#A3B4AB;border:1px solid #1F2B26}
body.th-a .ib svg{color:#0B100E}
body.th-b .hero{background:radial-gradient(700px 420px at 90% -10%,rgba(184,137,59,.4) 0%,transparent 60%),linear-gradient(160deg,#17382B 0%,#1F4D3A 70%,#2B6049 100%)}
body.th-b .hero h1 b{background:linear-gradient(90deg,#F3D894,#E9B968);-webkit-background-clip:text;background-clip:text;color:transparent}
body.th-b .drop{border-color:rgba(243,216,148,.7)}
body.th-b .feat{border-radius:10px;background:#FFFDF8;border-color:#E4D9C3;box-shadow:0 2px 0 #E4D9C3}
body.th-b .feat i{background:#F3E6C4;color:#1F4D3A;border-radius:8px}
body.th-b .foot{background:#F3EBD9;color:#6B6455}
body.th-b .btn.ghost{background:rgba(255,247,227,.12);border-color:rgba(243,216,148,.6)}
body.th-a .feat i svg,body.th-a .feat i svg *{stroke:#D6A84F;color:#D6A84F}body.th-b .feat i svg,body.th-b .feat i svg *{stroke:#1F4D3A;color:#1F4D3A}
/* ===== final: B everywhere ===== */
.fbar{flex-wrap:wrap!important;overflow:visible!important}
.fbar input[type=date]{min-width:0!important;width:150px;max-width:100%}
@media(max-width:820px){.fbar{position:static!important}.fbar label{flex:1 1 140px}.fbar select,.fbar input{width:100%;max-width:none!important}}
body.th-b .page h2{color:#1F4D3A}
body.th-b .page h2 span{background:#1F4D3A;border-radius:6px}
body.th-b .ph{border-bottom-color:#B8893B}body.th-b .ph b{color:#1F4D3A}
body.th-b .cover{background:radial-gradient(600px 400px at 90% 0,rgba(184,137,59,.45),transparent 60%),linear-gradient(155deg,#12301F,#1F4D3A 65%,#2B6049);color:#FFF7E3}
body.th-b .cover .sub{color:#F3E6C4}
body.th-b .cover .ck div{background:rgba(255,247,227,.1);border-color:rgba(243,216,148,.45);border-radius:8px}
body.th-b .fc,body.th-b .page .fc{border-top-color:#1F4D3A;border-radius:8px}
body.th-b .fc .ft2{color:#1F4D3A}
body.th-b .page{background:#FFFDF8}
body.th-b .ah-ico{background:#F3E6C4;border-radius:8px}
body.th-b .k0{background:#1F4D3A}body.th-b .k1{background:#C4572F}body.th-b .k2{background:#B8893B}body.th-b .k3{background:#5E8C7B}
body.th-b .rcard{border-color:#E4D9C3}
body.th-b .three .bx.b{background:#F1EFE6}
@media print{body.th-b{background:#fff!important}}
body.th-b .sumbox .card.dark{border-top:5px solid #B8893B}
body.th-b .ah-ico svg,body.th-b .ah-ico svg *{stroke:#1F4D3A;color:#1F4D3A}body.th-b .pbhead .ah-ico svg,body.th-b .pbhead .ah-ico svg *{stroke:#F3D894;color:#F3D894}
body.th-b .tg{background:#F3EBD9;color:#1F4D3A}body.th-b .chip{background:#F3EBD9;color:#1F4D3A}
body.th-b .sc .ib,body.th-b .in .ib{border-radius:8px}

body.th-b .page.cover{background:radial-gradient(600px 400px at 90% 0,rgba(184,137,59,.45),transparent 60%),linear-gradient(155deg,#12301F,#1F4D3A 65%,#2B6049);color:#FFF7E3}
