@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Syne:wght@600;700;800&display=swap");

html {
  --pos-bg: #06090e;
  --pos-bg-2: #0c121a;
  --pos-surface: #101822;
  --pos-surface-2: #172231;
  --pos-surface-3: #223246;
  --pos-border: rgba(120, 148, 176, 0.18);
  --pos-border-strong: rgba(120, 148, 176, 0.32);
  --pos-text: #eef4fb;
  --pos-muted: #8b9db3;
  --pos-accent: #2ec4b6;
  --pos-accent-2: #1fa89c;
  --pos-accent-dim: rgba(46, 196, 182, 0.12);
  --pos-warn: #e8b23a;
  --pos-danger: #ff6b7a;
  --pos-ok: #3dd68c;
  --pos-radius: 16px;
  --pos-radius-sm: 10px;
  --pos-touch: 48px;
  --pos-font: "Manrope", "Segoe UI", sans-serif;
  --pos-display: "Syne", "Manrope", sans-serif;
  --pos-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --pos-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --pos-bar-bg: #0a1018;
  --pos-panel-bg: #101822;
  --pos-hero-bg: linear-gradient(180deg, #1a2432 0%, #0e1520 100%);
  --pos-page-bg:
    radial-gradient(1100px 520px at -10% -20%, rgba(46, 196, 182, 0.16) 0%, transparent 55%),
    radial-gradient(900px 480px at 110% 0%, rgba(56, 110, 180, 0.18) 0%, transparent 50%),
    radial-gradient(700px 420px at 80% 120%, rgba(20, 40, 70, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #081018 0%, var(--pos-bg) 40%, #05080c 100%);
  --pos-select-option-bg: #0e1520;
  --pos-ink-on-accent: #041916;
  --pos-rail-bg: #0b121a;
  --pos-pane-bg: #0a1118;
  --pos-tray-bg: #121a24;
  --pos-chip-bg: rgba(255, 255, 255, 0.04);
  --pos-chip-accent-text: #9ff0e6;
  --pos-control-bg: #162231;
  --pos-control-hover: #1e2f42;
  --pos-count-bg: #0b121a;
  --pos-hover-soft: rgba(255, 255, 255, 0.05);
  --pos-tile-bg: linear-gradient(165deg, #2a3c52 0%, #121c28 55%);
  --pos-tile-border: rgba(120, 148, 176, 0.2);
  --pos-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.18);
  --pos-header-card-bg: linear-gradient(180deg, #16202e 0%, #0c121a 100%);
  --pos-scrim: rgba(4, 8, 12, 0.72);
  --pos-tabs-bg: #101822;
  --pos-quiet: #c48a8a;
  --pos-quiet-hover: #ffb0b0;
  --pos-btn-bg: linear-gradient(180deg, #223042 0%, #16212e 100%);
  --pos-btn-hover: linear-gradient(180deg, #2a3a4e 0%, #1a2836 100%);
  --pos-row-bg: #121a24;
  --pos-row-hover: #182230;
  --pos-kds-board: #0b121a;
  --pos-kds-col: #101822;
}

html[data-theme="light"] {
  --pos-bg: #e7eef6;
  --pos-bg-2: #d9e3ef;
  --pos-surface: #ffffff;
  --pos-surface-2: #f3f7fb;
  --pos-surface-3: #e7eef6;
  --pos-border: rgba(30, 55, 85, 0.16);
  --pos-border-strong: rgba(30, 55, 85, 0.28);
  --pos-text: #122033;
  --pos-muted: #567089;
  --pos-accent: #16857c;
  --pos-accent-2: #12756d;
  --pos-accent-dim: rgba(22, 133, 124, 0.14);
  --pos-warn: #a86f10;
  --pos-danger: #c0392b;
  --pos-ok: #1a8a55;
  --pos-shadow: 0 12px 28px rgba(20, 40, 70, 0.1);
  --pos-inset: inset 0 1px 0 #ffffff;
  --pos-bar-bg: #ffffff;
  --pos-panel-bg: #ffffff;
  --pos-hero-bg: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);
  --pos-page-bg:
    radial-gradient(900px 480px at -10% -20%, rgba(22, 133, 124, 0.1) 0%, transparent 55%),
    radial-gradient(800px 420px at 110% 0%, rgba(80, 130, 190, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #e7eef6 55%, #dce6f1 100%);
  --pos-select-option-bg: #ffffff;
  --pos-ink-on-accent: #04201c;
  --pos-rail-bg: #f4f7fb;
  --pos-pane-bg: #f4f7fb;
  --pos-tray-bg: #e8eef6;
  --pos-chip-bg: #ffffff;
  --pos-chip-accent-text: #0e6a62;
  --pos-control-bg: #ffffff;
  --pos-control-hover: #eef3f8;
  --pos-count-bg: #e1eaf3;
  --pos-hover-soft: rgba(20, 45, 75, 0.06);
  --pos-tile-bg: #ffffff;
  --pos-tile-border: rgba(30, 55, 85, 0.14);
  --pos-tile-shadow: 0 6px 16px rgba(20, 40, 70, 0.08);
  --pos-header-card-bg: #ffffff;
  --pos-scrim: rgba(25, 45, 70, 0.32);
  --pos-tabs-bg: #e8eef6;
  --pos-quiet: #a35a5a;
  --pos-quiet-hover: #c0392b;
  --pos-btn-bg: #ffffff;
  --pos-btn-hover: #eef3f8;
  --pos-row-bg: #ffffff;
  --pos-row-hover: #eef3f8;
  --pos-kds-board: #e7eef6;
  --pos-kds-col: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--pos-page-bg);
  color: var(--pos-text);
  font-family: var(--pos-font);
  line-height: 1.45;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
a { color: var(--pos-accent); text-decoration: none; }

.hidden { display: none !important; }

.pos-app {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— App bar —— */
.pos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  background: var(--pos-bar-bg);
  border-bottom: 1px solid var(--pos-border);
  backdrop-filter: blur(18px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pos-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pos-text);
  text-decoration: none;
  border-radius: 12px;
  padding: 2px 8px;
  line-height: 0;
}
.pos-logo-bar {
  height: 80px;
  width: auto;
  display: block;
}
.pos-logo-receipt {
  width: min(260px, 100%);
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.bill-print-modal {
  width: min(480px, 100%);
  background: var(--pos-bg);
}
.bill-print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pos-border);
}
.bill-print-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drawer-kick-frame {
  position: fixed;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.tax-types-editor {
  display: grid;
  gap: 10px;
}
.tax-type-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 1.4fr) 110px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-bg-2);
}
.tax-type-row .field {
  margin: 0;
}
.tax-type-default {
  display: grid;
  place-items: center;
}
.tax-type-default input {
  width: 18px;
  height: 18px;
}
#cart-tax-breakdown .totals-row {
  color: var(--pos-muted);
  font-size: 0.9rem;
}
.kitchen-printer-list {
  display: grid;
  gap: 10px;
}
.kitchen-printer-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-bg-2);
}
.kitchen-printer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.kitchen-printer-card-head strong {
  font-family: var(--pos-display);
  font-size: 1.05rem;
}
.kitchen-printer-card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}
.kitchen-printer-card .toggle-row {
  border: none;
  padding: 0;
}
.bill-sheet.kitchen-chit .bill-doc-banner {
  background: #111;
  color: #fff;
  border-color: #111;
}
.bill-sheet.kitchen-chit .bill-line {
  font-size: 1.05em;
  font-weight: 700;
}
.bill-sheet.kitchen-chit .bill-line .muted {
  font-weight: 500;
}
.bill-sheet {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 18px 16px 20px;
  font-size: 0.92rem;
  line-height: 1.35;
  width: min(100%, var(--bill-paper-mm, 80mm));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.bill-sheet[data-paper="58"] {
  --bill-paper-mm: 58mm;
  font-size: 0.84rem;
}
.bill-sheet[data-paper="80"] {
  --bill-paper-mm: 80mm;
}
.bill-sheet .bill-brand {
  font-family: var(--pos-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.bill-sheet .bill-doc-banner {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #111;
  text-align: center;
}
.bill-sheet .bill-doc-banner strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
.bill-sheet .bill-doc-banner span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
}
.bill-sheet .bill-doc-banner.tax {
  background: #111;
  color: #fff;
  border-color: #111;
}
.bill-sheet .bill-doc-banner.tax span {
  color: #d4d4d4;
}
.bill-sheet .bill-doc-banner.proforma {
  background: #fff7ed;
  color: #9a3412;
  border-color: #ea580c;
  border-style: dashed;
}
.bill-sheet .bill-doc-banner.proforma span {
  color: #c2410c;
}
.bill-sheet .bill-addr,
.bill-sheet .bill-meta {
  margin: 0;
  color: #444;
  font-size: 0.82rem;
}
.bill-sheet .bill-legal {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 0.82rem;
}
.bill-sheet .bill-legal div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.bill-sheet .bill-legal span {
  color: #555;
}
.bill-sheet .bill-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
}
.bill-sheet .bill-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
}
.bill-sheet .bill-line .muted {
  color: #666;
  font-size: 0.8rem;
}
.bill-sheet .bill-totals {
  margin-top: 10px;
}
.bill-sheet .bill-tot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.bill-sheet .bill-tot-row.grand {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #111;
  font-weight: 700;
  font-size: 1.05rem;
}
.bill-sheet .bill-footnote {
  margin: 14px 0 0;
  color: #555;
  font-size: 0.78rem;
}
.bill-sheet .bill-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #999;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
@media print {
  body.printing-bill {
    background: #fff !important;
  }
  body.printing-bill * {
    visibility: hidden !important;
  }
  body.printing-bill #bill-print-modal,
  body.printing-bill #bill-print-modal * {
    visibility: visible !important;
  }
  body.printing-bill #bill-print-modal {
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    display: block !important;
    padding: 0 !important;
  }
  body.printing-bill .bill-print-modal {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    padding: 0 !important;
    animation: none !important;
  }
  body.printing-bill .no-print {
    display: none !important;
  }
  body.printing-bill .bill-sheet {
    border-radius: 0;
    padding: 0;
    width: var(--bill-paper-mm, 80mm);
    max-width: 100%;
  }
  body.printing-drawer * {
    visibility: hidden !important;
  }
  body.printing-drawer #drawer-kick-frame,
  body.printing-drawer #drawer-kick-frame * {
    visibility: visible !important;
  }
}
.pos-brand-name {
  font-family: var(--pos-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.pos-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--pos-muted);
  font-size: 0.9rem;
}
.pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  background: var(--pos-chip-bg);
  color: var(--pos-text);
  font-size: 0.8rem;
  font-weight: 650;
}
.pos-chip.accent {
  border-color: rgba(46, 196, 182, 0.35);
  background: var(--pos-accent-dim);
  color: var(--pos-chip-accent-text);
}
.pos-chip.sync-chip.online {
  border-color: rgba(46, 196, 182, 0.4);
  color: #2ec4b6;
}
.pos-chip.sync-chip.offline {
  border-color: rgba(232, 93, 74, 0.45);
  background: rgba(232, 93, 74, 0.12);
  color: #f0a090;
}
.pos-chip.sync-chip.pending {
  border-color: rgba(232, 168, 56, 0.45);
  background: rgba(232, 168, 56, 0.12);
  color: #e8a838;
}

