
/* Dokkan ERP — shared look for the design proposal.
   Continues the Dokkan-blue identity the owner approved (Finance D120/D124):
   navy band on top of each screen, the number beside its name in a compact box,
   notes under the numbers, type floor 13 px, body 15 px, capped reading measure. */
:root{
  --paper:#f2f4f7; --surface:#ffffff; --sunk:#f6f8fa; --ink:#0f1a28; --muted:#526072; --faint:#667385;
  --rule:#dbe1e9; --rule-soft:#e9edf2;
  --accent:#005bab; --accent-hover:#004a8c; --accent-ink:#ffffff; --accent-soft:#e3edf9; --accent-line:#b6cdec;
  --band:#0b2f57; --band-2:#16426f; --band-ink:#ffffff; --band-muted:#bcd0e8; --band-line:#2b5687;
  --good:#1b7743; --good-soft:#e0f1e6; --warn:#8a5700; --warn-soft:#fbefd6; --bad:#b3261e; --bad-soft:#fbe5e2; --unk:#5b697d; --unk-soft:#e8ecf2;
  --loc-main:#005bab; --loc-amz:#c9531c; --loc-noon:#138558; --loc-ret:#8a6a3f; --loc-way:#667385; --loc-ob:#7a4fb5;
  --ch-web:#2a78d6; --ch-amz:#c9531c; --ch-noon:#138558; --ch-whole:#7a4fb5;
  --hatch:rgba(15,26,40,.075);
  --f-disp:"Alexandria","Readex Pro",Tahoma,Arial,sans-serif;
  --f-body:"Readex Pro","Noto Sans Arabic",Tahoma,Arial,sans-serif;
  --f-code:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --r-band:14px; --r-panel:10px; --r-ctl:8px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#0b1017; --surface:#121923; --sunk:#0f151e; --ink:#e7ecf3; --muted:#9aa7b8; --faint:#8492a5;
  --rule:#253142; --rule-soft:#1b2431;
  --accent:#6aa8f0; --accent-hover:#8bbcf5; --accent-ink:#0b1a2e; --accent-soft:#15284a; --accent-line:#2c4b7b;
  --band:#0a1f3a; --band-2:#123158; --band-ink:#eef3fa; --band-muted:#a3b8d4; --band-line:#22426b;
  --good:#56c487; --good-soft:#123020; --warn:#e5b35b; --warn-soft:#33270f; --bad:#f28b81; --bad-soft:#3a1b19; --unk:#9cabbf; --unk-soft:#1f2834;
  --loc-main:#6aa8f0; --loc-amz:#ee7a45; --loc-noon:#2fb07f; --loc-ret:#c49a63; --loc-way:#8492a5; --loc-ob:#b18be6;
  --ch-web:#5c9ae8; --ch-amz:#ee7a45; --ch-noon:#2fb07f; --ch-whole:#a98be0;
  --hatch:rgba(231,236,243,.06);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#0b1017; --surface:#121923; --sunk:#0f151e; --ink:#e7ecf3; --muted:#9aa7b8; --faint:#8492a5;
  --rule:#253142; --rule-soft:#1b2431;
  --accent:#6aa8f0; --accent-hover:#8bbcf5; --accent-ink:#0b1a2e; --accent-soft:#15284a; --accent-line:#2c4b7b;
  --band:#0a1f3a; --band-2:#123158; --band-ink:#eef3fa; --band-muted:#a3b8d4; --band-line:#22426b;
  --good:#56c487; --good-soft:#123020; --warn:#e5b35b; --warn-soft:#33270f; --bad:#f28b81; --bad-soft:#3a1b19; --unk:#9cabbf; --unk-soft:#1f2834;
  --loc-main:#6aa8f0; --loc-amz:#ee7a45; --loc-noon:#2fb07f; --loc-ret:#c49a63; --loc-way:#8492a5; --loc-ob:#b18be6;
  --ch-web:#5c9ae8; --ch-amz:#ee7a45; --ch-noon:#2fb07f; --ch-whole:#a98be0;
  --hatch:rgba(231,236,243,.06);
  color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font:15px/1.65 var(--f-body);font-variant-numeric:tabular-nums;-webkit-text-size-adjust:100%}
