/* Snova Tex POS — "silk & loom" theme */
:root {
  --ink: #1a1530; --ink-2: #251e40; --ink-3: #352c57;
  --silk: #9b2747; --silk-2: #b8385b; --silk-soft: #f7e6eb;
  --gold: #c99a43; --gold-soft: #f8efdc;
  --bg: #f6f2eb; --card: #ffffff; --line: #e8e1d6; --line-2: #f0ebe3;
  --text: #221d33; --muted: #7b7489; --faint: #a9a3b4;
  --green: #2b7a57; --green-soft: #e3f2ea; --red: #c0392b; --red-soft: #fbe7e4; --blue: #2c5aa0; --blue-soft: #e5edf9;
  --men: #2c5aa0; --women: #b8385b; --kids: #d78a1d; --unisex: #5d7a3a;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(26,21,48,.05), 0 4px 16px rgba(26,21,48,.06);
  --shadow-lg: 0 20px 60px rgba(26,21,48,.25);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--ui); background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--silk); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.num, .money { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.side { background: var(--ink); color: #d9d4e6; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px); }
.side::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--silk), var(--gold), var(--silk)); }
.brand { padding: 22px 20px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }

.brand .bt { line-height: 1.1; }
.brand .bt b { font-family: var(--display); font-size: 21px; color: #fff; font-weight: 600; letter-spacing: .01em; }
.brand .bt small { display: block; color: var(--gold); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 10px 12px 20px; }
.nav .grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a83a3; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #cfc9de; font-weight: 500; margin: 1px 0; transition: background .15s; }
.nav a svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(184,56,91,.35), rgba(184,56,91,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .badge { margin-left: auto; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 7px; }
.side-foot { padding: 14px 16px 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--silk), var(--gold)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.side-foot .who { flex: 1; min-width: 0; } .side-foot .who b { color: #fff; display: block; } .side-foot .who span { color: #8a83a3; text-transform: capitalize; }
.side-foot button svg { width: 16px; height: 16px; display: block; }
.side-foot button { background: none; border: 1px solid rgba(255,255,255,.12); color: #cfc9de; border-radius: 8px; padding: 6px 9px; cursor: pointer; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); backdrop-filter: blur(8px); flex: none; }
.top h1 { font-size: 22px; flex: 1; }
.top .date { color: var(--muted); font-size: 13px; }
.branch-pick { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 4px 0 12px; height: 38px; }
.branch-pick svg { width: 16px; color: var(--silk); }
.branch-pick select { border: 0; background: none; height: 36px; font-weight: 600; outline: none; cursor: pointer; }
.top .menu-btn { display: none; }
.view { flex: 1; overflow-y: auto; padding: 24px 28px 40px; }
.view.full { padding: 0; overflow: hidden; }

/* ---------- elements ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { font-size: 16.5px; flex: 1; }
.card-b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-21 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp { flex: 1; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { text-align: right; } .center { text-align: center; }
.pos-c { color: var(--green); } .neg-c { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; white-space: nowrap; transition: transform .05s, background .15s, box-shadow .15s; }
.btn:hover { background: #faf8f4; } .btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--silk); border-color: var(--silk); color: #fff; box-shadow: 0 2px 8px rgba(155,39,71,.25); }
.btn.pri:hover { background: var(--silk-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 32px; height: 32px; padding: 0; }

label.f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: .02em; }
.inp, select.inp, textarea.inp { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; outline: none; transition: border .15s, box-shadow .15s; }
textarea.inp { height: auto; padding: 10px 12px; min-height: 70px; resize: vertical; }
.inp:focus { border-color: var(--silk-2); box-shadow: 0 0 0 3px rgba(184,56,91,.12); }
.inp.sm { height: 32px; border-radius: 8px; padding: 0 8px; }
.field { margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--silk); }

.search { position: relative; } .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--faint); }
.search .inp { padding-left: 38px; }

table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfaf7; position: sticky; top: 0; z-index: 1; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fdfbf8; }
.t tr.click { cursor: pointer; }
.t .r { text-align: right; } .t .c { text-align: center; }
.tbl-wrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--r); }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green); } .chip.red { background: var(--red-soft); color: var(--red); }
.chip.gold { background: var(--gold-soft); color: #94691c; } .chip.blue { background: var(--blue-soft); color: var(--blue); } .chip.silk { background: var(--silk-soft); color: var(--silk); }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sec-Men { --sc: var(--men); } .sec-Women { --sc: var(--women); } .sec-Kids { --sc: var(--kids); } .sec-Fabrics { --sc: #2f7a7a; } .sec-Unisex { --sc: var(--unisex); }
.sec-dot { background: var(--sc, var(--muted)); }

.tabs { display: inline-flex; background: var(--line-2); padding: 3px; border-radius: 11px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--faint); margin-bottom: 8px; }

/* ---------- KPI ---------- */
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .lbl i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--silk-soft); color: var(--silk); font-style: normal; }
.kpi .lbl i svg { width: 15px; }
.kpi .val { font-family: var(--display); font-size: 29px; font-weight: 600; margin-top: 10px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.hero { background: var(--ink); color: #fff; border-color: var(--ink);
  background-image: radial-gradient(circle at 100% 0, rgba(201,154,67,.35), transparent 55%), repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); }
.kpi.hero .lbl { color: #b5aecb; } .kpi.hero .lbl i { background: rgba(201,154,67,.2); color: var(--gold); } .kpi.hero .sub { color: #b5aecb; }
.trend { font-weight: 700; font-size: 12px; } .trend.up { color: var(--green); } .trend.down { color: var(--red); }
.kpi.hero .trend.up { color: #7fdcae; } .kpi.hero .trend.down { color: #ff9c8f; }

.bar-list .it { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bar-list .it:last-child { border-bottom: 0; }
.bar-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.bar-list .bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--silk), var(--gold)); }

.acc-tile { padding: 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.acc-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,21,48,.1); }
.acc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.acc-ic svg { width: 22px; }
.acc-cash { background: var(--green-soft); color: var(--green); } .acc-bank { background: var(--blue-soft); color: var(--blue); }
.acc-tile .acc-amt { font-family: var(--display); font-size: 21px; font-weight: 600; }
.acc-ic.acc-card { background: var(--silk-soft); color: var(--silk); } .acc-upi { background: var(--gold-soft); color: #94691c; } .acc-other { background: var(--line-2); color: var(--muted); }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(26,21,48,.45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s; }
.modal.wide { width: min(980px, 100%); } .modal.mid { width: min(760px, 100%); }
.modal-h { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h2 { font-size: 20px; flex: 1; }
.modal-b { padding: 20px 22px; overflow-y: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fcfaf7; border-radius: 0 0 18px 18px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .2s; max-width: 360px; border-left: 4px solid var(--gold); }
.toast.err { border-left-color: #ff7b6b; } .toast.ok { border-left-color: #6fd6a3; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 80% 20%, rgba(184,56,91,.45), transparent 50%), radial-gradient(circle at 10% 90%, rgba(201,154,67,.3), transparent 45%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px); }
.login-art h2 { font-size: 46px; line-height: 1.08; max-width: 460px; font-weight: 500; }
.login-art h2 em { color: var(--gold); font-style: italic; }
.login-art p { color: #b5aecb; max-width: 420px; line-height: 1.6; }
.threads { display: flex; gap: 6px; } .threads span { width: 34px; height: 6px; border-radius: 4px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: min(360px, 100%); }
.login-form h1 { font-size: 30px; margin-bottom: 6px; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 1fr 420px; height: 100%; }
.pos-left { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 0; overflow: hidden; }
.pos-bar { display: flex; gap: 10px; align-items: center; }
.pos-bar .search { flex: 1; } .pos-bar .search .inp { height: 48px; font-size: 15px; border-radius: 12px; }
.pos-filters { display: flex; gap: 8px; margin: 14px 0 6px; overflow-x: auto; padding-bottom: 4px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 7px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.cat { font-size: 12.5px; padding: 5px 11px; }
.pill.cat.on { background: var(--silk); border-color: var(--silk); }
.pgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; padding: 10px 2px 20px; align-content: start; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0; cursor: pointer; text-align: left; overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,21,48,.1); border-color: var(--sc); }
.pcard .sw { height: 64px; background: var(--sc); position: relative; display: flex; align-items: flex-end; padding: 8px 10px; color: #fff;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 3px, transparent 3px 10px), linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 60%, #1a1530)); }
.pcard .sw b { font-family: var(--display); font-size: 26px; line-height: 1; opacity: .95; }
.pcard .sw small { position: absolute; top: 8px; right: 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .9; font-weight: 700; }
.pcard .pb { padding: 10px 11px 11px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pcard .pn { font-weight: 700; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pm { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12.5px; }
.pcard .pp { font-weight: 800; color: var(--silk); }
.pcard.out { opacity: .55; }

.cart { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.cart-h .inp { height: 38px; }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 0; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 11px 16px; border-bottom: 1px dashed var(--line); }
.ci .n { font-weight: 700; font-size: 13.5px; } .ci .v { font-size: 12px; color: var(--muted); }
.ci .amt { font-weight: 800; text-align: right; }
.ci .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--line-2); cursor: pointer; font-weight: 800; font-size: 15px; }
.qty input { width: 40px; height: 30px; border: 0; text-align: center; font-weight: 700; outline: none; }
.ci .pr { width: 84px; } .ci .ds { width: 70px; }
.cart-sum { padding: 14px 16px; border-top: 1px solid var(--line); background: #fcfaf7; }
.sum-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.sum-row b { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.sum-total span { font-weight: 700; } .sum-total b { font-family: var(--display); font-size: 32px; color: var(--ink); letter-spacing: -.02em; }
.pay-btn { width: 100%; height: 56px; font-size: 17px; border-radius: 14px; }
.kbd { font-size: 10.5px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 1px 5px; opacity: .8; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.size-btn { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 10px; cursor: pointer; text-align: center; transition: all .12s; }
.size-btn:hover { border-color: var(--silk); background: var(--silk-soft); }
.size-btn b { display: block; font-size: 19px; font-family: var(--display); }
.size-btn .c { font-size: 12px; color: var(--muted); }
.size-btn .s { font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.size-btn.zero { opacity: .45; cursor: not-allowed; } .size-btn.zero:hover { border-color: var(--line); background: #fff; }

.pay-methods { display: grid; gap: 10px; }
.pm-row { display: grid; grid-template-columns: 44px 1fr 150px auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.pm-row.on { border-color: var(--silk); background: #fffafb; }
.pm-row .inp { height: 42px; font-size: 16px; font-weight: 700; text-align: right; }
.pay-total { text-align: center; padding: 6px 0 18px; }
.pay-total small { color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.pay-total b { display: block; font-family: var(--display); font-size: 44px; color: var(--ink); }
.pay-status { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--line-2); margin-top: 14px; font-weight: 700; font-size: 15px; }
.pay-status.ok { background: var(--green-soft); color: var(--green); } .pay-status.due { background: var(--gold-soft); color: #94691c; }
.quick-cash { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* variant editor */
.vt .inp { height: 34px; padding: 0 8px; border-radius: 8px; }
.vt td { padding: 5px 4px; } .vt th { padding: 8px 4px; }
.size-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 36px; text-align: center; background: #fcfaf7; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--silk); background: var(--silk-soft); }
.dropzone svg { width: 44px; height: 44px; color: var(--silk); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; gap: 12px; } .step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; flex: none; font-family: var(--display); }
tr.bad td { background: var(--red-soft) !important; }

.pl-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.pl-line.sub { padding-left: 16px; color: var(--muted); font-size: 13px; }
.pl-line.tot { font-weight: 800; font-size: 15px; border-bottom: 2px solid var(--line); }
.pl-line.grand { font-family: var(--display); font-size: 22px; font-weight: 600; border: 0; padding-top: 14px; }

.chart svg { width: 100%; display: block; }
.chart text { font-family: var(--ui); font-size: 10.5px; fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.notice { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #7a5512; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.notice.info { background: var(--blue-soft); color: var(--blue); }
.logo-prev { width: 180px; height: 90px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; background: var(--ink); overflow: hidden; }
.logo-prev img { max-width: 160px; max-height: 70px; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-21 { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr 360px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .top .menu-btn { display: inline-flex; }
  .top { padding: 0 14px; } .top .date { display: none; }
  .view { padding: 16px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; }
  .pos-left { overflow: visible; } .pgrid { overflow: visible; grid-template-columns: repeat(2, 1fr); }
  .cart { border-left: 0; border-top: 1px solid var(--line); }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .pm-row { grid-template-columns: 36px 1fr 110px; } .pm-row .btn { grid-column: 1 / -1; }
}
@media print { .side, .top, .no-print { display: none !important; } .app { display: block; } .view { overflow: visible; padding: 0; } .card { box-shadow: none; } }

/* shop logo badge + Snova credit */
.shop-logo { background: #fff; border-radius: 10px; padding: 5px 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; max-width: 200px; }
.shop-logo img { max-height: 40px; max-width: 184px; object-fit: contain; display: block; }
.powered { display: flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a83a3; border-top: 1px solid rgba(255,255,255,.07); }
.powered img { height: 15px; opacity: .9; }
.login-vendor { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.login-vendor img { height: 16px; }
.logo-prev { background: #fff; }

.pcard .pp small { font-weight: 600; opacity: .8; }

.notice svg { width: 18px; height: 18px; flex: none; }