.item-image-editor {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-chip-bg);
}
.item-image-preview-wrap {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  background: #1a222c;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.item-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-image-placeholder {
  color: var(--pos-muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.item-image-actions {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.item-image-guide {
  flex: 1 1 100%;
  margin: 4px 0 0;
  color: var(--pos-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.mgr-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--pos-border);
  vertical-align: middle;
  margin-right: 8px;
}
.mgr-item-thumb-fallback {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(46, 196, 182, 0.12);
  color: var(--pos-muted);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.pos-bar-actions {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 0;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: var(--pos-tray-bg);
}

.pos-bar-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-family: var(--pos-font);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pos-bar-btn:hover {
  color: var(--pos-text);
  background: var(--pos-hover-soft);
}
.pos-bar-btn:active {
  transform: translateY(1px);
}
.pos-bar-btn-accent {
  color: var(--pos-ink-on-accent);
  background: linear-gradient(180deg, #39d6c7, #21b3a6);
}
.pos-bar-btn-accent:hover {
  color: var(--pos-ink-on-accent);
  filter: brightness(1.06);
  background: linear-gradient(180deg, #39d6c7, #21b3a6);
}
.pos-bar-btn-quiet {
  color: var(--pos-quiet);
}
.pos-bar-btn-quiet:hover {
  color: var(--pos-quiet-hover);
  background: rgba(255, 107, 107, 0.1);
}

.floor-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pos-surface);
  min-height: 40px;
}
.floor-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 40px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pos-muted);
  text-decoration: none;
  border: 0;
  border-right: 1px solid var(--pos-border);
  background: transparent;
  white-space: nowrap;
}
.floor-switch-btn:last-child { border-right: 0; }
.floor-switch-btn:hover { color: var(--pos-text); background: var(--pos-surface-2); }
.floor-switch-btn.active {
  color: var(--pos-accent);
  background: var(--pos-accent-dim);
}
html[data-theme="light"] .floor-switch {
  background: #fff;
}
html[data-theme="light"] .floor-switch-btn.active {
  color: #0b7a70;
  background: rgba(46, 196, 182, 0.16);
}

.pos-btn {
  appearance: none;
  border: 1px solid var(--pos-border);
  background: var(--pos-btn-bg);
  color: var(--pos-text);
  border-radius: var(--pos-radius-sm);
  min-height: var(--pos-touch);
  padding: 0 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--pos-inset);
  transition: border-color 160ms ease, transform 120ms ease, background 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
}
.pos-btn:hover {
  border-color: var(--pos-border-strong);
  background: var(--pos-btn-hover);
}
.pos-btn:active { transform: translateY(1px); }
.pos-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.pos-btn-primary {
  background: linear-gradient(180deg, #45d9cb 0%, #22b7aa 100%);
  border-color: rgba(46, 196, 182, 0.35);
  color: var(--pos-ink-on-accent);
  box-shadow: 0 8px 22px rgba(34, 183, 170, 0.22), var(--pos-inset);
}
.pos-btn-primary:hover {
  border-color: rgba(46, 196, 182, 0.55);
  filter: brightness(1.04);
}
.pos-btn-ghost {
  background: transparent;
  box-shadow: none;
}
.pos-btn-danger {
  background: rgba(255, 107, 122, 0.1);
  border-color: rgba(255, 107, 122, 0.4);
  color: #ffb4bc;
  box-shadow: none;
}
.pos-btn-block { width: 100%; }
.pos-btn-sm {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
}

/* —— Full-screen views —— */
.pos-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pos-lock, .pos-gate, .pos-login {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px 16px 40px;
  overflow: auto;
  min-height: 0;
}

.pos-hero-card {
  width: min(440px, 100%);
  background: var(--pos-hero-bg);
  border: 1px solid var(--pos-border);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--pos-shadow);
  animation: posRise 280ms ease-out;
}
.pos-hero-card .logo-lg {
  width: min(320px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  border-radius: 14px;
  padding: 10px 14px;
  box-sizing: border-box;
}
.store-logo-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.store-logo-preview-wrap {
  flex: 0 0 auto;
  width: 148px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--pos-bg-2);
  border: 1px solid var(--pos-border);
  padding: 10px;
}
.store-logo-preview {
  max-width: 128px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.store-logo-actions {
  flex: 1 1 220px;
  min-width: 0;
}
.pos-hero-card h1 {
  margin: 0 0 8px;
  font-family: var(--pos-display);
  font-size: 1.65rem;
  text-align: center;
}
.pos-hero-card .lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--pos-muted);
}

