/* Jubilee Shop POS — Jubilee Tissue brand: teal J-mark with the product colours as accents
   (Celine blue, Livelle orange, Poshy green & purple). Big, clean, tap-first. */
:root {
  --teal: #00ACA9; --teal-d: #008C89; --deep: #006F5B; --teal-l: #E2F5F4; --teal-ll: #F1FAFA;
  --green: #4FA233; --green-l: #ECF7E7; --orange: #FD6C35; --orange-d: #D9531F; --orange-l: #FFEFE7;
  --purple: #592B82; --purple-l: #F1EAF7; --blue: #0066B2; --blue-l: #E6F0F9; --red: #D23B2A; --red-l: #FCEAE7; --yellow: #E1A208; --yellow-l: #FFF6DC;
  --ink: #17323A; --ink-2: #3D5A61; --muted: #6C8A90; --bg: #EEF5F5; --card: #fff; --line: #D9E8E9; --line-2: #EAF2F3;
  --r: 14px; --shadow: 0 1px 3px rgba(23,50,58,.07), 0 4px 14px rgba(23,50,58,.05); --shadow-lg: 0 18px 50px rgba(23,50,58,.22);
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 60px; --cart: 400px; --side: 236px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
a { color: var(--teal-d); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.hide { display: none !important; } .show-m { display: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 600; } .r { text-align: right; } .c { text-align: center; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .sp { justify-content: space-between; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--teal-l); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── buttons & inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 18px; font-weight: 600; cursor: pointer; background: var(--teal); color: #fff; min-height: 44px; transition: background .15s, transform .05s; text-align: center; }
.btn:hover { background: var(--teal-d); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); } .btn.ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn.green { background: var(--green); } .btn.green:hover { background: #418a29; }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: var(--orange-d); }
.btn.red { background: var(--red); } .btn.red:hover { background: #b22e1f; }
.btn.blue { background: var(--blue); } .btn.purple { background: var(--purple); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 9px; }
.btn.xl { padding: 16px 22px; min-height: 60px; font-size: 19px; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--teal-ll); color: var(--teal-d); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 13px; background: #fff; min-height: 44px; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
textarea.input { min-height: 80px; resize: vertical; }
label.f { display: block; margin-bottom: 12px; } label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
label.f small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; } .chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--teal); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-green { background: var(--green-l); color: #3A7D24; } .b-red { background: var(--red-l); color: var(--red); } .b-orange { background: var(--orange-l); color: var(--orange-d); }
.b-blue { background: var(--blue-l); color: var(--blue); } .b-teal { background: var(--teal-l); color: var(--deep); } .b-purple { background: var(--purple-l); color: var(--purple); } .b-yellow { background: var(--yellow-l); color: #8a6400; }
.hint { display: flex; gap: 12px; background: var(--teal-ll); border: 1px solid var(--teal-l); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.hint svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; } .hint.warn { background: var(--yellow-l); border-color: #f3e2a6; } .hint.warn svg { color: var(--yellow); } .hint.bad { background: var(--red-l); border-color: #f5c8c1; } .hint.bad svg { color: var(--red); }
.err { background: var(--red-l); color: var(--red); padding: 10px 13px; border-radius: 10px; font-size: 14px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-size: 16px; margin-bottom: 12px; } .card + .card { margin-top: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; } .empty svg { width: 44px; height: 44px; color: var(--teal); opacity: .5; margin-bottom: 8px; }
kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: 12px; font-family: inherit; }

/* ── toasts & modals ── */
#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 92vw; animation: up .2s; }
.toast.bad { background: var(--red); } .toast.warn { background: var(--orange-d); } .toast.ok { background: var(--deep); }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15,35,40,.5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .2s; }
.modal.wide { width: min(860px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); } .modal-h h3 { flex: 1; font-size: 18px; }
.modal-b { padding: 16px 18px; overflow-y: auto; } .modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* ══ LOGIN ══ */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #E2F5F4 0%, #F4FAFA 45%, #EEF3FA 100%); }
.login-box { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(440px, 100%); padding: 28px; }
.login-box.wide { width: min(860px, 100%); }
.login-box .logo { height: 54px; display: block; margin: 0 auto 6px; } .login-box h1 { text-align: center; font-size: 21px; margin-bottom: 4px; }
.login-box .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rep { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 16px 10px; cursor: pointer; text-align: center; transition: .15s; }
.rep:hover { border-color: var(--teal); background: var(--teal-ll); }
.rep .av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; font-weight: 700; font-size: 19px; color: #fff; }
.rep b { display: block; font-size: 15px; line-height: 1.2; } .rep small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.pinpad button { height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 24px; font-weight: 600; cursor: pointer; }
.pinpad button:active { background: var(--teal-l); } .pinpad button.k-ok { background: var(--teal); color: #fff; border-color: var(--teal); } .pinpad button.k-del { font-size: 16px; color: var(--muted); }
.pindots { display: flex; gap: 14px; justify-content: center; margin: 6px 0 18px; } .pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal); } .pindots i.on { background: var(--teal); }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ══ POS ══ */
.pos { height: 100vh; height: 100dvh; display: grid; grid-template-rows: var(--top) 1fr; overflow: hidden; }
.ptop { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.ptop::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--teal) 0 46%, var(--green) 46% 64%, var(--orange) 64% 78%, var(--purple) 78% 90%, var(--blue) 90%); }
.ptop .mark { height: 34px; } .ptop .shopname { font-weight: 700; font-size: 16px; line-height: 1.1; } .ptop .shopname small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.ptop .shopbtn { border: 0; background: none; text-align: left; cursor: pointer; padding: 4px 6px; border-radius: 8px; } .ptop .shopbtn:hover { background: var(--teal-ll); }
.status { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; border: 0; cursor: pointer; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); } .pill.off .dot { background: var(--red); } .pill.warn .dot { background: var(--yellow); }
.pill.today { background: var(--teal-l); color: var(--deep); }
.me { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 24px; }
.me:hover { background: var(--teal-ll); }
.me .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.me b { font-size: 14px; } .me small { display: block; font-size: 11.5px; color: var(--muted); text-transform: capitalize; line-height: 1; }
.menu { position: fixed; right: 12px; top: 64px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 250px; padding: 8px; z-index: 60; }
.menu a, .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 11px 12px; border: 0; background: none; color: var(--ink); border-radius: 9px; cursor: pointer; text-align: left; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--bg); } .menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

