/* COUNTER surface: the dead-simple, big-button daily driver. Full-screen overlay,
   theme-aware through the shared design tokens. All classes are prefixed .ctr- and live
   under #counter so nothing here touches the office shell. */

#counter{position:fixed;inset:0;z-index:60;background:var(--bg);display:none;flex-direction:column;
         font-family:var(--font);color:var(--text)}
#counter.show{display:flex}
.ctr-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.ctr-wrap{max-width:520px;margin:0 auto;width:100%}

/* top bar */
.ctr-top{background:linear-gradient(150deg,var(--brand),var(--brand-2));color:#fff;
         padding:14px 16px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:5}
.ctr-brand{display:flex;align-items:center;gap:11px;min-width:0}
.ctr-mark{width:40px;height:40px;border-radius:11px;background:#fff;overflow:hidden;
          display:grid;place-items:center;flex:none}
.ctr-mark svg{width:24px;height:24px}
.ctr-markimg{width:100%;height:100%;object-fit:contain}
.ctr-bname{font-weight:800;font-size:18px;letter-spacing:-.01em;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctr-bsub{font-size:11px;color:rgba(255,255,255,.75);letter-spacing:.08em;text-transform:uppercase}
.ctr-top-actions{margin-left:auto;display:flex;gap:8px;flex:none}
.ctr-tbtn{height:40px;padding:0 12px;border-radius:11px;border:1px solid rgba(255,255,255,.25);
          background:rgba(255,255,255,.12);color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;gap:7px}
.ctr-tbtn svg{width:18px;height:18px}
.ctr-iconbtn{width:40px;height:40px;padding:0;justify-content:center}

/* screens */
.ctr-screen{display:none;flex-direction:column}
.ctr-screen.active{display:flex}
.ctr-head{display:flex;align-items:center;gap:12px;padding:16px 16px 4px}
.ctr-back{width:48px;height:48px;flex:none;border-radius:14px;border:1px solid var(--border);
          background:var(--surface);color:var(--text);display:grid;place-items:center;box-shadow:var(--shadow)}
.ctr-back svg{width:26px;height:26px}
.ctr-htitle{font-size:22px;font-weight:800;letter-spacing:-.02em}
.ctr-hsub{font-size:13px;color:var(--text-dim);margin-top:1px}

/* home */
.ctr-hello{padding:18px 18px 2px}
.ctr-hello .g{font-size:26px;font-weight:800;letter-spacing:-.02em}
.ctr-hello .d{font-size:13.5px;color:var(--text-dim);margin-top:3px}
.ctr-today{margin:14px 16px 2px;background:var(--surface);border:1px solid var(--border);
           border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:1fr 1fr 1fr;overflow:hidden}
.ctr-tcell{padding:14px 8px;text-align:center;border-left:1px solid var(--border-soft)}
.ctr-tcell:first-child{border-left:0}
.ctr-tcell .l{font-size:12px;color:var(--text-dim);font-weight:500}
.ctr-tcell .v{font-size:19px;font-weight:800;margin-top:5px;letter-spacing:-.01em}
.ctr-tcell .v.in{color:var(--green)} .ctr-tcell .v.out{color:var(--red)}

.ctr-hero{margin:14px 16px 0;border:0;border-radius:22px;color:#fff;
          background:linear-gradient(140deg,var(--brand),var(--brand-2));
          box-shadow:0 12px 30px color-mix(in srgb,var(--brand) 35%,transparent);
          padding:20px;display:flex;align-items:center;gap:16px;width:calc(100% - 32px);text-align:left}
.ctr-hero:active{transform:scale(.99)}
.ctr-hero .hic{width:60px;height:60px;border-radius:17px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.ctr-hero .hic svg{width:34px;height:34px}
.ctr-hero .hero-txt{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ctr-hero .ht{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.ctr-hero .hs{display:block;font-size:14px;color:rgba(255,255,255,.82);margin-top:3px}
.ctr-hero .harr{margin-left:auto}
.ctr-hero .harr svg{width:28px;height:28px}

.ctr-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px 20px}
.ctr-tile{--c:var(--brand);--cb:var(--surface-3);background:var(--surface);border:1px solid var(--border);
          border-radius:20px;padding:16px 15px;text-align:left;box-shadow:var(--shadow);
          display:flex;flex-direction:column;gap:11px;min-height:130px;transition:transform .12s,box-shadow .12s}
.ctr-tile:hover{box-shadow:var(--shadow-lg)} .ctr-tile:active{transform:scale(.97)}
.ctr-disc{width:52px;height:52px;border-radius:15px;background:var(--cb);color:var(--c);display:grid;place-items:center}
.ctr-disc svg{width:29px;height:29px}
.ctr-tile .t{font-weight:800;font-size:18px;letter-spacing:-.01em;color:var(--text);line-height:1.15}
.ctr-tile .s{font-size:12.5px;color:var(--text-faint);margin-top:-5px}
.ctr-foot{text-align:center;font-size:12px;color:var(--text-faint);padding:2px 20px 24px}

/* ---- desktop-first counter home: New Sale dominant + accounts always visible ---- */
.ctr-home{max-width:1360px;margin:0 auto;width:100%;padding:8px 16px 26px}
.ctr-home .ctr-hello{padding:12px 2px 2px}
.ctr-home .ctr-today{margin:10px 0 2px}
.ctr-homegrid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:14px}
@media(min-width:920px){ .ctr-homegrid{grid-template-columns:1.55fr 1fr;align-items:start} }
.ctr-home-left{display:flex;flex-direction:column;gap:14px;min-width:0}
.ctr-home .ctr-hero{margin:0;width:100%}
@media(min-width:920px){
  .ctr-home .ctr-hero{padding:32px 28px}
  .ctr-home .ctr-hero .ht{font-size:30px}
  .ctr-home .ctr-hero .hs{font-size:15px}
  .ctr-home .ctr-hero .hic{width:72px;height:72px}
  .ctr-home .ctr-hero .hic svg{width:40px;height:40px}
}
.ctr-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(min-width:1180px){ .ctr-actions{grid-template-columns:repeat(4,1fr)} }
.ctr-actions .ctr-tile{min-height:120px}
.ctr-owe{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
@media(min-width:920px){ .ctr-owe{position:sticky;top:8px;max-height:calc(100vh - 96px)} }
.ctr-owetop{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;border-bottom:1px solid var(--border-soft)}
.ctr-owetop .k{font-size:12.5px;color:var(--text-dim);font-weight:600}
.ctr-owetop .v{font-size:23px;font-weight:800;color:var(--red);letter-spacing:-.01em;margin-top:2px}
.ctr-oweall{border:0;background:transparent;color:var(--brand);font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:2px;cursor:pointer;white-space:nowrap}
.ctr-oweall svg{width:15px;height:15px}
.ctr-owelist{overflow-y:auto;padding:6px;display:flex;flex-direction:column;gap:2px}
.ctr-owerow{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;border-radius:12px;padding:9px 10px;cursor:pointer;text-align:left;transition:.1s}
.ctr-owerow:hover{background:var(--surface-2)}
.ctr-owerow .ow-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ow-who .n{font-weight:700;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ow-who .r{font-size:11.5px;color:var(--text-faint)}
.ow-amt{font-weight:800;color:var(--red);font-size:15px;flex:none}
.ctr-av.sm{width:38px;height:38px;font-size:15px;border-radius:11px}
.ctr-oweempty{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-faint);padding:40px 16px;text-align:center;font-size:13.5px}
.ctr-oweempty svg{width:32px;height:32px;color:var(--brand)}
/* ---- privacy: blur money figures so people at the counter can't read them ---- */
#counter.private .ctr-tcell .v,
#counter.private .ctr-bal .a,
#counter.private .ow-amt,
#counter.private .ctr-owetop .v,
#counter.private .ctr-bigstat .v,
#counter.private .ctr-dstat .v,
#counter.private .ctr-chancell .v,
#counter.private .pty-owe.out,
#counter.private .pty-card.owe .v,
#counter.private .sold-row .sr-amt{
  filter:blur(9px);-webkit-filter:blur(9px);transition:filter .15s;user-select:none;pointer-events:none;
}
.ctr-top-actions .ctr-iconbtn.on{background:rgba(255,255,255,.22)}

/* search + rows */
.ctr-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);
            border-radius:15px;padding:13px 15px;margin:10px 16px 4px;box-shadow:var(--shadow)}
.ctr-search svg{width:20px;height:20px;color:var(--text-faint);flex:none}
.ctr-search input{border:0;background:transparent;outline:none;font-family:var(--font);font-size:16px;color:var(--text);width:100%}
.ctr-rows{display:flex;flex-direction:column;gap:10px;padding:10px 16px 24px}
/* on a shop laptop, lists become multi-column so you see many shops/products at once */
@media(min-width:900px){
  .ctr-wrap{max-width:1160px}
  .ctr-wrap .ctr-search{margin-left:16px;margin-right:16px;width:auto}
  .ctr-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;align-items:start}
}
.ctr-row{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--border);
         border-radius:16px;padding:14px;box-shadow:var(--shadow);text-align:left;width:100%;color:var(--text);
         cursor:pointer;transition:transform .1s,box-shadow .12s,border-color .12s}
.ctr-row:hover{box-shadow:var(--shadow-lg);border-color:var(--brand)}
.ctr-row:active{background:var(--surface-2);transform:scale(.99)}
.ctr-av{width:48px;height:48px;flex:none;border-radius:13px;background:var(--brand-soft);color:var(--brand);
        display:grid;place-items:center;font-weight:800;font-size:20px}
.ctr-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.ctr-who .n{font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctr-who .r{font-size:12.5px;color:var(--text-dim)}
.ctr-bal{margin-left:auto;text-align:right;flex:none;padding-left:8px}
.ctr-bal .a{font-size:17px;font-weight:800}
.ctr-bal .a.out{color:var(--red)} .ctr-bal .a.clear{color:var(--green)}
.ctr-bal .t{font-size:11px;color:var(--text-faint)}
.ctr-row.cash .ctr-av{background:var(--green-soft);color:var(--green)}
/* walk-in / cash sale = the priority action, a bold card above the shop list */
.ctr-cashcard{display:flex;align-items:center;gap:14px;width:calc(100% - 32px);margin:8px 16px 4px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border:0;border-radius:18px;
  box-shadow:0 10px 26px var(--brand-glow);padding:17px 20px;cursor:pointer;text-align:left;
  transition:transform .1s,box-shadow .12s}
.ctr-cashcard:hover{box-shadow:0 14px 32px var(--brand-glow)}
.ctr-cashcard:active{transform:scale(.99)}
.cc-ic{width:52px;height:52px;border-radius:15px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.cc-ic svg{width:29px;height:29px}
.cc-txt{display:flex;flex-direction:column;min-width:0}
.cc-t{font-size:20px;font-weight:800;letter-spacing:-.01em}
.cc-s{font-size:13px;color:rgba(255,255,255,.85);margin-top:1px}
.cc-arr{margin-left:auto}.cc-arr svg{width:26px;height:26px}
.ctr-orsep{display:flex;align-items:center;gap:12px;color:var(--text-faint);font-size:12px;font-weight:600;margin:12px 16px 4px}
.ctr-orsep::before,.ctr-orsep::after{content:"";height:1px;background:var(--border);flex:1}

/* product grid: 2-up on a phone, but fills a wide shop screen with many columns
   so more stock shows in one frame */
.ctr-wide{max-width:1280px;margin:0 auto;width:100%}
.ctr-pgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:14px 18px 160px}
@media(min-width:700px){ .ctr-pgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))} }
.ctr-pcard{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:12px;
           box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:6px}
.ctr-pcard.has{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft),var(--shadow)}
.ctr-pmedia{position:relative;height:98px;display:grid;place-items:center;width:100%;background:#fff;border-radius:12px;padding:5px}
.ctr-pmedia svg{height:88px;width:auto}
.ctr-psize{position:absolute;top:0;right:0;background:var(--text);color:var(--bg);font-size:11px;font-weight:700;padding:2px 7px;border-radius:20px}
.ctr-pn{font-weight:700;font-size:16px;text-align:center;line-height:1.2}
.ctr-pn small{display:block;font-weight:500;color:var(--text-faint);font-size:11px}
.ctr-pprice{font-size:18px;font-weight:800}
.ctr-step{display:flex;align-items:center;gap:6px;width:100%;margin-top:2px}
.ctr-stp{flex:1;height:46px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface-2);
         color:var(--text);font-size:26px;font-weight:700;line-height:1;display:grid;place-items:center}