.pin-display {
  font-family: var(--pos-display);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-align: center;
  min-height: 48px;
  margin-bottom: 16px;
  color: var(--pos-accent);
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pin-pad button {
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  font-family: var(--pos-display);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.pin-pad button:hover { border-color: var(--pos-accent); background: var(--pos-surface-2); }
.pin-pad .span2 { grid-column: span 2; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--pos-muted);
  margin-bottom: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--pos-touch);
  border-radius: 11px;
  border: 1px solid var(--pos-border);
  background: var(--pos-control-bg);
  color: var(--pos-text);
  padding: 0 14px;
  box-shadow: var(--pos-inset);
  transition: border-color 140ms ease, background 140ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(46, 196, 182, 0.45);
  background: var(--pos-surface-2);
}
.field select option {
  background: var(--pos-surface);
  color: var(--pos-text);
}
.field textarea { min-height: 88px; padding: 12px 14px; resize: vertical; }

.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.order-type-btn {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  font-weight: 700;
  cursor: pointer;
}
.order-type-btn.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent-dim);
  color: var(--pos-accent);
}

/* —— Register layout —— */
.pos-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(340px, 400px);
  min-height: 0;
  overflow: hidden;
}

.checks-rail, .menu-pane, .ticket-pane {
  min-height: 0;
  height: 100%;
}

.checks-rail {
  border-right: 1px solid var(--pos-border);
  background: var(--pos-rail-bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.checks-rail-top {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
}
.checks-rail h2 {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pos-muted);
  font-weight: 700;
}
.checks-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-right: 2px;
}
.check-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  animation: posFade 180ms ease-out;
}
.check-card.active {
  border-color: var(--pos-accent);
  box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.35);
}
.check-card strong { display: block; margin-bottom: 4px; }
.check-card .meta { color: var(--pos-muted); font-size: 0.8rem; }
.open-dur {
  font-weight: 500;
  color: var(--pos-muted);
  font-variant-numeric: tabular-nums;
  margin-left: 0.4em;
  font-size: 0.9em;
}
.check-card.history {
  opacity: 0.88;
  cursor: default;
  background: var(--pos-bg-2);
}
.check-card.history.no-sale {
  border-color: rgba(240, 180, 41, 0.45);
}
.check-card.history.closed {
  border-color: rgba(61, 214, 140, 0.35);
}

.manager-shell {
  flex: 1;
  overflow: auto;
  padding: 22px 24px 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.manager-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: var(--pos-tabs-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--pos-inset);
}
.manager-tab {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pos-muted);
  font-weight: 650;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}
.manager-tab:hover {
  color: var(--pos-text);
  background: var(--pos-hover-soft);
}
.manager-tab.active {
  border-color: rgba(46, 196, 182, 0.28);
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.18), rgba(46, 196, 182, 0.08));
  color: var(--pos-chip-accent-text);
  box-shadow: var(--pos-inset);
}
.manager-panel { animation: posRise 180ms ease-out; }
.manager-section-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pos-muted);
  font-weight: 700;
}
.manager-list { display: grid; gap: 8px; }
.list-pager-mount { margin-top: 12px; }
.list-pager-mount.hidden { display: none; }
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--pos-border);
  font-size: 0.84rem;
  color: var(--pos-muted);
}
.list-pager-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.list-pager-size select {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  background: var(--pos-control-bg);
  color: var(--pos-text);
  padding: 0 10px;
  font: inherit;
}
.list-pager-range { font-variant-numeric: tabular-nums; }
.list-pager-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.list-pager-page {
  min-width: 5.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.list-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.manager-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-row-bg);
  font-size: 0.92rem;
  transition: border-color 140ms ease, background 140ms ease;
}
.manager-row:hover {
  border-color: var(--pos-border-strong);
  background: var(--pos-row-hover);
}
.manager-row .meta { color: var(--pos-muted); font-size: 0.8rem; }
.ops-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cat-list { list-style: none; padding: 0; margin: 0 0 14px; }
.cat-list li { margin-bottom: 4px; }
.cat-list button {
  width: 100%;
  text-align: left;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pos-text);
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  position: relative;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.cat-list button:hover {
  background: var(--pos-hover-soft);
}
.cat-list button.active {
  border-color: rgba(46, 196, 182, 0.28);
  background: var(--pos-accent-dim);
  color: var(--pos-chip-accent-text);
  box-shadow: inset 3px 0 0 var(--pos-accent);
}
.item-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.item-table th, .item-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--pos-border);
  vertical-align: middle;
}
.item-table th {
  color: var(--pos-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-color: var(--pos-border-strong);
}
.item-table tbody tr {
  transition: background 140ms ease;
}
.item-table tbody tr:hover td {
  background: rgba(46, 196, 182, 0.04);
}
.item-table tbody tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 650;
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.02em;
}
.badge.on {
  color: #8cefdc;
  border-color: rgba(46, 196, 182, 0.35);
  background: rgba(46, 196, 182, 0.1);
}
.badge.off {
  color: #ffb0b8;
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.1);
}
.mod-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 8px;
  margin-bottom: 6px;
}
.mod-row input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  padding: 0 10px;
  color: var(--pos-text);
}
.recipe-line-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.recipe-line-row select,
.recipe-line-row input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  padding: 0 10px;
  color: var(--pos-text);
  font: inherit;
  width: 100%;
}
.recipe-cost-box {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
}
.cat-list button .recipe-badge {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--pos-accent);
}
@media (max-width: 900px) {
  .ops-grid { grid-template-columns: 1fr; }
}

.idle-modal { width: min(360px, 100%); text-align: center; }
.idle-count {
  font-family: var(--pos-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--pos-warn);
  line-height: 1;
  margin: 8px 0 18px;
  animation: posFade 200ms ease-out;
}

