/* ABC Phone POS — styles */
:root{
  --bg:#F2F2F7; --surface:#FFFFFF; --surface2:#F7F7FA; --fill:rgba(118,118,128,.12); --fill2:rgba(118,118,128,.08);
  --label:#000000; --label2:rgba(60,60,67,.62); --label3:rgba(60,60,67,.32); --sep:rgba(60,60,67,.14);
  --blue:#2458FC; --navy:#0B2E8A; --brand:linear-gradient(135deg,#2E63FF 0%,#1A48D6 55%,#0B2E8A 100%);
  --green:#34C759; --red:#FF3B30; --orange:#FF9500; --purple:#AF52DE; --teal:#30B0C7;
  --glass:rgba(255,255,255,.72); --glass-b:rgba(255,255,255,.6);
  --sh1:0 1px 2px rgba(15,30,80,.06),0 6px 20px rgba(15,30,80,.06);
  --sh2:0 20px 60px rgba(10,25,80,.22);
  --logo-light:block; --logo-dark:none;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#000000; --surface:#1C1C1E; --surface2:#2C2C2E; --fill:rgba(118,118,128,.26); --fill2:rgba(118,118,128,.16);
    --label:#FFFFFF; --label2:rgba(235,235,245,.62); --label3:rgba(235,235,245,.3); --sep:rgba(84,84,88,.5);
    --blue:#4C7BFF; --glass:rgba(30,30,32,.72); --glass-b:rgba(255,255,255,.08);
    --sh1:0 1px 0 rgba(255,255,255,.04) inset; --sh2:0 20px 60px rgba(0,0,0,.6);
    --logo-light:none; --logo-dark:block; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#000000; --surface:#1C1C1E; --surface2:#2C2C2E; --fill:rgba(118,118,128,.26); --fill2:rgba(118,118,128,.16);
  --label:#FFFFFF; --label2:rgba(235,235,245,.62); --label3:rgba(235,235,245,.3); --sep:rgba(84,84,88,.5);
  --blue:#4C7BFF; --glass:rgba(30,30,32,.72); --glass-b:rgba(255,255,255,.08);
  --sh1:0 1px 0 rgba(255,255,255,.04) inset; --sh2:0 20px 60px rgba(0,0,0,.6);
  --logo-light:none; --logo-dark:block; color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--label);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Noto Sans Arabic",system-ui,"Segoe UI",sans-serif;font-size:15px;line-height:1.35;-webkit-font-smoothing:antialiased;overflow:hidden}
[dir="rtl"] body{font-family:"Noto Sans Arabic",-apple-system,BlinkMacSystemFont,"Inter",system-ui,sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--blue) 55%,transparent);outline-offset:2px}
.press{transition:transform .12s ease,opacity .12s ease}
.press:active{transform:scale(.96);opacity:.85}
svg.i{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;text-align:match-parent}
.logo-c{display:var(--logo-light)} .logo-w{display:var(--logo-dark)}

