/* The cosmetics shop cashier: sized for a finger as well as a mouse. */
.shoppos .tiles{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.shoppos .tile{min-height:112px;padding:14px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}
.shoppos .tile:active:not(:disabled){transform:scale(.98);border-color:var(--plum);background:var(--plum-soft)}
.shoppos .tile b{font-size:.98rem}
.shoppos .qty{gap:6px}
.shoppos .qty button{width:46px;height:46px;font-size:1.3rem;border-radius:10px;touch-action:manipulation}
.shoppos .qty .num{min-width:28px;text-align:center;font-size:1.05rem}
.shoppos .cart li{padding:10px 0}
.shoppos .cart li>.btn.xs{min-width:44px;min-height:44px}
.shoppos #spay{min-height:60px;font-size:1.1rem}
.shoppos #sclr{min-height:48px}
.shoppos #sq{min-height:52px;font-size:1.02rem}
.shoppos #sdisc[readonly]{cursor:pointer}
.spad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;direction:ltr;margin:4px 0 0}
.spad button{min-height:50px;font-size:1.3rem;font-variant-numeric:tabular-nums;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--ink);touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}
.spad button:active{background:var(--plum-soft);border-color:var(--plum)}
.spad button.w2{font-size:1rem}
.spad-on{outline:2px solid var(--plum);outline-offset:1px}
.sunit select{width:auto;flex:1;min-width:0}
.sdet{margin-top:12px}
.sdet summary{cursor:pointer;color:var(--muted);font-size:.9rem;min-height:36px;display:flex;align-items:center}
#modal .chips button[data-v],#modal .chips button[data-u]{min-height:46px;padding:6px 16px;font-size:.98rem;touch-action:manipulation}
@media (pointer:coarse){
  .shoppos .cart{position:static}
}
.shoppos .tile .usd{color:var(--muted);font-weight:400;font-size:.82rem}

/* coloured cards: a soft tint that reads on the light, dark and cocoa looks alike */
.shoppos .tile[class*=" sc"]{background:hsl(var(--h) 75% 50% / .13);border-color:hsl(var(--h) 55% 45% / .45)}
.shoppos .tile[class*=" sc"]:hover:not(:disabled){border-color:hsl(var(--h) 60% 42%);background:hsl(var(--h) 75% 50% / .2)}
.shoppos .tile[class*=" sc"]:active:not(:disabled){background:hsl(var(--h) 75% 50% / .3);border-color:hsl(var(--h) 60% 42%)}
.shoppos .tile[class*=" sc"] .num{color:hsl(var(--h) 65% 30%)}
html[data-theme=dark] .shoppos .tile[class*=" sc"] .num{color:hsl(var(--h) 75% 78%)}
.shoppos .tile[class*=" sc"] .num .usd{color:var(--muted)}
.shoppos .tile:disabled{background:var(--surface);border-color:var(--line)}
.shoppos .tile:disabled .num{color:var(--muted)}
.sc0{--h:340}.sc1{--h:22}.sc2{--h:45}.sc3{--h:140}.sc4{--h:175}.sc5{--h:205}.sc6{--h:245}.sc7{--h:285}
/* summary cards: a colour and an icon each */
.shopk>div{position:relative;--h:205;background:hsl(var(--h) 72% 50% / .12);padding-inline-end:72px}
.shopk>div:nth-child(2){--h:140}
.shopk>div:nth-child(3){--h:40}
.shopk>div:nth-child(4){--h:285}
.shopk .ski{position:absolute;inset-inline-end:16px;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:hsl(var(--h) 70% 50% / .2);color:hsl(var(--h) 62% 32%)}
.shopk .ski svg{width:24px;height:24px}
html[data-theme=dark] .shopk .ski{color:hsl(var(--h) 75% 78%)}
/* item cards: the icon sits in the corner, the name keeps clear of it */
.shoppos .tile{position:relative}
.shoppos .tile .sti{position:absolute;inset-inline-end:10px;top:10px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:hsl(var(--h) 70% 50% / .22);color:hsl(var(--h) 62% 32%)}
.shoppos .tile .sti svg{width:20px;height:20px}
html[data-theme=dark] .shoppos .tile .sti{color:hsl(var(--h) 75% 78%)}
.shoppos .tile b{padding-inline-end:42px}
.shoppos .tile:disabled .sti{background:var(--surface2);color:var(--muted)}
@media (max-width:520px){.shopk>div{padding-inline-end:56px}.shopk .ski{width:34px;height:34px;inset-inline-end:10px}.shopk .ski svg{width:19px;height:19px}}