.menu-pane {
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
  flex: 0 0 auto;
}
.menu-toolbar h1 {
  margin: 0;
  font-family: var(--pos-display);
  font-size: 1.45rem;
}
.menu-toolbar p { margin: 4px 0 0; color: var(--pos-muted); font-size: 0.9rem; }
#btn-avail-mode.active {
  border-color: rgba(46, 196, 182, 0.55);
  background: var(--pos-accent-dim);
  color: var(--pos-accent);
}
.sale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--pos-muted);
  cursor: pointer;
  user-select: none;
}
.sale-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--pos-accent);
}
.item-row-disabled td {
  opacity: 0.72;
}
.menu-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 148, 176, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}
.menu-cats::-webkit-scrollbar {
  height: 6px;
}
.menu-cats::-webkit-scrollbar-thumb {
  background: rgba(120, 148, 176, 0.28);
  border-radius: 999px;
}
.menu-cat-btn {
  appearance: none;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-control-bg);
  color: var(--pos-muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: var(--pos-inset);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    transform 140ms ease, box-shadow 160ms ease;
}
.menu-cat-btn:hover {
  color: var(--pos-text);
  border-color: var(--pos-border-strong);
  background: var(--pos-control-hover);
}
.menu-cat-btn.active {
  color: var(--pos-text);
  border-color: rgba(46, 196, 182, 0.45);
  background:
    linear-gradient(180deg, rgba(46, 196, 182, 0.18), rgba(46, 196, 182, 0.08));
  box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.12), var(--pos-inset);
}
.menu-cat-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 6px;
  margin-left: 0;
  border-radius: 8px;
  background: var(--pos-count-bg);
  color: var(--pos-muted);
  font-weight: 700;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.menu-cat-btn.active .count {
  color: var(--pos-accent);
  background: rgba(46, 196, 182, 0.16);
  opacity: 1;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding: 2px 4px 10px 2px;
}
.menu-tile {
  appearance: none;
  position: relative;
  border: 1px solid var(--pos-tile-border);
  background: var(--pos-tile-bg);
  border-radius: 16px;
  padding: 15px 14px 13px;
  text-align: left;
  min-height: 118px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  color: var(--pos-text);
  font: inherit;
  overflow: hidden;
  box-shadow: var(--pos-tile-shadow);
  transition: border-color 160ms ease, transform 150ms ease, background 160ms ease,
    box-shadow 160ms ease;
}
.menu-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 160ms ease;
}
.menu-tile:hover {
  border-color: rgba(46, 196, 182, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), var(--pos-inset);
}
.menu-tile:hover::before {
  background: linear-gradient(180deg, #45d9cb, #1fa89c);
}
.menu-tile:active {
  transform: translateY(0);
}
.menu-tile .name {
  font-family: var(--pos-display);
  font-weight: 700;
  display: block;
  line-height: 1.22;
  width: 100%;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
}
.menu-tile .price {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  width: fit-content;
  max-width: 100%;
  color: #041916;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  padding: 4px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #45d9cb 0%, #22b7aa 100%);
  box-shadow: 0 4px 12px rgba(34, 183, 170, 0.22);
}
.menu-tile .mods {
  display: block;
  color: var(--pos-muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  width: 100%;
}
.menu-tile .mods-empty {
  min-height: 0;
  display: none;
}
.menu-tile-disabled {
  opacity: 0.55;
  border-style: dashed;
}
.menu-tile-disabled:hover::before {
  background: var(--pos-warn);
}
.menu-tile .mods.avail-on { color: var(--pos-ok); }
.menu-tile .mods.avail-off { color: var(--pos-warn); }

.ticket-pane {
  border-left: 1px solid var(--pos-border);
  background: var(--pos-pane-bg);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.ticket-header {
  flex: 0 0 auto;
  border: 1px solid var(--pos-border);
  background: var(--pos-header-card-bg);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: var(--pos-inset);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-heading {
  min-width: 0;
  flex: 1 1 auto;
}
.ticket-header .title {
  font-family: var(--pos-display);
  font-weight: 700;
  margin: 0 0 4px;
}
.ticket-header .meta { color: var(--pos-muted); font-size: 0.82rem; margin: 0; }
.ticket-waiter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  order: -1;
  margin: 0;
  padding: 0;
  border: 0;
}
.ticket-waiter.hidden { display: none; }
.ticket-header:not(:has(.ticket-waiter:not(.hidden))) .ticket-heading {
  width: 100%;
}
.ticket-waiter-photo,
.ticket-waiter-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--pos-border);
}
.ticket-waiter-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pos-bg-2);
  color: var(--pos-text);
  font-size: 0.9rem;
  font-weight: 700;
}
.ticket-waiter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ticket-waiter-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pos-muted);
}
.ticket-waiter-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--pos-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.ticket-footer {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 58%;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}
.cart-line.unsent {
  border-left: 3px solid var(--pos-accent);
  padding-left: 8px;
}
.cart-line.ordered {
  opacity: 0.78;
}
.cart-line .line-status {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--pos-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-line.unsent .line-status { color: var(--pos-accent); }
.cart-line .qty-static {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  padding-top: 8px;
}

.cart-lines {
  flex: 1 1 auto;
  min-height: 120px;
  overflow: auto;
  padding-right: 2px;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--pos-border);
}
.cart-line .line-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 4.5rem;
}
.cart-line .qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-tray-bg);
}
.cart-line .qty-val {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.cart-line .qty-btn,
.cart-line .qty button {
  appearance: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 10px;
  border: 0;
  background: var(--pos-surface-2);
  color: var(--pos-text);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cart-line .qty-btn:active,
.cart-line .qty button:active {
  background: var(--pos-accent-dim);
  color: var(--pos-accent);
}
.cart-line .line-del {
  min-height: 44px;
  padding: 0 12px;
}

.totals { display: grid; gap: 6px; }
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pos-muted);
  font-size: 0.92rem;
}
.totals-row.grand {
  color: var(--pos-text);
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--pos-display);
}
.tax-row { display: inline-flex; align-items: center; gap: 6px; }
.tax-row #tax-rate-display {
  color: var(--pos-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tip-btn, .pay-type-btn {
  border: 1px solid var(--pos-border);
  background: var(--pos-surface-2);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.tip-btn.active, .pay-type-btn.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent-dim);
  color: var(--pos-accent);
}

.pay-panel {
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-surface);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.pay-panel-summary {
  display: grid;
  gap: 6px;
}
.pay-drawer-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: var(--pos-control-bg);
  color: var(--pos-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--pos-inset);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.pay-drawer-toggle:hover {
  border-color: var(--pos-border-strong);
  background: var(--pos-control-hover);
}
.pay-drawer-toggle-text {
  letter-spacing: 0.01em;
}
.pay-drawer-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  margin-top: 4px;
  transition: transform 160ms ease;
  opacity: 0.75;
}
.pay-panel.collapsed .pay-drawer-toggle {
  border-color: rgba(46, 196, 182, 0.4);
  background: var(--pos-accent-dim);
  color: var(--pos-chip-accent-text);
}
.pay-panel.collapsed .pay-drawer-chevron {
  transform: rotate(45deg);
  margin-top: -2px;
}
.pay-panel-body {
  display: grid;
  gap: 8px;
}
.pay-panel.collapsed .pay-panel-body {
  display: none;
}
.pay-actions {
  display: flex;
  gap: 8px;
}
.pay-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay-amount-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
}
.pay-amount-display span {
  color: var(--pos-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pay-amount-display strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pay-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pay-keypad button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface-2);
  color: var(--pos-text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.pay-keypad button:hover {
  border-color: var(--pos-accent);
  background: var(--pos-accent-dim);
}
.pay-keypad .span2 { grid-column: span 2; }
.pay-keypad .span1 { grid-column: span 1; }
.pay-preview {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pos-muted);
  text-align: right;
}
.pay-preview.short { color: var(--pos-warn); }
.pay-preview.covered { color: var(--pos-ok); }
.tender-list { display: grid; gap: 6px; }
.tender-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--pos-bg-2);
  border: 1px solid var(--pos-border);
  font-size: 0.9rem;
}
.balance-due { color: var(--pos-warn); font-weight: 800; }
.balance-zero { color: var(--pos-ok); font-weight: 800; }

.error { color: var(--pos-danger); font-weight: 600; }
.gate-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.45);
  color: #ffb4b4;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.35;
}

