:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --primary: #4f8cff;
  --primary-ink: #ffffff;
  --green: #3ecf8e;
  --amber: #f5a623;
  --red: #ff5c5c;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

#app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-mark { font-size: 26px; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { color: var(--muted); font-size: 12px; }
.site-switch { padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.site-switch label { font-size: 10px; letter-spacing: .05em; }
.site-switch select { font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary); color: var(--primary-ink); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--red); }

/* Content */
.content { flex: 1; min-width: 0; padding: 26px 30px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; margin: 0; }
.page-sub { color: var(--muted); margin: 2px 0 0; }
.loading { color: var(--muted); padding: 40px; text-align: center; }

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { border-color: #3a4150; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--red); border-color: #4a2b2f; }
.btn.danger:hover { background: #2a1a1c; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 12px; }

/* Cards / stats */
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-value.warn { color: var(--amber); }
.stat-value.bad { color: var(--red); }
.stat-value.good { color: var(--green); }
.two-col { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 160px; }
input, select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; cursor: default; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.muted { color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.green { background: rgba(62,207,142,.15); color: var(--green); }
.badge.amber { background: rgba(245,166,35,.15); color: var(--amber); }
.badge.red { background: rgba(255,92,92,.15); color: var(--red); }
.badge.grey { background: rgba(154,163,178,.15); color: var(--muted); }
.badge.blue { background: rgba(79,140,255,.15); color: var(--primary); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 50; overflow: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 560px; box-shadow: var(--shadow); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.close-x { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }

/* Toast */
#toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); min-width: 220px; animation: slideIn .18s ease; }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--primary); }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---- Auth ---- */
.auth-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); z-index: 100; }
.auth-card { width: 100%; max-width: 380px; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.sidebar-user + .sidebar-foot { margin-top: 0; }
.auth-links a { color: var(--primary); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ---- Grouped sidebar (MarketMan-style) ---- */
.nav-group { margin: 14px 8px 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- COGS report ---- */
.banner-info { background: rgba(79,140,255,.10); border: 1px solid rgba(79,140,255,.35); color: var(--text); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.banner-info a { color: var(--primary); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: baseline; }
.cogs-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; text-align: center; }
.cogs-stats > div { border-right: 1px solid var(--border); padding: 0 8px; }
.cogs-stats > div:last-child { border-right: none; }
.cogs-stat-value { font-size: 19px; font-weight: 700; margin-top: 4px; }
.cogs-pct { font-size: 15px; font-weight: 700; margin-top: 2px; }
tr.filter-row th { padding: 6px 10px; background: var(--surface); }
tr.filter-row input { padding: 6px 8px; font-size: 12px; }

/* ---- Card-wall dashboard (MarketMan-style) ---- */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1280px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-link { color: var(--primary); font-size: 12px; text-decoration: none; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.mini-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mini-stat { flex: 1; min-width: 110px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.mini-label { color: var(--muted); font-size: 11px; }
.mini-value { font-size: 18px; font-weight: 700; margin-top: 3px; }
.mini-value.good { color: var(--green); }
.mini-value.bad { color: var(--red); }
.mini-value.accent { color: var(--primary); }
.mini-chart { width: 100%; display: block; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-table th { text-align: left; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid var(--border); }
.dash-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table th.num, .dash-table td.num { text-align: right; }

/* ---- Invoices tabs + scans list ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { background: none; border: none; color: var(--muted); padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; letter-spacing: .03em; text-transform: uppercase; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.scan-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.scan-row:last-child { border-bottom: none; }
.scan-row:hover { background: var(--surface-2); }
.scan-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mx-pct { font-weight: 700; color: var(--green); font-size: 15px; margin-bottom: 4px; }
.mx-chip { display: inline-block; background: rgba(79,140,255,.10); border-radius: 4px; padding: 2px 6px; margin: 1px 2px 1px 0; font-size: 10.5px; color: var(--text); }

/* ---- Mobile app view (bottom tabs + drawer sidebar) ---- */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 60; width: 240px; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: 0 0 50px rgba(0,0,0,.65); }
  .content { padding: 16px 14px 84px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--surface); border-top: 1px solid var(--border); z-index: 55; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a, .mobile-nav button { flex: 1; background: none; border: none; color: var(--muted); text-align: center; padding: 8px 0 9px; font-size: 19px; text-decoration: none; cursor: pointer; }
  .mobile-nav span { display: block; font-size: 10px; margin-top: 2px; }
  .mobile-nav .active { color: var(--primary); }
  .dash-grid, .two-col { grid-template-columns: 1fr !important; }
  .page-title { font-size: 19px; }
  .modal { max-width: 96vw; }
}

/* ---- Nory-style sales insights ---- */
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.date-nav { display: flex; gap: 6px; align-items: center; }
.delta { font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.delta.up { color: var(--green); background: rgba(62,207,142,.12); }
.delta.down { color: var(--red); background: rgba(255,92,92,.12); }
.seg-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.seg-bar span { display: block; height: 100%; }
.seg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 1100px) { .grid[style*="2fr 2fr 1fr"] { grid-template-columns: 1fr !important; } }

/* ---- Flash P&L ---- */
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--muted); }
.chip strong { color: var(--text); }
.pnl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.pnl-card h3 { font-size: 14.5px; }
.pnl-row { border-top: 1px solid var(--border); padding: 10px 0 8px; }
.pnl-row-head { display: flex; justify-content: space-between; align-items: center; }
.pnl-val { font-size: 19px; font-weight: 700; margin-top: 3px; }
.pnl-pct { float: right; font-size: 17px; }
.pnl-sub { display: flex; justify-content: space-between; margin-top: 6px; }
.pnl-box { background: var(--surface-2); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; color: var(--muted); }

/* ---- Order sheet (Nory-style) ---- */
.order-row { border-bottom: 1px solid var(--border); padding: 12px 0; }
.order-row:last-child { border-bottom: none; }
.order-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pack-chip { background: #2a2f3a; border-radius: 6px; padding: 2px 8px; font-size: 11px; margin-left: 8px; color: var(--text); }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.stepper button { background: var(--surface-2); border: none; color: var(--text); width: 34px; height: 32px; font-size: 16px; cursor: pointer; }
.stepper span { min-width: 40px; text-align: center; font-weight: 700; }
.usage-strip { display: flex; gap: 14px; align-items: center; margin-top: 8px; overflow-x: auto; }
.usage-cell { text-align: center; font-size: 12px; color: var(--green); min-width: 32px; }
.usage-cell em { display: block; font-style: normal; color: var(--green); font-size: 10.5px; opacity: .85; }
.cover-banner { margin-top: 8px; background: rgba(62,207,142,.10); border: 1px solid rgba(62,207,142,.35); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; }
.order-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); margin-top: 12px; }
@media (max-width: 860px) { .order-foot { bottom: 64px; } }
.cart-badge { background: var(--amber); color: #1a1408; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; margin-left: 6px; }
.cart-totals { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; margin-top: 14px; }
.cart-totals div { display: flex; justify-content: space-between; padding: 3px 0; }

/* ---- HelchPOS brand + collapsible Inventory tab ---- */
.brand-name { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav-drop { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; color: var(--muted); padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; text-align: left; }
.nav-drop:hover { background: var(--surface-2); color: var(--text); }
.drop-arrow { margin-left: auto; font-size: 11px; }
.nav-sub { display: none; flex-direction: column; gap: 2px; padding-left: 14px; }
.nav-sub.open { display: flex; }

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }

/* ---- Order hub (Place order) ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip-badge { background: rgba(255,92,92,.25); color: #ffb3b3; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.chip.on .chip-badge { background: rgba(255,255,255,.25); color: #fff; }
.hub-sup-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hub-sup-foot { display: flex; justify-content: flex-end; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hub-totline { color: var(--muted); font-size: 13px; }
.hub-qty { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.hub-qty:focus { border-color: var(--primary); outline: none; }

/* ---- Sell (till) ---- */
.sell-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.sell-cat { margin: 18px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sell-cat:first-child { margin-top: 0; }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sell-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  color: var(--text); font-size: 13px; cursor: pointer; }
.sell-item:hover { border-color: var(--primary); background: var(--surface-2); }
.sell-item strong { color: var(--green); }
.sell-basket { position: sticky; top: 20px; }
.sell-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sell-line-name { flex: 1; }
.sell-total { display: flex; justify-content: space-between; font-size: 17px; padding: 14px 0; }
@media (max-width: 1000px) { .sell-layout { grid-template-columns: 1fr; } .sell-basket { position: static; } }

/* ---- Price lists ---- */
.group-row td { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.price-input { width: 92px; text-align: right; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.price-input:focus { border-color: var(--primary); outline: none; }

/* ---- Login page (Lightspeed-style, light theme) ---- */
.auth-screen { position: fixed; inset: 0; z-index: 100; overflow: auto; background: #f2f2f3; color: #18181b; display: block; padding: 0; }
.ls-bar { background: #000; display: flex; align-items: center; justify-content: space-between; padding: 15px 26px; }
.ls-brand { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 21px; color: #fff; letter-spacing: -0.02em; }
.ls-help { color: #fff; font-size: 15px; text-decoration: none; }
.ls-card { background: #fff; border: 1px solid #e4e4e7; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.07); max-width: 860px; margin: 96px auto 0; padding: 52px 48px 56px; }
.ls-title { margin: 0 0 30px; font-size: 27px; font-weight: 700; color: #18181b; }
.ls-sub { margin: -18px 0 26px; color: #52525b; font-size: 15px; }
.ls-label { display: block; font-weight: 600; font-size: 15px; color: #27272a; margin: 20px 0 8px; }
.ls-input { width: 100%; background: #fff; border: 1px solid #d4d4d8; border-radius: 4px; padding: 13px 14px; font-size: 15px; color: #18181b; }
.ls-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 1px #4f46e5; }
.ls-row { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.ls-links a { color: #18181b; font-size: 15px; text-decoration: underline; }
.ls-btn { background: #4f46e5; color: #fff; border: none; border-radius: 6px; padding: 14px 32px; font-size: 15px; font-weight: 600; cursor: pointer; }
.ls-btn:hover { filter: brightness(1.08); }
.ls-err { color: #dc2626; font-size: 14px; margin: 14px 0 0; min-height: 18px; }
.ls-foot { text-align: center; margin: 28px 0 48px; }
.ls-foot a { color: #18181b; font-size: 15px; text-decoration: underline; }
@media (max-width: 920px) { .ls-card { margin: 40px 16px 0; padding: 32px 22px 40px; } }

/* ---- Team / timecards ---- */
.tc-day { font-weight: 700; font-size: 13.5px; padding: 14px 0 4px; color: var(--text); }
.tc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.tc-row:last-child { border-bottom: none; }
.tc-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(139,124,248,.18); color: #b3a9fb; font-weight: 700; font-size: 12.5px; flex: none; }
.tc-times { text-align: right; font-weight: 600; font-size: 13.5px; }
.tc-approve { background: #2a9d74; border-color: #2a9d74; color: #fff; }
.recon-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .recon-bar .hint { width: 78px; }
.ls-remember { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14.5px; color: #27272a; } .ls-remember input { width: 16px; height: 16px; accent-color: #4f46e5; }

/* ---- POS Register (fixed-proportion stage) ---- */
.pos-root { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pos-stage { flex: none; width: 1366px; height: 1000px; background: #0c0e12; color: #e8eaee; display: flex; flex-direction: column; transform-origin: center; font-size: 15px; }
.pos-top { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: 58px; background: #14161c; border-bottom: 1px solid #23262e; flex: 0 0 58px; }
.pos-logout { background: none; border: none; color: #ff5c5c; font-size: 16px; cursor: pointer; }
.pos-top-name { font-weight: 700; font-size: 16px; }
.pos-top-icons button { background: none; border: none; color: #aeb4bf; font-size: 19px; cursor: pointer; margin-left: 14px; }
.pos-main { flex: 1; display: flex; min-height: 0; }
.pos-nav { display: flex; height: 62px; flex: 0 0 62px; background: #14161c; border-top: 1px solid #23262e; }
.pos-nav button { flex: 1; background: none; border: none; color: #8b93a1; font-size: 19px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pos-nav button span { font-size: 12px; }
.pos-nav button.active { color: #4f8cff; }

/* left panel */
.pos-left { width: 470px; flex: 0 0 470px; display: flex; flex-direction: column; background: #101218; border-right: 1px solid #23262e; }
.pos-order-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; font-size: 17px; }
.pos-linkbtn { background: none; border: none; color: #4f8cff; font-size: 15px; cursor: pointer; }
.pos-tagrow { display: flex; gap: 8px; padding: 4px 18px 10px; border-bottom: 1px solid #23262e; }
.pos-chip { background: #1a1d24; border: 1px solid #2a2e38; border-radius: 6px; padding: 5px 10px; font-size: 12.5px; color: #aeb4bf; }
.pos-lines { flex: 1; overflow-y: auto; min-height: 0; }
.pos-line { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #1c1f27; font-size: 15px; }
.pos-line-qty { width: 20px; font-weight: 700; }
.pos-line-name { flex: 1; }
.pos-line-note { color: #8b93a1; font-size: 12px; margin-top: 2px; }
.pos-line-price { font-variant-numeric: tabular-nums; }
.pos-line-ctl button { width: 30px; height: 30px; border-radius: 6px; background: #1c1f27; color: #e8eaee; border: 1px solid #2a2e38; cursor: pointer; margin-left: 5px; font-size: 15px; }
.pos-empty { color: #6c7482; text-align: center; padding: 40px 12px; }
.pos-totals { border-top: 1px solid #23262e; padding: 10px 18px; }
.pos-totals > div { display: flex; justify-content: space-between; font-size: 17px; }
.pos-vatline { color: #8b93a1; font-size: 13px !important; margin-top: 2px; }
.pos-keypad-hint { display: flex; justify-content: space-between; background: #14161c; color: #8b93a1; font-size: 12.5px; padding: 7px 18px; border-top: 1px solid #23262e; }
.pos-keypad-hint strong { color: #4f8cff; }
.pos-keypad { display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr; gap: 7px; padding: 10px 14px 14px; }
.pos-keypad button { height: 56px; border-radius: 8px; border: none; background: #1a1d24; color: #e8eaee; font-size: 20px; cursor: pointer; }
.pos-keypad button:active { background: #262a34; }
.pos-key-c { color: #ff5c5c !important; }
.pos-side { font-size: 15px !important; background: #1f232c !important; color: #cdd3dd !important; }
.pos-side-blue { background: #3b6ff5 !important; color: #fff !important; }
.pos-side-green { background: #1f9d61 !important; color: #fff !important; font-size: 18px !important; }

/* category rail */
.pos-rail { width: 150px; flex: 0 0 150px; overflow-y: auto; background: #0e1015; border-right: 1px solid #23262e; display: flex; flex-direction: column; }
.pos-cat { border: none; border-left: 5px solid transparent; background: transparent; color: #cdd3dd; min-height: 64px; padding: 8px 10px; font-size: 13.5px; cursor: pointer; text-align: center; border-bottom: 1px solid #1c1f27; }
.pos-cat.on { color: #fff; font-weight: 700; }

/* item grid */
.pos-right { flex: 1; display: flex; flex-direction: column; background: #07080b; min-width: 0; }
.pos-grid-head { text-align: center; font-weight: 700; padding: 12px; font-size: 16px; background: #000; }
.pos-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 12px; align-content: start; }
.pos-item { height: 116px; background: #191c23; border: none; border-bottom: 5px solid #3b6ff5; border-radius: 4px; color: #e8eaee; font-size: 15.5px; cursor: pointer; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pos-item:active { background: #232733; }
.pos-item em { color: #8b93a1; font-size: 12px; font-style: normal; }
.pos-paybar { height: 66px; flex: 0 0 66px; margin: 0 12px 12px; border: none; border-radius: 8px; background: #1f9d61; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.pos-paybar:disabled { opacity: .45; cursor: default; }

/* payment screen */
.pos-paywrap { position: absolute; inset: 0; background: #0c0e12; display: flex; flex-direction: column; z-index: 5; }
.pos-root .pos-stage { position: relative; }
.pos-paytop { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 22px; background: #14161c; border-bottom: 1px solid #23262e; }
.pos-paycols { flex: 1; display: flex; gap: 14px; padding: 16px; min-height: 0; }
.pos-paycol { flex: 1; background: #101218; border-radius: 10px; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pos-paycol h3 { margin: 0; font-size: 18px; }
.pos-paysub { color: #8b93a1; margin: 0 0 8px; font-size: 13px; }
.pos-paycat { color: #8b93a1; font-size: 13px; margin-top: 8px; }
.pos-method { display: flex; align-items: center; gap: 10px; background: #1a1d24; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 8px; padding: 15px 14px; font-size: 16px; cursor: pointer; text-align: left; }
.pos-method.on { background: #3b6ff5; border-color: #3b6ff5; color: #fff; }
.pos-method:disabled { opacity: .45; cursor: default; }
.pos-method em { margin-left: auto; font-size: 12px; font-style: normal; color: inherit; opacity: .8; }
.pos-payitems { flex: 1; overflow-y: auto; }
.pos-payline { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #1c1f27; }
.pos-payline span:nth-child(2) { flex: 1; }
.pos-paytotal { display: flex; justify-content: space-between; padding-top: 10px; font-size: 17px; }
.pos-payrow { display: flex; justify-content: space-between; align-items: center; background: #1a1d24; border-radius: 8px; padding: 13px 14px; font-size: 15px; }
.pos-payrow-t { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.pos-paycard { background: #1a1d24; border-radius: 8px; padding: 13px 14px; }
.pos-paycard input { width: 100%; background: #10131a; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 6px; padding: 9px 10px; font-size: 15px; }
.pos-flabel { display: block; color: #8b93a1; font-size: 12.5px; margin: 8px 0 4px; }
.pos-vline { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.pos-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pos-quick button { background: #262a34; border: none; color: #e8eaee; border-radius: 8px; padding: 14px 0; font-size: 16px; cursor: pointer; }
.pos-quick button.on { background: #3b6ff5; color: #fff; }
.pos-toggle { width: 46px; height: 26px; border-radius: 999px; background: #2a2e38; border: none; position: relative; cursor: pointer; }
.pos-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.pos-toggle.on { background: #3b6ff5; }
.pos-toggle.on i { left: 23px; }
.pos-paygo { height: 62px; border: none; border-radius: 8px; background: #1f9d61; color: #fff; font-size: 19px; font-weight: 700; cursor: pointer; margin-top: auto; }
.pos-paygo:disabled { opacity: .45; }
.pos-changedue { text-align: center; font-size: 22px; background: rgba(31,157,97,.15); border: 1px solid rgba(31,157,97,.4); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.pos-receipt { background: #d8d5c8; color: #23241f; border-radius: 4px; padding: 18px 16px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; margin: 0 auto; max-width: 380px; }

/* receipts view */
.pos-rcpts { flex: 1; display: flex; gap: 14px; padding: 16px; min-height: 0; width: 100%; }
.pos-rcpt-list { width: 46%; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pos-rcpt-list input { background: #1a1d24; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
#rl-rows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pos-rcpt-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: #171a21; border: 1px solid #23262e; border-left: 4px solid #3b6ff5; border-radius: 8px; padding: 10px 14px; color: #e8eaee; cursor: pointer; text-align: left; }
.pos-rcpt-row.void { opacity: .55; border-left-color: #ff5c5c; }
.pos-rcpt-ref { font-weight: 700; }
.pos-rcpt-meta { grid-row: 2; color: #8b93a1; font-size: 12px; }
.pos-rcpt-amt { grid-row: 1 / span 2; align-self: center; font-size: 16px; font-weight: 700; }
.pos-rcpt-amt em { color: #ff8a8a; font-size: 11px; font-style: normal; margin-left: 6px; }
.pos-rcpt-paper { flex: 1; overflow-y: auto; background: #101218; border-radius: 10px; padding: 22px; }
.pos-rcpt-actions { display: flex; justify-content: center; gap: 26px; margin-top: 18px; }
.pos-rcpt-actions button { background: none; border: none; color: #cdd3dd; cursor: pointer; font-size: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pos-rcpt-actions button span { font-size: 11.5px; color: #8b93a1; }
.pos-rcpt-actions button:disabled { opacity: .4; }
.pos-top-icons select { width: auto; background: #1a1d24; border: 1px solid #2a2e38; color: #cdd3dd; border-radius: 6px; padding: 6px 8px; font-size: 13px; }

/* ---- POS v2.5: combo slots, variants, settings, previews ---- */
.pos-line-edit { background: none; border: none; color: #8b93a1; cursor: pointer; padding: 4px; }
.pos-line-edit:hover { color: #e8eaee; }
.pos-item { color: #e8eaee; position: relative; }
.pos-item:active { background: var(--p) !important; background-image: none !important; }
.pos-combo { flex: 1; display: flex; gap: 14px; padding: 16px; min-height: 0; }
.pos-combo-left { width: 400px; flex: 0 0 400px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.pos-combo-card { background: #101218; border-radius: 10px; padding: 14px 16px; }
.pos-combo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pos-combo-item { display: flex; justify-content: space-between; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid #1c1f27; margin-bottom: 8px; }
.pos-slot { display: inline-block; border: none; border-radius: 6px; padding: 6px 12px; margin: 6px 0 2px; font-size: 13px; font-weight: 700; cursor: pointer; background: #b8842a; color: #fff; }
.pos-slot.done { background: #1f9d61; }
.pos-slot.live { outline: 2px solid #4f8cff; outline-offset: 2px; }
.pos-slot-val { color: #8b93a1; font-size: 13.5px; padding: 2px 2px 6px; }
.pos-slot-val em { color: #5f6b7a; font-style: normal; font-size: 12px; margin-left: 6px; }
.pos-combo-total { display: flex; justify-content: space-between; border-top: 1px dashed #2a2e38; padding-top: 8px; font-size: 15px; }
.pos-addmenu { border: 1px dashed #3b6ff5; background: transparent; color: #4f8cff; border-radius: 8px; padding: 14px; font-size: 15px; cursor: pointer; }
.pos-ticket { margin-top: auto; border: none; border-radius: 8px; background: #3b6ff5; color: #fff; padding: 18px; font-size: 17px; font-weight: 700; cursor: pointer; }
.pos-ticket:disabled { opacity: .45; }
.pos-combo-right { flex: 1; display: flex; flex-direction: column; background: #07080b; border-radius: 10px; overflow: hidden; min-width: 0; }
.pos-variant { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 16px; font-size: 16px; cursor: pointer; margin-bottom: 8px; }
.pos-variant:hover { border-color: var(--primary); }
.pos-settings { flex: 1; max-width: 640px; margin: 0 auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; width: 100%; }
.pos-settings h3 { margin: 0; }
.pos-ic { display: inline-block; vertical-align: -4px; }
.pos-nav .pos-ic { vertical-align: 0; }

/* ---- POS v2.6: receipt actions + settings rail ---- */
.pos-rcpt-tabs { display: flex; gap: 8px; }
.pos-rcpt-tabs button { flex: 1; background: #171a21; border: 1px solid #23262e; color: #8b93a1; border-radius: 8px; padding: 9px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pos-rcpt-tabs button.on { background: #1e2836; border-color: #3b6ff5; color: #9cbcff; }
.pos-rcpt-row { grid-template-columns: auto 1fr auto; }
.pos-rcpt-pay { grid-row: 1 / span 2; align-self: center; color: #8b93a1; display: flex; gap: 2px; }
.pos-rcpt-meta { grid-column: 2; }
.pos-ract-main { display: block; margin: 18px auto 0; border: none; border-radius: 8px; background: #3b6ff5; color: #fff; padding: 14px 34px; font-size: 16px; font-weight: 700; cursor: pointer; }
.pos-ract-sheet { display: flex; flex-direction: column; gap: 8px; }
.pos-ract { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; cursor: pointer; }
.pos-ract:hover:not(:disabled) { border-color: var(--primary); }
.pos-ract:disabled { opacity: .45; cursor: default; }
.pos-ract .pos-ic { margin-top: 1px; flex: 0 0 auto; }
.pos-refline { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pos-refline input { width: 18px; height: 18px; }
.pos-refline span { flex: 1; }
.pos-set { flex: 1; display: flex; min-height: 0; width: 100%; }
.pos-set-rail { width: 250px; flex: 0 0 250px; background: #101218; border-right: 1px solid #1c1f27; overflow-y: auto; padding: 14px 0; }
.pos-set-rail button { display: block; width: 100%; text-align: left; background: none; border: none; border-left: 3px solid transparent; color: #aab2bf; padding: 12px 18px; font-size: 14.5px; cursor: pointer; }
.pos-set-rail button.on { background: #171d2a; border-left-color: #3b6ff5; color: #fff; font-weight: 600; }
.pos-set-body { flex: 1; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.pos-set-body h3 { margin: 0; }
.pos-set-quick { display: flex; gap: 10px; }
.pos-set-quick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #171a21; border: 1px solid #23262e; color: #e8eaee; border-radius: 10px; padding: 16px 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pos-set-quick button:hover { border-color: #3b6ff5; }
.pos-status { border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pos-status.ok { background: rgba(31,157,97,.18); color: #4fd08a; }
.pos-status.off { background: rgba(139,147,161,.15); color: #8b93a1; }
.pos-support-phone { background: #101218; border: 1px solid #23262e; border-radius: 10px; padding: 16px 18px; text-align: center; }
.pos-support-phone a { display: block; color: #4f8cff; font-size: 26px; font-weight: 700; text-decoration: none; margin-top: 4px; }
.pos-qa { background: #101218; border: 1px solid #23262e; border-radius: 8px; padding: 0 14px; }
.pos-qa summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.pos-qa p { color: #aab2bf; margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; }

/* Menu creator: section colour chips + previews */
.menu-sec-head { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; }
.menu-sec-chip { display: inline-block; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.menu-color { width: 42px; height: 28px; padding: 2px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.kds-card { background: #101218; border: 1px solid #23262e; border-left: 4px solid #f5a623; border-radius: 8px; max-width: 300px; margin: 0 auto; padding: 12px 14px; }
.kds-head { display: flex; justify-content: space-between; color: #8b93a1; font-size: 12.5px; margin-bottom: 6px; }
.kds-line { font-size: 16px; font-weight: 700; }
.kds-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kds-chip { background: rgba(79,140,255,.18); color: #9cbcff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.qr-preview { background: #faf6e4; color: #1e2229; border-radius: 8px; padding: 16px 18px; max-width: 420px; margin: 0 auto; }

/* ---- POS v2.7: mobile register (phone) ---- */
.pos-root.posm { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #0b0d12; color: #e8eaee; font-size: 15px; }
.posm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: #101218; border-bottom: 1px solid #1c1f27; flex: 0 0 auto; }
.posm-link { background: none; border: none; color: #4f8cff; font-size: 15.5px; cursor: pointer; padding: 4px 0; min-width: 60px; text-align: left; }
.posm-title { font-weight: 700; font-size: 16px; color: #fff; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posm-topicons { display: flex; gap: 14px; min-width: 60px; justify-content: flex-end; }
.posm-topicons button { background: none; border: none; color: #cdd3dd; cursor: pointer; padding: 2px; }
.posm-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; -webkit-overflow-scrolling: touch; }
.posm-nav { display: flex; height: 58px; flex: 0 0 auto; background: #14161c; border-top: 1px solid #23262e; padding-bottom: env(safe-area-inset-bottom); }
.posm-nav button { flex: 1; background: none; border: none; color: #8b93a1; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.posm-nav button span { font-size: 11.5px; }
.posm-nav button.active { color: #4f8cff; }

.posm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; }
.posm-head .posm-link { min-width: 0; text-align: right; }
.posm-chips { display: flex; gap: 8px; padding: 6px 16px 10px; flex-wrap: wrap; }
.posm-lines { flex: 1; overflow-y: auto; padding: 0 8px; }
.posm-line { display: flex; align-items: flex-start; gap: 10px; background: #171a21; border: 1px solid #23262e; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.posm-line-qty { font-weight: 700; min-width: 18px; }
.posm-line-name { flex: 1; }
.posm-pencil { background: none; border: none; color: #8b93a1; cursor: pointer; padding: 0 0 0 8px; vertical-align: middle; }
.posm-line-price { font-weight: 700; }
.posm-totals { padding: 10px 16px 4px; border-top: 1px solid #1c1f27; flex: 0 0 auto; }
.posm-total { display: flex; justify-content: space-between; font-size: 18px; margin-top: 4px; }
.posm-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 14px; flex: 0 0 auto; }
.posm-btn-add { border: none; border-radius: 8px; background: #2b3a55; color: #9cbcff; font-size: 16px; font-weight: 700; padding: 16px 10px; cursor: pointer; }
.posm-btn-pay { border: none; border-radius: 8px; background: #1f9d61; color: #fff; font-size: 16px; font-weight: 700; padding: 16px 10px; cursor: pointer; }
.posm-btn-pay:disabled { opacity: .45; }

.posm-cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 10px; flex: 0 0 auto; -webkit-overflow-scrolling: touch; }
.posm-cat { flex: 0 0 auto; border: 2px solid transparent; border-radius: 999px; background: var(--p); color: #fff; opacity: .55; font-size: 13.5px; font-weight: 700; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.posm-cat.on { opacity: 1; border-color: #fff; }
.posm-searchnote { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 6px; color: #8b93a1; font-size: 13px; }
.posm-items { flex: 1; overflow-y: auto; padding: 0 10px; }
.posm-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: #14161d; border: none; border-bottom: 1px solid #1f232c; color: #e8eaee; padding: 15px 12px; font-size: 15px; cursor: pointer; text-align: left; }
.posm-item-name em { display: block; color: #8b93a1; font-style: normal; font-size: 12.5px; margin-top: 2px; }
.posm-price { background: #fff; color: #14161d; border-radius: 6px; padding: 6px 10px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.posm-check { border: none; background: #101218; border-top: 1px solid #1c1f27; color: #4f8cff; font-size: 16px; font-weight: 700; padding: 16px; cursor: pointer; flex: 0 0 auto; }

.posm-methods { display: flex; gap: 8px; }
.posm-methods button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #171a21; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 8px; padding: 13px 8px; font-size: 15px; cursor: pointer; }
.posm-methods button.on { border-color: #3b6ff5; background: #1e2836; }
.posm-methods button:disabled { opacity: .45; }
.posm-quick { grid-template-columns: repeat(3, 1fr); }
.posm-payscreen { z-index: 6; }
.posm-rcpts { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 8px; flex: 1; min-height: 0; }
.posm-rcpts input { background: #1a1d24; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.posm-paper { padding: 16px 12px 24px; overflow-y: auto; }
.posm-setlist { display: flex; flex-direction: column; padding: 10px 12px; }
.posm-setlist button { display: flex; align-items: center; justify-content: space-between; background: #14161d; border: none; border-bottom: 1px solid #1f232c; color: #e8eaee; padding: 16px 14px; font-size: 15.5px; cursor: pointer; text-align: left; }
.posm-setlist button:first-child { border-radius: 10px 10px 0 0; }
.posm-setlist button em { color: #5f6b7a; font-style: normal; font-size: 18px; }
.posm-setlist .posm-exit { margin-top: 14px; border-radius: 10px; color: #ff8a8a; }
.posm-pane { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 24px; }

/* Mobile combo picker: stack the slots above a 2-up option grid. */
.posm .pos-combo { flex-direction: column; padding: 10px; gap: 10px; overflow-y: auto; }
.posm .pos-combo-left { width: auto; flex: 0 0 auto; overflow: visible; }
.posm .pos-combo-right { flex: 0 0 auto; }
.posm .pos-combo-right .pos-grid { grid-template-columns: repeat(2, 1fr) !important; }
.posm .pos-paytop { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: #101218; }
.posm .pos-ticket { position: sticky; bottom: 0; }
body.pos-open .mobile-nav { display: none !important; }
.posm-totals .pos-vatline { display: flex; justify-content: space-between; }

/* ---- POS v2.7.1: mobile tile grid + tender list ---- */
.posm-crumb { padding: 12px 16px 4px; color: #8b93a1; font-size: 12.5px; flex: 0 0 auto; }
.posm-crumb strong { display: block; color: #e8eaee; font-size: 15.5px; margin-top: 1px; }
.posm-gridwrap { flex: 1; overflow-y: auto; padding: 10px 12px 16px; -webkit-overflow-scrolling: touch; }
.posm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.posm-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; background: #1a1f2c; border: none; border-bottom: 4px solid #3b6ff5; border-radius: 7px; color: #e8eaee; font-size: 14.5px; font-weight: 600; padding: 12px 10px; cursor: pointer; text-align: center; }
.posm-tile:active { filter: brightness(1.25); }
.posm-tile em { color: #9aa3b2; font-style: normal; font-size: 12px; font-weight: 500; }
.posm-paylist { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.posm-paylist .posm-paycat, .posm-paycat { color: #8b93a1; font-size: 12.5px; text-transform: none; margin: 8px 2px 0; }
.posm-mrow { display: flex; align-items: center; gap: 12px; width: 100%; background: #171a21; border: 1px solid #23262e; color: #e8eaee; border-radius: 8px; padding: 15px 14px; font-size: 15.5px; cursor: pointer; text-align: left; }
.posm-mrow.on { background: #2f6bdf; border-color: #2f6bdf; color: #fff; }
.posm-mrow.on .pos-ic { color: #fff; }
.posm-mrow:disabled { opacity: .5; }
.posm-mrow em { margin-left: auto; color: #8b93a1; font-style: normal; font-size: 12px; }
.posm-mrow.on em { color: #cfe0ff; }
.posm-cancel { color: #ff6b6b; }

/* ---- POS v2.8: online orders ---- */
.pos-badge { position: absolute; top: 6px; right: calc(50% - 26px); background: #f5a623; color: #14161c;
  border-radius: 999px; min-width: 18px; height: 18px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.pos-nav button, .posm-nav button { position: relative; }
.pos-pend-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.pos-pend-table { display: inline-block; background: #f5a623; color: #14161c; border-radius: 8px;
  padding: 6px 12px; font-size: 16px; font-weight: 800; }
.pos-pend-note { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.4);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; }
.pos-pend-lines { background: #101218; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; }
.posm .pos-pend-lines { background: #171a21; }
.pos-pend-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pos-pend-btns .btn.danger { padding: 12px; }

/* ---- v2.9: no double-tap zoom on the till; toasts at the top of the POS ---- */
.pos-root, .pos-root * { touch-action: manipulation; }
body.pos-open #toast-root { top: calc(10px + env(safe-area-inset-top)); bottom: auto;
  left: 50%; right: auto; transform: translateX(-50%); align-items: center; }
body.pos-open .toast { animation: dropIn .18s ease; }
@keyframes dropIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.posm-tender { display: grid; gap: 10px; padding: 0 14px 12px; }
.posm-tender button { border: none; border-radius: 8px; font-size: 15.5px; font-weight: 700;
  padding: 16px 8px; cursor: pointer; }
.posm-tender .t-cash { background: #1f9d61; color: #fff; }
.posm-tender .t-card { background: #3b6ff5; color: #fff; }
.posm-tender .t-charge { background: #2b3a55; color: #9cbcff; }
.posm-tender button:disabled { opacity: .45; }

/* ---- v2.9.2: one-screen mobile combo flow ---- */
.posm-flow { z-index: 7; display: flex; flex-direction: column; }
.posm-flowsteps { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 10px; flex: 0 0 auto; scrollbar-width: none; }
.posm-flowsteps::-webkit-scrollbar { display: none; }
.posm-flowsteps button { flex: 0 0 auto; border: none; border-radius: 999px; padding: 10px 16px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; background: #23262e; color: #8b93a1; white-space: nowrap; }
.posm-flowsteps button.live { background: #b8842a; color: #fff; outline: 2px solid #4f8cff; outline-offset: 2px; }
.posm-flowsteps button.done { background: #1f9d61; color: #fff; }
.posm-flowgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px 10px; }
.posm-flowtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 0; background: #1a1f2c; border: 2px solid transparent; border-bottom: 4px solid #3f8f5f;
  border-radius: 8px; color: #e8eaee; font-size: 15.5px; font-weight: 650; padding: 8px; cursor: pointer; text-align: center; }
.posm-flowtile em { color: #9aa3b2; font-style: normal; font-size: 13px; font-weight: 500; }
.posm-flowtile.sel { border-color: #4f8cff; background: #1e2836; }
.posm-flowtile:active { filter: brightness(1.3); }
.posm-flowfoot { display: flex; align-items: center; gap: 14px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #1c1f27; flex: 0 0 auto; }
.posm-flowfoot .stepper { display: flex; align-items: center; gap: 10px; }
.posm-flowfoot .stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a2e38;
  background: #171a21; color: #e8eaee; font-size: 18px; line-height: 1; cursor: pointer; }
.posm-flowfoot .stepper button:disabled { opacity: .35; }
.posm-flowfoot .stepper b { min-width: 18px; text-align: center; font-size: 16px; }
.posm-flowfoot .posm-btn-pay { padding: 15px 8px; }
.posm-flowdel { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #4a2b2f; background: #171a21; color: #ff6b6b; font-size: 20px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.posm-flownote { padding: 0 14px 4px; flex: 0 0 auto; }
.posm-flownote input { width: 100%; background: #1a1d24; border: 1px solid #2a2e38; color: #e8eaee; border-radius: 8px; padding: 11px 12px; font-size: 14px; }

/* ---- v3.0: kitchen display + orders-tab polish ---- */
#po-rows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pos-kds-wrap { flex: 1; display: flex; flex-direction: column; padding: 14px; min-height: 0; width: 100%; }
.pos-kds { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: start; }
.posm .pos-kds { grid-template-columns: 1fr; }
.pos-ticket-card { background: #14161d; border: 1px solid #23262e; border-top: 4px solid #4f8cff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pos-ticket-card.warm { border-top-color: #f5a623; }
.pos-ticket-card.late { border-top-color: #ff5c5c; }
.pos-ticket-card.ready { border-top-color: #1f9d61; background: #12201a; }
.pos-ticket-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.pos-ticket-age { background: #23262e; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: #cdd3dd; }
.pos-ticket-card.warm .pos-ticket-age { background: rgba(245,166,35,.2); color: #f5c463; }
.pos-ticket-card.late .pos-ticket-age { background: rgba(255,92,92,.2); color: #ff8a8a; }
.pos-ticket-meta { color: #8b93a1; font-size: 12.5px; }
.pos-ticket-note { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.4); border-radius: 7px; padding: 7px 10px; font-size: 13px; }
.pos-ticket-lines { display: flex; flex-direction: column; gap: 6px; }
.pos-ticket-line { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.pos-ticket-line b { color: #4f8cff; min-width: 22px; }
.pos-ticket-line em { display: block; color: #9aa3b2; font-style: normal; font-size: 12.5px; }
.pos-ticket-ready { text-align: center; color: #4fd08a; font-size: 13px; font-weight: 700; }
.pos-ticket-btn { border: none; border-radius: 8px; padding: 13px 8px; font-size: 15px; font-weight: 800; cursor: pointer; margin-top: auto; }
.pos-ticket-btn.ready { background: #1f9d61; color: #fff; }
.pos-ticket-btn.done { background: #2b3a55; color: #9cbcff; }
.pos-ticket-btn:disabled { opacity: .5; }


/* ---- v3.3: venue + role switcher ---- */
.ctx-switch { display: block; width: 100%; text-align: left; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; cursor: pointer; }
.ctx-switch:hover { border-color: var(--primary); }
.ctx-venue { display: block; font-weight: 700; font-size: 14.5px; color: var(--text); }
.ctx-role { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ctx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  text-align: left; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 14px 16px; font-size: 15px; cursor: pointer; margin-bottom: 8px; }
.ctx-row:hover { border-color: var(--primary); }
.ctx-row.on { border-color: var(--primary); background: rgba(79,140,255,.1); }
.ctx-row .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.ctx-row .tick { color: var(--primary); font-weight: 800; }
.ctx-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 700; margin: 14px 2px 8px; }
.ctx-head:first-child { margin-top: 0; }

/* ---- Staff & access + Logs hub (v3.4) ------------------------------------ */
.f-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; }
.f-input { width: 100%; }
.muted-row td { opacity: .55; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 700; background: var(--bg-soft, rgba(127,127,127,.12)); color: var(--muted);
  border: 1px solid var(--border); vertical-align: 1px; }
.logs-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.logs-side { padding: 10px; max-height: calc(100vh - 170px); overflow-y: auto; }
.logs-side .ctx-row { width: 100%; margin-bottom: 4px; }
.log-row { padding: 10px 4px; border-bottom: 1px solid var(--border); }
.log-row:last-child { border-bottom: none; }
.log-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.log-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.log-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.log-detail { margin-top: 6px; }
.log-detail summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.log-detail pre { white-space: pre-wrap; word-break: break-all; font-size: 12px;
  background: rgba(127,127,127,.08); border-radius: 8px; padding: 8px; margin-top: 6px; }
@media (max-width: 900px) { .logs-wrap { grid-template-columns: 1fr; } .logs-side { max-height: 260px; } }

/* ---- me&u-style sign-in (v3.4.1) ------------------------------------------ */
.auth-screen { position: fixed; inset: 0; z-index: 100; display: flex; padding: 0; overflow: auto;
  background: #FBF4EA; color: #132C22; align-items: stretch; justify-content: flex-start; }
.au-left { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.au-box { width: 100%; max-width: 350px; text-align: center; }
.au-logo { display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: #0B3B2E; }
.au-logo-dots { display: inline-flex; flex-direction: column; gap: 4px; }
.au-logo-dots i { width: 11px; height: 11px; border-radius: 50%; background: #0B3B2E; }
.au-logo-dots i:first-child { width: 13px; height: 13px; }
.au-title { font-size: 26px; font-weight: 600; color: #132C22; margin: 30px 0 10px; }
.au-sub { color: #44534C; font-size: 14px; line-height: 1.55; margin: 0 0 26px; }
.au-input { display: block; width: 100%; background: #fff; border: 1px solid #E5DDD1; border-radius: 10px;
  padding: 15px 16px; font-size: 15px; margin-bottom: 14px; color: #132C22; }
.au-input::placeholder { color: #7C877F; }
.au-input:focus { outline: none; border-color: #0B5C41; box-shadow: 0 0 0 1px #0B5C41; }
.au-pwrap { position: relative; }
.au-pwrap .au-input { padding-right: 48px; }
.au-eye { position: absolute; right: 12px; top: 13px; background: none; border: none; cursor: pointer;
  color: #44534C; padding: 4px; line-height: 0; }
.au-links { text-align: left; margin: 4px 0 20px; }
.au-links a { color: #0B5C41; font-weight: 700; font-size: 14px; text-decoration: none; }
.au-remember { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #44534C;
  margin: 0 0 16px; text-align: left; }
.au-remember input { width: auto; margin: 0; }
.au-btn { width: 100%; background: #0B4A38; color: #fff; border: none; border-radius: 10px;
  padding: 16px; font-size: 16px; font-weight: 600; cursor: pointer; }
.au-btn:hover { background: #0C5C41; }
.au-back { display: inline-block; margin-top: 20px; color: #0B5C41; font-weight: 700;
  font-size: 14px; text-decoration: none; }
.au-err { color: #B3261E; font-size: 13px; min-height: 18px; margin-top: 14px; }
.au-right { flex: 1 1 50%; background: #0B3B2E; display: flex; align-items: center;
  justify-content: center; padding: 40px 32px; }
.au-promo { max-width: 430px; text-align: center; }
.au-mock { background: #FBF4EA; color: #0B3B2E; border-radius: 18px; padding: 42px 32px;
  font-size: 31px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-align: left;
  min-height: 180px; display: flex; align-items: flex-end; margin-bottom: 30px; }
.au-promo h3 { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.au-promo p { font-size: 14px; line-height: 1.6; color: #CFDDD4; margin: 0; }
.au-dots { display: flex; gap: 7px; justify-content: center; margin-top: 20px; }
.au-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E5A4C; border: none;
  cursor: pointer; padding: 0; }
.au-dot.on { background: #D9F64F; }
@media (max-width: 900px) {
  .au-right { display: none; }
  .au-left { padding-top: 60px; align-items: flex-start; }
}

/* ---- me&u Organization Staff (v3.4.2) ------------------------------------- */
.st-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.st-search { flex: 1; min-width: 220px; max-width: 360px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; color: var(--muted); }
.st-search input { border: none; background: none; padding: 10px 0; width: 100%; color: var(--text); }
.st-search input:focus { outline: none; box-shadow: none; border: none; }
.st-filter { width: auto; padding: 9px 12px; border-radius: 8px; }
.st-invite svg { vertical-align: -3px; margin-right: 7px; }
.st-name { display: flex; align-items: center; gap: 10px; }
.st-avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #34302B; flex: none; }
.st-kebab-cell { position: relative; width: 44px; text-align: right; }
.st-kebab { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; line-height: 0; }
.st-kebab:hover { background: rgba(127,127,127,.14); color: var(--text); }
.st-menu { position: absolute; right: 10px; top: 36px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); z-index: 30; min-width: 150px; overflow: hidden; }
.st-menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none;
  border: none; cursor: pointer; font-size: 14px; color: var(--text); }
.st-menu button:hover { background: rgba(127,127,127,.12); }
.ctx-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 10px; margin-bottom: 10px; color: var(--muted); background: var(--surface); }
.ctx-search input { border: none; background: none; padding: 9px 0; width: 100%; color: var(--text); }
.ctx-search input:focus { outline: none; box-shadow: none; }

/* Home Page & Branding uploader thumbs */
.qh-thumb { width: 58px; height: 40px; border: 1px solid var(--border); border-radius: 6px;
  background-size: cover; background-position: center; display: inline-flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 12px; flex: none; background-color: var(--surface-2); }

/* Service charge & surcharges rows */
.ch-sur { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; }

/* ---- Till site (pos.helchpos.com): coded entry + no back-office chrome --- */
.till-site .sidebar, .till-site .mobile-nav { display: none !important; }
.till-site .content { margin: 0; }
.till-entry { min-height: 100vh; width: 100%; background: #0c0e12; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.till-sub { color: #9aa3b2; font-size: 16px; margin: 2px 0 0; }
.till-dots { min-height: 30px; font-size: 22px; letter-spacing: 10px; color: #e8eaee; }
.till-dots .till-hint { font-size: 14px; letter-spacing: normal; color: #4c5566; }
.till-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; }
.till-pad button { height: 74px; border-radius: 16px; border: 1px solid #262b36; background: #171a21;
  color: #e8eaee; font-size: 26px; font-weight: 700; cursor: pointer; }
.till-pad button:active { background: #232836; }
.till-go { width: 276px; padding: 16px; border: none; border-radius: 14px; background: #3b6ff5;
  color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.till-owner { color: #6b7280; font-size: 13.5px; text-decoration: underline; }
.till-shake { animation: till-shake .35s; }
@keyframes till-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); } }

/* Till forgot-code phone input */
.till-phone { width: 276px; background: #171a21; border: 1px solid #262b36; border-radius: 14px;
  padding: 16px; color: #e8eaee; font-size: 20px; text-align: center; }


/* Two separate sidebar controls: role on top, venue below (v3.9) */
.ctx-switch { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: left; margin-bottom: 6px; }
.ctx-switch .ctx-cap { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700; }
.ctx-switch .ctx-val { font-size: 14px; font-weight: 650; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Combo screen: per-item notes + the size picker's quantity row (v4.0) */
.pos-combo-note { display: block; width: 100%; margin-top: 10px; background: none; color: #9aa3b2;
  border: 1px dashed #3a4150; border-radius: 8px; padding: 9px; font-size: 13px; cursor: pointer; }
.pos-combo-note.has { color: #e8eaee; border-style: solid; border-color: #4a5262; font-style: italic; }
.pos-combo-note:hover { border-color: #5a6376; color: #e8eaee; }
.pos-qtyrow { display: inline-flex; align-items: center; gap: 12px; }
.pos-qbtn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #333a47;
  background: #232836; color: #e8eaee; font-size: 18px; line-height: 1; cursor: pointer; }
.pos-item-price { display: block; margin-top: 4px; opacity: .75; font-size: 14px; }

/* ---- Brand logo (v4.1) ---------------------------------------------------
   'mask' mode paints the artwork as a silhouette in the current text colour,
   so one upload works on the dark sidebar, the light sign-in pane and the
   till keypad without needing separate light/dark files. */
.hp-logo { display: inline-block; width: 100%; max-width: 260px; background-color: currentColor;
  -webkit-mask-image: var(--logo); mask-image: var(--logo);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center; }
.hp-logo-img { display: block; max-width: 100%; object-fit: contain; }
.brand-logo { color: var(--text); display: flex; align-items: center; min-height: 48px;
  flex: 1 1 auto; width: 100%; min-width: 0; }
.brand-logo .hp-logo { max-width: 180px; }
.au-logo { width: 100%; }
.au-logo .hp-logo { width: 100%; max-width: 300px; -webkit-mask-position: center; mask-position: center; }
.au-logo .hp-logo-img { margin: 0 auto; }
.till-entry .au-logo { color: #e8eaee; }
.brand-prev { width: 170px; height: 78px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; padding: 10px; border: 1px solid var(--border); }
.brand-prev.dark { background: #0f1115; color: #e8eaee; }
.brand-prev.light { background: #fbf4ea; color: #132c22; }