/* returns: a - / number / + stepper */
.shopq{display:inline-flex;align-items:center;gap:6px}
.shopq button{width:44px;height:44px;font-size:1.25rem;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--ink);touch-action:manipulation}
.shopq input{width:58px;height:44px;text-align:center;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
/* reports: a bar beside each day's sales */
.sbar{display:block;height:8px;border-radius:4px;background:var(--surface2);overflow:hidden}
.sbar i{display:block;height:100%;background:var(--plum);border-radius:4px}
/* barcode labels: black on white whatever the theme, one label per page when printed */
.lblwrap{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.lbl{background:#fff;color:#000;box-sizing:border-box;padding:1.5mm 2mm;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4mm;overflow:hidden;text-align:center;font-family:"NSA",Tahoma,sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.lbl small{font-size:6.5pt;line-height:1.2;white-space:nowrap;overflow:hidden;max-width:100%}
.lbl b{font-size:8pt;line-height:1.25;max-height:2.5em;overflow:hidden;font-weight:600;max-width:100%}
.lbl svg{width:100%;height:auto;max-height:52%}
.lbl .num{font-size:9pt;font-weight:600;direction:ltr;unicode-bidi:isolate}
@media print{body.printing .lblwrap{display:block}body.printing .lbl{box-shadow:none;margin:0;page-break-after:always;break-after:page}}

/* the supplier's invoice as a file */
.sfile{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sfile .btn{cursor:pointer}
.sfiles{margin:8px 0 0}
.sfiles li{display:flex;align-items:center;gap:8px}
.sfiles li .who{flex:1;min-width:0;overflow-wrap:anywhere;display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* «کۆزماتیک بۆتیک»: the shop's sections as tabs along the top of each of its pages */
.shoptabs{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:5px;margin:0 0 18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;scrollbar-width:thin}
.shoptabs .shopname{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:0 12px;color:var(--plum);font-weight:700;border-inline-end:1px solid var(--line);margin-inline-end:4px;min-height:44px}
.shoptabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:8px 14px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--muted);font:inherit;cursor:pointer;touch-action:manipulation}
.shoptabs button:hover{background:var(--surface2);color:var(--ink)}
.shoptabs button[aria-current=page]{background:var(--plum-soft);color:var(--plum);font-weight:600}
.shoptabs svg{width:18px;height:18px;flex:none}
@media (max-width:640px){.shoptabs .shopname span{display:none}.shoptabs .shopname{padding:0 8px}}
@media print{.shoptabs{display:none}}

/* scanner test */
.scantest{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}
.scantest #stk{display:block;font-size:1.3rem;margin-top:4px;word-break:break-all}
#str{margin-top:10px;display:flex;flex-direction:column;gap:6px}
#str>div{display:grid;grid-template-columns:22px 150px 1fr;gap:8px;align-items:baseline}
#str .st-ok>span:first-child{color:var(--teal)}#str .st-warn>span:first-child{color:#c27c0e;font-weight:700}

/* what the internet said about a new barcode */
.lookup{display:flex;align-items:center;gap:12px;border-radius:10px;padding:10px 12px;margin:-4px 0 12px;font-size:.88rem;line-height:1.6}
.lookup.wait{background:var(--surface2);color:var(--muted)}
.lookup.ok{background:var(--teal-soft);color:var(--ink,inherit)}
.lookup.none{background:var(--amber-soft);color:var(--amber)}
.lookup img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:8px;flex:none}
input.filled{background:var(--teal-soft)}
.brandtag{display:block;color:var(--muted);font-size:.78rem}
.colnames{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:600px){.colnames{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 2.19: the customer of the bill, through whom they came, free items and % discounts */
.cwho{display:flex;gap:8px;align-items:stretch;margin-top:10px;flex-wrap:wrap}
.cwho .cbtn{flex:1 1 120px;justify-content:flex-start;min-height:46px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cwho .cbtn span{overflow:hidden;text-overflow:ellipsis}
.cwho .cbtn:not(.on) span{color:var(--muted)}
.cwho .cbtn.on{border-color:var(--plum);background:var(--plum-soft)}
.cwho .cbtn bdi{color:var(--muted);font-size:.85em}
.cwho select{flex:1 1 100px;min-height:46px;width:auto;min-width:0}
.sdiscf .inrow{display:flex;gap:6px;align-items:stretch}
.sdiscf .inrow input{flex:1;min-width:0}
.sdiscf .seg button{min-height:44px;min-width:46px}
.dchips{margin-top:6px}
.dchips button{min-height:40px;min-width:56px;touch-action:manipulation}
.cart li.free .n{color:var(--teal)}
.cart li.free b.num{color:var(--muted)}
.cart li .gift.on{background:var(--teal-soft);color:var(--teal);border-color:var(--teal)}
.cart li .tag{font-size:.75rem;padding:1px 8px}
.tag svg{width:13px;height:13px;vertical-align:-2px;margin-inline-end:2px}
.cpick{max-height:340px;overflow:auto;margin:10px 0}
.cpick li{cursor:pointer}
.cnew{border:0;border-top:1px solid var(--line);margin:12px 0 0;padding:12px 0 0;min-width:0}
.cnew legend{padding:0 6px;color:var(--muted);font-size:.88rem}
.staffp td.c,.staffp th.c{text-align:center}
.staffp td.c input{width:22px;height:22px;cursor:pointer}
/* each cart line: the name across the top, the buttons in a row under it */
.shoppos .cart li{flex-wrap:wrap;row-gap:6px}
.shoppos .cart li .n{flex:1 1 100%}
.shoppos .cart li>b.num{margin-inline-start:auto;font-size:1rem}
/* the referrer lock: the same "through whom" for the next bills too */
.cwho .rpin{min-height:46px;min-width:46px;padding:0 10px;flex:0 0 auto}
.cwho .rpin.on{background:var(--plum);color:var(--plum-ink);border-color:var(--plum)}
.rpinnote{margin:6px 0 0;padding:6px 10px;border-radius:10px;background:var(--plum-soft);color:var(--plum)}
.rpinnote svg{width:14px;height:14px;vertical-align:-2px}
.rtime td,.rtime th{white-space:nowrap}
.rtime small{font-size:.78em}
.panel.swipe{border-color:var(--rose-soft)}
.panel.swipe h2 svg{width:18px;height:18px;vertical-align:-3px;color:var(--rose)}
.btn.ghost.danger{color:var(--rose)}
/* the bill a little wider, so the customer, discount and totals have room */
.posg.shoppos{grid-template-columns:1fr minmax(400px,440px)}
@media (max-width:1100px){.posg.shoppos{grid-template-columns:1fr}}
.shoppos .cart{padding:22px}
.shoppos .cart h2{font-size:1.25rem}
.shoppos .cart .sum.total{font-size:1.35rem}
.shoppos #susd{font-size:1.05rem;font-weight:600}
.btn.freemode{width:100%;justify-content:flex-start;margin-top:10px;min-height:46px;white-space:normal;text-align:start;line-height:1.35}
.btn.freemode svg{flex:0 0 auto}
.btn.freemode.on{background:var(--teal-soft);border-color:var(--teal);color:var(--teal)}