.mgr-fns-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.mgr-fns-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--pos-border);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--pos-accent) 18%, transparent), transparent 55%),
    var(--pos-surface);
}
.mgr-fns-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pos-muted);
  font-weight: 700;
}
.mgr-fns-head h2 {
  margin: 0;
  font-family: var(--pos-display);
  font-size: 1.45rem;
}
.mgr-fns-head #pos-fn-lead {
  margin: 6px 0 0;
  color: var(--pos-muted);
  font-size: 0.9rem;
  max-width: 36rem;
}
.mgr-fns-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.mgr-fns-step {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pos-muted);
  background: var(--pos-bg-2);
}
.mgr-fns-step.active {
  color: #fff;
  border-color: transparent;
  background: var(--pos-accent);
}
.mgr-fns-step.done {
  color: var(--pos-accent);
  border-color: color-mix(in srgb, var(--pos-accent) 45%, var(--pos-border));
}
.mgr-fns-body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}
.mgr-fns-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--pos-border);
  background: var(--pos-surface);
}
.mgr-fns-foot #pos-fn-confirm {
  flex: 1;
  min-width: 140px;
}
.mgr-fns-foot #pos-fn-cancel {
  min-width: 96px;
}
.mgr-fns-foot #pos-fn-back {
  min-width: 96px;
}
.mgr-fns-modal #pos-fn-error {
  margin: 0 20px;
}
.mgr-fns-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mgr-fn-tile {
  display: grid;
  gap: 6px;
  text-align: left;
  min-height: 96px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.mgr-fn-tile:hover {
  border-color: color-mix(in srgb, var(--pos-accent) 55%, var(--pos-border));
  transform: translateY(-1px);
}
.mgr-fn-tile:disabled,
.mgr-fn-tile.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.mgr-fn-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--pos-accent);
}
.mgr-fn-tile strong {
  font-family: var(--pos-display);
  font-size: 1.02rem;
}
.mgr-fn-tile span {
  color: var(--pos-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.mgr-fns-selected {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  background: var(--pos-bg-2);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mgr-fns-selected strong { display: block; font-size: 1.05rem; }
.mgr-fns-selected .meta { color: var(--pos-muted); font-size: 0.82rem; }
.fn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--pos-border);
  color: var(--pos-muted);
  background: var(--pos-surface);
}
.fn-chip.warn {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}
html:not([data-theme="light"]) .fn-chip.warn {
  color: #fdba74;
  border-color: rgba(253, 186, 116, 0.45);
  background: rgba(154, 52, 18, 0.28);
}
.fn-chip.ok {
  color: var(--pos-accent);
  border-color: color-mix(in srgb, var(--pos-accent) 40%, var(--pos-border));
}
.fn-section-label {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pos-muted);
}
.fn-check-option .meta { color: var(--pos-muted); font-size: 0.8rem; }
.cart-line.voided {
  opacity: 0.55;
  text-decoration: line-through;
}
.cart-line.selected {
  outline: 1px solid var(--pos-accent);
  background: var(--pos-accent-dim);
}
.fn-check-list {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 320px);
  overflow: auto;
  padding-right: 2px;
}
.fn-check-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fn-check-option:hover {
  border-color: color-mix(in srgb, var(--pos-accent) 45%, var(--pos-border));
}
.fn-check-option.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent-dim);
}
.fn-check-option .fn-table-num {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pos-accent) 16%, var(--pos-surface));
  color: var(--pos-accent);
  font-family: var(--pos-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.fn-check-option .fn-check-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.fn-check-option .fn-check-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fn-check-option .fn-check-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fn-line-list {
  display: grid;
  gap: 8px;
  max-height: min(36vh, 280px);
  overflow: auto;
}
.fn-line-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  cursor: pointer;
}
.fn-line-pick:has(input:checked) {
  border-color: var(--pos-accent);
  background: var(--pos-accent-dim);
}
.fn-line-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--pos-accent);
}
.fn-line-pick .fn-line-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.fn-line-pick .fn-line-copy strong {
  font-size: 0.98rem;
}
.fn-line-pick .meta {
  color: var(--pos-muted);
  font-size: 0.78rem;
}
.fn-line-pick .fn-line-price {
  font-weight: 700;
  white-space: nowrap;
}
.fn-callout {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--pos-accent) 35%, var(--pos-border));
  background: color-mix(in srgb, var(--pos-accent) 10%, var(--pos-bg-2));
  color: var(--pos-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.fn-callout.warn {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}
html:not([data-theme="light"]) .fn-callout.warn {
  border-color: rgba(253, 186, 116, 0.45);
  background: rgba(154, 52, 18, 0.28);
  color: #fdba74;
}
@media (max-width: 640px) {
  .mgr-fns-actions {
    grid-template-columns: 1fr;
  }
  .mgr-fns-head {
    flex-direction: column;
  }
}
.reason-editor { display: grid; gap: 12px; }
.reason-card {
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--pos-bg-2);
}
.reason-card .reason-id {
  display: block;
  margin: 0 0 8px;
  color: var(--pos-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.reason-card .sub-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--pos-border);
  background: rgba(0, 0, 0, 0.12);
}
.reason-card .sub-title {
  color: var(--pos-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.reason-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}
.reason-row.sub-row {
  grid-template-columns: 1fr auto auto auto;
}
.reason-row input[type="text"] {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  color: var(--pos-text);
  padding: 0 10px;
}
.reason-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pos-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.reason-empty {
  color: var(--pos-muted);
  font-size: 0.9rem;
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--pos-border);
  border-radius: 12px;
}
.toast {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pos-accent-dim);
  border: 1px solid rgba(46, 196, 182, 0.45);
  color: var(--pos-accent);
  font-weight: 700;
}
.mgr-banner {
  margin: 0 0 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.mgr-float-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.mgr-float-toast-pop {
  animation: mgrToastIn 220ms ease-out;
}
@keyframes mgrToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.pos-btn-saved,
button.pos-btn-saved {
  border-color: var(--pos-accent) !important;
  color: var(--pos-accent) !important;
  background: var(--pos-accent-dim) !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal-backdrop.has-atm-scrim {
  background: rgba(4, 8, 12, 0.62);
}
.modal-backdrop.has-atm-scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--scene, url("/assets/scenes/dining.jpg"));
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(0.9) brightness(0.42);
  transform: scale(1.06);
  opacity: 0.9;
  pointer-events: none;
}
.modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--pos-surface);
  border: 1px solid var(--pos-border);
  border-radius: 16px;
  padding: 20px;
  animation: posRise 200ms ease-out;
  position: relative;
  z-index: 1;
}
.modal.has-atm {
  padding-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
}
.modal.has-atm > *:not(.atm-banner) {
  flex-shrink: 0;
}
.modal.has-atm .atm-scroll {
  overflow: auto;
  padding: 4px 20px 20px;
  flex: 1;
  min-height: 0;
}

/* —— Atmospheric chrome (settings / manager / modals) —— */
.atm-banner {
  position: relative;
  margin: 0 0 16px;
  min-height: 108px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.settings-panel > .atm-banner,
.panel > .atm-banner {
  margin: -18px -18px 16px;
  border-radius: var(--pos-radius) var(--pos-radius) 0 0;
}
.atm-banner-media {
  position: absolute;
  inset: 0;
  background-color: #0a1420;
  background-image: var(--scene);
  background-size: cover;
  background-position: center;
}
.atm-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 9, 14, 0.88) 0%,
    rgba(6, 9, 14, 0.55) 55%,
    rgba(6, 9, 14, 0.28) 100%
  );
}
.atm-banner-copy {
  position: relative;
  z-index: 1;
  padding: 18px 20px 16px;
  color: #f4f8fc;
}
.atm-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(158, 240, 230, 0.92);
}
.atm-banner-copy h2,
.atm-banner-copy h1 {
  margin: 0;
  font-family: var(--pos-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #f4f8fc;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.atm-banner-copy p {
  margin: 6px 0 0;
  color: rgba(220, 230, 240, 0.86);
  font-size: 0.86rem;
  max-width: 42ch;
  line-height: 1.4;
}
.atm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.atm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8fc;
  font-size: 0.75rem;
  font-weight: 600;
}