.ctr-stp.plus{background:var(--brand);border-color:var(--brand);color:#fff}
.ctr-qv{min-width:34px;text-align:center;font-size:20px;font-weight:800}

/* sticky action bar */
.ctr-actbar{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border);
            padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;
            box-shadow:0 -8px 24px rgba(0,0,0,.10)}
.ctr-sum .k{font-size:12px;color:var(--text-dim)}
.ctr-sum .v{font-size:23px;font-weight:800}
.ctr-go{margin-left:auto;background:var(--brand);color:#fff;border:0;border-radius:15px;padding:0 22px;height:56px;
        display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px;box-shadow:var(--shadow)}
.ctr-go:disabled{opacity:.4}
.ctr-go svg{width:22px;height:22px}
.ctr-go.block{width:calc(100% - 32px);margin:12px 16px 22px;justify-content:center}

/* pay screen */
.ctr-pay{padding:18px;display:flex;flex-direction:column;gap:16px;max-width:520px;margin:0 auto;width:100%}
.ctr-total{background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:24px;text-align:center}
.ctr-total .k{font-size:14px;color:var(--text-dim)}
.ctr-total .v{font-size:46px;font-weight:800;letter-spacing:-.03em;margin-top:6px}
.ctr-chip{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:13px 15px;box-shadow:var(--shadow)}
.ctr-chip .n{font-weight:800;font-size:17px}
.ctr-chip .b{font-size:12.5px;color:var(--text-dim)}
.ctr-paylabel{text-align:center;font-size:14.5px;color:var(--text-dim)}
.ctr-paybtns,.ctr-paygrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.ctr-paygrid.one{grid-template-columns:1fr}
.ctr-paybtn{border:1.5px solid var(--border);border-radius:20px;padding:18px 12px;background:var(--surface);
            display:flex;flex-direction:column;align-items:center;gap:9px;box-shadow:var(--shadow);color:var(--text);cursor:pointer;transition:transform .1s,box-shadow .12s,border-color .12s}