.pbody { display: grid; grid-template-columns: minmax(0, 1fr) var(--cart); min-height: 0; }
.shelf { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px 14px 0; gap: 10px; }
.searchbar { display: flex; gap: 10px; align-items: center; }
.search { position: relative; flex: 1; } .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 44px 0 46px; font-size: 17px; background: #fff; outline: none; }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 22px; padding: 7px 15px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chip .n { font-size: 11.5px; opacity: .7; font-weight: 500; }
.chip.b-Celine.on { background: var(--blue); border-color: var(--blue); } .chip.b-Livelle.on { background: var(--orange); border-color: var(--orange); } .chip.b-Poshy.on { background: var(--green); border-color: var(--green); } .chip.b-Pendo.on { background: var(--purple); border-color: var(--purple); }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tools .seg button { padding: 6px 11px; font-size: 13.5px; }
.stockinfo { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; } .stockinfo button { border: 0; background: none; color: var(--teal-d); font-weight: 600; cursor: pointer; padding: 2px 4px; }
.grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; align-content: start; padding: 2px 2px 18px; }
.p { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 2px solid transparent; padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; min-height: 148px; overflow: hidden; user-select: none; transition: border .12s, transform .06s; }
.p:active { transform: scale(.97); } .p:hover { border-color: var(--teal-l); } .p.in { border-color: var(--teal); }
.p .strip { height: 6px; background: var(--c, var(--teal)); }
.p .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.p .nm { padding-right: 24px; font-weight: 600; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.p .bt { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.p .pr { font-weight: 700; font-size: 18px; color: var(--ink); } .p .pr small { font-size: 11px; color: var(--muted); font-weight: 500; display: block; line-height: 1; }
.stk { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--green-l); color: #3A7D24; white-space: nowrap; }
.stk.low { background: var(--yellow-l); color: #8a6400; } .stk.out { background: var(--red-l); color: var(--red); } .stk.na { background: var(--line-2); color: var(--muted); }
.p .qty { position: absolute; top: 12px; right: 8px; background: var(--teal); color: #fff; font-weight: 700; min-width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; padding: 0 8px; font-size: 15px; box-shadow: 0 2px 8px rgba(0,140,137,.4); }
.p .fav { position: absolute; top: 12px; right: 10px; color: var(--yellow); } .p.in .fav { display: none; }
.p .more { position: absolute; bottom: 52px; right: 6px; opacity: 0; } .p:hover .more { opacity: 1; }
.p.out { opacity: .62; }
.bulk { flex: 1; overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.bulk table { width: 100%; border-collapse: collapse; } .bulk th { position: sticky; top: 0; background: #fff; z-index: 1; text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); }
.bulk td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); } .bulk tr:hover td { background: var(--teal-ll); }
.bulk input { width: 92px; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; text-align: center; font-size: 16px; font-weight: 600; }
.bulk input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-l); }
.bulkbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 10px; align-items: center; }

/* shop switch + my dashboard */
.shopname .swap { color: var(--teal); font-size: 14px; } .rep.cur { border-color: var(--teal); background: var(--teal-ll); }
.medash { min-height: 100vh; } .medash .ptop { position: sticky; top: 0; height: var(--top); } .medash .shopname small { text-transform: none; }
.mdmain { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.dl { font-weight: 700; background: rgba(255,255,255,.22); border-radius: 8px; padding: 1px 6px; margin-left: 4px; }
.share { margin: 8px 0 4px; } .sharebar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line-2); margin-bottom: 6px; } .sharebar.tall { height: 18px; margin-bottom: 12px; }
.sharebar i { display: block; height: 100%; } .ink { color: var(--ink); }
.chartwrap { position: relative; margin-top: 8px; } .chartwrap svg { display: block; } .chartwrap .ax { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chartwrap .bar { cursor: default; outline: none; } .chartwrap .bar.on path { filter: brightness(1.08); } .chartwrap .bar:focus .hit { stroke: var(--ink); stroke-dasharray: 2 2; }
.ctip { position: absolute; display: none; pointer-events: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px 10px; font-size: 13px; z-index: 5; min-width: 160px; }
.ctip .ctt { color: var(--muted); font-size: 12px; margin-bottom: 4px; } .ctip .ctr { display: flex; align-items: center; gap: 8px; } .ctip .ctr b { min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; } .ctip .ctr span:last-child { color: var(--ink-2); }
.ctip .ck { width: 12px; height: 2px; border-radius: 1px; }
.tblview { margin-top: 8px; font-size: 13px; } .tblview summary { cursor: pointer; color: var(--teal-d); font-weight: 600; }
.hbar { margin-bottom: 10px; outline: none; } .hbar .hb { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-top: 3px; } .hbar .hb i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.paylist > div { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-2); } .paylist .key { width: 12px; height: 12px; border-radius: 3px; }
.paircode { font-family: ui-monospace, monospace; font-size: 30px; font-weight: 700; letter-spacing: 3px; background: #fff; border: 2px dashed var(--teal); border-radius: 12px; padding: 4px 16px; color: var(--deep); }
/* stock banner */
.sbanner { display: flex; gap: 10px; align-items: center; background: var(--yellow-l); border: 1px solid #f1dd9c; color: #6b4f00; border-radius: 12px; padding: 9px 10px 9px 12px; font-size: 13.5px; line-height: 1.35; }
.sbanner > svg { color: var(--yellow); flex-shrink: 0; } .sbanner.out { background: var(--red-l); border-color: #f2c4bd; color: var(--red); } .sbanner.out > svg { color: var(--red); }
.chip.lowchip { border-color: #f1dd9c; color: #8a6400; } .chip.lowchip.on { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.p.blocked { cursor: not-allowed; opacity: .55; } .p.blocked .strip { background: var(--line) !important; }
/* cart */
.cart { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.cart-h h2 { font-size: 17px; flex: 1; } .cart-h .cnt { background: var(--teal); color: #fff; border-radius: 12px; padding: 1px 9px; font-size: 13px; margin-left: 6px; }
.lines { flex: 1; overflow-y: auto; padding: 4px 0; }
.ln { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.ln.flash { animation: flash .6s; } @keyframes flash { from { background: var(--teal-l); } }
.ln .nm { font-weight: 600; font-size: 14.5px; line-height: 1.25; } .ln .sub { font-size: 12.5px; color: var(--muted); }
.ln .amt { font-weight: 700; text-align: right; font-size: 15.5px; white-space: nowrap; }
.ln .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.stepper button { width: 42px; height: 40px; border: 0; background: #fff; font-size: 20px; font-weight: 600; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.stepper button:active { background: var(--teal-l); }
.stepper .q { min-width: 56px; height: 40px; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font-weight: 700; font-size: 16px; background: #fff; cursor: pointer; }
.ln .warn { grid-column: 1 / -1; font-size: 12.5px; color: var(--orange-d); font-weight: 600; }
.ln .disc { font-size: 12px; font-weight: 600; color: var(--purple); background: var(--purple-l); border-radius: 6px; padding: 1px 6px; }
.cart-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--teal-l); margin-bottom: 8px; }
.cart-f { border-top: 1px solid var(--line); padding: 12px 14px 14px; background: #FBFDFD; }
.cust { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); } .cust button { margin-left: auto; }
.tot { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.tot .big { font-size: 26px; font-weight: 700; color: var(--ink); } .tot .bigl { font-size: 17px; font-weight: 600; color: var(--ink); align-self: end; padding-bottom: 4px; }
.paybtns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.paybtns .btn { flex-direction: column; gap: 2px; min-height: 66px; font-size: 16px; } .paybtns .btn small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.cart-tools { display: flex; gap: 6px; margin-bottom: 10px; } .cart-tools .btn { flex: 1; }
.mobilebar { display: none; }

/* payment */
.paybig { text-align: center; padding: 6px 0 14px; } .paybig small { color: var(--muted); display: block; } .paybig b { font-size: 38px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.methods button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 6px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; }
.methods button svg { width: 26px; height: 26px; } .methods button.on { border-color: var(--teal); background: var(--teal-ll); color: var(--deep); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px; }
.quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; height: 48px; font-weight: 600; cursor: pointer; font-size: 15px; } .quick button:active { background: var(--teal-l); }
.tender { font-size: 28px !important; font-weight: 700; text-align: center; height: 62px !important; }
.change { display: flex; justify-content: space-between; align-items: center; background: var(--green-l); color: #2f6b1d; border-radius: 12px; padding: 12px 16px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.change.short { background: var(--red-l); color: var(--red); }
.splits { margin-bottom: 12px; } .splits .sp-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .keypad button { height: 58px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 22px; font-weight: 600; cursor: pointer; }
.keypad button:active { background: var(--teal-l); } .keypad .k-ok { background: var(--teal); color: #fff; border-color: var(--teal); font-size: 18px; }
.qtyshow { font-size: 40px; font-weight: 700; text-align: center; padding: 4px 0 10px; } .qtyshow small { font-size: 16px; color: var(--muted); font-weight: 500; }
.done-sheet { text-align: center; padding: 6px 0; } .done-sheet .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.done-sheet .tick svg { width: 44px; height: 44px; stroke-width: 2.6; } .done-sheet h2 { font-size: 24px; margin-bottom: 4px; } .done-sheet .chg { font-size: 30px; font-weight: 700; color: var(--deep); margin: 8px 0; }
.offline-q { background: var(--orange-l); color: var(--orange-d); }

/* ══ ADMIN ══ */
.adm { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.side-logo { display: block; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); } .side-logo img { height: 42px; display: block; }
.side-logo span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.side nav { flex: 1; overflow-y: auto; padding: 8px 10px 14px; }
.side .grp { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 14px 10px 5px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 500; position: relative; }
.side nav a:hover { background: var(--teal-ll); color: var(--teal-d); } .side nav a.on { background: var(--teal-l); color: var(--deep); font-weight: 600; }
.side nav a .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 21px; height: 21px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.side nav a .cnt.warn { background: var(--yellow); }
.side .tosell { margin: 12px 10px 4px; }
.side-credit { padding: 10px 18px 14px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); } .side-credit img { height: 30px; display: block; margin-bottom: 4px; }
.atop { position: sticky; top: 0; z-index: 30; margin-left: var(--side); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; height: 58px; }
.atop .crumb { font-weight: 600; color: var(--ink-2); } .atop .menu-btn { display: none; }
.main { margin-left: var(--side); padding: 22px 24px 90px; max-width: calc(1320px + var(--side)); }
.ph { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; } .ph h1 { font-size: 26px; } .ph p { margin: 4px 0 0; color: var(--muted); } .ph .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { border-radius: 16px; padding: 16px 18px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.tile::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tile small { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: .9; } .tile b { display: block; font-size: 26px; margin: 4px 0 2px; } .tile span { font-size: 13px; opacity: .92; }
.t-teal { background: linear-gradient(135deg, #00ACA9, #008C89); } .t-blue { background: linear-gradient(135deg, #1B7CC8, #0066B2); } .t-orange { background: linear-gradient(135deg, #FF8452, #F2602A); } .t-purple { background: linear-gradient(135deg, #7A3FA8, #592B82); } .t-green { background: linear-gradient(135deg, #6DC24F, #4FA233); }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; } .cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--teal-ll); }
.tbl .void td { color: var(--muted); text-decoration: line-through; } .tbl .void td:last-child, .tbl .void td.keep { text-decoration: none; }
.tblwrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.tblwrap .tbl th:first-child, .tblwrap .tbl td:first-child { padding-left: 16px; }
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.hc { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .hc:last-child { border: 0; }
.hc .st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; } .hc .st svg { width: 18px; height: 18px; stroke-width: 2.6; }
.hc .st.ok { background: var(--green-l); color: var(--green); } .hc .st.warn { background: var(--yellow-l); color: var(--yellow); } .hc .st.bad { background: var(--red-l); color: var(--red); }
.hc b { display: block; } .hc .fix { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.big-status { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; margin-bottom: 14px; color: #fff; }
.big-status.ok { background: linear-gradient(135deg, #6DC24F, #4FA233); } .big-status.warn { background: linear-gradient(135deg, #F0B92A, #D99A07); } .big-status.bad { background: linear-gradient(135deg, #E25B4A, #C23423); }
.big-status svg { width: 42px; height: 42px; stroke-width: 2.4; } .big-status h2 { font-size: 21px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
pre.xml { background: #0f2328; color: #c9f0ec; padding: 14px; border-radius: 12px; font-size: 12px; overflow: auto; max-height: 60vh; white-space: pre-wrap; word-break: break-all; }
.secret { font-family: ui-monospace, monospace; background: var(--teal-ll); border: 1.5px dashed var(--teal); padding: 12px; border-radius: 10px; word-break: break-all; font-size: 14px; }
.creds { background: var(--yellow-l); border: 1.5px dashed var(--yellow); border-radius: 12px; padding: 14px; font-size: 15px; }
.creds b { font-family: ui-monospace, monospace; font-size: 18px; }
.field-map { display: grid; grid-template-columns: 1.2fr 1fr 170px; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.field-map code { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button.on { color: var(--deep); border-bottom-color: var(--teal); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .filters .input { width: auto; min-height: 40px; padding: 7px 12px; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; } .chart .stack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.chart .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 8px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; } .swatches button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; } .swatches button.on { box-shadow: 0 0 0 2.5px var(--ink); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.helpfab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(0,102,178,.35); cursor: pointer; display: grid; place-items: center; }
.helpfab svg { width: 26px; height: 26px; }
.pos .helpfab { display: none; }
.help-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 6px 0 12px; display: block; }
.help-steps { padding-left: 22px; margin: 0; } .help-steps li { margin-bottom: 8px; }
.help-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.help-list button { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 14px; } .help-list button:hover { border-color: var(--teal); }
.help-list button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.help-tip { background: var(--yellow-l); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }

/* ── responsive ── */
@media (max-width: 1180px) { :root { --cart: 360px; } .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } .cols3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .medash .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .medash .tile { padding: 12px 14px; } .medash .tile b { font-size: 19px; } .medash .tile span { font-size: 12px; } .medash .hide-m { display: none; } .medash .show-m { display: inline; }
  .sbanner { font-size: 12.5px; } .sbanner .btn { display: none; }
  :root { --top: 56px; }
  .pbody { grid-template-columns: minmax(0, 1fr); }
  .tools { gap: 6px; } .tools select.input { flex: 1; min-width: 0; } .tools .sortseg { display: none; } .tools label.chk span { white-space: nowrap; }
  .tools .seg[data-views] { margin-left: 0 !important; } .stockinfo { font-size: 12px; }
  #toast-root { bottom: 96px; } .search input { height: 48px; font-size: 16px; }
  .cart { position: fixed; inset: 0; z-index: 70; transform: translateY(100%); transition: transform .25s; border: 0; }
  .cart.open { transform: none; }
  .cart-h .closecart { display: inline-grid !important; }
  .shelf { padding: 10px 10px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; padding-bottom: 96px; }
  .bulk { margin-bottom: 90px; }
  .p { min-height: 132px; } .p .nm { font-size: 14px; } .p .pr { font-size: 16px; }
  .mobilebar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); }
  .mobilebar .info { flex: 1; } .mobilebar .info b { display: block; font-size: 19px; } .mobilebar .info small { opacity: .8; }
  .mobilebar .btn { min-height: 50px; }
  .ptop .hide-m { display: none !important; } .me b, .me small { display: none; } .status .pill.today { display: none; }
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); } .side.open { transform: none; }
  .atop, .main { margin-left: 0; } .atop .menu-btn { display: inline-grid; } .main { padding: 16px 12px 90px; }
  .grid2, .grid3 { grid-template-columns: 1fr; } .ph h1 { font-size: 22px; } .ph .acts { margin-left: 0; }
  .field-map { grid-template-columns: 1fr; }
  .modal-bg { padding: 0; place-items: end stretch; } .modal, .modal.wide, .modal.xwide { width: 100%; border-radius: 18px 18px 0 0; max-height: 94vh; }
  .tbl.stack thead { display: none; } .tbl.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); } .tbl.stack td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 3px 0; text-align: right; }
  .tbl.stack td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; text-align: left; } .tbl.stack td.nolabel::before { content: none; }
  .tblwrap .tbl.stack td:first-child { padding-left: 0; }
}
@media (max-width: 420px) { .paybtns .btn { font-size: 14px; } .methods button { font-size: 13px; } .quick { grid-template-columns: repeat(2, 1fr); } }
@media print { body { background: #fff; } }