.manager-atm {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  min-height: 120px;
  margin: 0 0 16px;
}
.manager-atm .atm-banner-media {
  animation: none;
}
.manager-atm .atm-banner-copy {
  padding: 22px 22px 20px;
}
.manager-atm .atm-banner-copy h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.res-app {
  background-image:
    linear-gradient(180deg, rgba(6, 9, 14, 0.88) 0%, rgba(6, 9, 14, 0.94) 40%, rgba(5, 8, 12, 0.97) 100%),
    var(--res-scene, url("/assets/scenes/dining.jpg"));
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
html[data-theme="light"] .res-app {
  background-image:
    linear-gradient(180deg, rgba(231, 238, 246, 0.92) 0%, rgba(231, 238, 246, 0.96) 50%, rgba(217, 227, 239, 0.98) 100%),
    var(--res-scene, url("/assets/scenes/dining.jpg"));
}
.mod-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pos-border);
  cursor: pointer;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed var(--pos-border);
  border-radius: 12px;
  color: var(--pos-muted);
  text-align: center;
}

/* Settings page */
.settings-shell {
  width: min(960px, calc(100% - 32px));
  margin: 24px auto 48px;
}
.settings-shell h1 {
  font-family: var(--pos-display);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.settings-panel {
  border: 1px solid var(--pos-border);
  background: var(--pos-header-card-bg);
  border-radius: var(--pos-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--pos-shadow), var(--pos-inset);
  backdrop-filter: blur(10px);
}
.settings-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-family: var(--pos-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.settings-panel.full { grid-column: 1 / -1; }
.settings-grid .field.full { grid-column: 1 / -1; }
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pos-border);
}
.toggle-row:last-child { border-bottom: none; }
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.crew-list { display: grid; gap: 10px; margin-top: 10px; }
.crew-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pos-row-bg);
  border: 1px solid var(--pos-border);
  transition: border-color 140ms ease, background 140ms ease;
}
.crew-row:hover {
  border-color: var(--pos-border-strong);
  background: var(--pos-row-hover);
}
.crew-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.crew-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  flex-shrink: 0;
}
.crew-avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: var(--pos-accent);
  background: var(--pos-accent-dim);
}
.crew-row select {
  min-height: 36px;
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg);
  color: var(--pos-text);
  padding: 0 10px;
  font: inherit;
}
.crew-row select:disabled {
  opacity: 0.55;
}
.crew-row select option {
  background: var(--pos-surface);
  color: var(--pos-text);
}
.crew-add-grid {
  display: grid;
  grid-template-columns: 1fr 140px 180px auto;
  gap: 8px;
  align-items: end;
}
.access-grid-wrap {
  overflow: auto;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
}
.access-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.access-grid th,
.access-grid td {
  border-bottom: 1px solid var(--pos-border);
  padding: 10px 12px;
  text-align: center;
}
.access-grid th:first-child,
.access-grid td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--pos-surface);
  z-index: 1;
  min-width: 180px;
}
.access-grid thead th {
  background: var(--pos-bg-2);
  font-weight: 600;
  color: var(--pos-muted);
}
.access-grid tbody tr:hover td {
  background: rgba(61, 214, 195, 0.04);
}
.access-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pos-accent, #3dd6c3);
}
.manager-tab.hidden { display: none; }

.stock-module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stock-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stock-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg-2);
  color: var(--pos-muted);
  font-size: 0.78rem;
  font-weight: 650;
}
.stock-upsell {
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  padding: 18px;
  background: var(--pos-bg-2);
  margin-bottom: 14px;
}
.stock-upsell p {
  margin: 6px 0 12px;
  color: var(--pos-muted);
}
.stock-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: rgba(0, 0, 0, 0.14);
}
.stock-subtab {
  border: 0;
  background: transparent;
  color: var(--pos-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
}
.stock-subtab:hover { color: var(--pos-text); }
.stock-subtab.active {
  background: var(--pos-surface);
  color: var(--pos-text);
  box-shadow: var(--pos-inset);
}
.stock-subpanel.hidden { display: none; }
@media (max-width: 900px) {
  .crew-add-grid { grid-template-columns: 1fr 1fr; }
}

@keyframes posRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes posFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1100px) {
  .pos-layout { grid-template-columns: 160px minmax(0, 1fr) minmax(300px, 340px); }
}
@media (max-width: 900px) {
  .pos-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 22vh) minmax(0, 1fr) minmax(280px, 42vh);
    overflow: hidden;
  }
  .checks-rail {
    border-right: none;
    border-bottom: 1px solid var(--pos-border);
    max-height: none;
  }
  .ticket-pane {
    border-left: none;
    border-top: 1px solid var(--pos-border);
  }
  .ticket-footer { max-height: 50%; }
  .settings-grid { grid-template-columns: 1fr; }
  .pos-bar { flex-wrap: wrap; }
}