/* ---------- Lock screen ---------- */
.lock{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#fff;overflow:hidden;
  background:radial-gradient(120% 80% at 10% 0%,#3D74FF 0%,transparent 55%),radial-gradient(90% 70% at 100% 100%,#061A5C 0%,transparent 60%),linear-gradient(160deg,#1E4FE6,#0A2878 70%,#05133F);padding:24px}
.lock::before{content:"";position:absolute;width:780px;height:780px;border-radius:50%;border:2px solid rgba(255,255,255,.07);top:-260px;right:-260px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 150px rgba(255,255,255,.02)}
.lock .lg{height:88px;filter:drop-shadow(0 6px 18px rgba(0,0,0,.25))}
.clock{font-size:clamp(64px,13vw,104px);font-weight:700;letter-spacing:-.04em;line-height:1;margin-top:4px}
.ldate{font-size:18px;font-weight:500;opacity:.85;margin-top:-6px}
.pc-t{font-size:16px;font-weight:600;margin-top:18px}
.dots{display:flex;gap:18px;height:16px}
.dots i{width:14px;height:14px;border-radius:50%;border:1.6px solid #fff;transition:background .15s}
.dots i.on{background:#fff}
.dots.shake{animation:shake .45s}
@keyframes shake{20%,60%{transform:translateX(-10px)}40%,80%{transform:translateX(10px)}}
.pad{display:grid;grid-template-columns:repeat(3,78px);gap:16px 26px;margin-top:10px;direction:ltr}
.key{width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.16);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:32px;font-weight:400;transition:background .15s}
.key small{font-size:9.5px;letter-spacing:.14em;font-weight:600;opacity:.8;margin-top:-2px}
.key:active{background:rgba(255,255,255,.45)}
.key.txt{background:none;font-size:16px;font-weight:500}
.lhint{font-size:13px;opacity:.7;margin-top:6px;text-align:center}
.lang-mini{position:absolute;top:max(16px,env(safe-area-inset-top));inset-inline-end:16px;display:flex;gap:4px;background:rgba(255,255,255,.14);padding:4px;border-radius:12px;backdrop-filter:blur(20px)}
.lang-mini button{color:#fff;padding:6px 10px;border-radius:9px;font-size:13px;font-weight:600}
.lang-mini button.on{background:rgba(255,255,255,.28)}

.lock{--k:clamp(48px,9vh,78px);gap:clamp(4px,1.6vh,18px)}
.lock .lg{height:clamp(42px,9.5vh,88px)}
.clock{font-size:clamp(46px,min(13vw,12vh),104px)}
.ldate{font-size:clamp(14px,2.4vh,18px);margin-top:0}
.pc-t{margin-top:clamp(2px,1.4vh,18px);font-size:clamp(13px,2.2vh,16px)}
.pad{grid-template-columns:repeat(3,var(--k));gap:clamp(8px,1.9vh,16px) clamp(14px,3vh,26px);margin-top:clamp(2px,1vh,10px)}
.key{width:var(--k);height:var(--k);font-size:calc(var(--k)*.4)}
.key small{font-size:calc(var(--k)*.12)}
.lhint{font-size:clamp(11px,1.7vh,13px)}
.dc-chip{font-size:15px;padding:2px 7px}
/* ---------- Developer card (lock screen) ---------- */
.devcard{--dc:#2C47A6;position:absolute;left:clamp(24px,7.5vw,120px);top:50%;transform:translateY(-50%);width:clamp(270px,24vw,330px);
  background:#fff;color:var(--dc);border:6px solid #3A58BC;border-radius:26px;box-shadow:0 0 0 5px #fff,0 24px 60px rgba(0,10,50,.35);
  padding:26px 14px 22px;display:flex;flex-direction:column;align-items:center;gap:12px;font-family:"Barlow Semi Condensed","Barlow Condensed","Arial Narrow",sans-serif;z-index:1}
.dc-title{font-family:"Noto Kufi Arabic","Noto Sans Arabic",sans-serif;font-weight:700;font-size:22px;line-height:1.3}
.dc-logo{width:100%;display:flex;justify-content:center;margin:2px 0 6px;padding:0 6px}
.sl-logo{display:block;width:100%;max-width:280px;height:auto;overflow:visible}
.sl-drawp{stroke-dasharray:1000 1000;stroke-dashoffset:0;animation:slDraw 1.7s cubic-bezier(.65,.05,.3,1) .25s backwards}
@keyframes slDraw{from{stroke-dashoffset:1000}}
.sl-chev{transform-box:fill-box;transform-origin:center;animation:slPop .6s cubic-bezier(.3,1.7,.5,1) 1.35s backwards,slNudgeL 3.4s ease-in-out 2.6s infinite}
.sl-chev.r{animation-name:slPop,slNudgeR}
@keyframes slPop{from{transform:scale(0);opacity:0}}
@keyframes slNudgeL{0%,62%,100%{transform:translateX(0)}74%{transform:translateX(-12px)}86%{transform:translateX(0)}}
@keyframes slNudgeR{0%,62%,100%{transform:translateX(0)}74%{transform:translateX(12px)}86%{transform:translateX(0)}}
.sl-comet{fill:none;stroke-linecap:round;opacity:0}
.sl-comet.glow{stroke:#8FB6FF;stroke-width:30;stroke-dasharray:120 880;animation:slRunG 3.4s linear 2s infinite}
.sl-comet.core{stroke:#fff;stroke-width:10;stroke-dasharray:46 954;animation:slRunC 3.4s linear 2s infinite}
@keyframes slRunG{from{stroke-dashoffset:0;opacity:.9}to{stroke-dashoffset:-1000;opacity:.9}}
@keyframes slRunC{from{stroke-dashoffset:-74;opacity:1}to{stroke-dashoffset:-1074;opacity:1}}
.sl-word{animation:slWordIn .8s cubic-bezier(.2,.8,.2,1) 1.15s backwards}
@keyframes slWordIn{from{opacity:0;transform:translateX(-40px)}}
.sl-sheen{animation:slSheen 5.5s ease-in-out 2.4s infinite}
@keyframes slSheen{0%{transform:skewX(-18deg) translateX(0)}32%,100%{transform:skewX(-18deg) translateX(1000px)}}
.dc-row{display:flex;align-items:center;justify-content:center;width:100%}
.dc-chip{border:1.6px solid var(--dc);border-radius:8px;padding:2px 6px;font-weight:600;font-size:14.5px;letter-spacing:.01em;white-space:nowrap;line-height:1.25}
.dc-dot{width:5px;height:5px;border-radius:50%;background:var(--dc);flex:none;margin:0 -1px;position:relative;z-index:1}
.devcard hr{width:74%;border:0;border-top:2.5px solid var(--dc);margin:6px 0 2px}
.dc-info{display:flex;flex-direction:column;align-items:center;gap:7px;font-weight:600;font-size:16.5px;letter-spacing:.02em}
.dc-ph{font-variant-numeric:tabular-nums}
@media (max-width:1100px){
  .lock{justify-content:flex-start;overflow-y:auto;padding-top:64px}
  .devcard{position:relative;left:auto;top:auto;transform:none;order:10;margin:26px auto 30px;flex:none;width:300px}
}
@media (max-width:1100px) and (min-height:900px){.lock{justify-content:safe center}}

/* ---------- Shell ---------- */
.shell{display:grid;grid-template-columns:248px 1fr;height:100dvh}
.side{display:flex;flex-direction:column;padding:18px 12px 14px;background:var(--glass);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);border-inline-end:1px solid var(--sep);min-height:0}
.side .brand{padding:6px 12px 18px}
.side .brand img{height:52px;width:auto}
.nav{display:flex;flex-direction:column;gap:2px;overflow:auto}
.nav button{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:11px;font-weight:500;color:var(--label);text-align:start}
.nav button:hover{background:var(--fill2)}
.nav button .ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff}
.nav button .ic svg{width:18px;height:18px;stroke-width:2}
.nav button.on{background:var(--blue);color:#fff}
.nav button.on .ic{background:rgba(255,255,255,.2)!important}
.nav .badge{margin-inline-start:auto;background:var(--red);color:#fff;font-size:12px;font-weight:700;border-radius:10px;padding:1px 7px}
.nav button.on .badge{background:#fff;color:var(--blue)}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--surface);box-shadow:var(--sh1)}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;background:var(--brand);flex:none;font-size:14px}
.me b{display:block;font-size:14px}.me span{font-size:12px;color:var(--label2)}
.me .lockb{margin-inline-start:auto;width:34px;height:34px;border-radius:50%;background:var(--fill);display:grid;place-items:center;color:var(--label)}
.me .lockb svg{width:18px;height:18px}
.main{min-width:0;min-height:0;overflow:auto;position:relative}
.tabbar{display:none}

/* ---------- Common ---------- */
.page{padding:26px 30px 40px;max-width:1280px}
.lt{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.lt h1{font-size:34px;font-weight:800;letter-spacing:-.025em;margin:0;line-height:1.1}
.lt .sub{margin:4px 0 0;color:var(--label2);font-size:15px}
.search{display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:11px;padding:0 10px;height:38px;min-width:260px;flex:0 1 340px}
.search svg{width:17px;height:17px;color:var(--label2)}
.search input{border:0;background:none;outline:none;flex:1;min-width:0;height:100%;font-size:16px}
.search input::placeholder{color:var(--label2)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 14px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;display:flex;align-items:center;gap:7px;padding:8px 14px;border-radius:20px;background:var(--surface);box-shadow:var(--sh1);font-weight:600;font-size:14px;color:var(--label)}
.chip svg{width:17px;height:17px}
.chip.on{background:var(--label);color:var(--bg)}
.seg{display:flex;background:var(--fill);border-radius:10px;padding:2px;gap:0;position:relative}
.seg button{flex:1;padding:7px 10px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--label);white-space:nowrap;transition:background .2s,box-shadow .2s}
.seg button.on{background:var(--surface);box-shadow:0 3px 8px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
:root[data-theme="dark"] .seg button.on{background:#636366}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .seg button.on{background:#636366}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:12px;font-weight:600;background:var(--fill);color:var(--blue)}
.btn.primary{background:var(--blue);color:#fff}
.btn.danger{color:var(--red)}
.btn svg{width:18px;height:18px}
.cta{width:100%;height:54px;border-radius:16px;background:var(--brand);color:#fff;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 24px rgba(36,88,252,.35)}
.cta:disabled{background:var(--fill);color:var(--label3);box-shadow:none;cursor:default}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:3px 8px;border-radius:20px;white-space:nowrap}
.pill.g{background:color-mix(in srgb,var(--green) 16%,transparent);color:color-mix(in srgb,var(--green) 80%,var(--label))}
.pill.o{background:color-mix(in srgb,var(--orange) 18%,transparent);color:color-mix(in srgb,var(--orange) 85%,var(--label))}
.pill.r{background:color-mix(in srgb,var(--red) 15%,transparent);color:var(--red)}
.pill.b{background:color-mix(in srgb,var(--blue) 14%,transparent);color:var(--blue)}
.pill.p{background:color-mix(in srgb,var(--purple) 15%,transparent);color:var(--purple)}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--label2);padding:40px 20px;gap:6px}
.empty .eic{width:64px;height:64px;border-radius:20px;background:var(--fill);display:grid;place-items:center;margin-bottom:8px}
.empty .eic svg{width:30px;height:30px}
.empty b{color:var(--label);font-size:17px}

/* grouped list */
.group{background:var(--surface);border-radius:14px;overflow:hidden;box-shadow:var(--sh1)}
.ghead{font-size:13px;color:var(--label2);padding:18px 16px 7px;font-weight:500}
.row{display:flex;align-items:center;gap:12px;padding:11px 16px;min-height:52px;width:100%;text-align:start;position:relative;background:var(--surface)}
button.row:hover{background:var(--surface2)}
.row + .row::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--sep)}
.row.ind + .row.ind::before{inset-inline-start:72px}
.row .grow{flex:1;min-width:0}
.row .t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:13px;color:var(--label2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .end{text-align:end;flex:none}
.chev{width:16px!important;height:16px!important;color:var(--label3)}
[dir="rtl"] .chev{transform:scaleX(-1)}
.row input,.row select{border:0;background:none;outline:none;text-align:end;min-width:0;width:50%;font-size:16px;color:var(--label2)}
.row label{flex:1}

/* thumb */
.th{border-radius:22%;display:grid;place-items:center;color:#fff;flex:none;position:relative;overflow:hidden}
.th::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.35),transparent 45%)}
.th svg{width:46%;height:46%;stroke-width:1.6;position:relative;z-index:1}

/* ---------- Sell ---------- */
.sell{display:grid;grid-template-columns:1fr 390px;height:100%;min-height:0}
.sell .pane{overflow:auto;min-width:0}
.sell .page{padding-bottom:30px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:14px}
.card{background:var(--surface);border-radius:20px;padding:12px;text-align:start;display:flex;flex-direction:column;gap:10px;box-shadow:var(--sh1);position:relative;transition:transform .12s ease,box-shadow .2s}
.card:hover{box-shadow:0 2px 4px rgba(15,30,80,.06),0 14px 34px rgba(15,30,80,.12)}
.card:active{transform:scale(.97)}
.card .th{width:100%;aspect-ratio:4/3;border-radius:14px}
.card .th svg{width:34%;height:auto}
.card .nm{font-weight:600;font-size:14.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.card .br{font-size:12.5px;color:var(--label2);margin-top:-6px}
.card .pr{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.card .pr b{font-size:17px;font-weight:700;letter-spacing:-.01em}
.card .pr span{font-size:11.5px;color:var(--label2)}
.card .qb{position:absolute;top:18px;inset-inline-end:18px;min-width:28px;height:28px;border-radius:14px;background:#fff;color:var(--blue);font-weight:800;display:grid;place-items:center;font-size:14px;box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:2;padding:0 8px}
.card.out{opacity:.5}
[dir="rtl"] .card .nm,[dir="rtl"] .card .pr b,[dir="rtl"] .card .pr span,[dir="rtl"] .row .t,[dir="rtl"] .row .s,[dir="rtl"] .line .inf b{text-align:right}
.card .stk{position:absolute;top:18px;inset-inline-start:18px;z-index:2}
.card .stk .pill{background:rgba(255,255,255,.9);backdrop-filter:blur(8px)}

.cartpane{background:var(--surface);border-inline-start:1px solid var(--sep);display:flex;flex-direction:column;min-height:0}
.cart{display:flex;flex-direction:column;height:100%;min-height:0}
.cart-h{display:flex;align-items:center;gap:10px;padding:22px 20px 10px}
.cart-h h2{margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em}
.cart-h .cnt{background:var(--blue);color:#fff;font-size:13px;font-weight:700;border-radius:12px;padding:2px 9px}
.cart-h .clr{margin-inline-start:auto;color:var(--red);font-weight:600;font-size:15px}
.custrow{margin:4px 16px 8px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--fill2);text-align:start}
.custrow .avatar{width:34px;height:34px;font-size:13px}
.custrow .grow{flex:1;min-width:0}
.custrow b{display:block;font-size:14.5px}
.custrow span{font-size:12.5px;color:var(--label2)}
.lines{flex:1;overflow:auto;padding:4px 16px;min-height:120px}
.line{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--sep)}
.line .th{width:48px;height:48px;border-radius:12px}
.line .inf{flex:1;min-width:0}
.line .inf b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.line .inf span{font-size:13px;color:var(--label2)}
.imeib{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:12px;font-weight:700;padding:3px 8px;border-radius:8px}
.imeib svg{width:13px;height:13px;stroke-width:2.2}
.stepper{display:flex;align-items:center;background:var(--fill);border-radius:10px;height:34px;flex:none}
.stepper button{width:32px;height:34px;display:grid;place-items:center;color:var(--label)}
.stepper button svg{width:15px;height:15px;stroke-width:2.4}
.stepper span{min-width:22px;text-align:center;font-weight:700;font-size:15px}
.sum{padding:14px 20px 20px;border-top:1px solid var(--sep);display:flex;flex-direction:column;gap:9px;background:var(--surface)}
.sum .r{display:flex;justify-content:space-between;align-items:center;color:var(--label2);font-size:15px}
.sum .r b{color:var(--label);font-weight:600}
.disc{display:flex;align-items:center;gap:4px;background:var(--fill);border-radius:8px;padding:2px 8px;height:30px}
.disc input{width:96px;border:0;background:none;outline:none;text-align:end;font-weight:600}
.tot{display:flex;justify-content:space-between;align-items:flex-end;margin:4px 0 6px}
.tot .l{font-size:17px;font-weight:700}
.tot .v{text-align:end}
.tot .v b{display:block;font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1}
.tot .v span{font-size:13px;color:var(--label2)}
.mcart{display:none}
.sheet .cart-h{padding:14px 20px 6px}.sheet .cart-h h2{display:none}.sheet .cart-h .clr{margin-inline-start:auto}

/* ---------- Dashboard ---------- */
.widgets{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.w{background:var(--surface);border-radius:22px;padding:18px;box-shadow:var(--sh1);min-width:0}
.w .wt{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--label2)}
.w .wt .dot{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:#fff}
.w .wt .dot svg{width:15px;height:15px;stroke-width:2.2}
.w .big{font-size:30px;font-weight:800;letter-spacing:-.03em;margin-top:12px;line-height:1.05}
.w .small{font-size:13px;color:var(--label2);margin-top:4px}
.w:not(.hero) .big{font-size:clamp(20px,1.9vw,28px);white-space:nowrap}
.w.hero{grid-column:span 2;background:var(--brand);color:#fff;position:relative;overflow:hidden}
.w.hero .wt{color:rgba(255,255,255,.85)}
.w.hero .small{color:rgba(255,255,255,.8)}
.w.hero .big{font-size:44px}
.w.hero::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;border:26px solid rgba(255,255,255,.08);inset-inline-end:-80px;top:-90px}
.w.span2{grid-column:span 2}
.w.span4{grid-column:1/-1}
.bars{display:flex;align-items:flex-end;gap:10px;height:180px;margin-top:16px}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end}
.bar i{display:block;width:100%;max-width:46px;border-radius:10px 10px 6px 6px;background:color-mix(in srgb,var(--blue) 28%,transparent);transition:height .6s cubic-bezier(.2,.8,.2,1)}
.bar.today i{background:var(--brand)}
.bar span{font-size:12px;color:var(--label2);font-weight:600}
.bar em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--label2)}
.split{display:flex;height:12px;border-radius:6px;overflow:hidden;margin-top:14px;gap:3px}
.legend{display:flex;flex-direction:column;gap:8px;margin-top:14px;font-size:14px}
.legend div{display:flex;align-items:center;gap:8px}
.legend i{width:10px;height:10px;border-radius:3px}
.legend b{margin-inline-start:auto}
.mini{display:flex;flex-direction:column;margin-top:8px}
.mini .row{padding:9px 0;min-height:auto;background:none}
.mini .row + .row::before{inset-inline-start:0}
.mini .th{width:36px;height:36px;border-radius:10px}
.rank{width:22px;font-weight:800;color:var(--label3);font-size:15px}

/* ---------- Repairs ---------- */
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.rc{background:var(--surface);border-radius:20px;padding:16px;box-shadow:var(--sh1);display:flex;flex-direction:column;gap:10px;text-align:start}
.rc .top{display:flex;justify-content:space-between;align-items:center}
.rc .no{font-size:13px;color:var(--label2);font-weight:600}
.rc h3{margin:0;font-size:17px}
.rc p{margin:0;color:var(--label2);font-size:14px}
.track{display:flex;gap:4px}
.track i{flex:1;height:5px;border-radius:3px;background:var(--fill)}
.track i.on{background:var(--blue)}
.rc .ft{display:flex;justify-content:space-between;align-items:center;font-size:14px}

/* ---------- Warehouse / Barcodes ---------- */
.widgets.w3{grid-template-columns:repeat(3,1fr);margin-bottom:18px}
.loc{display:flex;flex-direction:column;align-items:center;min-width:64px;gap:1px;flex:none}
.loc span{font-size:11px;color:var(--label2);font-weight:600}
.loc b{font-size:18px;font-weight:700}
.btn.sm{height:36px;width:40px;padding:0;flex:none}
.mvi{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:none}
.mvi svg{width:19px;height:19px;stroke-width:2}
.bcw{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.bcside{position:sticky;top:12px}
.ck{width:24px;height:24px;border-radius:50%;border:1.8px solid var(--label3);display:grid;place-items:center;color:transparent;flex:none}
.ck svg{width:14px;height:14px;stroke-width:3}
.ck.on{background:var(--blue);border-color:var(--blue);color:#fff}
.lblgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.lbl{background:#fff;color:#000;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.06);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4% 6%;overflow:hidden;container-type:size;text-align:center;font-family:"Inter",Arial,sans-serif;direction:ltr}
.lbl .ln{font-size:7cqw;font-weight:600;line-height:1.15;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none;unicode-bidi:plaintext}
.lbl svg{width:100%;flex:1 1 0;min-height:0}
.lbl .lp{font-size:9.5cqw;font-weight:800;line-height:1.1;flex:none}
.bcprev{background:#fff;border-radius:12px;padding:10px 16px;display:flex;justify-content:center;box-shadow:var(--sh1);min-height:20px}
.bcprev:empty{display:none}
.bcprev svg{height:78px;width:auto;max-width:100%}
select.inp{appearance:none;-webkit-appearance:none;margin-top:8px;cursor:pointer}
@media (max-width:1180px){.bcw{grid-template-columns:1fr}.bcside{position:static}}
@media (max-width:860px){.widgets.w3{grid-template-columns:1fr 1fr}.widgets.w3 .w:first-child{grid-column:1/-1}.loc{min-width:48px}.whrow .th{display:none}.whrow .t{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.whrow{gap:8px;padding-inline:12px}}

/* ---------- Categories / customers / report ---------- */
.icgrid{display:flex;flex-wrap:wrap;gap:8px}
.icb{width:42px;height:42px;border-radius:12px;background:var(--fill);display:grid;place-items:center;color:var(--label)}
.icb.on{background:var(--blue);color:#fff}
.swb{width:34px;height:34px;border-radius:50%}
.swb.on{box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--blue)}
.ctiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.ctiles div{background:var(--surface);border-radius:14px;padding:12px 14px;box-shadow:var(--sh1);min-width:0}
.ctiles span{display:block;font-size:12.5px;color:var(--label2)}
.ctiles b{font-size:17px;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rgrid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.hbar{height:6px;border-radius:3px;background:var(--fill);margin-top:6px;overflow:hidden}
.hbar i{display:block;height:100%;border-radius:3px;background:var(--brand)}
.rhead{font-size:12.5px;color:var(--label2);font-weight:600;min-height:38px!important}
.rfoot{font-weight:800}
.row .c1{width:56px;text-align:end;flex:none}
.row .c2{width:120px;text-align:end;flex:none}
.rhead .grow{padding-inline-start:46px}
.datef{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--label2);font-weight:600}
.datef input{height:36px;border-radius:10px;border:0;background:var(--surface);box-shadow:var(--sh1);padding:0 10px;font-size:14px;color:var(--label)}
.w .legend b{margin-inline-start:auto}
@media (max-width:860px){.w.hero .big{font-size:34px}.seg{overflow-x:auto;scrollbar-width:none}.seg::-webkit-scrollbar{display:none}.seg button{flex:1 0 auto}.rgrid2{grid-template-columns:1fr}.row .c2{width:92px}.row .c1{width:38px}.rhead .grow{padding-inline-start:0}.rgrid2 .th,.group .row .th{}}

.custlink{display:flex;align-items:center;gap:10px;text-align:start;min-width:0}
.custlink .avatar{width:34px;height:34px;font-size:12px}
.custlink .avatar.walk{background:var(--fill);color:var(--label2)}
.custlink .avatar.walk svg{width:18px;height:18px}
button.custlink b{color:var(--blue)}
.custlink .num{color:var(--label2);font-size:13px}
.rc .ft{gap:10px}
.devby{text-align:center;font-size:12px;color:var(--label2);padding:10px 16px 22px;letter-spacing:.01em}
.devby.onlock{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:0;right:0;color:rgba(255,255,255,.75);padding:0 16px}
@media (max-width:860px){.page{padding-bottom:20px}.devby{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.devby.insell{padding-bottom:calc(160px + env(safe-area-inset-bottom))}.devby.onlock{padding-bottom:0}}
@media (max-height:760px){.devby.onlock{position:static;margin-top:10px}}
.spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--fill);border-top-color:var(--blue);animation:spin .8s linear infinite}
.spin.sm{width:16px;height:16px;border-width:2px}
@keyframes spin{to{transform:rotate(360deg)}}
.empty.loading{min-height:180px}
body.busy{cursor:progress}
body.busy .cta,body.busy .sh-h .r,body.busy [data-a=complete],body.busy [data-a=recvPay]{opacity:.55;pointer-events:none}
.enterb{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.enterb button{display:flex;align-items:center;gap:10px;height:56px;padding:0 22px;border:0;border-radius:16px;background:rgba(255,255,255,.16);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 6px 20px rgba(0,0,0,.2)}
.enterb button:hover{background:rgba(255,255,255,.26)}
.enterb button .i{width:20px;height:20px}
.fatal{background:rgba(255,59,48,.92);color:#fff;border-radius:14px;padding:10px 16px;font-weight:600;font-size:14px;text-align:center;max-width:420px}
.fatal a{color:#fff;text-decoration:underline}
/* ---------- Sheet ---------- */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.36);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px}
.scrim.anim{animation:fade .25s ease}
.sheet{width:min(560px,100%);max-height:min(88dvh,820px);background:var(--bg);border-radius:22px;box-shadow:var(--sh2);display:flex;flex-direction:column;overflow:hidden}
.scrim.anim .sheet{animation:up .38s cubic-bezier(.2,.9,.25,1)}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(40px) scale(.98);opacity:0}}
.sh-h{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:14px 16px 10px;background:var(--glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--sep)}
.sh-h h3{margin:0;font-size:17px;font-weight:700;text-align:center}
.sh-h .l{justify-self:start;color:var(--blue);font-size:16px}
.sh-h .r{justify-self:end;color:var(--blue);font-size:16px;font-weight:700}
.sh-h .r:disabled{color:var(--label3)}
.sh-b{overflow:auto;padding:4px 16px 22px}
.sh-b.flush{padding:0}
.grab{display:none}
.fld{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.fld label{font-size:13px;color:var(--label2);padding-inline-start:4px}
.inp{height:46px;border-radius:12px;border:0;background:var(--surface);padding:0 14px;font-size:16px;outline:none;width:100%;box-shadow:var(--sh1)}
.inp:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 35%,transparent)}
.inp.bad{box-shadow:0 0 0 2px var(--red)}
.inp.ok{box-shadow:0 0 0 2px var(--green)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hint{font-size:12.5px;color:var(--label2);padding-inline-start:4px;min-height:16px}
.hint.bad{color:var(--red)} .hint.ok{color:var(--green)}
.paybig{text-align:center;padding:22px 0 10px}
.paybig b{display:block;font-size:46px;font-weight:800;letter-spacing:-.04em;line-height:1}
.paybig span{color:var(--label2);font-size:15px}
.change{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border-radius:14px;padding:14px 16px;margin-top:14px;box-shadow:var(--sh1)}
.change b{font-size:22px}
.quick{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.quick button{padding:8px 12px;border-radius:10px;background:var(--surface);box-shadow:var(--sh1);font-weight:600;font-size:14px}
.done{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 0 8px;text-align:center}
.tick{width:76px;height:76px;border-radius:50%;background:var(--green);display:grid;place-items:center;color:#fff;box-shadow:0 10px 30px color-mix(in srgb,var(--green) 45%,transparent)}
.tick svg{width:40px;height:40px;stroke-width:3;stroke-dasharray:40;stroke-dashoffset:0}
.scrim.anim .tick{animation:pop .5s cubic-bezier(.2,1.6,.4,1)}
.scrim.anim .tick svg{animation:draw .5s .2s ease both}
@keyframes pop{from{transform:scale(.3);opacity:0}}
@keyframes draw{from{stroke-dashoffset:40}}
.done h2{margin:10px 0 0;font-size:24px;letter-spacing:-.02em}
.done p{margin:0;color:var(--label2)}
.rcpt{background:var(--surface);border-radius:16px;padding:18px;margin-top:16px;box-shadow:var(--sh1);font-size:14px}
.rcpt .rl{display:flex;justify-content:space-between;gap:10px;padding:5px 0}
.rcpt .rl span{color:var(--label2)}
.rcpt .imeis{font-size:12px;color:var(--label2);padding:0 0 4px;direction:ltr;text-align:start}
.rcpt hr{border:0;border-top:1px dashed var(--sep);margin:8px 0}
.actions{display:flex;gap:10px;margin-top:16px}
.actions > *{flex:1}

/* toast */
.toast{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translate(-50%,calc(-100% - 40px));z-index:80;background:var(--glass);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);border-radius:24px;padding:10px 18px 10px 12px;display:flex;align-items:center;gap:10px;font-weight:600;box-shadow:0 10px 40px rgba(0,0,0,.18);transition:transform .45s cubic-bezier(.2,.9,.25,1);max-width:calc(100% - 32px);border:1px solid var(--glass-b)}
.toast.show{transform:translate(-50%,0)}
.toast .ti{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}
.toast .ti svg{width:15px;height:15px;stroke-width:2.6}

/* switch */
.sw{width:51px;height:31px;border-radius:16px;background:var(--fill);position:relative;flex:none;transition:background .25s}
.sw::after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.15);transition:inset-inline-start .25s}
.sw.on{background:var(--green)}
.sw.on::after{inset-inline-start:22px}

#print{display:none}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .sell{grid-template-columns:1fr 340px}
  .widgets{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .shell{grid-template-columns:1fr;grid-template-rows:1fr auto}
  .side{display:none}
  .page{padding:18px 16px 120px}
  .lt h1{font-size:30px}
  .search{min-width:0;flex:1 1 100%}
  .sell{grid-template-columns:1fr}
  .cartpane{display:none}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .tabbar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--glass);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);border-top:1px solid var(--sep);padding:6px 4px max(8px,env(safe-area-inset-bottom));overflow-x:auto}
  .tabbar button{flex:1 0 58px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;font-weight:600;color:var(--label2);padding:4px 2px}
  .tabbar button.on{color:var(--blue)}
  .tabbar svg{width:25px;height:25px}
  .mcart{display:flex;position:fixed;left:12px;right:12px;bottom:calc(70px + env(safe-area-inset-bottom));z-index:39;align-items:center;gap:12px;background:var(--brand);color:#fff;border-radius:18px;padding:12px 16px;box-shadow:0 12px 30px rgba(36,88,252,.4);text-align:start}
  .mcart .c{width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.2);display:grid;place-items:center;font-weight:800}
  .mcart b{font-size:17px}
  .mcart span{margin-inline-start:auto;font-weight:700}
  .widgets{grid-template-columns:1fr 1fr;gap:12px}
  .w.hero,.w.span2{grid-column:1/-1}
  .scrim{padding:0;align-items:flex-end}
  .sheet{width:100%;border-radius:22px 22px 0 0;max-height:92dvh}
  .scrim.anim .sheet{animation:upm .42s cubic-bezier(.2,.9,.25,1)}
  @keyframes upm{from{transform:translateY(100%)}}
  .sh-b{padding-bottom:max(22px,env(safe-area-inset-bottom))}
  .sheet .cart{height:auto}
  .sheet .lines{max-height:40dvh}
  .two{grid-template-columns:1fr}
  .rcpt-hide-m{display:none}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media print{
  body{background:#fff;overflow:visible}
  #app,#toast{display:none!important}
  #print{display:block;color:#000}
  #print.rc{width:72mm;margin:0 auto;padding:4mm 0;font-family:"Inter",Arial,sans-serif;font-size:11px}
  #print.rc img{display:block;height:16mm;margin:0 auto 2mm}
  #print.rc .c{text-align:center}
  #print.rc .l{display:flex;justify-content:space-between;gap:4px;padding:1px 0}
  #print.rc hr{border:0;border-top:1px dashed #000;margin:3mm 0}
  #print.rc .big{font-size:15px;font-weight:800}
  #print.rc .im{font-size:9px}
  #print.rc .l>span{unicode-bidi:plaintext}
  #print .devp{text-align:center;font-size:8pt;color:#333;margin-top:3mm;padding-top:2mm;border-top:1px solid #ccc}
  #print.rc svg{display:block;width:50mm;margin:3mm auto 0}
  #print.rc .big{font-size:14px}
  #print.a4{font-family:"Inter","Noto Sans Arabic",Arial,sans-serif;font-size:10pt;color:#000;width:auto}
  #print.a4 .a4-h{display:flex;align-items:center;gap:16px;border-bottom:2px solid #1A48D6;padding-bottom:10px;margin-bottom:14px}
  #print.a4 .a4-h img{height:17mm}
  #print.a4 .shop{flex:1;font-size:9pt;line-height:1.45}
  #print.a4 .ttl{text-align:end}
  #print.a4 .ttl h1{margin:0;font-size:18pt;color:#0B2E8A}
  #print.a4 .ttl .per{font-weight:700;font-size:10pt;margin-top:2px}
  #print.a4 .ttl span{font-size:8pt;color:#555}
  #print.a4 .a4-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:14px;align-items:flex-start}
  #print.a4 .who span{display:block;font-size:8pt;color:#555}
  #print.a4 .who b{font-size:14pt;display:block}
  #print.a4 .ph{text-align:start}
  #print.a4 .kv{display:grid;grid-template-columns:auto auto;gap:3px 18px;font-size:9.5pt;border:1px solid #d6dcef;border-radius:6px;padding:8px 12px}
  #print.a4 .kv b{text-align:end;white-space:nowrap}
  #print.a4 .kv .big{font-size:11pt;border-top:1px solid #ccc;padding-top:3px;font-weight:800;color:#0B2E8A}
  #print.a4 table{width:100%;border-collapse:collapse;font-size:9pt;margin-bottom:10px}
  #print.a4 th{background:#EEF2FF;text-align:start;padding:5px 7px;border-bottom:1px solid #9aa9d6;font-weight:700}
  #print.a4 td{padding:4px 7px;border-bottom:1px solid #e3e3e3;vertical-align:top}
  #print.a4 .n{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
  #print.a4 .n0{white-space:nowrap}
  #print.a4 tfoot td{font-weight:800;border-top:2px solid #000;border-bottom:0}
  #print.a4 .sub{font-size:7.5pt;color:#666}
  #print.a4 .muted td{color:#666;font-style:italic}
  #print.a4 h2{font-size:11pt;margin:14px 0 5px;color:#0B2E8A}
  #print.a4 .kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:4px}
  #print.a4 .kpis div{border:1px solid #d6dcef;border-radius:6px;padding:6px 8px}
  #print.a4 .kpis span{display:block;font-size:7.5pt;color:#555}
  #print.a4 .kpis b{font-size:11pt;white-space:nowrap}
  #print.a4 .cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  #print.a4 .sign{margin-top:28px;display:flex;justify-content:flex-end;font-size:9.5pt}
  #print.a4 .a4-f{margin-top:18px;font-size:7.5pt;color:#777;text-align:center;border-top:1px solid #ddd;padding-top:5px}
  #print.a4 tr{break-inside:avoid}
  #print.lb .lbl{border-radius:0;box-shadow:none;break-after:page;page-break-after:always;padding:1.2mm 2mm}
}