.ctr-paybtn:hover{box-shadow:var(--shadow-lg);border-color:var(--brand)}
.ctr-paybtn:active{transform:scale(.98)}
.ctr-paybtn .ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.ctr-paybtn .ic svg{width:28px;height:28px}
.ctr-paybtn .t{font-weight:800;font-size:17px}
.ctr-paybtn .s{font-size:11px;color:var(--text-faint);letter-spacing:.04em;text-transform:uppercase}
.ctr-paybtn.cash .ic{background:var(--green-soft);color:var(--green)}
.ctr-paybtn.credit{grid-column:1/-1;flex-direction:row;justify-content:center;gap:14px}
.ctr-paybtn.credit .ic{background:var(--brand-soft);color:var(--brand)}
.ctr-newbal{background:var(--brand-soft);border:1px solid var(--brand);border-radius:14px;padding:12px 15px;font-size:14px;color:var(--brand);text-align:center;font-weight:600}
/* recovery channel chips */
.ctr-paychips{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.ctr-paychip{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--border);background:var(--surface);border-radius:14px;padding:11px 16px;font-weight:700;font-size:14px;color:var(--text-dim);cursor:pointer;transition:.12s}
.ctr-paychip svg{width:19px;height:19px}
.ctr-paychip.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
/* Today: collected-by-channel */
.ctr-chan .ctr-chanrow{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:560px){ .ctr-chan .ctr-chanrow{grid-template-columns:1fr} }
.ctr-chancell{display:flex;align-items:center;gap:11px}
.ctr-chancell .ci{width:42px;height:42px;flex:none;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.ctr-chancell .ci svg{width:22px;height:22px}
.ctr-chancell .k{font-size:12.5px;color:var(--text-dim)}
.ctr-chancell .v{font-size:19px;font-weight:800;margin-top:1px}
/* payment channels shown as real, full-colour brand badges (self-contained SVG) */
.ctr-paybtn[data-m="cash"] .ic,
.ctr-paybtn[data-m="bank"] .ic,
.ctr-paybtn[data-m="jazzcash"] .ic{background:transparent;box-shadow:none;padding:0}
.ctr-payimg{display:block;object-fit:contain}

/* ===== Urdu / RTL (authentic Nastaliq) ===== */
.ctr-langbtn{font-weight:800;font-size:14px;letter-spacing:.01em;padding:0 15px;min-width:48px;
  font-family:system-ui,-apple-system,"Noto Nastaliq Urdu","Noto Naskh Arabic",Segoe UI,sans-serif}
#counter.urdu{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",system-ui,-apple-system,serif;line-height:2.1}
#counter.urdu .ctr-langbtn{font-family:system-ui,-apple-system,sans-serif}
/* Nastaliq is tall & cursive — give every line generous room and let controls grow so nothing clips */
#counter.urdu .ctr-htitle,#counter.urdu .ht,#counter.urdu .g,#counter.urdu .cc-t,#counter.urdu .ctr-sec-h,
#counter.urdu .dt,#counter.urdu .ctr-bname,#counter.urdu .pty-card .v,#counter.urdu .ctr-tile .t{line-height:1.9}
#counter.urdu .hs,#counter.urdu .ctr-hsub,#counter.urdu .cc-s,#counter.urdu .ctr-tile .s,
#counter.urdu .ctr-bc-meta,#counter.urdu .ctr-punit,#counter.urdu .cc-s,#counter.urdu .pty-card .k,#counter.urdu .pty-card .s{line-height:1.95}
#counter.urdu .ctr-go{height:auto;min-height:60px;padding-top:14px;padding-bottom:14px;line-height:1.9}
#counter.urdu .ctr-tile{min-height:146px}
#counter.urdu .ctr-paybtn .t{line-height:1.75}
#counter.urdu .ctr-tbtn{height:auto;min-height:40px;padding-top:5px;padding-bottom:5px}
#counter.urdu .cc-t,#counter.urdu .cc-s{padding-bottom:2px}
/* numbers, prices, keypad and the language button read left-to-right even inside RTL */
#counter.urdu .ctr-pprice,#counter.urdu .rr-price,#counter.urdu .ctr-qin,#counter.urdu .rr-in,
#counter.urdu .ctr-k,#counter.urdu .ctr-amt .v,#counter.urdu .da,#counter.urdu .ctr-total .v,
#counter.urdu .pty-card .v,#counter.urdu .ctr-bigstat .v,#counter.urdu .ctr-dstat .v{direction:ltr;unicode-bidi:plaintext}
/* flip the directional chevrons so "back"/"forward" point the right way in RTL */
#counter.urdu .ctr-back svg,#counter.urdu .harr svg,#counter.urdu .cc-arr svg,
#counter.urdu .ctr-oweall svg,#counter.urdu .ctr-allbtn svg{transform:scaleX(-1)}

/* ===== Parties hub + party detail + empties ===== */
.ctr-rows.one{display:flex!important;flex-direction:column;gap:10px}
.pty-row{align-items:center}
.pty-stats{display:flex;align-items:center;gap:16px;margin-left:auto;padding-left:4px}
.pty-emp{display:flex;align-items:center;gap:5px;color:var(--text-dim);font-weight:700;font-size:12.5px}
.pty-emp svg{width:17px;height:17px;opacity:.75}
.pty-emp b{color:#2563c9;font-size:15px}
.pty-owe{text-align:right;font-weight:800;font-size:16px;line-height:1.1}
.pty-owe.out{color:var(--brand)}
.pty-owe.clear{color:var(--green);font-weight:700;font-size:14px}
.pty-owe span{display:block;font-size:10.5px;color:var(--text-faint);font-weight:600;letter-spacing:.03em;text-transform:uppercase}
.pty-stat2{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:8px 16px 4px}
.pty-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:16px 18px;box-shadow:var(--shadow)}
.pty-card .k{font-size:12.5px;color:var(--text-dim)}
.pty-card .v{font-size:28px;font-weight:800;margin-top:4px;line-height:1.05}
.pty-card .s{font-size:11.5px;color:var(--text-faint);margin-top:3px}
.pty-card.owe .v{color:var(--brand)}
.pty-card.emp .v{color:#2563c9}
.pty-acts{display:flex;flex-direction:column;gap:0}
.ctr-go.alt{background:#2563c9}
.ctr-go.ghosty{background:var(--surface-3,#eef0f3);color:var(--text)}
@media(min-width:900px){ .pty-acts{flex-direction:row;gap:12px;padding:6px 16px} .pty-acts .ctr-go.block{margin:0} }

/* New Sale: Wholesale section heading (two options: Retail card above, Wholesale shops below) */
.ctr-wshead{display:flex;align-items:baseline;gap:10px;padding:20px 18px 2px}
.ctr-wshead span{font-size:18px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.ctr-wshead small{font-size:12.5px;color:var(--text-faint)}
#counter.urdu .ctr-wshead{line-height:1.9}

/* Wholesale option card — distinct dark look next to the red Retail card */
.ctr-wholecard{background:linear-gradient(135deg,#2c2320,#17100f);box-shadow:0 10px 26px rgba(0,0,0,.34);margin-top:12px}
.ctr-wholecard:hover{box-shadow:0 14px 32px rgba(0,0,0,.42)}

/* editable per-line rate in the Bill (raise/lower any item for this bill) */
.cl-ratewrap{display:inline-flex;align-items:center;gap:3px;font-weight:700}
.cl-rate{width:52px;border:1px solid var(--border);border-radius:7px;padding:1px 4px;font-size:12.5px;font-weight:800;
  color:var(--text);text-align:center;background:var(--surface)}
.cl-rate:focus{outline:none;border-color:var(--brand);color:var(--brand)}
.cl-rate.on{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}
.cl-was{font-size:11px;color:var(--text-faint);text-decoration:line-through}
#counter.urdu .cl-rate{direction:ltr;unicode-bidi:plaintext}

/* alphabetical / day letter headers in lists */
.ctr-letterhead{font-size:13px;font-weight:800;color:var(--brand);padding:14px 6px 3px;letter-spacing:.06em}
/* invoices list + single-invoice view */
.inv-amt{margin-left:auto;font-weight:800;font-size:16px;color:var(--text);flex:none}
.inv-cash{color:var(--green);font-weight:700}
.inv-udh{color:var(--brand);font-weight:700}
.inv-view{display:flex;justify-content:center;padding:8px 16px 16px}
.inv-img{width:100%;max-width:480px;border-radius:10px;box-shadow:var(--shadow-lg);border:1px solid var(--border)}
#counter.private .inv-amt{filter:blur(9px);-webkit-filter:blur(9px);user-select:none;pointer-events:none}
/* "last rate to this shop" hints */
.ctr-plast{font-size:11.5px;color:#2563c9;font-weight:700;margin-top:2px}
.cl-last{margin-inline-start:8px;font-size:11.5px;font-weight:700;color:#2563c9;background:rgba(37,99,201,.1);border:0;border-radius:7px;padding:2px 8px;cursor:pointer;vertical-align:middle}
.cl-last.diff{color:var(--brand);background:var(--brand-soft)}
/* Urdu shop name shown beside the English name */
.n-ur{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;font-weight:600;color:var(--text-dim);font-size:15px;margin-inline-start:7px;line-height:1.7}
/* Urdu-name editor on the party page */
.pty-urrow{display:flex;align-items:center;gap:8px;padding:2px 16px 8px}
.pty-urlbl{font-size:12px;color:var(--text-faint);flex:none}
.pty-urin{flex:1;min-width:0;border:1.5px solid var(--border);border-radius:12px;padding:9px 13px;font-size:16px;background:var(--surface);
  font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;direction:rtl;line-height:1.9}
.pty-urin:focus{outline:none;border-color:var(--brand)}
.pty-ursave{flex:none}
.pty-urshow{padding:0 16px 8px;font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;color:var(--text-dim);font-size:17px;line-height:1.8}

/* Print: show ONLY the invoice image, nothing else */
#ctr-printarea{display:none}
@media print{
  html,body{background:#fff!important}
  body>*:not(#ctr-printarea){display:none!important}
  #ctr-printarea{display:block!important;position:static;margin:0;padding:0}
  #ctr-printarea img{width:100%;max-width:150mm;display:block;margin:0 auto}
}
.ctr-paybtn[data-m="cash"] .ic svg,
.ctr-paybtn[data-m="bank"] .ic svg,
.ctr-paybtn[data-m="jazzcash"] .ic svg,
.ctr-paybtn[data-m] .ic .ctr-payimg{width:54px;height:54px}
.ctr-paychip[data-m="cash"] svg,
.ctr-paychip[data-m="bank"] svg,
.ctr-paychip[data-m="jazzcash"] svg,
.ctr-paychip[data-m] .ctr-payimg{width:24px;height:24px}
.ctr-paychip[data-m="cash"].on{border-color:var(--green);background:var(--green-soft);color:var(--green)}
.ctr-paychip[data-m="bank"].on{border-color:#2563c9;background:rgba(37,99,201,.12);color:#2563c9}
.ctr-paychip[data-m="jazzcash"].on{border-color:#f26522;background:rgba(242,101,34,.14);color:#f26522}
.ctr-chancell[data-ch="cash"] .ci,
.ctr-chancell[data-ch="bank"] .ci,
.ctr-chancell[data-ch="jazzcash"] .ci{background:transparent}
.ctr-chancell[data-ch="cash"] .ci svg,
.ctr-chancell[data-ch="bank"] .ci svg,
.ctr-chancell[data-ch="jazzcash"] .ci svg,
.ctr-chancell[data-ch] .ci .ctr-payimg{width:42px;height:42px}

/* keypad */
.ctr-key-wrap{padding:14px 18px 22px;display:flex;flex-direction:column;gap:13px;max-width:520px;margin:0 auto;width:100%}
.ctr-amt{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:20px;text-align:center}
.ctr-amt .k{font-size:13.5px;color:var(--text-dim)}
.ctr-amt .v{font-size:46px;font-weight:800;letter-spacing:-.03em;margin-top:4px}
.ctr-balline{display:flex;justify-content:space-between;font-size:14px;color:var(--text-dim);padding:0 4px}
.ctr-balline b{color:var(--red)} .ctr-balline.new b{color:var(--green)}
.ctr-presets{display:flex;gap:8px}
.ctr-preset{flex:1;border:1.5px solid var(--border);background:var(--surface);border-radius:13px;padding:12px 4px;font-weight:800;font-size:15px;color:var(--brand);box-shadow:var(--shadow)}
.ctr-keys{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
.ctr-k{height:58px;border-radius:15px;border:1px solid var(--border);background:var(--surface);font-size:26px;font-weight:700;color:var(--text);box-shadow:var(--shadow)}
.ctr-k.util{background:var(--surface-2);color:var(--text-dim);font-size:20px}
.ctr-k svg{width:26px;height:26px}

/* big stat (khata) */
.ctr-bigstat{margin:12px 16px 2px;background:var(--red-soft);border:1px solid var(--red);border-radius:18px;padding:17px;text-align:center}
.ctr-bigstat .k{font-size:13.5px;color:var(--red);font-weight:600}
.ctr-bigstat .v{font-size:34px;font-weight:800;color:var(--red);margin-top:3px;letter-spacing:-.02em}

/* stock rows */
.ctr-stockrow .ctr-av{background:transparent;width:54px;height:54px}
.ctr-stockrow .ctr-av svg{height:52px}
.ctr-stk{margin-left:auto;text-align:right}
.ctr-stk .q{font-size:22px;font-weight:800}
.ctr-stk .u{font-size:11.5px;color:var(--text-faint)}
.ctr-low{font-size:11px;font-weight:700;color:var(--red);background:var(--red-soft);padding:2px 8px;border-radius:20px;display:inline-block;margin-top:3px}

/* day / denom */
.ctr-day{padding:14px 16px 26px;display:flex;flex-direction:column;gap:14px;max-width:1100px;margin:0 auto;width:100%}
.ctr-d3{display:grid;grid-template-columns:1fr 1fr;gap:11px}
@media(min-width:820px){ .ctr-d3{grid-template-columns:repeat(4,1fr)} }
.ctr-daygrid{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
@media(min-width:820px){ .ctr-daygrid{grid-template-columns:1.3fr 1fr} }
.ctr-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.ctr-sec-h{margin:0 0 8px;font-size:16px;font-weight:800;display:flex;justify-content:space-between;align-items:center}
.ctr-sec-h .e{font-size:11.5px;color:var(--text-faint);letter-spacing:.04em;font-weight:600}
.ctr-sold{display:flex;flex-direction:column}
.sold-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 2px;border-top:1px solid var(--border-soft)}
.sold-row:first-child{border-top:0}
.sr-info{min-width:0;display:flex;flex-direction:column;gap:1px}
.sr-info .n{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-info .n b{font-weight:500;color:var(--text-faint)}
.sr-info .q{font-size:12px;color:var(--text-dim);font-weight:600}
.sr-amt{font-weight:800;font-size:15px;flex:none}
.ctr-dstat{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:15px;box-shadow:var(--shadow)}
.ctr-dstat .k{font-size:12.5px;color:var(--text-dim)}
.ctr-dstat .v{font-size:24px;font-weight:800;margin-top:5px}
.ctr-dstat.in .v{color:var(--green)} .ctr-dstat.out .v{color:var(--red)}
.ctr-denom{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.ctr-denom h3{margin:0 0 8px;font-size:16px;font-weight:800;display:flex;justify-content:space-between;align-items:center}
.ctr-denom h3 .e{font-size:11px;color:var(--text-faint);letter-spacing:.06em;text-transform:uppercase;font-weight:600}
.ctr-drow{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--border-soft)}
.ctr-drow .note{width:64px;font-weight:800;font-size:15px}
.ctr-drow .x{color:var(--text-faint);font-weight:700}
.ctr-drow input{width:66px;height:44px;border:1.5px solid var(--border);border-radius:11px;background:var(--surface-2);text-align:center;font-family:var(--font);font-size:17px;font-weight:700;color:var(--text);outline:none}
.ctr-drow input:focus{border-color:var(--brand)}
.ctr-drow .eq{margin-left:auto;font-weight:800;font-size:16px;color:var(--text-dim);min-width:80px;text-align:right}
.ctr-denom .tot{display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--border);margin-top:8px;padding-top:12px}
.ctr-denom .tot .k{font-size:16px;font-weight:800}
.ctr-denom .tot .v{font-size:26px;font-weight:800;color:var(--green)}

/* done */
.ctr-done{min-height:calc(100vh - 150px);display:grid;place-items:center;padding:26px 22px}
.ctr-done-grid{display:grid;grid-template-columns:1fr;gap:24px;width:100%;max-width:940px;align-items:center}
@media(min-width:900px){ .ctr-done-grid{grid-template-columns:1fr 1fr} }
.ctr-done-main{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.ctr-check{width:104px;height:104px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;margin-bottom:10px;animation:ctrpop .35s ease}
.ctr-check svg{width:56px;height:56px}
@keyframes ctrpop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
.ctr-done .dt{font-size:29px;font-weight:800;letter-spacing:-.02em}
.ctr-done .da{font-size:44px;font-weight:800;letter-spacing:-.03em;margin:8px 0 4px}
.ctr-done .ds{font-size:15px;color:var(--text-dim);max-width:300px}
.ctr-donebtns{display:flex;flex-direction:column;gap:11px;width:100%;max-width:360px;margin-top:26px}
.ctr-dbl{display:flex;gap:11px}
/* done-screen buttons fill their row edge-to-edge (no side-margin gap where clicks miss) */
.ctr-donebtns .ctr-go.block,.ctr-donebtns .ctr-ghost.block{width:100%;margin:0}
.ctr-donebtns .ctr-dbl .ctr-ghost{flex:1;margin:0}
.ctr-go svg,.ctr-ghost svg{pointer-events:none}
.ctr-go.ctr-wabtn{background:linear-gradient(135deg,#25d366,#128c7e);box-shadow:0 10px 24px rgba(18,140,126,.32)}
.ctr-ghost{flex:1;justify-content:center;height:52px;border-radius:14px;display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;box-shadow:var(--shadow);background:var(--surface);color:var(--text);border:1px solid var(--border)}
.ctr-ghost svg{width:20px;height:20px}

/* ledger sheet */
.ctr-sheet{position:fixed;inset:0;background:rgba(4,10,8,.5);display:none;align-items:flex-end;justify-content:center;z-index:70}
.ctr-sheet.open{display:flex}
.ctr-sheetcard{background:var(--surface);width:100%;max-width:520px;border-radius:24px 24px 0 0;padding:8px 18px 26px;max-height:80vh;overflow:auto;animation:ctrup .25s ease}
@keyframes ctrup{from{transform:translateY(30px)}to{transform:translateY(0)}}
.ctr-grab{width:44px;height:5px;border-radius:5px;background:var(--border);margin:8px auto 12px}
.ctr-sheetcard h3{margin:0;font-size:20px;font-weight:800}
.ctr-sheetcard .sub{font-size:13px;color:var(--text-dim);margin:2px 0 12px}
/* desktop: the ledger becomes a centered modal, and focused screens get breathing room */
@media(min-width:900px){
  .ctr-sheet{align-items:center}
  .ctr-sheetcard{border-radius:22px;max-height:82vh;max-width:560px}
  .ctr-key-wrap,.ctr-pay{margin-top:26px;margin-bottom:26px}
}
.ctr-led{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--border-soft)}
.ctr-led .d{flex:1;font-size:14.5px;font-weight:500}
.ctr-led .d small{display:block;color:var(--text-faint);font-size:11.5px;font-weight:400}
.ctr-led .m{font-weight:800;font-size:15px}
.ctr-led .m.plus{color:var(--red)} .ctr-led .m.minus{color:var(--green)}

@media (max-width:400px){
  .ctr-hero .ht{font-size:21px}
  .ctr-tile{min-height:118px}
}

/* real product photos (fall back to the drawing) */
.ctr-pmedia .prodimg{height:88px;width:auto;max-width:100%;object-fit:contain}
.ctr-av .prodimg{height:48px;width:auto;object-fit:contain}
.ctr-stockrow .ctr-av .prodimg{height:50px;width:auto;object-fit:contain}

/* receipt on the sale/payment done screen */
.ctr-rc{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:16px 18px;max-width:420px;width:100%;margin:0 auto;text-align:left;justify-self:center}
.ctr-ghost.block{width:100%;justify-content:center}
.ctr-rc .rc-head{text-align:center;border-bottom:1px dashed var(--border);padding-bottom:10px;margin-bottom:10px}
.ctr-rc .rc-biz{font-weight:800;font-size:16px}
.ctr-rc .rc-sub{font-size:11.5px;color:var(--text-dim)}
.ctr-rc .rc-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--text-dim);margin-top:6px}
.ctr-rc .rc-cust{font-weight:700;font-size:14.5px;margin:2px 0 10px}
.ctr-rc .rc-seg{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:var(--brand);background:rgba(208,2,27,.09);border-radius:6px;padding:2px 7px;vertical-align:middle;margin-inline-start:4px}
.ctr-rc .rc-line{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;padding:3px 0}
.ctr-rc .rc-line .q{color:var(--text-faint);font-weight:500}
.ctr-rc .rc-tot{display:flex;justify-content:space-between;border-top:1px dashed var(--border);margin-top:8px;padding-top:8px;font-weight:800;font-size:16px}
.ctr-rc .rc-bal{display:flex;justify-content:space-between;font-size:13.5px;margin-top:4px;color:var(--red);font-weight:700}
.ctr-rc .rc-foot{text-align:center;font-size:11.5px;color:var(--text-faint);margin-top:10px;border-top:1px dashed var(--border);padding-top:8px}
@media print{
  body *{visibility:hidden!important}
  #ctr-receipt,#ctr-receipt *{visibility:visible!important}
  #ctr-receipt{position:absolute;left:0;top:0;width:340px;box-shadow:none;border:none;margin:0}
}

/* ===== world-class selling screen: product grid + live bill ===== */
.ctr-sale{display:grid;grid-template-columns:1fr 344px;align-items:start;max-width:1460px;margin:0 auto}
.ctr-sale-main{min-width:0}
.ctr-sale .ctr-pgrid{padding-bottom:48px}

/* Layout toggle: split (side-by-side) vs stacked (top-to-bottom) — both always available */
.ctr-laytoggle{flex:none;display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:3px;gap:2px}
.ctr-laytoggle button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;border-radius:9px;padding:8px 11px;font-family:var(--font);font-weight:700;font-size:13px;color:var(--text-dim);cursor:pointer;transition:.14s}
.ctr-laytoggle button svg{width:17px;height:17px}
.ctr-laytoggle button.on{background:var(--surface);color:var(--brand);box-shadow:var(--shadow)}

/* Stacked mode: products list on top, the bill fills the rest so Total + Charge pin to the bottom */
.ctr-sale.stack{display:flex;flex-direction:column;height:calc(100dvh - 84px);min-height:0}
.ctr-sale.stack .ctr-sale-main{flex:none;display:flex;flex-direction:column;min-height:0}
.ctr-sale.stack .ctr-plist{max-height:50vh;overflow:auto;padding-bottom:16px}
.ctr-sale.stack .ctr-cart{flex:1;min-height:0;display:flex;flex-direction:column;position:static;max-height:none;width:auto;margin:12px 18px 16px}
.ctr-sale.stack .cart-lines{flex:1;min-height:0;overflow:auto}
.ctr-sale.stack .cart-foot{box-shadow:0 -8px 20px rgba(20,24,31,.05)}
.ctr-sale.stack + .ctr-actbar{display:none}
@media(max-width:700px){ .ctr-laytoggle button span{display:none} .ctr-laytoggle{align-self:flex-end} .ctr-sale.stack .ctr-plist{max-height:46vh} }
.ctr-saletools{position:sticky;top:0;z-index:4;background:linear-gradient(var(--bg),var(--bg) 72%,transparent);padding:8px 18px 10px;display:flex;gap:10px;align-items:center}
.ctr-chips{display:flex;gap:8px;overflow-x:auto;flex:1;min-width:0;padding-bottom:2px;-webkit-overflow-scrolling:touch}
/* search is a small corner icon that expands only when tapped */
.ctr-searchbtn{flex:none;width:44px;height:44px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface);display:grid;place-items:center;color:var(--text-dim);cursor:pointer;transition:.12s}
.ctr-searchbtn:hover{border-color:var(--brand);color:var(--brand)}
.ctr-searchbtn svg{width:20px;height:20px}
.ctr-searchbox{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:44px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 8px 0 12px;box-shadow:var(--shadow)}
.ctr-searchbox[hidden]{display:none}
.ctr-searchbox svg{width:18px;height:18px;color:var(--text-faint);flex:none}
.ctr-searchbox input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-family:var(--font);font-size:15px;font-weight:500;color:var(--text)}
.ctr-searchclose{flex:none;border:0;background:transparent;font-size:23px;line-height:1;color:var(--text-faint);cursor:pointer;width:30px;height:30px;border-radius:8px}
.ctr-searchclose:hover{background:var(--surface-2);color:var(--text)}
.ctr-saletools.searching .ctr-chips,.ctr-saletools.searching .ctr-searchbtn{display:none}
.ctr-chip-b{flex:none;border:1.5px solid var(--border);background:var(--surface);border-radius:22px;padding:9px 16px;font-weight:700;font-size:13.5px;color:var(--text-dim);white-space:nowrap;transition:.12s}
.ctr-chip-b.active{background:var(--brand);border-color:var(--brand);color:#fff}
.ctr-pstock{font-size:11px;color:var(--text-faint);font-weight:600}
.ctr-pstock.low{color:var(--red)}
.ctr-pcard{cursor:pointer;transition:transform .1s,box-shadow .12s,border-color .12s}
.ctr-pcard:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.ctr-step .ctr-stp{flex:0 0 46px}
.ctr-qin{flex:1;min-width:0;height:46px;border:1.5px solid var(--border);border-radius:12px;background:var(--surface-2);text-align:center;font-family:var(--font);font-size:19px;font-weight:800;color:var(--text);outline:none}
.ctr-qin:focus{border-color:var(--brand);background:var(--surface)}
/* ---- brand picker (level 1): pick a drink, grouped by company ---- */
.ctr-pgrid.brands{display:block;padding:6px 18px 60px}
.ctr-brandsec{margin-top:12px}
.ctr-cohead{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--text-faint);margin:8px 2px 10px}
.ctr-brandgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(min-width:700px){ .ctr-brandgrid{grid-template-columns:repeat(auto-fill,minmax(184px,1fr))} }
.ctr-brandcard{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:14px 12px 15px;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;text-align:center;transition:transform .1s,box-shadow .12s,border-color .12s}
.ctr-brandcard:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.ctr-brandcard.has{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft),var(--shadow)}
.ctr-bc-media{position:relative;height:112px;display:grid;place-items:center;width:100%;background:#fff;border-radius:14px;padding:6px}
.ctr-bc-media .prodimg,.ctr-bc-media svg{height:100px;width:auto;max-width:100%;object-fit:contain}
.ctr-bc-badge{position:absolute;top:-4px;right:6px;min-width:23px;height:23px;padding:0 6px;border-radius:20px;background:var(--brand);color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;box-shadow:var(--shadow)}
.ctr-bc-name{font-weight:800;font-size:16.5px;line-height:1.15;margin-top:2px}
.ctr-bc-meta{font-size:12px;color:var(--text-dim);font-weight:600}
/* ---- size picker (level 2): pick a clearly-labelled size ---- */
.ctr-sizebar{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:2px 0 6px}
.ctr-allbtn{display:inline-flex;align-items:center;gap:3px;border:1.5px solid var(--border);background:var(--surface);border-radius:22px;padding:8px 15px 8px 9px;font-weight:700;font-size:13.5px;color:var(--text-dim);cursor:pointer;transition:.12s}
.ctr-allbtn svg{width:18px;height:18px}
.ctr-allbtn:hover{border-color:var(--brand);color:var(--brand)}
.ctr-sizetitle{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;min-width:0}
.ctr-sizethumb{display:grid;place-items:center;flex:none}
.ctr-sizethumb .prodimg,.ctr-sizethumb svg{height:36px;width:auto;max-width:34px;object-fit:contain}
.ctr-scname{font-weight:700;font-size:12.5px;color:var(--text-dim);text-align:center;line-height:1.1}
.ctr-scsize{font-weight:800;font-size:20px;text-align:center;line-height:1.15}
.ctr-punit{font-size:11.5px;color:var(--text-faint);font-weight:600;margin-top:-2px}
/* ---- Update Rates screen ---- */
.ctr-rates{display:flex;flex-direction:column;gap:8px;padding-bottom:40px}
.ctr-rates .ctr-cohead{margin:12px 2px 2px}
.rate-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:9px 12px}
.rr-art{width:38px;height:46px;flex:none;display:grid;place-items:center;background:#fff;border-radius:8px}
.rr-art .prodimg,.rr-art svg{max-height:44px;max-width:34px;width:auto;object-fit:contain}
.rr-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.rr-n{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rr-u{font-size:12px;color:var(--text-faint);font-weight:600}
.rr-price{flex:none;display:flex;align-items:center;gap:7px}
.rr-cur{color:var(--text-faint);font-weight:700;font-size:14px}
.rr-in{width:108px;height:48px;border:1.5px solid var(--border);border-radius:12px;background:var(--surface-2);text-align:right;padding:0 12px;font-family:var(--font);font-size:20px;font-weight:800;color:var(--text);outline:none}
.rr-in:focus{border-color:var(--brand);background:var(--surface);box-shadow:0 0 0 3px var(--brand-soft)}
.rr-status{width:22px;height:22px;display:grid;place-items:center;color:var(--brand);flex:none}
.rr-status svg{width:20px;height:20px}
.rr-status.ok{color:var(--brand)}
.rr-status.err{color:var(--red);font-weight:800}
/* live bill panel */
/* Sidebar cart fills the viewport height so Total + Charge always sit at the bottom */
.ctr-cart{position:sticky;top:8px;height:calc(100dvh - 92px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);margin:8px 12px 0 6px;overflow:hidden}
.cart-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:15px 18px;border-bottom:1px solid var(--border-soft)}
.cart-head .ch-t{font-size:18px;font-weight:800}
.cart-head .ch-s{font-size:12.5px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.cart-head .ch-owes{display:inline-block;color:var(--brand);font-weight:800;font-size:19px;margin-top:5px;background:var(--brand-soft);padding:3px 11px;border-radius:9px;line-height:1.25}
.cart-head .ch-n{font-size:13px;color:var(--text-dim);font-weight:600;flex:none}
.cart-lines{flex:1;overflow-y:auto;padding:6px 12px}
.cart-empty{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--text-faint);padding:48px 16px;text-align:center;font-size:13.5px}
.cart-empty svg{width:34px;height:34px}
.cart-line{display:flex;flex-direction:column;gap:7px;padding:10px 4px;border-bottom:1px solid var(--border-soft)}
.cl-top{display:flex;align-items:center;gap:10px}
.cl-art{width:34px;height:40px;flex:none;display:grid;place-items:center;overflow:hidden}
.cl-art svg,.cl-art .prodimg{max-height:40px;max-width:34px;width:auto;height:auto;object-fit:contain}
.cl-name{flex:1;min-width:0;font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-name .q{color:var(--text-faint);font-weight:500;font-size:12px}
.cl-bot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-left:44px}
.cl-amt{text-align:right;display:flex;flex-direction:column;gap:1px;min-width:0}
.cl-amt b{font-size:17px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.15}
.cl-each{font-size:11.5px;color:var(--text-faint);font-weight:600}
.cl-each .cl-was{text-decoration:line-through}
.cl-step{display:flex;align-items:center;gap:6px;flex:none}
.cl-step .ctr-stp{flex:none;width:32px;height:32px;font-size:19px}
.cl-step span{min-width:26px;text-align:center;font-weight:800;font-size:15px}
.cl-rm{border:0;background:transparent;color:var(--text-faint);font-size:22px;line-height:1;width:28px;height:28px;flex:none;border-radius:8px}
.cl-rm:hover{background:var(--surface-2);color:var(--red)}
.cart-foot{border-top:1px solid var(--border);padding:14px 16px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.cart-total{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:18px}
.cart-total .v{font-size:30px;display:inline-block;animation:ctrTotalPop .32s cubic-bezier(.34,1.56,.64,1)}

/* "Wow" Charge button: soft glowing pulse + a light sheen that sweeps across */
@keyframes ctrTotalPop{0%{transform:scale(.86);opacity:.4}60%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes ctrChargeGlow{0%,100%{box-shadow:0 8px 22px var(--brand-glow),0 2px 6px rgba(208,2,27,.22)}50%{box-shadow:0 14px 36px var(--brand-glow),0 0 0 5px rgba(208,2,27,.09)}}
@keyframes ctrChargeShine{0%{transform:translateX(-140%) skewX(-18deg)}60%,100%{transform:translateX(360%) skewX(-18deg)}}
.cart-foot .ctr-go.block,.ctr-actbar .ctr-go{position:relative;overflow:hidden;animation:ctrChargeGlow 2.6s ease-in-out infinite}
.cart-foot .ctr-go.block::after,.ctr-actbar .ctr-go::after{content:"";position:absolute;top:-25%;bottom:-25%;left:0;width:34%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:translateX(-140%) skewX(-18deg);animation:ctrChargeShine 3.4s ease-in-out infinite}
.cart-foot .ctr-go.block:active,.ctr-actbar .ctr-go:active{animation:none}
@media(prefers-reduced-motion:reduce){
  .cart-total .v,.cart-foot .ctr-go.block,.ctr-actbar .ctr-go,.cart-foot .ctr-go.block::after,.ctr-actbar .ctr-go::after{animation:none}
}
.ctr-only-mobile{display:none}
@media(max-width:900px){
  .ctr-sale{grid-template-columns:1fr}
  .ctr-cart{display:none}
  .ctr-only-mobile{display:flex}
  .ctr-sale .ctr-pgrid{padding-bottom:150px}
}

/* ============================================================
   Finance / party enhancements (2026-09-14):
   bank sub-account picker, party photos, coloured Empty Shells,
   bigger money figures.
   ============================================================ */

/* --- Empty Shells, colour-coded like money: +/red = they hold ours
       (we recover), -/green = we owe them --- */
.e-tag{font-weight:800;font-size:12px}
.e-tag.out{color:var(--red)}
.e-tag.in{color:var(--green)}
.pty-emp.out b{color:var(--red)}
.pty-emp.in b{color:var(--green)}
.pty-card.emp.out .v{color:var(--red)}
.pty-card.emp.in .v{color:var(--green)}

/* --- bigger money figures (easier for Abbu to read) --- */
.ctr-bal .a{font-size:20px}
.pty-owe{font-size:21px}
.pty-owe.clear{font-size:16px}
.pty-owe span{font-size:11px}
.ctr-led .m{font-size:16px;font-weight:800}

/* --- bank sub-account picker on "Received by: Bank" --- */
.ctr-banks{margin:2px 16px 0;display:flex;flex-direction:column;gap:8px}
.ctr-bankslabel{text-align:center;font-size:12.5px;color:var(--text-dim);font-weight:700}
.ctr-bankrow{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ctr-bankchip{border:1.5px solid var(--border);background:var(--surface);border-radius:12px;
              padding:9px 16px;font-weight:800;font-size:14px;color:var(--text-dim);cursor:pointer;transition:.12s}
.ctr-bankchip.on{border-color:#2563c9;background:rgba(37,99,201,.12);color:#2563c9}
.ctr-banks-empty{text-align:center;font-size:12.5px;color:var(--text-faint);padding:4px 8px}
.ctr-paychip[data-m="easypaisa"].on{border-color:#00964a;background:rgba(0,150,74,.12);color:#00964a}

/* --- party photos --- */
.ctr-av.photo{overflow:hidden;background:var(--surface-2)}
.ctr-av.photo img{width:100%;height:100%;object-fit:cover;display:block}
.pty-photorow{display:flex;align-items:center;gap:14px;padding:2px 16px 10px}
.pty-photo{width:64px;height:64px;flex:none;border-radius:16px;background:var(--brand-soft);color:var(--brand);
           display:grid;place-items:center;font-weight:800;font-size:24px;overflow:hidden}
.pty-photo.photo img{width:100%;height:100%;object-fit:cover;display:block}
.pty-photobtn{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--border);background:var(--surface);
              border-radius:12px;padding:10px 16px;font-weight:700;font-size:14px;color:var(--text-dim);cursor:pointer;transition:.12s}
.pty-photobtn:hover{border-color:var(--brand);color:var(--brand)}

/* ============================================================
   World-class "rows" redesign (2026-09-14): New Sale products &
   Stock as single-column, brand-coloured rows with a search bar.
   ============================================================ */
/* search on top, brand chips below */
.ctr-saletools{flex-direction:column;align-items:stretch;gap:10px}
.ctr-saletools .ctr-search{margin:0;width:100%}
.ctr-saletools.searching .ctr-chips{display:flex}
.ctr-search.inline{box-shadow:none}
.ctr-search .si{display:inline-flex}
.ctr-search .si svg{width:20px;height:20px;color:var(--text-faint)}

/* flat product list */
.ctr-plist{display:flex;flex-direction:column;gap:9px;padding:6px 18px 60px}
.ctr-plist .ctr-cohead{margin:12px 2px 2px}
.ctr-prow{display:flex;align-items:center;gap:15px;min-height:88px;background:var(--surface);border:1px solid var(--border);
          border-left:6px solid var(--pc,var(--brand));border-radius:17px;padding:12px 16px;box-shadow:var(--shadow);
          position:relative;overflow:hidden;width:100%;text-align:left;cursor:pointer;transition:transform .1s,box-shadow .12s,border-color .12s}
.ctr-prow::before{content:"";position:absolute;inset:0;background:var(--pc,var(--brand));opacity:.06;pointer-events:none}
.ctr-prow>*{position:relative;z-index:1}
.ctr-prow:hover{box-shadow:var(--shadow-lg)}
.ctr-prow:active{transform:scale(.995)}
.ctr-prow.has{border-color:var(--pc,var(--brand))}
.ctr-prow.has::before{opacity:.13}
.ctr-prow-media{width:76px;height:76px;flex:none;display:grid;place-items:center;border-radius:14px;
                background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.ctr-prow-media img,.ctr-prow-media svg{max-width:66px;max-height:72px;width:auto;height:auto;object-fit:contain}
.ctr-prow-media .prodimg{height:70px;width:auto}
.ctr-prow .ctr-who{flex:1;min-width:0}
.ctr-prow .ctr-who .n{font-weight:750;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctr-prow .ctr-who .n .sz{color:var(--text-faint);font-weight:500}
/* stock = small, muted, secondary (never competes with the price) */
.ctr-prow .ctr-who .r{font-size:13px;color:var(--text-dim);margin-top:4px}
.ctr-prow .ctr-who .r .stk{font-weight:600}
.ctr-prow .ctr-who .r .stk.low{color:var(--red);font-weight:700}
/* price = the ONE bold number on the row */
.ctr-prow-price{flex:none;min-width:96px;text-align:right;white-space:nowrap}
.ctr-prow-price b{font-size:21px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ctr-prow .ctr-step{width:auto;margin-top:0;flex:none;gap:5px}
.ctr-prow .ctr-step .ctr-stp{flex:0 0 38px;height:40px;font-size:20px}
.ctr-prow .ctr-qin{flex:none;width:48px;height:40px;font-size:17px}
@media(max-width:560px){
  .ctr-prow{flex-wrap:wrap;min-height:0}
  .ctr-prow-media{width:60px;height:60px}
  .ctr-prow-media img,.ctr-prow-media svg{max-width:52px;max-height:56px}
  .ctr-prow .ctr-who{flex:1 1 auto}
  .ctr-prow-price{order:2}
  .ctr-prow .ctr-step{order:3;flex:1 0 100%;justify-content:flex-end}
}

/* stock rows: brand-coloured, single column */
.stockrow{cursor:default;min-height:76px}
.stockrow .ctr-prow-media{background:transparent;box-shadow:none;width:64px;height:64px}
.stockrow:hover{box-shadow:var(--shadow)}

/* ---- Vendors card + 4-digit PIN gate ---- */
.ctr-vendcard{background:linear-gradient(135deg,#12463f,#0b2a26);box-shadow:0 10px 26px rgba(6,60,52,.34);margin-top:12px;position:relative}
.ctr-vendcard:hover{box-shadow:0 14px 32px rgba(6,60,52,.45)}
.ctr-vendcard .cc-lock{position:absolute;top:12px;right:44px;opacity:.6}
.ctr-vendcard .cc-lock svg{width:15px;height:15px}
.ctr-pinwrap{max-width:420px;margin:0 auto}
.ctr-pindots{display:flex;gap:16px;justify-content:center;margin:18px 0 6px}
.ctr-pindots .pd{width:16px;height:16px;border-radius:50%;border:2px solid var(--border);background:transparent;transition:.12s}
.ctr-pindots .pd.on{background:var(--brand);border-color:var(--brand)}
.ctr-pinerr{text-align:center;color:var(--red);font-size:13.5px;font-weight:600;min-height:20px;margin-bottom:6px}

/* ============================================================
   PREMIUM POLISH (2026-09-14) — international-standard feel:
   layered depth, springy tactile press, gradient primary actions,
   modern focus rings, smoother motion. Visual-only overrides.
   ============================================================ */
:root{
  --ease: cubic-bezier(.2,.7,.3,1);
  --sh-card: 0 1px 2px rgba(20,24,31,.04), 0 4px 16px rgba(20,24,31,.05);
  --sh-card-hi: 0 8px 20px rgba(20,24,31,.10), 0 16px 40px rgba(20,24,31,.08);
  --sh-primary: 0 8px 20px var(--brand-glow), 0 2px 5px rgba(208,2,27,.20);
}

/* ---- primary action buttons: gradient, glow, tactile press ---- */
.ctr-go{background:linear-gradient(140deg,var(--brand),var(--brand-2));border-radius:16px;
        box-shadow:var(--sh-primary);font-weight:800;letter-spacing:-.01em;
        transition:transform .18s var(--ease),box-shadow .18s var(--ease),filter .18s var(--ease)}
.ctr-go:hover{filter:brightness(1.04);box-shadow:0 12px 26px var(--brand-glow),0 3px 8px rgba(208,2,27,.24)}
.ctr-go:active{transform:translateY(1px) scale(.99);box-shadow:0 4px 12px var(--brand-glow)}
.ctr-go:disabled{opacity:.45;box-shadow:none;filter:none}
.ctr-go.alt{background:linear-gradient(140deg,#2f6fe0,#1f4fb0);box-shadow:0 8px 20px rgba(37,99,201,.28),0 2px 5px rgba(37,99,201,.2)}
.ctr-go.alt:hover{box-shadow:0 12px 26px rgba(37,99,201,.32)}
.ctr-go.ghosty{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--sh-card)}
.ctr-go.ghosty:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--sh-card-hi)}
.ctr-wabtn{background:linear-gradient(140deg,#22c15e,#12a150)!important;box-shadow:0 8px 20px rgba(18,161,80,.3)!important}

/* ---- ghost / secondary ---- */
.ctr-ghost{border:1px solid var(--border);background:var(--surface);border-radius:14px;font-weight:700;
           box-shadow:var(--sh-card);transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease)}
.ctr-ghost:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--sh-card-hi)}
.ctr-ghost:active{transform:translateY(1px) scale(.99)}
.ctr-back{transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease)}
.ctr-back:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--sh-card-hi)}
.ctr-back:active{transform:scale(.92)}

/* ---- keypad: tactile ---- */
.ctr-k{border-radius:16px;box-shadow:var(--sh-card);transition:transform .12s var(--ease),box-shadow .12s var(--ease),background .12s var(--ease)}
.ctr-k:hover{box-shadow:var(--sh-card-hi)}
.ctr-k:active{transform:scale(.94);box-shadow:inset 0 2px 6px rgba(20,24,31,.1);background:var(--surface-2)}

/* ---- steppers ---- */
.ctr-stp{border-radius:12px;transition:transform .14s var(--ease),box-shadow .14s var(--ease),filter .14s var(--ease)}
.ctr-stp.plus{background:linear-gradient(140deg,var(--brand),var(--brand-2));box-shadow:0 4px 12px var(--brand-glow)}
.ctr-stp:active{transform:scale(.9)}
.ctr-qin{transition:border-color .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease)}
.ctr-qin:focus{box-shadow:0 0 0 4px var(--brand-soft)}

/* ---- chips & pills: smooth ---- */
.ctr-paychip,.ctr-chip-b,.ctr-bankchip,.ctr-preset{transition:transform .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease),border-color .16s var(--ease),color .16s var(--ease)}
.ctr-paychip:active,.ctr-chip-b:active,.ctr-bankchip:active{transform:scale(.95)}
.ctr-chip-b.active{box-shadow:0 6px 14px var(--brand-glow)}
.ctr-paychip.on{box-shadow:0 4px 12px var(--brand-soft)}

/* ---- cards & rows: layered depth + hover lift ---- */
.ctr-tile,.ctr-row,.ctr-prow,.pty-card,.ctr-card,.ctr-cashcard,.ctr-today,.ctr-owe,
.ctr-dstat,.ctr-bigstat,.ctr-chancell,.inv-view,.ctr-search{box-shadow:var(--sh-card)!important;transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .16s var(--ease)}
.ctr-tile:hover,.ctr-row:hover,.ctr-prow:hover{box-shadow:var(--sh-card-hi)!important;transform:translateY(-2px)}
.ctr-tile:active,.ctr-row:active,.ctr-prow:active{transform:translateY(0) scale(.99)}
.ctr-cashcard{border-radius:20px}
.ctr-cashcard:active{transform:scale(.99)}

/* ---- inputs / search: modern focus ring ---- */
.ctr-search{border-radius:16px;transition:border-color .16s var(--ease),box-shadow .16s var(--ease)}
.ctr-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.pty-urin:focus,.cl-rate:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft);outline:none}

/* ---- hero: richer depth ---- */
.ctr-hero{box-shadow:0 18px 40px var(--brand-glow),0 4px 12px rgba(208,2,27,.16)}
.ctr-hero:hover{filter:brightness(1.02)}
.ctr-hero:active{transform:scale(.992)}

/* ---- keyboard focus visibility (accessibility polish) ---- */
#counter button:focus-visible,#counter input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* ============================================================
   HOME + NEW SALE enhancement (2026-09-14) — elevate the current
   look (keep light + Coca-Cola red), just make it feel premium.
   ============================================================ */
/* New Sale cards: more presence, sheen, circular arrow chip */
.ctr-cashcard{padding:22px;border-radius:22px;gap:16px;overflow:hidden;position:relative}
.ctr-cashcard::after{content:"";position:absolute;top:-40%;right:-10%;width:60%;height:180%;
  background:radial-gradient(closest-side,rgba(255,255,255,.16),transparent);pointer-events:none}
.cc-ic{width:58px;height:58px;border-radius:17px;background:rgba(255,255,255,.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.cc-ic svg{width:31px;height:31px}
.cc-t{font-size:21px}
.cc-arr{margin-left:auto;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);
  display:grid;place-items:center;flex:none;transition:transform .18s var(--ease),background .18s var(--ease)}
.cc-arr svg{width:20px;height:20px}
.ctr-cashcard:hover .cc-arr{background:rgba(255,255,255,.3);transform:translateX(3px)}
/* on the New Sale screen the cards read as one clean stack */
.ctr-wrap .ctr-cashcard{width:calc(100% - 32px)}

/* Home tiles: lively, brand-tinted icon discs (one accent each) */
.ctr-tile .ctr-disc{transition:transform .18s var(--ease)}
.ctr-tile:hover .ctr-disc{transform:scale(1.06)}
#h-collect .ctr-disc{background:var(--green-soft);color:var(--green)}
#h-stock .ctr-disc{background:var(--amber-soft);color:var(--amber)}
#h-today .ctr-disc{background:rgba(37,99,201,.10);color:#2563c9}
#h-invoices .ctr-disc{background:var(--brand-soft);color:var(--brand)}
#h-ratelist .ctr-disc{background:rgba(13,148,136,.12);color:#0d9488}
#h-rates .ctr-disc{background:rgba(120,72,196,.12);color:#7848c4}
.ctr-tile .t{font-size:17.5px}

/* Today strip: crisper, with soft dividers and colour cues */
.ctr-today{border-radius:20px;overflow:hidden}
.ctr-tcell{padding:16px 10px}
.ctr-tcell .l{font-weight:600;letter-spacing:.01em;text-transform:uppercase;font-size:11px;color:var(--text-faint)}
.ctr-tcell .v{font-size:21px;margin-top:6px;letter-spacing:-.02em}

/* Greeting a touch more refined */
.ctr-hello .g{letter-spacing:-.025em}

/* Owe panel header number more prominent */
.ctr-owetop .v{font-size:24px}
.ctr-oweall{background:var(--brand-soft);padding:7px 12px;border-radius:20px;transition:background .16s var(--ease)}
.ctr-oweall:hover{background:var(--brand);color:#fff}

/* Retail card (blue) — distinct from Counter (red), Wholesale (dark), Vendors (teal) */
.ctr-retailcard{background:linear-gradient(135deg,#2f6fe0,#1f4fb0);box-shadow:0 10px 26px rgba(37,99,201,.32);margin-top:12px}
.ctr-retailcard:hover{box-shadow:0 14px 32px rgba(37,99,201,.4)}
/* Stock summary strip */
.ctr-stocksum{margin:8px 16px 2px}

/* ============================================================
   Product-row stepper 2.0 (2026-09-14): circular, premium +/-.
   ============================================================ */
.ctr-prow .ctr-step{gap:10px;align-items:center}
.ctr-prow .ctr-step .ctr-stp{width:44px;height:44px;flex:0 0 44px;border-radius:50%;font-size:24px;font-weight:800;line-height:1;
  display:grid;place-items:center;border:1.5px solid var(--border);background:var(--surface);color:var(--text-dim);
  box-shadow:var(--sh-card);transition:transform .14s var(--ease),box-shadow .14s var(--ease),filter .14s var(--ease),background .14s var(--ease),color .14s var(--ease)}
.ctr-prow .ctr-step .ctr-stp.minus:hover{border-color:var(--brand);color:var(--brand)}
.ctr-prow .ctr-step .ctr-stp.plus{background:linear-gradient(140deg,var(--brand),var(--brand-2));border-color:transparent;
  color:#fff;box-shadow:0 6px 16px var(--brand-glow)}
.ctr-prow .ctr-step .ctr-stp.plus:hover{filter:brightness(1.06);box-shadow:0 9px 20px var(--brand-glow)}
.ctr-prow .ctr-step .ctr-stp:active{transform:scale(.85)}
.ctr-prow .ctr-qin{width:52px;height:44px;border:1.5px solid var(--border);border-radius:13px;background:var(--surface-2);
  font-size:20px;font-weight:800;color:var(--text)}
.ctr-prow.has .ctr-qin{border-color:var(--pc,var(--brand));color:var(--text);background:var(--surface)}
.ctr-prow.has .ctr-step .ctr-stp.minus{border-color:var(--pc,var(--brand));color:var(--pc,var(--brand))}

/* Counter dashboard: 5-up money strip (wraps on small screens), quick-expense chips */
.ctr-today.five{grid-template-columns:repeat(5,1fr)}
@media(max-width:760px){ .ctr-today.five{grid-template-columns:repeat(3,1fr)} .ctr-today.five .ctr-tcell:nth-child(n+4){border-top:1px solid var(--border-soft)} }
.ctr-today.seven{grid-template-columns:repeat(7,1fr)}
@media(max-width:1000px){ .ctr-today.seven{grid-template-columns:repeat(4,1fr)} .ctr-today.seven .ctr-tcell:nth-child(n+5){border-top:1px solid var(--border-soft)} }
@media(max-width:560px){ .ctr-today.seven{grid-template-columns:repeat(2,1fr)} .ctr-today.seven .ctr-tcell:nth-child(n+3){border-top:1px solid var(--border-soft)} }
.ctr-wrapchips{flex-wrap:wrap;overflow:visible}
#h-expense .ctr-disc{background:var(--green-soft);color:var(--green)}

/* ============================================================
   Counter DASHBOARD (2026-09-14): one merged home — money strip,
   the 4 sale-entry cards, and 5 compact tools. Centered & smooth.
   ============================================================ */
.ctr-dash{max-width:880px;margin:0 auto;width:100%;padding:8px 16px 30px}
.ctr-dash .ctr-hello{padding:12px 2px 2px}
.ctr-dash .ctr-today{margin:12px 0 2px}
.ctr-dashlabel{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text-faint);margin:20px 4px 11px}
.ctr-saleentry{display:flex;flex-direction:column;gap:12px}
.ctr-saleentry .ctr-cashcard{width:100%;margin:0;padding:18px 20px;border-radius:20px}
.ctr-saleentry .ctr-cashcard .cc-ic{width:50px;height:50px;border-radius:15px}
.ctr-saleentry .ctr-cashcard .cc-ic svg{width:27px;height:27px}
.ctr-saleentry .ctr-cashcard .cc-t{font-size:19px}
.ctr-saleentry .ctr-cashcard .cc-s{font-size:12.5px}
/* compact, smooth tool tiles */
.ctr-actions.mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.ctr-actions.mini .ctr-tile{min-height:0;padding:15px 15px;gap:9px;border-radius:18px}
.ctr-actions.mini .ctr-disc{width:42px;height:42px;border-radius:13px}
.ctr-actions.mini .ctr-disc svg{width:23px;height:23px}
.ctr-actions.mini .ctr-tile .t{font-size:15px}
.ctr-actions.mini .ctr-tile .s{font-size:11.5px;margin-top:-3px}
@media(max-width:520px){ .ctr-actions.mini{grid-template-columns:1fr 1fr} }

/* Keyboard billing: highlighted product row (↓/↑ to move, Enter/+ to add) */
.ctr-prow.kbfocus{border-color:var(--pc,var(--brand));box-shadow:0 0 0 3px var(--pc,var(--brand)),0 10px 24px rgba(20,24,31,.12);transform:translateY(-1px)}
.ctr-prow.kbfocus::before{opacity:.14}

/* ============================================================
   Counter dashboard v2 (2026-09-14): fit on one screen — full-width
   money strip with bigger amounts, sale cards left + tools right.
   ============================================================ */
.ctr-dash{max-width:1520px;padding:6px 28px 20px}
.ctr-dash .ctr-hello{padding:8px 2px 2px}
.ctr-dash .ctr-hello .g{font-size:24px}
.ctr-dash .ctr-hello .d{font-size:12.5px;margin-top:1px}
.ctr-dash .ctr-today.five{margin:12px 0 4px}
.ctr-dash .ctr-today.five .ctr-tcell{padding:16px 18px}
.ctr-dash .ctr-today.five .ctr-tcell .l{font-size:11px}
.ctr-dash .ctr-today.five .ctr-tcell .v{font-size:26px;margin-top:8px}
.ctr-dash .ctr-today.seven{margin:12px 0 4px}
.ctr-dash .ctr-today.seven .ctr-tcell{padding:14px 12px}
.ctr-dash .ctr-today.seven .ctr-tcell .l{font-size:10.5px}
.ctr-dash .ctr-today.seven .ctr-tcell .v{font-size:22px;margin-top:6px}
.ctr-dashmain{display:grid;grid-template-columns:1fr;gap:22px}
.ctr-dashcol{min-width:0}
.ctr-dash .ctr-dashlabel{margin:16px 4px 10px}
@media(min-width:960px){
  .ctr-dashmain{grid-template-columns:1.5fr 1fr;align-items:start}
  .ctr-dash .ctr-dashcol:first-child .ctr-dashlabel{margin-top:6px}
  .ctr-dash .ctr-dashcol:last-child .ctr-dashlabel{margin-top:6px}
}
/* sale cards a touch tighter so all four fit without scrolling */
.ctr-saleentry .ctr-cashcard{padding:16px 18px}
.ctr-saleentry .ctr-cashcard .cc-ic{width:46px;height:46px;border-radius:14px}
.ctr-saleentry .ctr-cashcard .cc-ic svg{width:25px;height:25px}
.ctr-saleentry .ctr-cashcard .cc-t{font-size:18px}
/* tools: two-up compact grid in the right column */
.ctr-actions.mini.tools{grid-template-columns:1fr 1fr;gap:12px}
.ctr-actions.mini.tools .ctr-tile{min-height:104px}

/* Dashboard v3: emphasise the 4 sale cards (left, bigger), shrink the tools (right) */
@media(min-width:960px){ .ctr-dashmain{grid-template-columns:1.7fr 1fr} }
.ctr-saleentry{gap:14px}
.ctr-saleentry .ctr-cashcard{padding:22px 24px;border-radius:22px;box-shadow:0 12px 30px rgba(20,24,31,.14)}
.ctr-saleentry .ctr-cashcard .cc-ic{width:56px;height:56px;border-radius:16px}
.ctr-saleentry .ctr-cashcard .cc-ic svg{width:30px;height:30px}
.ctr-saleentry .ctr-cashcard .cc-t{font-size:21px}
.ctr-saleentry .ctr-cashcard .cc-s{font-size:13px}
.ctr-saleentry .ctr-cashcard .cc-arr{width:40px;height:40px}
.ctr-actions.mini.tools .ctr-tile{min-height:88px;padding:13px}
.ctr-actions.mini.tools .ctr-disc{width:38px;height:38px;border-radius:11px}
.ctr-actions.mini.tools .ctr-disc svg{width:21px;height:21px}
.ctr-actions.mini.tools .ctr-tile .t{font-size:14px}
.ctr-actions.mini.tools .ctr-tile .s{font-size:11px}

/* ============================================================
   Party (customer) window — premium redesign (2026-09-14).
   Shown to customers, so it should look great.
   ============================================================ */
.ctr-party{max-width:940px;margin:0 auto}
.pty-hero{display:flex;align-items:center;gap:16px;padding:2px 16px 12px}
.pty-hero .pty-photo{width:72px;height:72px;border-radius:18px;flex:none}
.pty-hero-info{flex:1;min-width:0}
.pty-hero-name{font-size:23px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pty-hero-name .n-ur{font-size:18px}
.pty-hero-sub{font-size:13px;color:var(--text-dim);margin-top:4px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pty-seg{font-weight:800;font-size:10.5px;padding:2px 9px;border-radius:20px;text-transform:uppercase;letter-spacing:.04em}
.pty-seg.r{background:rgba(37,99,201,.12);color:#2563c9}
.pty-seg.w{background:var(--amber-soft);color:var(--amber)}
/* richer stat cards */
.pty-card{padding:18px 20px;border-radius:20px}
.pty-card .v{font-size:30px}
.pty-card.owe{background:linear-gradient(135deg,rgba(208,2,27,.06),var(--surface))}
.pty-card.emp.out{background:linear-gradient(135deg,rgba(208,2,27,.05),var(--surface))}
.pty-card.emp.in{background:linear-gradient(135deg,rgba(26,156,110,.07),var(--surface))}
/* action buttons as a colourful, smooth grid */
.pty-acts.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;padding:8px 16px 6px}
.pty-act{display:flex;flex-direction:column;align-items:flex-start;gap:11px;border:1px solid var(--border);background:var(--surface);
  border-radius:18px;padding:16px;box-shadow:var(--sh-card);cursor:pointer;text-align:left;
  transition:transform .14s var(--ease),box-shadow .14s var(--ease),border-color .14s var(--ease)}
.pty-act:hover{box-shadow:var(--sh-card-hi);transform:translateY(-2px)}
.pty-act:active{transform:scale(.98)}
.pty-act .pa-ic{width:44px;height:44px;border-radius:13px;display:grid;place-items:center}
.pty-act .pa-ic svg{width:24px;height:24px}
.pty-act .pa-t{font-weight:750;font-size:15px}
.pty-act.collect .pa-ic{background:var(--green-soft);color:var(--green)}
.pty-act.empt .pa-ic{background:rgba(37,99,201,.12);color:#2563c9}
.pty-act.claim .pa-ic{background:var(--amber-soft);color:var(--amber)}
.pty-act.inv .pa-ic{background:var(--surface-3);color:var(--text-dim)}
/* New Sale = the hero action, filled brand */
.pty-act.sale{background:linear-gradient(140deg,var(--brand),var(--brand-2));border-color:transparent;color:#fff;box-shadow:var(--sh-primary)}
.pty-act.sale .pa-ic{background:rgba(255,255,255,.2);color:#fff}
.pty-act.sale:hover{filter:brightness(1.05)}
/* claim direction chips */
.cl-dir.on[data-dir="credit"]{border-color:var(--green);background:var(--green-soft);color:var(--green)}
.cl-dir.on[data-dir="charge"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}

/* Party action cards — one cohesive palette, all filled gradients, white content */
.pty-act{color:#fff;border:0;box-shadow:0 10px 24px rgba(20,24,31,.15)}
.pty-act .pa-ic{background:rgba(255,255,255,.2);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.pty-act .pa-ic svg{color:#fff}
.pty-act .pa-t{color:#fff}
.pty-act.sale{background:linear-gradient(140deg,var(--brand),var(--brand-2))}
.pty-act.collect{background:linear-gradient(140deg,#1aa978,#0f7a54)}
.pty-act.empt{background:linear-gradient(140deg,#3b82f6,#1f4fb0)}
.pty-act.claim{background:linear-gradient(140deg,#f0a423,#c9781a)}
.pty-act.inv{background:linear-gradient(140deg,#7a6ff0,#4b3fb0)}
.pty-act:hover{filter:brightness(1.05);box-shadow:0 15px 32px rgba(20,24,31,.22);transform:translateY(-2px)}
.pty-act:active{transform:scale(.98)}

/* ============================================================
   Party window v2 (2026-09-14): professional single-scheme (brand red),
   name shown ONCE in a consolidated header, one Edit screen.
   ============================================================ */
/* header: back + photo + name(once) + Edit */
.pty-head{gap:14px;padding:14px 16px 8px;align-items:center}
.pty-head .pty-photo{width:60px;height:60px;border-radius:16px;flex:none}
.pty-hd-info{flex:1;min-width:0}
.pty-hd-name{font-size:22px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pty-hd-name .n-ur{font-size:18px}
.pty-hd-sub{font-size:12.5px;color:var(--text-dim);margin-top:4px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pty-editbtn{flex:none;padding:10px 16px;font-weight:700}
.pty-editbtn svg{width:15px;height:15px;margin-inline-end:2px}

/* professional palette: New Sale filled brand-red, the rest clean white + red accent */
.pty-act,.pty-act.collect,.pty-act.empt,.pty-act.claim,.pty-act.inv{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--sh-card)}
.pty-act .pa-ic{background:var(--brand-soft);color:var(--brand);box-shadow:none}
.pty-act .pa-t{color:var(--text)}
.pty-act.sale{background:linear-gradient(140deg,var(--brand),var(--brand-2));border-color:transparent;color:#fff;box-shadow:var(--sh-primary)}
.pty-act.sale .pa-ic{background:rgba(255,255,255,.2);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.pty-act.sale .pa-t{color:#fff}
.pty-act:hover{filter:none;box-shadow:var(--sh-card-hi);transform:translateY(-2px)}
.pty-act.sale:hover{filter:brightness(1.05)}

/* edit shop screen */
.pty-editwrap{max-width:560px;margin:0 auto;padding:6px 16px 26px}
.pe-field{display:block;margin:14px 0}
.pe-field>span{display:block;font-size:12.5px;color:var(--text-dim);font-weight:600;margin-bottom:6px}
.pe-field .pty-urin{width:100%}
.pe-field input.n-ur{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;text-align:right;line-height:2;color:var(--text)}

/* Pay screen: wider, horizontal top (total + customer), channels in a row (no scroll) */
.ctr-pay.wide{max-width:1120px;padding:16px 24px 28px}
/* Pay screen: small red customer chip top-left, a BIG centered bill total */
.pay-hero{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:40px 20px 34px;margin-top:6px}
.pay-custchip{position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:9px;
  background:var(--brand-soft);border:1px solid rgba(208,2,27,.18);border-radius:999px;padding:6px 15px 6px 6px}
.pay-custchip .pcc-av{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:800;font-size:13px}
.pay-custchip .pcc-tx{display:flex;flex-direction:column;line-height:1.15}
.pay-custchip .pcc-tx b{font-size:13.5px;font-weight:800;color:var(--brand)}
.pay-custchip .pcc-tx i{font-style:normal;font-size:11px;color:var(--text-dim);font-weight:600}
.pay-bill{text-align:center}
.pay-bill .k{font-size:13px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em}
.pay-bill .v{font-size:66px;font-weight:800;letter-spacing:-.03em;line-height:1.02;margin-top:4px}

/* Change: a calculator screen + a receipt-form result (big, prominent amounts) */
.pay-calc{max-width:520px;margin:16px auto 0;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.pay-calc .pc-screen{display:flex;flex-direction:column;gap:4px;padding:16px 22px;background:var(--surface-2);border-bottom:1px solid var(--border)}
.pay-calc .pc-cap{font-size:12px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em}
.pay-calc .pc-entry{display:flex;align-items:baseline;gap:8px}
.pay-calc .pc-entry i{font-style:normal;font-size:20px;font-weight:700;color:var(--text-faint)}
.pay-calc .pc-entry input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-family:var(--font);font-size:46px;font-weight:800;letter-spacing:-.02em;color:var(--text);text-align:right;caret-color:var(--brand)}
.pay-calc .pc-entry input:focus,.pay-calc .pc-entry input:focus-visible{outline:none!important;box-shadow:none!important}
.pay-calc .pc-bill{padding:6px 22px 16px}
.pay-calc .pc-row{display:flex;justify-content:space-between;align-items:baseline;padding:9px 0;font-size:15px;color:var(--text-dim);font-weight:600}
.pay-calc .pc-row b{font-size:20px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
.pay-calc .pc-row.result{border-top:2px dashed var(--border);margin-top:2px;padding-top:14px}
.pay-calc .pc-row.result>span{font-size:16px;font-weight:700;color:var(--text)}
.pay-calc .pc-row.result b{font-size:40px;color:var(--text-faint)}
.pay-calc .pc-row.result b.ok{color:var(--green)}
.pay-calc .pc-row.result b.short{color:var(--red);font-size:28px}
#counter.urdu .pay-calc .pc-entry input{text-align:left}
#counter.urdu .pay-custchip{left:auto;right:14px}
@media(max-width:560px){ .pay-bill .v{font-size:48px} .pay-calc .pc-entry input{font-size:38px} .pay-calc .pc-row.result b{font-size:32px} }

.ctr-paygrid.pay-methods{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.ctr-pay.wide .pay-methods .ctr-paybtn{padding:16px 12px;gap:8px}
.ctr-pay.wide .pay-methods .ctr-paybtn .ic{width:46px;height:46px}
.ctr-pay.wide .pay-methods .ctr-paybtn .t{font-size:15px}
/* uploaded bank logos fit their channel icon slots */
.ctr-paybtn .ic img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}
.ctr-split .split-ic img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.ctr-paychip img{width:22px;height:22px;object-fit:contain;border-radius:5px;vertical-align:middle}

/* Add Expense: premium horizontal form — picture category cards + keypad side by side */
.ctr-exp{max-width:1080px}
.ctr-exp .exp-cols{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start}
@media(max-width:820px){ .ctr-exp .exp-cols{grid-template-columns:1fr} }
.ctr-exp .exp-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ctr-exp .exp-cat{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 8px;border:1.5px solid var(--border);
  border-radius:18px;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;transition:transform .15s var(--ease),box-shadow .15s,border-color .15s}
.ctr-exp .exp-cat:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.ctr-exp .exp-cat-ic{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:var(--surface-2);color:var(--cc)}
.ctr-exp .exp-cat-ic{background:color-mix(in srgb, var(--cc) 14%, var(--surface))}
.ctr-exp .exp-cat-ic svg{width:31px;height:31px}
.ctr-exp .exp-cat-l{font-size:13px;font-weight:700;color:var(--text);text-align:center;line-height:1.2}
.ctr-exp .exp-cat.on{border-color:var(--cc);box-shadow:0 0 0 2px color-mix(in srgb, var(--cc) 32%, transparent),var(--shadow)}
.ctr-exp .exp-cat.on .exp-cat-ic{background:var(--cc);color:#fff}
.ctr-exp .exp-col-pad .ctr-amt{padding:16px}
.ctr-exp .exp-col-pad .ctr-amt .v{font-size:38px}
.ctr-exp .exp-col-pad .ctr-keys{margin-top:12px}
.ctr-exp .ctr-paylabel{margin:14px 0 8px;text-align:center}
#counter.urdu .ctr-exp .exp-cols{direction:rtl}

/* Split payment */
.ctr-paybtn.split{flex-direction:row;justify-content:center;gap:12px;border-style:dashed;border-color:var(--brand);color:var(--brand)}
.ctr-paybtn.split .ic{width:34px;height:34px}
.ctr-paybtn.split .t{font-size:15px;font-weight:800}
.ctr-paybtn.split .s{font-size:12px;color:var(--text-dim);font-weight:600}
.ctr-split{max-width:560px}
.ctr-split .split-rows{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.ctr-split .split-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1.5px solid var(--border);border-radius:15px;padding:10px 12px;box-shadow:var(--shadow)}
.ctr-split .split-ic{width:40px;height:40px;flex:0 0 40px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);overflow:hidden}
.ctr-split .split-ic svg{width:34px;height:34px}
.ctr-split .split-name{flex:1;min-width:0;font-weight:700;font-size:15px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctr-split .split-inwrap{display:flex;align-items:center;gap:5px;background:var(--surface-2);border:1.5px solid var(--border);border-radius:11px;padding:0 10px;height:44px;width:130px}
.ctr-split .split-inwrap:focus-within{border-color:var(--brand);background:var(--surface)}
.ctr-split .split-inwrap .rs{font-size:13px;color:var(--text-faint);font-weight:600}
.ctr-split .split-in{flex:1;min-width:0;border:0;background:transparent;outline:none;font-family:var(--font);font-size:18px;font-weight:800;color:var(--text);text-align:right}
.ctr-split .split-rest{flex:0 0 auto;border:1.5px solid var(--border);background:var(--surface-2);border-radius:10px;padding:9px 12px;font-weight:800;font-size:13px;color:var(--brand);cursor:pointer}
.ctr-split .split-rest:hover{border-color:var(--brand)}
.ctr-split .split-foot{display:flex;gap:12px;margin-top:14px}
.ctr-split .sf-cell{flex:1;text-align:center;background:var(--surface);border:1.5px solid var(--border);border-radius:15px;padding:12px}
.ctr-split .sf-cell span{display:block;font-size:12px;color:var(--text-dim);font-weight:600}
.ctr-split .sf-cell b{font-size:22px;font-weight:800;margin-top:3px;display:block}
.ctr-split .sf-cell.rem b{color:var(--red)}
.ctr-split .sf-cell.rem b.ok{color:var(--green)}
.ctr-split .sf-cell.rem b.over{color:var(--red)}
#counter.urdu .ctr-split .split-in{text-align:left}

/* Empty Shells step (after a crate sale): dead-simple OUT · IN · REMAINING */
.ctr-empstep .es-io{display:flex;gap:10px;text-align:center}
.ctr-empstep .es-io>div{flex:1;background:var(--surface);border:1.5px solid var(--border);border-radius:18px;
  padding:16px 6px;box-shadow:var(--shadow)}
.ctr-empstep .es-io>div span{display:block;font-size:12px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.03em}
.ctr-empstep .es-io>div b{display:block;font-size:40px;font-weight:800;letter-spacing:-.03em;margin-top:4px}
.ctr-empstep .es-io .es-in{border-color:var(--brand);background:rgba(208,2,27,.05)}
.ctr-empstep .es-io .es-in b{color:var(--brand)}
.ctr-empstep .es-io .es-rem b{color:var(--red)}
.ctr-empstep .es-io .es-rem b.clear{color:var(--green)}
.ctr-empstep .es-hint{text-align:center;font-size:14px;color:var(--text-dim);margin-top:-2px}
.ctr-preset.hi{background:var(--brand);color:#fff;border-color:var(--brand)}
#counter.urdu .ctr-empstep .es-io{flex-direction:row-reverse}

/* Empty Shells block on the on-screen receipt: Out · In · Remaining */
.ctr-rc .rc-emp{margin-top:10px;border:1px solid rgba(208,2,27,.18);border-radius:12px;padding:9px 12px;background:rgba(208,2,27,.05)}
.ctr-rc .rc-emp-h{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;color:var(--brand);letter-spacing:.02em}
.ctr-rc .rc-emp-h svg{width:15px;height:15px}
.ctr-rc .rc-emp-h span{font-weight:600;color:var(--text-faint)}
.ctr-rc .rc-emp-g{display:flex;justify-content:space-between;gap:8px;margin-top:7px;text-align:center}
.ctr-rc .rc-emp-g>div{flex:1}
.ctr-rc .rc-emp-g>div span{display:block;font-size:10px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.03em}
.ctr-rc .rc-emp-g>div b{font-size:19px;font-weight:800}
.ctr-rc .rc-emp-g>div.hi b{color:var(--brand)}
.ctr-rc .rc-emp-g>div.hi.ok b{color:var(--green)}

/* ============================================================
   Sale screen — premium micro-interactions (the backbone).
   Smooth, elegant, "wow" but never noisy. Motion in brand red.
   ============================================================ */
/* the product picture arcs into the bill when added */
.ctr-fly{position:fixed;z-index:9999;pointer-events:none;object-fit:contain;border-radius:12px;
  filter:drop-shadow(0 14px 26px rgba(20,24,31,.30));
  transition:transform .62s cubic-bezier(.5,-0.3,.25,1),opacity .6s ease}
.ctr-fly img,.ctr-fly svg{width:100%;height:100%;object-fit:contain}

/* the line that just grew gently flashes in */
@keyframes ctrCartLineIn{0%{opacity:.2;transform:translateX(12px);background:rgba(208,2,27,.14)}
  70%{background:rgba(208,2,27,.08)}100%{opacity:1;transform:none;background:transparent}}
.cart-line.added{animation:ctrCartLineIn .5s cubic-bezier(.22,1,.36,1);border-radius:12px}

/* the bill panel softly "receives" the item */
@keyframes ctrCartGot{0%,100%{transform:none}40%{transform:scale(1.012)}}
.ctr-cart.got{animation:ctrCartGot .36s ease}

/* the row quantity pops when it increases */
@keyframes ctrQtyBump{0%{transform:scale(1)}42%{transform:scale(1.3);color:var(--brand)}100%{transform:scale(1)}}
.ctr-qin.bump{animation:ctrQtyBump .34s cubic-bezier(.34,1.56,.64,1)}

/* springy steppers */
.ctr-prow .ctr-step .ctr-stp{transition:transform .13s cubic-bezier(.34,1.7,.5,1),box-shadow .16s,filter .16s,background .16s}
.ctr-prow .ctr-step .ctr-stp.plus:active{transform:scale(.82)}
.ctr-prow .ctr-step .ctr-stp.minus:active{transform:scale(.86)}
.cl-step .ctr-stp:active{transform:scale(.84)}

/* selected product row: a crisp brand accent slides in on the left */
.ctr-prow{transition:transform .16s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease),background .2s}
.ctr-prow::after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:0;background:var(--pc,var(--brand));
  border-radius:0 4px 4px 0;transition:width .22s var(--ease)}
.ctr-prow.has::after{width:4px}

/* elegant thin scrollbars on the two scrolling lists */
.cart-lines::-webkit-scrollbar,.ctr-plist::-webkit-scrollbar{width:9px}
.cart-lines::-webkit-scrollbar-thumb,.ctr-plist::-webkit-scrollbar-thumb{background:var(--border);border-radius:9px;border:3px solid transparent;background-clip:padding-box}
.cart-lines::-webkit-scrollbar-thumb:hover,.ctr-plist::-webkit-scrollbar-thumb:hover{background:var(--text-faint)}

/* empty-cart icon gently breathes */
@keyframes ctrCartFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.cart-empty svg{animation:ctrCartFloat 3.4s ease-in-out infinite}

@media(prefers-reduced-motion:reduce){
  .ctr-fly,.cart-line.added,.ctr-cart.got,.ctr-qin.bump,.cart-empty svg{animation:none!important;transition:none!important}
}

/* Vendor payment voucher: a rubber-stamp of the channel/bank it was paid to */
.ctr-led .led-mark{display:inline-flex;width:20px;height:20px;vertical-align:middle;margin-inline-end:8px;border-radius:5px;overflow:hidden}
.ctr-led .led-mark svg,.ctr-led .led-mark img{width:100%;height:100%;object-fit:contain}
.ctr-rc{position:relative}
.vr-stamp{position:absolute;right:14px;bottom:48px;width:108px;height:108px;transform:rotate(-13deg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border:3px double var(--brand);border-radius:50%;color:var(--brand);opacity:.92;background:rgba(208,2,27,.03);
  box-shadow:0 2px 8px rgba(208,2,27,.08)}
.vr-stamp .vr-stamp-mark{width:34px;height:34px;border-radius:7px;overflow:hidden;display:flex}
.vr-stamp .vr-stamp-mark svg,.vr-stamp .vr-stamp-mark img{width:100%;height:100%;object-fit:contain}
.vr-stamp .vr-stamp-t{font-weight:900;font-size:16px;letter-spacing:2.5px;line-height:1}
.vr-stamp .vr-stamp-b{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;max-width:92px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctr-rc .rc-dev{text-align:center;font-size:10px;color:var(--text-faint);margin-top:5px;font-weight:600;letter-spacing:.02em}

/* ============================================================
   Premium finish for the sale screen (the backbone).
   Depth, soft layered shadows, product pictures that "pop".
   Elegant and calm — never busy.
   ============================================================ */
/* product picture on a soft-lit tile, floating with a gentle drop shadow */
.ctr-prow-media{width:76px;height:76px;border-radius:16px;
  background:radial-gradient(120% 120% at 50% 12%, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05),0 3px 9px rgba(20,24,31,.06)}
.ctr-prow-media img,.ctr-prow-media .prodimg{filter:drop-shadow(0 5px 7px rgba(20,24,31,.16))}

/* rows: softer, layered depth + a smooth lift */
.ctr-plist{gap:11px;padding-top:8px}
.ctr-prow{min-height:92px;border-radius:18px;border-left-width:3px;
  box-shadow:0 1px 2px rgba(20,24,31,.04),0 6px 16px rgba(20,24,31,.05);
  transition:transform .18s var(--ease),box-shadow .2s var(--ease),border-color .18s}
.ctr-prow:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(20,24,31,.13)!important}
.ctr-prow::before{opacity:.05}
.ctr-prow.has::before{opacity:.11}
.ctr-prow.has{box-shadow:0 1px 2px rgba(20,24,31,.04),0 8px 22px rgba(208,2,27,.10)}

/* refined name + price typography */
.ctr-prow .ctr-who .n{font-size:17.5px;letter-spacing:-.012em}
.ctr-prow-price b{font-size:22.5px;letter-spacing:-.02em}

/* bill panel: premium card, refined head, elegant empty state */
.ctr-cart{border-radius:20px;box-shadow:0 2px 8px rgba(20,24,31,.05),0 18px 46px rgba(20,24,31,.10)}
.cart-head{padding:18px 18px 14px;border-bottom:1px solid var(--border-soft)}
.cart-head .ch-t{font-size:19px;font-weight:800;letter-spacing:-.02em}
.cart-head .ch-n{font-size:12.5px;color:var(--text-dim);font-weight:600}
.cart-empty{padding:46px 18px;color:var(--text-faint);text-align:center}
.cart-empty svg{width:54px;height:54px;opacity:.45;margin-bottom:12px}
.cart-empty div{font-size:14px}
.cart-foot{padding:16px 18px 18px}

/* search + toggle + chips: subtle depth, elegant focus */
.ctr-saletools .ctr-search.inline{border-radius:14px;box-shadow:0 1px 3px rgba(20,24,31,.05)}
.ctr-search.inline:focus-within{box-shadow:0 0 0 4px var(--brand-soft),0 1px 3px rgba(20,24,31,.05)}
.ctr-search.inline input{font-size:15.5px}
.ctr-laytoggle,.ctr-chip-b{box-shadow:0 1px 2px rgba(20,24,31,.04)}

/* customer header a touch more refined */
.ctr-sale-main .ctr-head .ctr-htitle{letter-spacing:-.02em}

/* Overpayment: extra over the bill can reduce the shop's udhaar */
.pay-calc .pc-modes{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--border)}
.pay-calc .pc-mode{flex:1;border:1.5px solid var(--border);background:var(--surface-2);border-radius:11px;padding:10px 8px;font-weight:700;font-size:12.5px;color:var(--text-dim);cursor:pointer;transition:.14s}
.pay-calc .pc-mode:hover{border-color:var(--brand)}
.pay-calc .pc-mode.on{background:var(--brand);border-color:var(--brand);color:#fff}

/* Charge button: a static soft glow at rest; the sheen sweeps ONCE on a real change (add),
   never on an endless loop — motion tied to an event, not decoration. */
.cart-foot .ctr-go.block,.ctr-actbar .ctr-go{animation:none;
  box-shadow:0 8px 22px var(--brand-glow),0 2px 6px rgba(208,2,27,.22)}
.cart-foot .ctr-go.block::after,.ctr-actbar .ctr-go::after{animation:none;opacity:0}
.cart-foot .ctr-go.block.pulse::after,.ctr-actbar .ctr-go.pulse::after{opacity:1;animation:ctrChargeShine .85s ease}