/* —— Kitchen display —— */
.kds-body {
  overflow: auto;
  min-height: 100%;
  height: auto;
}
.kds-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.kds-gate-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
}
.kds-gate-logo {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
  border-radius: 10px;
  padding: 8px 10px;
  box-sizing: content-box;
}
.kds-gate-card h1 {
  margin: 0 0 8px;
  font-family: var(--pos-display);
}
.kds-gate-card p {
  color: var(--pos-muted);
  margin: 0 0 18px;
}
.kds-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.kds-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--pos-border);
  background: var(--pos-bar-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.kds-bar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.kds-bar-title strong {
  font-family: var(--pos-display);
  font-size: 1.05rem;
}
.kds-clock {
  color: var(--pos-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.kds-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.kds-bar-actions a.pos-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.kds-station-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  min-width: 0;
}
.kds-station-picker-label {
  color: var(--pos-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kds-station-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 168px;
  max-width: min(280px, 46vw);
  min-height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background-color: var(--pos-bg-2);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pos-muted) 50%),
    linear-gradient(135deg, var(--pos-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--pos-text);
  font: inherit;
  font-weight: 650;
  text-transform: capitalize;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.kds-station-select:hover {
  border-color: rgba(46, 196, 182, 0.45);
  background-color: var(--pos-surface);
}
.kds-station-select:focus {
  outline: none;
  border-color: var(--pos-accent);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.18);
}
.kds-station-select option {
  text-transform: capitalize;
  background: var(--pos-select-option-bg);
  color: var(--pos-text);
}
.kds-app > .error {
  margin: 10px 16px 0;
}
.kds-tabs {
  display: none;
}
.kds-station-btn {
  display: none;
}
.kds-mute-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--pos-muted);
  vertical-align: middle;
  opacity: 0.7;
}
.kds-settings {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.kds-settings.hidden { display: none !important; }
.kds-settings-section {
  margin: 18px 0 10px;
  font-family: var(--pos-display);
  font-size: 0.95rem;
}
.kds-sound-toggles {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.kds-sound-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-bg-2);
  cursor: pointer;
}
.kds-sound-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.kds-sound-toggle strong {
  display: block;
  font-size: 0.95rem;
}
.kds-sound-toggle em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--pos-muted);
  font-size: 0.82rem;
}
.kds-sound-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.kds-red-alert-panel {
  border-color: rgba(255, 107, 122, 0.45);
  box-shadow: 0 24px 60px rgba(180, 40, 60, 0.28);
}
.kds-red-alert-panel .kds-settings-head h2 {
  color: var(--pos-danger);
}
.kds-red-alert-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.kds-red-alert-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 122, 0.28);
  background: rgba(255, 107, 122, 0.08);
}
.kds-red-alert-item strong {
  grid-column: 1;
  font-size: 1.05rem;
}
.kds-red-alert-item span:not(.kds-age) {
  grid-column: 1;
  color: var(--pos-muted);
  font-size: 0.85rem;
}
.kds-red-alert-item .kds-age {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.1rem;
}
.kds-settings.hidden { display: none !important; }
.kds-settings-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.kds-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--pos-border);
}
.kds-settings-head h2 {
  margin: 0 0 6px;
  font-family: var(--pos-display);
  font-size: 1.2rem;
}
.kds-settings-head p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 0.9rem;
}
.kds-settings-body {
  padding: 14px 18px 20px;
}
.kds-settings-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--pos-border);
}
.kds-settings-row-head {
  color: var(--pos-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: transparent;
  padding-bottom: 4px;
}
.kds-settings-label {
  text-transform: capitalize;
  font-weight: 650;
}
.kds-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pos-muted);
  font-size: 0.85rem;
}
.kds-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--pos-accent);
}
.kds-settings-note {
  color: var(--pos-muted);
  font-size: 0.85rem;
  margin: 14px 0 12px;
}
.kds-board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 24px;
  align-items: start;
  background: var(--pos-kds-board);
}
.kds-col {
  min-height: 40vh;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: var(--pos-kds-col);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kds-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pos-border);
}
.kds-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.kds-col-head h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--pos-display);
}
.kds-prep-panel {
  width: min(560px, 100%);
}
.kds-prep-table {
  width: 100%;
  border-collapse: collapse;
}
.kds-prep-table th,
.kds-prep-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--pos-border);
  vertical-align: top;
}
.kds-prep-table th {
  color: var(--pos-muted);
  font-size: 0.8rem;
}
.kds-prep-empty {
  color: var(--pos-muted);
  margin: 8px 0;
}
.kds-prep-meta {
  color: var(--pos-muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.kds-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--pos-surface-2);
}
.kds-col-new .kds-count { color: var(--pos-warn); }
.kds-col-prep .kds-count { color: var(--pos-accent); }
.kds-col-ready .kds-count { color: var(--pos-ok); }
.kds-col-body {
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.kds-empty {
  margin: 18px 8px;
  color: var(--pos-muted);
  text-align: center;
  font-size: 0.9rem;
}
.kds-ticket {
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  padding: 12px;
  display: grid;
  gap: 10px;
  animation: posRise 180ms ease-out;
}
.kds-ticket-new {
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: inset 3px 0 0 var(--pos-warn);
}
.kds-ticket-in_prep {
  border-color: rgba(46, 196, 182, 0.4);
  box-shadow: inset 3px 0 0 var(--pos-accent);
}
.kds-ticket-ready {
  border-color: rgba(61, 214, 140, 0.45);
  box-shadow: inset 3px 0 0 var(--pos-ok);
}
.kds-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.kds-ticket-title {
  font-family: var(--pos-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.kds-ticket-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.kds-station-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  color: var(--pos-muted);
  font-size: 0.75rem;
  text-transform: capitalize;
}
.kds-crew {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  text-align: center;
}
.kds-crew-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pos-border);
  background: var(--pos-bg-2);
}
.kds-crew-fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: var(--pos-accent);
  background: var(--pos-accent-dim);
  border-color: rgba(46, 196, 182, 0.35);
}
.kds-crew-name {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--pos-text);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kds-age {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pos-muted);
}
.kds-age-warm { color: var(--pos-warn); }
.kds-age-hot {
  color: var(--pos-danger);
  animation: kdsPulse 1.2s ease-in-out infinite;
}
@keyframes kdsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.kds-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.kds-items li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 1.02rem;
}
.kds-qty {
  color: var(--pos-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kds-mods {
  color: var(--pos-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}
.kds-bump {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .kds-board {
    grid-template-columns: 1fr;
  }
  .kds-col-body {
    max-height: none;
  }
}

/* —— Modern polish layer —— */
.pos-lock,
.pos-gate,
.pos-login {
  animation: posRise 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.manager-panel:not(.hidden) {
  animation: posRise 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.checks-rail .check-card,
.checks-list .check-row,
.checks-list button {
  transition: border-color 160ms ease, background 160ms ease, transform 140ms ease;
}
.field input,
.field select,
.field textarea,
.settings-panel input,
.settings-panel select,
.settings-panel textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.settings-panel input:focus,
.settings-panel select:focus,
.settings-panel textarea:focus {
  outline: none;
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.12);
}
.modal-backdrop {
  backdrop-filter: blur(10px) saturate(1.1);
  background: var(--pos-scrim);
}
.modal-backdrop.has-atm-scrim {
  background: rgba(4, 8, 12, 0.55);
}
.modal {
  animation: posRise 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.kds-ticket {
  transition: border-color 160ms ease, transform 140ms ease, box-shadow 160ms ease;
}
.kds-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .pos-lock,
  .pos-gate,
  .pos-login,
  .manager-panel:not(.hidden),
  .modal,
  .pos-hero-card {
    animation: none;
  }
  .menu-tile:hover,
  .kds-ticket:hover {
    transform: none;
  }
}

/* —— Theme toggle + manager authorize —— */
.theme-toggle-btn {
  min-width: 96px;
}
.theme-pin-modal {
  width: min(360px, 100%);
  text-align: center;
}
.theme-pin-modal h2 {
  margin: 0 0 6px;
  font-family: var(--pos-display);
  font-size: 1.25rem;
}
.theme-pin-modal .lead {
  margin: 0 0 12px;
  color: var(--pos-muted);
  font-size: 0.9rem;
}
.theme-pin-display {
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  margin: 0 0 12px;
  color: var(--pos-accent);
  font-variant-numeric: tabular-nums;
}
.theme-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.theme-pin-pad button {
  min-height: 48px;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-bg-2);
  color: var(--pos-text);
  cursor: pointer;
  font-weight: 700;
}
.theme-pin-pad button:hover {
  border-color: var(--pos-accent);
  background: var(--pos-surface);
}
.theme-pin-actions {
  display: flex;
  gap: 8px;
}

html[data-theme="light"] .checks-rail,
html[data-theme="light"] .ticket-pane,
html[data-theme="light"] .menu-pane {
  background: var(--pos-rail-bg);
}
html[data-theme="light"] .menu-tile {
  background: #ffffff;
  color: var(--pos-text);
  border-color: var(--pos-tile-border);
  box-shadow: var(--pos-tile-shadow);
}
html[data-theme="light"] .menu-tile .name {
  color: var(--pos-text);
}
html[data-theme="light"] .menu-cat-btn {
  background: #ffffff;
  color: var(--pos-muted);
  border-color: var(--pos-border);
}
html[data-theme="light"] .menu-cat-btn:hover {
  background: var(--pos-control-hover);
  color: var(--pos-text);
}
html[data-theme="light"] .menu-cat-btn.active {
  color: var(--pos-text);
}
html[data-theme="light"] .check-card,
html[data-theme="light"] .ticket-header,
html[data-theme="light"] .pay-panel,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .pos-hero-card,
html[data-theme="light"] .modal {
  background: #ffffff;
  color: var(--pos-text);
}
html[data-theme="light"] .pos-bar-actions {
  background: var(--pos-tray-bg);
}
html[data-theme="light"] .pos-bar-btn {
  color: var(--pos-muted);
}
html[data-theme="light"] .pos-bar-btn:hover {
  color: var(--pos-text);
}
html[data-theme="light"] .pos-btn-primary,
html[data-theme="light"] .pos-bar-btn-accent {
  color: var(--pos-ink-on-accent);
}
html[data-theme="light"] .pin-pad button,
html[data-theme="light"] .pay-keypad button,
html[data-theme="light"] .tip-btn,
html[data-theme="light"] .pay-type-btn,
html[data-theme="light"] .order-type-btn,
html[data-theme="light"] .pos-btn {
  background: #ffffff;
  color: var(--pos-text);
  border-color: var(--pos-border);
}
html[data-theme="light"] .pos-btn-primary {
  background: linear-gradient(180deg, #45d9cb 0%, #22b7aa 100%);
  color: var(--pos-ink-on-accent);
}
html[data-theme="light"] .pay-amount-display,
html[data-theme="light"] .totals,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background: var(--pos-surface-2);
  color: var(--pos-text);
}
html[data-theme="light"] .kds-board {
  background: var(--pos-kds-board);
}
html[data-theme="light"] .kds-col,
html[data-theme="light"] .kds-ticket {
  background: #ffffff;
}
html[data-theme="light"] .menu-tile:hover {
  border-color: rgba(22, 133, 124, 0.35);
  box-shadow: 0 12px 24px rgba(20, 40, 70, 0.12);
}
html[data-theme="light"] .store-logo-preview-wrap {
  background: #ffffff;
}

/* Snap On POS mark always sits on a dark plate in light mode */
html[data-theme="light"] .pos-brand {
  background: #0a1018;
  border: 1px solid rgba(120, 148, 176, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-theme="light"] .pos-hero-card .logo-lg,
html[data-theme="light"] .kds-gate-logo,
html[data-theme="light"] .pos-logo-receipt {
  background: #0a1018;
  border: 1px solid rgba(120, 148, 176, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* —— Floor v2: tablet-first register (beat dense competitor rails) —— */
.pos-layout.floor-v2 {
  grid-template-columns: 188px minmax(0, 1fr) minmax(360px, 420px);
}

.floor-v2 .register-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  padding: 12px;
  border-right: 1px solid var(--pos-border);
  background: linear-gradient(180deg, #0d1520 0%, #0a1118 100%);
  overflow: hidden;
}

.floor-v2 .register-nav-top {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}

.floor-v2 .register-nav-top h2 {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pos-muted);
  font-weight: 700;
}

.floor-v2 .register-nav-label {
  display: none;
}

.floor-v2 .register-nav .checks-list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.floor-v2 .menu-cats-vert {
  display: none;
}

.floor-v2 .menu-pane {
  padding: 12px 14px 16px;
  background:
    radial-gradient(900px 420px at 10% -20%, rgba(46, 196, 182, 0.08), transparent 50%),
    var(--pos-pane-bg);
}

.floor-v2 .menu-toolbar {
  margin-bottom: 10px;
  align-items: stretch;
}

.floor-v2 .menu-toolbar-main {
  display: grid;
  gap: 10px;
  width: 100%;
}

.floor-v2 .menu-toolbar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.floor-v2 .menu-toolbar h1 {
  font-size: 1.2rem;
  margin: 0;
}

.floor-v2 .menu-cats-top {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.floor-v2 .menu-cats-top .menu-cat-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  white-space: nowrap;
  background: var(--pos-surface);
  border: 1px solid var(--pos-border);
  box-shadow: none;
}

.floor-v2 .menu-cats-top .menu-cat-btn.active {
  background: var(--pos-accent-dim);
  border-color: color-mix(in srgb, var(--pos-accent) 55%, var(--pos-border));
  color: var(--pos-chip-accent-text);
}

.floor-v2 .menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  padding-bottom: 8px;
}

.floor-v2 .menu-tile {
  min-height: 168px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  gap: 0;
  background: #0e1620;
  border-color: rgba(120, 148, 176, 0.22);
}

.floor-v2 .menu-tile-media {
  position: relative;
  display: block;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg,
      hsla(var(--tile-hue, 190), 42%, 28%, 0.95) 0%,
      hsla(calc(var(--tile-hue, 190) + 40), 35%, 14%, 0.98) 100%);
}

.floor-v2 .menu-tile-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--pos-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.floor-v2 .menu-tile .price {
  position: static;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #f0c14b;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.floor-v2 .menu-tile-body {
  display: grid;
  gap: 4px;
  padding: 10px 11px 12px;
  flex: 1 1 auto;
  min-height: 54px;
  position: relative;
  z-index: 1;
  background: #0e1620;
}

.floor-v2 .menu-tile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.floor-v2 .menu-tile .name {
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--pos-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-width: 0;
}

.floor-v2 .menu-tile .mods {
  font-size: 0.7rem;
}

.floor-v2 .menu-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 193, 75, 0.45);
}

.floor-v2 .menu-tile::before {
  display: none;
}

.floor-v2 .ticket-pane {
  background: linear-gradient(180deg, #0e1622 0%, #0a1018 100%);
}

.floor-v2 .ticket-footer {
  gap: 8px;
}

.floor-v2 .totals {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--pos-tray-bg);
  border: 1px solid var(--pos-border);
}

.floor-v2 .totals-row.grand {
  display: none;
}

.floor-v2 .ticket-total-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5cc5a 0%, #e2b12f 100%);
  color: #1a1404;
  box-shadow: 0 10px 24px rgba(226, 177, 47, 0.28);
}