h1,h2,h3{font-family:var(--f-disp);font-weight:600;line-height:1.35;margin:0;text-wrap:balance}
p{margin:0}
a{color:var(--accent)}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* left-to-right islands inside Arabic text */
.n{direction:ltr;unicode-bidi:isolate;display:inline-block;font-variant-numeric:tabular-nums}
.code{font-family:var(--f-code);font-size:13.5px;direction:ltr;unicode-bidi:isolate;display:inline-block;letter-spacing:0}
.en{direction:ltr;unicode-bidi:isolate;text-align:right}
.cur{font-size:max(13px,.82em);color:var(--muted);margin-inline-start:3px}
.neg{color:var(--bad)}
.pos{color:var(--good)}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* app shell: rail on the right (RTL start), bottom bar on a phone */
.app{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}
.rail{background:var(--surface);border-inline-end:1px solid var(--rule);padding:16px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:2px 6px 14px;margin-bottom:6px;border-bottom:1px solid var(--rule-soft)}
.logo{width:34px;height:34px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font:700 16px var(--f-disp);flex:none}
brand{color:inherit;text-decoration:none}
.brand b{font:600 16px/1.3 var(--f-disp);display:block}
.brand small{display:block;color:var(--muted);font-size:13px;line-height:1.3}
.nav{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:var(--muted);text-decoration:none;font-size:15px}
.nav:hover{background:var(--rule-soft);color:var(--ink)}
.nav[aria-current="page"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.nav .count{margin-inline-start:auto;font-size:13px;background:var(--bad);color:#fff;border-radius:999px;padding:0 7px;line-height:20px;font-weight:600}
.rail-foot{margin-top:auto;padding:10px 6px 0;border-top:1px solid var(--rule-soft);font-size:13px;color:var(--faint)}

.main{min-width:0;display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:10px;padding:10px 28px;background:var(--surface);border-bottom:1px solid var(--rule);position:sticky;top:0;z-index:5}
.search{flex:1 1 auto;max-width:620px;display:flex;align-items:center;gap:8px;border:1px solid var(--rule);border-radius:9px;padding:7px 12px;color:var(--faint);background:var(--sunk);min-width:0}
.search span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-end{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.iconbtn{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--rule);background:var(--surface);border-radius:9px;color:var(--muted)}
.iconbtn:hover{color:var(--ink);border-color:var(--accent-line)}
.iconbtn .dot{position:absolute;top:-5px;inset-inline-end:-5px;min-width:19px;height:19px;border-radius:999px;background:var(--bad);color:#fff;font-size:13px;line-height:19px;font-weight:600;padding:0 5px}
.who{display:flex;align-items:center;gap:9px;padding:3px 4px 3px 12px;border:1px solid var(--rule);border-radius:999px}
.who .av{width:30px;height:30px;border-radius:999px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font:600 14px var(--f-disp)}
.who b{font-weight:600;font-size:14px;display:block;line-height:1.25}
.who small{display:block;font-size:13px;color:var(--muted);line-height:1.25}
.sample{font-size:13px;color:var(--warn);background:var(--warn-soft);border-radius:999px;padding:3px 10px;white-space:nowrap}

.content{width:100%;max-width:var(--measure,1400px);margin-inline:auto;padding:22px 28px 56px;display:flex;flex-direction:column;gap:20px}

/* the navy band: the one bold element on each screen */
.band{background:var(--band);color:var(--band-ink);border-radius:var(--r-band);padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.band-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 24px}
.band h1{font-size:24px;font-weight:700}
.band .sub{color:var(--band-muted);font-size:14.5px;margin-top:2px}
.kpis{display:flex;flex-wrap:wrap;gap:10px}
.kpi{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:baseline;column-gap:10px;row-gap:2px;background:var(--band-2);border:1px solid var(--band-line);border-radius:10px;padding:10px 16px 11px;min-width:172px;color:var(--band-ink);text-decoration:none}
a.kpi:hover{border-color:var(--band-muted)}
.kpi b{font:700 28px/1.1 var(--f-disp);font-variant-numeric:tabular-nums}
.kpi span{font-size:15px;font-weight:500}
.kpi small{grid-column:1/-1;color:var(--band-muted);font-size:13px;line-height:1.4}
.kpi.alert b{color:#ffb4ab}
.kpi.ok b{color:#9be3b7}
.kpi.old b{color:#ffd58a}
.band .seg{display:inline-flex;background:var(--band-2);border-radius:9px;padding:3px;gap:2px}
.band .seg button{border:0;background:none;color:var(--band-muted);padding:5px 12px;border-radius:7px;font-size:14px}
.band .seg button[aria-pressed="true"]{background:var(--band-ink);color:var(--band)}

/* panels */
.panel{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-panel);min-width:0}
.panel-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:14px 18px 12px;border-bottom:1px solid var(--rule-soft)}
.panel-h h2{font-size:18px}
.panel-h .meta{font-size:13.5px;color:var(--muted)}
.panel-b{padding:14px 18px}
.note{font-size:13.5px;color:var(--muted);line-height:1.6;max-width:68ch}
.note + .note{margin-top:4px}
.panel-foot{padding:10px 18px 14px;border-top:1px solid var(--rule-soft)}

/* chips */
.chip{display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:1.5;border-radius:999px;padding:1px 9px;white-space:nowrap;background:var(--unk-soft);color:var(--unk);font-weight:500}
.chip.good{background:var(--good-soft);color:var(--good)}
.chip.warn{background:var(--warn-soft);color:var(--warn)}
.chip.bad{background:var(--bad-soft);color:var(--bad)}
.chip.acc{background:var(--accent-soft);color:var(--accent)}
.chip svg.i{width:14px;height:14px}
.dot{display:inline-block;width:9px;height:9px;border-radius:999px;flex:none;background:var(--unk)}
.dot.web{background:var(--ch-web)} .dot.amz{background:var(--ch-amz)} .dot.noon{background:var(--ch-noon)} .dot.whole{background:var(--ch-whole)}
.chan{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--accent-line);background:var(--surface);color:var(--accent);border-radius:var(--r-ctl);padding:6px 13px;font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap;line-height:1.5}
.btn:hover{background:var(--accent-soft)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{background:var(--accent-hover)}
.btn.quiet{border-color:transparent;color:var(--muted)}
.btn.quiet:hover{color:var(--ink);background:var(--rule-soft)}
.btn svg.i{width:16px;height:16px}

/* tables: compact, capped by their panel, never stretched across the screen */
.tbl{width:100%;border-collapse:collapse;text-align:start}
.tbl th{font-size:13.5px;font-weight:500;color:var(--muted);text-align:start;padding:9px 12px;border-bottom:1px solid var(--rule);white-space:nowrap;background:var(--sunk)}
.tbl td{padding:10px 12px;border-bottom:1px solid var(--rule-soft);vertical-align:middle}
.tbl td.n,.tbl th.n{display:table-cell}   /* .n is inline-block for loose numbers; on a cell it pulled the cell out of the table grid and its header drifted */
.tbl tr:last-child td{border-bottom:0}
.tbl .num{text-align:start;white-space:nowrap}
.tbl tbody tr.sel td{background:var(--accent-soft)}
.tbl tbody tr.click{cursor:pointer}
.tbl tbody tr.click:hover td{background:var(--sunk)}
.tbl tbody tr.click.sel:hover td{background:var(--accent-soft)}
/* every table: alternate rows a very light shade (like a spreadsheet) and a clearer hover. It is a background-image overlay, so rows with their own colour (alert / selected) keep it */
.tbl tbody tr:nth-child(even) td,.table-panel tbody tr:nth-child(even) td{background-image:linear-gradient(color-mix(in srgb,var(--ink,#172a39) 3.5%,transparent),color-mix(in srgb,var(--ink,#172a39) 3.5%,transparent))}
.tbl tbody tr:hover td,.table-panel tbody tr:hover td{background-image:linear-gradient(color-mix(in srgb,var(--accent,#0a6c74) 9%,transparent),color-mix(in srgb,var(--accent,#0a6c74) 9%,transparent))}

/* a number beside its label, in a compact box */
.pairs{display:grid;gap:0;max-width:380px}
.pair{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px dashed var(--rule)}
.pair:last-child{border-bottom:0}
.pair > span{color:var(--muted)}
.pair > b{font-weight:600}
.pair.total{border-top:1.5px solid var(--ink);border-bottom:0;padding-top:9px;margin-top:2px}
.pair.total > span{color:var(--ink);font-weight:600}
.pair.total > b{font:700 19px var(--f-disp)}

.boxes{display:flex;flex-wrap:wrap;gap:10px}
.box{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:baseline;column-gap:9px;border:1px solid var(--rule);border-radius:10px;padding:9px 14px;background:var(--surface);min-width:150px}
.box b{font:700 22px/1.15 var(--f-disp)}
.box span{font-size:14px}
.box small{grid-column:1/-1;font-size:13px;color:var(--muted)}

.lock{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px dashed var(--rule);border-radius:10px;background:repeating-linear-gradient(-45deg,transparent 0 8px,var(--hatch) 8px 9px)}
.lock svg.i{color:var(--muted);margin-top:3px}

/* phone bottom bar */
.botnav{display:none}

@media (max-width:1100px){
  .app{grid-template-columns:76px minmax(0,1fr)}
  .rail{padding:14px 8px}
  .brand{justify-content:center;padding-inline:0}
  .brand div,.nav .lbl{display:none}
  .rail-foot{padding:8px 0 0}
  .verbadge-name,.verbadge-hint{display:none}
  .verbadge{justify-items:center;padding:6px 2px}
  .nav{justify-content:center;padding:10px 0;position:relative}
  .nav .count{position:absolute;top:2px;inset-inline-end:6px;margin:0}
}
@media (max-width:760px){
  body{font-size:15px}
  .app{display:block}
  .rail{display:none}
  .top{padding:8px 14px;gap:8px}
  .search{max-width:none;padding:7px 10px}
  .who{display:none}
  .sample{display:none}
  .content{padding:14px 14px 96px;gap:14px}
  .band{padding:16px 14px;border-radius:12px}
  .band h1{font-size:21px}
  .kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .kpi{min-width:0;padding:9px 12px;grid-template-columns:auto minmax(0,1fr)}
  .kpi.wide{grid-column:span 2}
  .kpi b{font-size:24px}
  .kpi span{font-size:14px}
  .panel-h{padding:12px 14px 10px}
  .panel-b{padding:12px 14px}
  .panel-foot{padding:10px 14px 12px}
  .botnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;inset-inline:0;background:var(--surface);border-top:1px solid var(--rule);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:10}
  .botnav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px;color:var(--muted);text-decoration:none;padding:4px 0;position:relative}
  .botnav a[aria-current="page"]{color:var(--accent);font-weight:600}
  .botnav svg.i{width:21px;height:21px}
  .botnav .count{position:absolute;top:0;inset-inline-start:calc(50% + 6px);font-size:13px;background:var(--bad);color:#fff;border-radius:999px;padding:0 6px;line-height:18px}
}


/* S46: compact label/value pairs and truthful source states. */
.page-internal .lg-row{display:flex;justify-content:flex-start;gap:16px;flex-wrap:wrap}.page-internal .lg-row .what{flex:0 1 auto;max-width:210px}.page-internal .lg-row .amt{margin:0;min-width:0;text-align:start}.page-internal .pair{justify-content:flex-start;gap:16px}.return-age{display:flex;gap:12px;flex-wrap:wrap;padding:8px;border-bottom:5px solid #e2a638;font-size:13px}.s-totals .pair>span{white-space:nowrap}.rail{overflow-y:auto}.s-totals .pair{gap:10px}.dtbl td:before{min-width:90px}.page-overview .chart-bars{display:grid;gap:16px;padding:24px}.chart-row{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center}.chart-value{display:block;background:var(--accent,#23756b);min-width:2px;height:16px;border-radius:4px}.chart-row small{display:block}.filters select{min-width:110px}.dtbl .value{unicode-bidi:plaintext}.dtbl td[data-label="الإجراء"]{white-space:normal}@media(max-width:640px){.dtbl td{justify-content:flex-start!important;gap:12px!important}.dtbl td:before{flex:0 0 94px}.page-internal .lg-row .what{flex:0 1 auto;max-width:155px}.chart-row{grid-template-columns:90px 1fr}.botnav{overflow-x:auto}.band-head{flex-wrap:wrap}}

.return-age progress{display:block;flex-basis:100%;width:100%;height:8px;accent-color:#d69e25}.return-age{border-bottom:0;background:linear-gradient(to left,rgba(57,151,111,.13) 0 33%,rgba(221,169,47,.13) 33% 66%,rgba(208,82,82,.13) 66%);border-radius:6px}

/* S47: readable chart captions and balanced KPI rows at both breakpoints. */
.chart-row small{font-size:13px}.page-costs .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.movement-details,#detail,[id^="g-"]{scroll-margin-top:80px}.serial-missing{font-family:var(--f-body);direction:rtl;unicode-bidi:normal}
@media(max-width:760px){.page-costs .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

.page-overview .kpi{min-width:0;grid-template-columns:minmax(0,1fr)}.page-overview .kpi span,.page-overview .kpi small{grid-column:1}.page-overview .kpi b{overflow-wrap:anywhere}

/* S48: explicit unavailable provenance, isolated dates, bounded panels. */
.notification-date{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;display:inline-block}
.more-notifications{margin:12px 18px}.more-notifications summary{cursor:pointer}
.kpis .kpi{min-width:0}.page-costs .kpis .kpi.wide{grid-column:auto}
.kpis .kpi>span{white-space:normal;overflow-wrap:anywhere}.kpis .kpi>b{max-width:100%;overflow-wrap:anywhere}
.page-costs .kpi{grid-template-columns:minmax(0,1fr);justify-content:stretch}.page-costs .kpi>span,.page-costs .kpi>small{grid-column:1}.page-costs .kpi>b{white-space:normal}
#detail:not([hidden]){position:fixed!important;inset:78px 20px 24px auto!important;width:min(620px,calc(100vw - 40px));max-height:calc(100dvh - 102px);overflow:auto;z-index:100;box-shadow:0 12px 60px #0005;background:var(--surface,var(--card,#fff))}
#detail[hidden]{display:none!important}.detail-close{position:sticky;top:0;z-index:1;float:left;min-width:44px;min-height:44px;font-size:24px;line-height:1;background:inherit;margin-bottom:12px}
.page-stock .card{max-height:calc(100dvh - 100px);overflow:auto}
@media(max-width:760px){#detail:not([hidden]){inset:70px 10px 84px!important;width:auto;max-height:calc(100dvh - 154px)}}

.page-today .kpis>.kpi:first-child{grid-template-columns:minmax(0,1fr)}

.page-costs .kpis .kpi.wide{grid-column:span 2}.page-costs .kpi.wide>b{white-space:nowrap;overflow-wrap:normal}

/* Owner-home design port. Scoped to pages using the shared shell. */
.dokkan-shell .rail{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:4px;overflow:hidden}
.dokkan-shell .rail-foot{position:static;background:var(--surface);margin-top:auto;padding-bottom:8px;line-height:1.7;flex:none}
.dokkan-shell .rail nav{display:flex;flex-direction:column;gap:2px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.dokkan-shell .rail nav>*{flex:none}
.dokkan-shell .ngroup{display:flex;flex-direction:column;gap:2px}
.dokkan-shell .ngroup-h{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:8px 10px 4px;font-size:13px;font-weight:700;color:var(--ink-soft,var(--muted));letter-spacing:0}
.dokkan-shell .ngroup-h::-webkit-details-marker{display:none}
.dokkan-shell .ngroup-h::after{content:'\25BE';font-size:12px;transition:transform .15s}
.dokkan-shell .ngroup:not([open])>.ngroup-h::after{transform:rotate(90deg)}
.dokkan-shell .ngroup-h:focus-visible{outline:2px solid var(--accent,currentColor);outline-offset:1px;border-radius:6px}
@media (max-width:1100px){.dokkan-shell .ngroup-h{display:none}.dokkan-shell .ngroup::details-content{content-visibility:visible;display:flex;flex-direction:column;gap:2px}}
@media(max-width:760px){.dokkan-shell .rail{display:none}}
.dokkan-shell .top-end{gap:16px}
.dokkan-shell .search input{border:0;background:none;outline:none;flex:1;min-width:0;font-size:15px}
.dokkan-shell .search .btn{flex:none}
.dokkan-shell .rsub{display:flex;flex-direction:column;gap:1px;margin:2px 0 8px;padding-inline-start:14px;border-inline-start:2px solid var(--rule-soft);margin-inline-start:18px}
.dokkan-shell .rsub a{display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:7px;color:var(--muted);text-decoration:none;font-size:14.5px;line-height:1.5}
.dokkan-shell .rsub a:hover{background:var(--rule-soft);color:var(--ink)}
.dokkan-shell .rsub a[aria-current="page"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.dokkan-shell .subnav-sel{display:none}
.dokkan-shell .subnav-sel select{width:100%;border:1px solid var(--rule);border-radius:var(--r-ctl);background:var(--surface);padding:9px 12px;font-size:15px;height:46px;line-height:1.4}
.dokkan-shell .crumb{display:flex;flex-wrap:wrap;gap:6px;font-size:13.5px;color:var(--band-muted);margin-bottom:4px}
.dokkan-shell .crumb a{color:var(--band-muted)}
.dokkan-shell .band-acts{display:flex;flex-wrap:wrap;gap:8px}
.dokkan-shell .cc-tabs{display:flex;flex-wrap:wrap;gap:8px}
.dokkan-shell .cc-proof-evidence{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.dokkan-shell .band .btn{background:var(--band-2);border-color:var(--band-line);color:var(--band-ink)}
.dokkan-shell .band .btn:hover{background:var(--band-line)}
.dokkan-shell .band .btn.primary{background:var(--band-ink);color:var(--band);border-color:var(--band-ink)}
.dokkan-shell .band .btn.primary:hover{filter:brightness(.93)}
.dokkan-shell .stuckbar{display:flex;gap:12px;align-items:flex-start;padding:12px 18px;background:var(--warn-soft);color:var(--ink);border-bottom:1px solid var(--rule-soft)}
.dokkan-shell .stuckbar svg.i{color:var(--warn);margin-top:3px}
.dokkan-shell .stuckbar b{font-weight:600}
.dokkan-shell .formgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 22px}
.dokkan-shell .fld{display:flex;flex-direction:column;gap:6px;max-width:none}
.dokkan-shell .sel{border:1px solid var(--rule);border-radius:var(--r-ctl);background:var(--surface);font-size:14px;color:var(--ink);max-width:100%;height:40px;line-height:1.4;padding:6px 12px;min-width:170px}
.dokkan-shell .fld select,.dokkan-shell .fld input{border:1px solid var(--rule);border-radius:var(--r-ctl);padding:9px 12px;background:var(--surface);color:var(--ink);font-size:15px;height:44px;line-height:1.4}
.dokkan-shell .skelrow{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.dokkan-shell .skelc{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-panel);padding:14px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.dokkan-shell .skelc h3{font-size:16.5px}
.dokkan-shell .skelc p{color:var(--muted);font-size:14.5px;grid-column:1}
.dokkan-shell .skelc .btns{display:flex;flex-wrap:wrap;gap:6px;grid-column:2;grid-row:1/3}
.dokkan-shell .cardsgrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.dokkan-shell .cardsgrid .skelc{grid-template-columns:minmax(0,1fr)}
.dokkan-shell .cardsgrid .skelc .btns{grid-column:1;grid-row:auto}
.dokkan-shell .owner-period-cards{margin-top:14px}
.dokkan-shell .kpis .kpi b,.dokkan-shell .kpis .kpi span,.dokkan-shell .kpis .kpi small{overflow-wrap:anywhere;min-width:0}
.dokkan-shell .n,.dokkan-shell .code{max-width:100%;overflow-wrap:anywhere}
.dokkan-shell .chip{max-width:100%}
.dokkan-shell .pair>*{min-width:0;overflow-wrap:anywhere}
.dokkan-shell #owner-definitions,.dokkan-shell #dokkan-menu{scroll-margin-top:90px}
.dokkan-shell .shell-more{display:none}
.dokkan-shell .shell-more:target{display:block}
.dokkan-shell .shell-more .nav{justify-content:flex-start;padding:9px 10px}
@media(max-width:1100px){
  .dokkan-shell .rsub{display:none}
  .dokkan-shell .subnav-sel{display:block}
}
@media(max-width:900px){
  .dokkan-shell .chip{white-space:normal}
}
@media(max-width:760px){
  .dokkan-shell .skelc{grid-template-columns:minmax(0,1fr)}
  .dokkan-shell .skelc .btns{grid-column:1;grid-row:auto}
  .dokkan-shell .band-acts{width:100%}
  .dokkan-shell .band-acts .btn{flex:1 1 auto;justify-content:center}
  .dokkan-shell .kpis .kpi{grid-template-columns:minmax(0,1fr)}
  .dokkan-shell .kpis .kpi span,.dokkan-shell .kpis .kpi small{grid-column:1}
  .dokkan-shell .kpis .kpi b{font-size:22px}
  .dokkan-shell .top-end{gap:8px}
  .dokkan-shell .botnav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}

/* Orders design port: server-rendered filters, paging and mobile cards. */
.dokkan-shell .dokkan-orders{display:flex;flex-direction:column;gap:20px;min-width:0}
.dokkan-orders .filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:16px 18px}
.dokkan-orders .filters .fld{flex:1 1 170px;min-width:0}
.dokkan-orders .filters .sel{width:100%;min-width:0}
.dokkan-orders .cost-filter{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.dokkan-orders .cost-filter input{width:18px;height:18px;accent-color:var(--accent);flex:none}
.dokkan-orders .filter-acts{display:flex;flex-wrap:wrap;gap:8px}
.dokkan-orders .sumline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:10px 18px;border-block:1px solid var(--rule-soft);font-size:13.5px;color:var(--muted)}
.dokkan-orders .stbl-wrap{max-width:100%;overflow-x:auto}
.dokkan-orders .tbl{min-width:700px}
.dokkan-orders .tbl td{font-size:14px}
.dokkan-orders .tbl .first{font-weight:600}
.dokkan-orders .mny{display:inline-flex;align-items:baseline;white-space:nowrap}
.dokkan-orders .order-struck .order-value,.dokkan-orders .order-struck .order-value a{text-decoration:line-through}
.dokkan-orders .pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-top:1px solid var(--rule-soft)}
.dokkan-orders .pager-info{flex:1 1 180px;text-align:center;font-size:13.5px;color:var(--muted)}
.dokkan-orders .pager [aria-disabled="true"]{color:var(--faint);background:var(--sunk);border-color:var(--rule);cursor:default}
.dokkan-orders .state{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:28px 18px}
.dokkan-orders .state h2{font-size:18px}
.dokkan-orders .state p{color:var(--muted);max-width:68ch}
.dokkan-orders .stuckbar.bn-acc{background:var(--accent-soft);border-radius:var(--r-panel)}
.dokkan-orders .stuckbar.bn-acc svg.i{color:var(--accent)}
@media(max-width:760px){
  .dokkan-shell .dokkan-orders{gap:14px}
  .dokkan-orders .filters{padding:14px}
  .dokkan-orders .filters .fld{flex-basis:100%}
  .dokkan-orders .cost-filter,.dokkan-orders .filter-acts{width:100%}
  .dokkan-orders .filter-acts .btn{flex:1;justify-content:center}
  .dokkan-orders .sumline{padding:10px 14px}
  .dokkan-orders .stbl-wrap{overflow:visible;padding:12px}
  .dokkan-orders .tbl.cards{display:block;min-width:0;width:100%;border-collapse:separate}
  .dokkan-orders .tbl.cards thead{display:none}
  .dokkan-orders .tbl.cards tbody{display:grid;gap:12px}
  .dokkan-orders .tbl.cards tr{display:block;min-width:0;border:1px solid var(--rule);border-radius:var(--r-panel);padding:6px 12px;background:var(--surface)}
  .dokkan-orders .tbl.cards td{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:baseline;gap:12px;padding:9px 0;border-bottom:1px solid var(--rule-soft);min-width:0}
  .dokkan-orders .tbl.cards td::before{content:attr(data-l);font-size:13px;font-weight:500;color:var(--muted);overflow-wrap:anywhere}
  .dokkan-orders .tbl.cards td:last-child{border-bottom:0}
  .dokkan-orders .tbl.cards .order-value{min-width:0;overflow-wrap:anywhere}
  .dokkan-orders .tbl.cards .mny{flex-wrap:wrap;white-space:normal;max-width:100%}
  .dokkan-orders .tbl.cards .chip{white-space:normal}
  .dokkan-orders .pager{padding:12px 14px}
  .dokkan-orders .pager-info{order:3;flex-basis:100%}
}

/* Owner channel cards fill their panel; compact KPI tile caps do not apply. */
.dokkan-shell .owner-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
@media(max-width:1359px){
  .dokkan-shell .owner-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .dokkan-shell .owner-channel-grid{grid-template-columns:minmax(0,1fr)}
}
.dokkan-shell .owner-channel-values{display:grid;gap:8px;min-width:0}
.dokkan-shell .owner-channel-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;padding:9px 10px;border:1px solid var(--rule);border-radius:8px;background:var(--sunk);min-width:0}
.dokkan-shell .owner-channel-value>span{font-size:14px;color:var(--muted)}
.dokkan-shell .owner-channel-value>strong{font:700 22px/1.4 var(--f-disp);min-width:0;white-space:nowrap;overflow-wrap:normal}
.dokkan-shell .owner-channel-value>strong .n{white-space:nowrap;overflow-wrap:normal}
.dokkan-shell .owner-channel-value small{font:400 13px var(--f-body);color:var(--muted)}
.dokkan-shell .owner-channel-counts{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.dokkan-shell .owner-channel-counts .chip{font-size:13px;white-space:normal}
.dokkan-shell .owner-channel-counts .chip .n{flex:none;white-space:nowrap;overflow-wrap:normal}

/* Compact KPI tiles opt into this layout; owner channel cards use their own grid. */
.dokkan-shell .dokkan-stuck .band,
.dokkan-shell .dokkan-product-card .band,
.dokkan-shell .panel-b:has(>.dokkan-tile-grid){
  container:dokkan-tiles / inline-size;
}
.dokkan-shell .dokkan-tile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
  gap:10px;
  width:100%;
  max-width:1340px;
}
.dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(1))){max-width:260px}
.dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(2))){max-width:530px}
.dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(3))){max-width:800px}
.dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(4))){max-width:1070px}
.dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(6))){max-width:1610px}
.dokkan-shell .dokkan-tile-grid>*{
  min-width:0;
  max-width:260px;
  min-height:112px;
  grid-column:auto;
}
.dokkan-shell .dokkan-stuck .band>.dokkan-tile-grid>.kpi,
.dokkan-shell .dokkan-product-card .band>.dokkan-tile-grid>.kpi{
  grid-template-columns:minmax(0,1fr);
}
.dokkan-shell .dokkan-stuck .band>.dokkan-tile-grid>.kpi>*,
.dokkan-shell .dokkan-product-card .band>.dokkan-tile-grid>.kpi>*{grid-column:1}

/* Avoid 3+1, 4+1 and 5+1 as the available content width shrinks. */
@container dokkan-tiles (width < 1070px){
  .dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(6))){max-width:700px}
}
@container dokkan-tiles (width < 890px){
  .dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(5))){max-width:700px}
}
@container dokkan-tiles (width < 710px){
  .dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(4))){max-width:520px}
}
@container dokkan-tiles (width < 530px){
  .dokkan-shell .dokkan-tile-grid:has(>:where(:last-child:nth-child(5))){
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:480px){
  .dokkan-shell .dokkan-tile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dokkan-shell .dokkan-tile-grid>:last-child:nth-child(odd){
    grid-column:1/-1;
    max-width:none;
  }
}

/* Product identity and location balances. */
.dokkan-shell .dokkan-product-card .pairs.pc-identity-fields{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.dokkan-shell .dokkan-product-card .pc-identity-fields>.pair{min-width:0}
.dokkan-shell .dokkan-product-card .pc-place-balances{width:100%;max-width:560px}
.dokkan-shell .dokkan-product-card .pc-place-balances .tbl{min-width:0;max-width:100%}
.dokkan-shell .dokkan-product-card .pc-place-balances .pc-cell{overflow-wrap:anywhere}
@media(min-width:761px){
  .dokkan-shell .dokkan-product-card .pc-place-balances .tbl{width:auto}
}
@media(max-width:760px){
  .dokkan-shell .dokkan-product-card .pairs.pc-identity-fields{grid-template-columns:minmax(0,1fr)}
}

/* corner version badge: «دكان تك سيستم» + version, click opens «إيه الجديد»; floor 13px, never over content or the phone bar */
.verbadge{display:grid;gap:2px;text-decoration:none;color:var(--muted);font-size:13px;line-height:1.5;padding:8px 10px;border-radius:10px;min-width:0}
.verbadge:hover,.verbadge:focus-visible{background:var(--sunk)}
.verbadge-name{color:var(--ink);font-weight:600;font-size:14px;overflow-wrap:anywhere}
.verbadge-ver{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--accent)}
.verbadge-hint{font-size:13px;color:var(--muted)}
.verbadge-phone{display:none}
@media(max-width:760px){
  .verbadge-phone{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 8px;padding:10px 12px;margin-top:4px;font-size:13px;text-align:center}
}

/* DES-D: four different states. empty = grey, not connected = dashed blue, refusal = amber lock, error = red. */
.state.nc{border:2px dashed var(--accent-line,#b6cdec);border-radius:10px;background:var(--accent-soft,#e3edf9)}
.state.nc .why{font-size:14px;font-weight:600;color:var(--accent,#005bab)}
.state.lockst{border:1px solid var(--warn,#8a5700);border-radius:10px;background:var(--warn-soft,#fbefd6)}
.state.lockst .roles{display:flex;flex-wrap:wrap;gap:6px}
.state.err{border:1px solid var(--bad,#b3261e);border-radius:10px;background:var(--bad-soft,#fbe5e2)}

/* number + label tiles with no third line do not need the 112px of the three-line tiles */
.dokkan-shell .dokkan-tile-grid>.kpi:not(:has(small)){min-height:0}

/* Design rule: a group of boxes never leaves one box alone on the last row.
   On phones .kpis is a 2-column grid (also .page-costs); an odd last tile takes the full row. */
@media(max-width:760px){
  .kpis>.kpi:last-child:nth-child(odd){grid-column:1/-1}
}

/* PAGE-RULES 2: narrow boxes start at the page start (right in Arabic), never centred.
   Item24: reading surfaces have a comfortable measure. Working forms, charts
   and tables keep their own page width; only recognizable reading panels enter. */
body.dokkan-shell .content .panel:is(
  :has(>p), :has(>.state), :has(>:is(ul,ol,dl,blockquote)),
  :has(>.panel-b>:is(p,ul,ol,dl,blockquote))
):not(:has(form,table,input,select,textarea,button,canvas,[contenteditable],.kpis,.pairs)),
body.dokkan-shell .content .reading-copy{
  inline-size:100%;max-inline-size:52rem;margin-inline:0 auto;
}
body.dokkan-shell .content .panel>.state{
  max-inline-size:68ch;margin-inline:0 auto;
}
/* A page that has a working card (a form, a table, tiles, a chart) shows ALL its cards at that width: a card that only holds a message (an empty list, a
   note) must not shrink to the reading measure in the middle of full-width cards.  A page whose cards are all text keeps the reading measure. */
body.dokkan-shell .content :is(.dokkan-orders,.dokkan-cut,.dokkan-capscreen):has(>.panel :is(form,table,input,select,textarea,canvas,[contenteditable],.kpis,.pairs))>.panel:not(#_){
  max-inline-size:none;margin-inline:0;
}
/* PAGE-RULES 2: a card that only holds a short message ends with the message (no wide empty card) */
body.dokkan-shell .content .panel:has(>.state:only-child):not(:has(form,table,input,select,textarea,button,.btn,canvas,.kpis,.pairs)):not(#_):not(#_){
  inline-size:fit-content;min-inline-size:min(100%,20rem);max-inline-size:min(100%,52rem);
}
body.dokkan-shell .content .panel-h:has(>:is(.meta,.count,.n,.badge)){
  justify-content:flex-start;column-gap:10px;
}
body.dokkan-shell .content .panel-h>.meta{
  margin-inline-start:0;
}

/* The same grid is available to every short reading-card collection. Explicit
   reading groups may contain their own editor; inferred collections cannot. */
body.dokkan-shell .content :is(.reading-grid,.reading-cards),
body.dokkan-shell .content .panel-b:has(>article:nth-of-type(2)):not(:has(form,table,input,select,textarea,button,canvas)){
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));
  align-items:start;gap:12px;inline-size:100%;max-inline-size:66rem;margin-inline:0 auto;
}
body.dokkan-shell .content .reading-grid>.panel{
  inline-size:100%;max-inline-size:none;margin-block:0;
}
body.dokkan-shell .content .reading-grid>details[open]{grid-column:1/-1}
body.dokkan-shell .content .reading-grid>details>summary{cursor:pointer}
body.dokkan-shell .content .reading-cards>article{
  min-inline-size:0;padding:14px;border:1px solid var(--rule);border-radius:var(--r-panel);
}
body.dokkan-shell .content .reading-cards>hr{display:none}
body.dokkan-shell .content .reading-cards :is(form,fieldset,.fld){
  inline-size:100%;min-inline-size:0;max-inline-size:100%;
}
body.dokkan-shell .content .reading-cards fieldset{margin-inline:0}
body.dokkan-shell .content .reading-cards .fld>:is(input,select,textarea){
  inline-size:100%;min-inline-size:0;max-inline-size:100%;
}

/* Count direct cells, never nested-table cells. Spanning wide/empty rows keep
   their existing width. Phones retain the page's existing stacked table cards. */
@media(min-width:761px){
  body.dokkan-shell #page.content table:has(>:is(thead,tbody)>tr>:is(th,td)):not(:has(
    >:is(thead,tbody)>tr>:nth-child(4),
    >:is(thead,tbody)>tr>[colspan]:not([colspan="1"],[colspan="2"],[colspan="3"]),
    >:is(thead,tbody)>tr>[colspan]:not([colspan="1"])~:nth-child(3),
    >:is(thead,tbody)>tr>:nth-child(3)[colspan]:not([colspan="1"]),
    >:is(thead,tbody)>tr>[colspan="3"]~:nth-child(2),
    >:is(thead,tbody)>tr>:nth-child(2)[colspan="3"],
    >:is(thead,tbody)>tr>[colspan="2"]~[colspan="2"]
  )){
    inline-size:auto;min-inline-size:0;max-inline-size:100%;margin-inline:0 auto;table-layout:auto;
  }
}

/* Item39: one compact spacing rule for native and legacy shell bodies. */
body.dokkan-shell #page.content{gap:12px}
body.dokkan-shell #page.content .band{padding:12px 14px;gap:10px;margin-block:0 12px}
body.dokkan-shell #page.content .panel{margin-block:0 12px}
body.dokkan-shell #page.content .panel-h{padding:8px 12px;gap:6px 10px}
body.dokkan-shell #page.content .panel-b{padding:10px 12px}
body.dokkan-shell #page.content :is(.kpis,.dokkan-tile-grid){display:flex;flex-wrap:wrap;gap:8px;max-width:100%;justify-content:flex-start}
body.dokkan-shell #page.content :is(.kpis,.dokkan-tile-grid)>.kpi{flex:0 1 auto;inline-size:max-content;min-inline-size:min(170px,100%);max-inline-size:min(220px,100%);min-height:0;padding:8px 12px;grid-column:auto}
body.dokkan-shell #page.content .fld{flex:0 1 220px;inline-size:220px;min-inline-size:0;max-inline-size:100%}
body.dokkan-shell #page.content .fld:has(>input:is([type=date],[type=number],[type=time],[type=month])){flex-basis:170px;inline-size:170px}
body.dokkan-shell #page.content .fld:has(>input:is([type=search],[name*=customer],[name*=account],[name=ref]),>select:is([name*=customer],[name*=account],[name=safe],[name=treasury])){flex-basis:320px;inline-size:320px}
body.dokkan-shell #page.content .fld>:is(input,select,.field){inline-size:100%;max-inline-size:100%;min-inline-size:0;min-height:36px;height:36px;padding:5px 9px}
body.dokkan-shell #page.content .state.empty-pad{padding:10px 12px;gap:0;align-items:flex-start;max-inline-size:none;margin:0;color:var(--muted)}
body.dokkan-shell #page.content .state.empty-pad h2{font-size:14px;font-weight:400;line-height:1.6;margin:0;color:var(--muted)}
body.dokkan-shell #page.content .state.empty-pad h2+p{display:none}
body.dokkan-shell #page.content .panel:has(>.state.empty-pad):not(:has(table,form,input,button,.btn))>.panel-h{display:none}
body.dokkan-shell #page.content .panel:has(>.state.empty-pad):has(+.panel>.state.empty-pad){border-end-start-radius:0;border-end-end-radius:0;margin-block-end:0}
body.dokkan-shell #page.content .panel:has(>.state.empty-pad)+.panel:has(>.state.empty-pad){border-start-start-radius:0;border-start-end-radius:0;border-block-start:0;margin-block-start:0}
body.dokkan-shell #page.content .empty-group{max-inline-size:none}
body.dokkan-shell #page.content .empty-line{margin:0;padding:10px 12px;color:var(--muted);font-size:14px;border-block-end:1px solid var(--rule-soft)}
body.dokkan-shell #page.content .empty-line:last-child{border-block-end:0}
body.dokkan-shell #page.content :is(.compact-filters,.panel>form:is(.ac-form,.cp-filters,.filters):not(:has(.fld~.fld~.fld))){display:flex;flex-wrap:wrap;align-items:end;gap:8px 12px;padding:0;margin-block:0 12px}
body.dokkan-shell #page.content .panel:has(>form:is(.ac-form,.cp-filters,.filters):not(:has(.fld~.fld~.fld))):not(:has(.panel-b,table)){border:0;background:transparent;border-radius:0}
body.dokkan-shell #page.content .panel:has(>form:is(.ac-form,.cp-filters,.filters):not(:has(.fld~.fld~.fld))):not(:has(.panel-b,table))>.panel-h{display:none}
@media(max-width:760px){
 body.dokkan-shell #page.content .band{padding:10px;gap:8px}
 body.dokkan-shell #page.content .fld{flex:0 1 auto;inline-size:100%;max-inline-size:100%}
 body.dokkan-shell #page.content .fld:has(>input:is([type=date],[type=number],[type=time],[type=month])){flex-basis:170px;inline-size:170px}
 body.dokkan-shell #page.content :is(.kpis,.dokkan-tile-grid)>.kpi{min-inline-size:min(150px,100%);max-inline-size:min(220px,100%)}
}

body.dokkan-shell #page.content .dokkan-orders{gap:12px}
body.dokkan-shell #page.content>.band,body.dokkan-shell #page.content>.panel,
body.dokkan-shell #page.content .dokkan-orders>:is(.band,.panel,.compact-filters){margin-block:0}
body.dokkan-shell #page.content .dokkan-orders>.panel:has(>.state.empty-pad)+.panel:has(>.state.empty-pad){margin-block-start:-12px}

/* an Arabic date label (13 نوفمبر 2026) inside a .n cell: its own direction from the first letter, so the day stays before the month; an ISO date stays left-to-right */
.n.dt{unicode-bidi:plaintext}

#stv2-return-dialog .stv2-dialog-close{float:left;min-width:44px;min-height:44px;font-size:24px;line-height:1}
.logo-img{width:34px;height:34px;border-radius:9px;flex:none;object-fit:contain;background:#fff}

.v3-problem-notice {
  position: fixed;
  inset-inline-end: max(12px, env(safe-area-inset-left));
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  z-index: 99999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: min(35rem, calc(100% - 24px));
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--warn);
  border-radius: var(--r-panel);
  box-shadow: 0 4px 18px rgb(0 0 0 / 18%);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  direction: rtl;
}
.v3-problem-text { margin: 0; overflow-wrap: anywhere; }
.v3-problem-note {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.v3-problem-note[hidden], .v3-problem-notice button[hidden] { display: none; }
.v3-problem-note label { flex-basis: 100%; }
.v3-problem-note .field { flex: 1 1 11rem; min-inline-size: 0; font-size: max(1rem, 1em); }
.v3-problem-note-status { flex-basis: 100%; }
.v3-problem-note-status:empty { position: absolute; }
.v3-problem-employee-note { margin-block: 4px; overflow-wrap: anywhere; }
.v3-problem-employee-note strong { margin-inline-end: 4px; }
@media (max-width: 900px) {
  .dokkan-ui:has(.bottom-bar, .botnav) .v3-problem-notice {
    inset-block-end: calc(68px + env(safe-area-inset-bottom));
  }
}
@media (pointer: coarse) {
  .v3-problem-notice .btn, .v3-problem-note .field { min-block-size: 48px; }
}
