@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/static/fonts/ibm-plex-sans-arabic-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/static/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/static/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/static/fonts/ibm-plex-sans-arabic-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{--g:#0d6b55;--g2:#0a5544;--g3:#e8f3ef;--ink:#1d2a26;--mut:#5c6b66;--line:#dfe8e4;--bg:#f6f8f7;--bad:#b42318;--warn:#b54708}
*{box-sizing:border-box}body{margin:0;font-family:"IBM Plex Sans Arabic",system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.7;font-size:16px}
a{color:var(--g)}header{background:#fff;border-bottom:1px solid var(--line)}
.bar{max-width:1100px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.mark{width:38px;height:38px;border-radius:50%;background:var(--g);color:#fff;display:grid;place-items:center;font-weight:700}
.brand b{color:var(--g);display:block;line-height:1.2}.brand small{color:var(--mut);font-size:12px}
nav{display:flex;gap:6px;flex-wrap:wrap;align-items:center}nav a,nav button{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink);font-size:14.5px;background:none;border:0;font-family:inherit;cursor:pointer}nav a:hover,nav button:hover{background:var(--g3)}
main{max-width:1100px;margin:0 auto;padding:22px 16px 60px}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:16px}
h1{font-size:24px;margin:0 0 14px}h2{font-size:19px;margin:0 0 12px}
.btn{display:inline-block;background:var(--g);color:#fff;border:0;border-radius:10px;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;min-height:44px}
.btn:hover{background:var(--g2)}.btn.ghost{background:#fff;color:var(--g);border:1.5px solid var(--g)}.btn.bad{background:var(--bad)}.btn.sm{padding:6px 12px;min-height:34px;font-size:14px}
label{display:block;font-weight:600;font-size:14.5px;margin:12px 0 4px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #c9d6d1;border-radius:10px;font:inherit;background:#fff}
textarea{min-height:90px}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px}.ok{background:#e8f6ee;color:#05603a}.err{background:#fef3f2;color:var(--bad)}.warn{background:#fffaeb;color:var(--warn)}
table{width:100%;border-collapse:collapse;font-size:14.5px}th,td{padding:9px 8px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}th{color:var(--mut);font-weight:600;background:#fafcfb}
.tw{overflow-x:auto}.pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;background:var(--g3);color:var(--g)}.pill.bad{background:#fef3f2;color:var(--bad)}.pill.warn{background:#fffaeb;color:var(--warn)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px}.stat b{display:block;font-size:26px;color:var(--g)}.stat span{color:var(--mut);font-size:14px}
.actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.actions a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:64px;background:#fff;border:1.5px solid var(--g);border-radius:12px;color:var(--g);font-weight:600;text-decoration:none;padding:10px}.actions a.off{border-color:var(--line);color:var(--mut);pointer-events:none}
.muted{color:var(--mut);font-size:14px}.auth{max-width:440px;margin:30px auto}.qr svg{width:200px;height:200px}code{direction:ltr;unicode-bidi:isolate;background:#f1f4f3;padding:1px 6px;border-radius:6px}
.inline{display:inline}.ltr{direction:ltr;unicode-bidi:isolate}details{margin:6px 0}summary{cursor:pointer;font-weight:600}
/* المرحلة 2 */
.head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:8px}.head h1{margin-bottom:4px}
.search{display:flex;gap:8px;margin-bottom:14px}.search input{flex:1}
.list{display:flex;flex-direction:column;gap:8px}.item{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;text-decoration:none;color:var(--ink);flex-wrap:wrap}
a.item:hover{border-color:var(--g)}.item small{display:block;color:var(--mut);font-size:13.5px}.item form{margin:0}
.btn.big{width:100%;min-height:56px;font-size:18px}label.check{display:flex;gap:8px;align-items:center;font-weight:500}label.check input{width:auto}
.kv th{width:34%;white-space:nowrap}.pre{white-space:pre-wrap}.note{border-right:3px solid var(--g3);padding:4px 10px;margin-bottom:8px}.note p{margin:2px 0}
details summary{cursor:pointer;color:var(--g);font-weight:600;margin:10px 0}.admin-box{border-color:#f0d9a8;background:#fffdf7}
.filters .row{align-items:end}input[type=file]{padding:8px}
@media print{header,.noprint,form,details{display:none!important}body{background:#fff}.card{border:1px solid #ccc;break-inside:avoid}main{padding:0}}
.u-end{align-self:end}.u-doc{white-space:pre-line;border:1px solid var(--line);border-radius:10px;padding:14px;max-height:55vh;overflow:auto}.u-auto{width:auto!important}.u-tall{min-height:360px}.u-mt30{margin-top:30px}.u-mt10{margin-top:10px}.u-mt18{margin-top:18px}.u-mt12{margin-top:12px}.u-full{width:100%}.u-center{text-align:center}.u-pl{white-space:pre-line}.u-flex{display:flex;gap:6px;flex-wrap:wrap}.u-break{word-break:break-all}
/* المرحلة 3 */
.q{padding:14px}.qt{margin:0 0 10px}.seg{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.opt{margin:0;font-weight:500}.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt span{display:flex;align-items:center;justify-content:center;min-height:46px;border:1.5px solid var(--line);border-radius:10px;text-align:center;font-size:14.5px;cursor:pointer;background:#fff}
.opt input:checked+span{color:#fff;border-color:transparent}.o-yes input:checked+span{background:var(--g)}.o-no input:checked+span{background:var(--bad)}.o-unknown input:checked+span{background:var(--warn)}.o-na input:checked+span{background:#667085}
.opt input:focus-visible+span{outline:3px solid #9fd3c3}
.result{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.ring{width:130px;height:130px;flex:none}.ring-bg{fill:none;stroke:#eef2f0;stroke-width:12}.ring-fg{fill:none;stroke-width:12;stroke-linecap:round}
.ring-n{font-size:26px;font-weight:700;fill:var(--ink)}.ring-l{font-size:12px;fill:var(--mut)}.r-low .ring-fg{stroke:var(--g)}.r-medium .ring-fg{stroke:#d4a017}.r-high .ring-fg{stroke:#e0611f}.r-critical .ring-fg{stroke:var(--bad)}
.pill.risk-low{background:var(--g3);color:var(--g)}.pill.risk-medium{background:#fffaeb;color:var(--warn)}.pill.risk-high{background:#fff1e8;color:#c4320a}.pill.risk-critical{background:#fef3f2;color:var(--bad)}
.prio{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#fff;font-size:14px}.p-A{background:var(--bad)}.p-B{background:#d4a017}.p-C{background:var(--g)}
.findings li{margin-bottom:8px}.share .qr svg{width:220px;height:220px;background:#fff}.inline{display:inline-block;margin:0 0 6px}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{margin:0;font-weight:500}.chip input{position:absolute;opacity:0;width:1px}.chip span{display:inline-block;padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;cursor:pointer}.chip input:checked+span{background:var(--g);color:#fff;border-color:var(--g)}
.client-head h1{margin:2px 0}
a bdi,bdi{white-space:nowrap}
/* المرحلة 4 */
.qrow{display:grid;grid-template-columns:1fr 90px 70px 110px;gap:6px;margin-bottom:8px;align-items:center}.qrow .lt{grid-column:1/-1;font-size:13px;text-align:left;margin-top:-4px}
@media(min-width:760px){.qrow{grid-template-columns:1fr 100px 80px 120px 100px}.qrow .lt{grid-column:auto;margin:0}}
.totals{max-width:360px;margin:12px 0 0 auto}.totals th{background:none;font-weight:500}.totals td{text-align:left;direction:ltr}.totals .grand th,.totals .grand td{font-weight:700;color:var(--g);font-size:17px;border-top:2px solid var(--g)}
.steps,.pipeline{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 14px}.step,.ps{font-size:12.5px;padding:4px 10px;border-radius:999px;background:#eef2f0;color:var(--mut)}.step.done,.ps.done{background:var(--g3);color:var(--g)}.ps.cur{background:var(--g);color:#fff}.ps.lost{background:#fef3f2;color:var(--bad)}
.qrow{grid-template-columns:repeat(3,1fr);border-bottom:1px dashed var(--line);padding-bottom:8px}.qrow [name=desc]{grid-column:1/-1}
@media(min-width:760px){.qrow{grid-template-columns:1fr 100px 80px 120px 100px;border:0;padding:0}.qrow [name=desc]{grid-column:auto}}
.tw table{min-width:560px}
/* المرحلة 5 */
.more{position:relative}.more summary{list-style:none;padding:8px 12px;border-radius:8px;cursor:pointer;color:var(--ink);font-weight:500;margin:0;font-size:14.5px}.more summary::-webkit-details-marker{display:none}.more summary:hover,.more[open] summary{background:var(--g3)}
.more .menu{position:absolute;left:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:6px;min-width:210px;z-index:1000;display:flex;flex-direction:column}
.more .menu a,.more .menu button{display:block;text-align:right;padding:10px 12px;border-radius:8px;width:100%}.more .menu form{margin:0}
.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--bad);color:#fff;font-size:12px}
#map{height:62vh;min-height:380px;border-radius:14px;border:1px solid var(--line);z-index:0}
.legend{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px;font-size:13.5px}.lg::before{content:"";display:inline-block;width:11px;height:11px;border-radius:50%;margin-left:5px;vertical-align:-1px}
.lg.contract::before{background:#0d6b55}.lg.opp::before{background:#d4a017}.lg.visited::before{background:#2e90fa}.lg.new::before{background:#98a2b3}.lg.vis::before{background:#1d2a26;width:7px;height:7px}.lg.far::before{background:#b42318;width:7px;height:7px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.bars rect{fill:var(--g)}.bars .bv{font-size:12px;fill:var(--ink)}.bars .bl{font-size:11px;fill:var(--mut)}
meter{width:120px;height:12px}.fbar meter{width:100%}
.more .menu{left:auto;right:0;max-width:calc(100vw - 24px)}.fbar{min-width:90px;width:40%}