.floor-v2 .ticket-total-hero span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floor-v2 .ticket-total-hero strong {
  font-family: var(--pos-display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.floor-v2 .ticket-ops {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: stretch;
}

.floor-v2 .ticket-action-rail {
  display: grid;
  gap: 6px;
  align-content: start;
}

.floor-v2 .ticket-action {
  appearance: none;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  min-height: 52px;
  padding: 8px 6px;
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--pos-text);
  background: var(--pos-surface-2);
}

.floor-v2 .ticket-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.floor-v2 .ticket-action.pay {
  background: linear-gradient(180deg, #34d4c4 0%, #1fa89c 100%);
  border-color: transparent;
  color: #041916;
  min-height: 64px;
  font-size: 0.95rem;
}

.floor-v2 .ticket-action.cash {
  background: linear-gradient(180deg, #3f4f63 0%, #2a3848 100%);
}

.floor-v2 .ticket-action.print {
  background: linear-gradient(180deg, #2f3f55 0%, #223246 100%);
}

.floor-v2 .ticket-action.ghost {
  background: transparent;
  color: var(--pos-muted);
}

.floor-v2 .pay-keypad button {
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 700;
}

.floor-v2 .check-card {
  padding: 10px;
  border-radius: 10px;
}

@media (max-width: 1180px) {
  .pos-layout.floor-v2 {
    grid-template-columns: 164px minmax(0, 1fr) minmax(320px, 360px);
  }
  .floor-v2 .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}

@media (max-width: 900px) {
  .pos-layout.floor-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 20vh) minmax(0, 1fr) minmax(320px, 46vh);
  }
  .floor-v2 .register-nav {
    border-right: none;
    border-bottom: 1px solid var(--pos-border);
    flex-direction: row;
    flex-wrap: wrap;
    align-content: start;
    max-height: none;
    overflow: auto;
  }
  .floor-v2 .register-nav-top {
    width: 140px;
  }
  .floor-v2 .register-nav .checks-list {
    flex: 1 1 180px;
    max-height: 110px;
  }
  .floor-v2 .ticket-ops {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
}

html[data-theme="light"] .floor-v2 .register-nav,
html[data-theme="light"] .floor-v2 .ticket-pane,
html[data-theme="light"] .floor-v2 .menu-pane {
  background: var(--pos-surface);
}
html[data-theme="light"] .floor-v2 .menu-tile {
  background: #ffffff;
}
html[data-theme="light"] .floor-v2 .menu-tile-body {
  background: #ffffff;
}
html[data-theme="light"] .floor-v2 .menu-tile .name {
  color: #15202b;
}
html[data-theme="light"] .floor-v2 .menu-tile .price {
  color: #9a6b00;
}
html[data-theme="light"] .floor-v2 .ticket-total-hero {
  box-shadow: 0 10px 22px rgba(180, 140, 20, 0.22);
}

.floor-v2 .menu-tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
