/*
 * Layout: tablet landscape = menu (left) + live check (right, mirrored in Arabic).
 * Phone = menu only, the check opens as a full sheet from a bottom bar.
 * Every colour comes from a token; categories tint their tiles through --h (hue).
 */
:root {
  --bg: #e9eef0;
  --surface: #ffffff;
  --surface-2: #f3f6f7;
  --line: #d2dadd;
  --fg: #12232b;
  --muted: #566a73;
  --accent: #0b6b66;
  --accent-fg: #ffffff;
  --accent-soft: #d6ede9;
  --good: #1b7a49;
  --bad: #b3261e;
  --bad-soft: #fbe3e1;
  --scrim: rgba(10, 22, 28, 0.55);
  --tile-s: 42%;
  --tile-l: 93%;
  --tile-line-l: 82%;
  --shadow: 0 8px 28px rgba(10, 22, 28, 0.22);

  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d151a;
    --surface: #16222a;
    --surface-2: #1c2b34;
    --line: #2b3d47;
    --fg: #e5eef1;
    --muted: #93a7b0;
    --accent: #4cc4b9;
    --accent-fg: #052724;
    --accent-soft: #163b3b;
    --good: #5ccb8d;
    --bad: #ff8a80;
    --bad-soft: #3c1c1b;
    --scrim: rgba(0, 0, 0, 0.62);
    --tile-s: 24%;
    --tile-l: 19%;
    --tile-line-l: 28%;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0d151a;
  --surface: #16222a;
  --surface-2: #1c2b34;
  --line: #2b3d47;
  --fg: #e5eef1;
  --muted: #93a7b0;
  --accent: #4cc4b9;
  --accent-fg: #052724;
  --accent-soft: #163b3b;
  --good: #5ccb8d;
  --bad: #ff8a80;
  --bad-soft: #3c1c1b;
  --scrim: rgba(0, 0, 0, 0.62);
  --tile-s: 24%;
  --tile-l: 19%;
  --tile-line-l: 28%;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#app {
  height: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.num,
.money {
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons & fields ---------- */
.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-display);
  font-weight: 600;
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.ghost:hover {
  background: var(--surface-2);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.btn.big {
  min-height: 56px;
  font-size: 17px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}
.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 12px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

/* ---------- login ---------- */
.login {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px 16px;
}
.copyright {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-wrap: balance;
}
.login-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}
.err {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 14px;
}

/* ---------- POS shell ---------- */
.pos {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-rows: auto minmax(0, 1fr);
}
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex: none;
}
.login-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}
.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.top-actions .btn {
  min-height: 40px;
  padding: 0 12px;
}
.who {
  color: var(--muted);
  font-size: 13px;
}

.menu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.toolbar {
  display: grid;
  gap: 10px;
  padding: 12px 16px 4px;
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid var(--chip-line, var(--line));
  background: var(--chip, var(--surface));
  color: var(--chip-fg, inherit);
  font-weight: 500;
}
.chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  grid-auto-rows: min-content;
  gap: 10px;
  align-content: start;
}
.tile {
  min-height: 92px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid hsl(var(--h) 30% var(--tile-line-l));
  background: hsl(var(--h) var(--tile-s) var(--tile-l));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  text-align: start;
}
.tile:active {
  transform: scale(0.98);
}
.tile-name {
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tile-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.empty {
  grid-column: 1 / -1;
  padding: 32px 8px;
  color: var(--muted);
  text-align: center;
}

/* ---------- check panel ---------- */
.check {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
}
.check-head {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.check-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.check-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.check-no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
}
.head-actions {
  display: flex;
  gap: 4px;
}
.head-actions .btn {
  min-height: 40px;
  padding: 0 12px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  gap: 3px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 500;
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent) inset;
  color: var(--accent);
}
.lines {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.line {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.line-top,
.line-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.line-name {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.line-total {
  font-family: var(--font-display);
  font-weight: 500;
}
.line-unit {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sq {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.sq:hover {
  background: var(--surface-2);
}
.sq.danger {
  color: var(--bad);
  margin-inline-start: 8px;
}
.qty {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}
.check-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.totals {
  padding: 12px 16px 0;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.totals .row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.totals .row.grand {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  padding-top: 4px;
}
.check-foot {
  padding: 12px 16px;
}
.check-foot .btn {
  width: 100%;
}

.cartbar {
  display: none;
}

/* ---------- modal, toast, loader ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: var(--scrim);
}
.modal {
  width: min(480px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.due {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--accent-soft);
}
.due strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick .chip {
  min-height: 40px;
  border-radius: var(--r);
}
.change {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
}
.change strong {
  font-size: 22px;
  font-weight: 600;
}
.change strong.ok {
  color: var(--good);
}
.change strong.low {
  color: var(--bad);
}
.note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}
.modal-actions.single {
  grid-template-columns: 1fr;
}
.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.kv {
  display: grid;
  gap: 8px;
  margin: 0;
}
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-weight: 500;
}
.oc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.oc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.oc-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.oc-main strong {
  font-family: var(--font-mono);
  font-weight: 500;
}
.oc-meta {
  font-size: 13px;
  color: var(--muted);
}
.oc-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-weight: 500;
}
.toast.bad {
  background: var(--bad);
  color: #fff;
}

.loader {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  background: var(--accent);
  transform-origin: left;
  opacity: 0;
}
body[data-busy='1'] .loader {
  opacity: 1;
  animation: load 1s ease-in-out infinite;
}
@keyframes load {
  0% {
    transform: scaleX(0.05);
  }
  60% {
    transform: scaleX(0.8);
  }
  100% {
    transform: scaleX(1);
    opacity: 0.2;
  }
}

/* ---------- phone ---------- */
@media (max-width: 899px) {
  .pos {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .who {
    display: none;
  }
  .check {
    position: fixed;
    inset: 0;
    z-index: 30;
    padding-top: env(safe-area-inset-top, 0px);
    border-inline-start: 0;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s;
  }
  .check.open {
    transform: none;
    visibility: visible;
  }
  .cartbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    margin: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--accent);
    color: var(--accent-fg);
    font-weight: 600;
    text-align: start;
  }
  .cartbar .money {
    font-family: var(--font-display);
    font-size: 18px;
  }
  .items {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
  .modal-actions .btn.primary {
    order: -1;
  }
}

@media (min-width: 900px) {
  .head-actions .mobile-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .check {
    transition: none;
  }
  body[data-busy='1'] .loader {
    animation: none;
  }
  .tile:active {
    transform: none;
  }
}

/* ---------- real-POS states: sent lines, send + pay ---------- */
.sent-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.check-foot.two {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8px;
}
.seg button:disabled,
.input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- admin ---------- */
.admin-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 10px;
}
.admin-link:hover {
  color: var(--accent);
}
.admin {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.adm-top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.adm-title strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.adm-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.adm-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 500;
}
.adm-tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.adm-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.adm-actions .btn {
  min-height: 40px;
  padding: 0 12px;
}
.adm-demo {
  margin: 0;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  text-align: center;
}
.adm-auth {
  flex: 1;
}
.adm-form {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 16px 16px 8px;
  display: grid;
  gap: 14px;
}
.adm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.adm-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hint-line {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-inline select {
  flex: 1;
  min-width: 0;
}
select.input {
  padding-inline-end: 8px;
}
.test-line {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.test-line.ok {
  color: var(--good);
}
.test-line.bad {
  color: var(--bad);
}
.tender-list {
  display: grid;
  gap: 6px;
}
.tender {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.tender .chip {
  min-height: 34px;
  padding: 0 12px;
  margin-inline-start: 6px;
  font-size: 13px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.emp-wrap {
  position: relative;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}
.adm-card > * {
  min-width: 0;
}
.emp {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.emp th {
  text-align: start;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 4px;
}
.emp td {
  padding: 0 4px;
}
.emp td:first-child .input,
.emp td:nth-child(4) .input,
.emp td:nth-child(5) .input {
  max-width: 120px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.adm-save {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.adm-save-in {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
}
.adm-save-in .btn {
  margin-inline-start: auto;
}
#admDirty {
  font-weight: 600;
  font-size: 14px;
  color: var(--good);
}
#admDirty.warn {
  color: var(--bad);
}

/* logs */
.adm-logs {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.log-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.log-bar .input {
  flex: 1;
  min-width: 180px;
}
.seg3 {
  grid-template-columns: repeat(3, auto);
}
.seg3 button {
  padding: 0 14px;
}
.danger-btn {
  border-color: var(--bad);
  color: var(--bad);
}
.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.log + .log {
  border-top: 1px solid var(--line);
}
.log-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: start;
  font-size: 13px;
}
.log-row:disabled {
  cursor: default;
  opacity: 1;
}
.log-row:not(:disabled):hover {
  background: var(--surface-2);
}
.log-row time {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
}
.log .lv {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}
.log.warn .lv {
  background: hsl(40 90% 50% / 0.18);
  color: hsl(32 80% 38%);
}
.log.error .lv {
  background: var(--bad-soft);
  color: var(--bad);
}
.log .src {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.log .msg {
  overflow-wrap: anywhere;
  text-align: left;
}
.log-details {
  margin: 0;
  padding: 10px 12px;
  background: var(--surface-2);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .log.warn .lv {
    color: hsl(40 90% 65%);
  }
}
:root[data-theme='dark'] .log.warn .lv {
  color: hsl(40 90% 65%);
}

@media (max-width: 700px) {
  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .log-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .log-row .msg {
    grid-column: 1 / -1;
  }
  .adm-save-in .btn {
    width: 100%;
  }
}

/* ---------- admin pickers (property / RVC) ---------- */
.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pick-title {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.pick-current {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--accent-soft);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.pick-current.none {
  background: var(--surface-2);
  color: var(--muted);
}
.pick-label {
  font-size: 13px;
  color: var(--muted);
}
.pick-current strong {
  overflow-wrap: anywhere;
}
.pick-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.pick-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: start;
}
.pick-row:hover {
  background: var(--surface-2);
}
.pick-row[aria-selected='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.pick-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.pick-mark {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}
.test-line.demo {
  color: var(--bad);
}
.adm-top .adm-demo {
  flex-basis: 100%;
  margin: 0 -16px -8px;
  border-radius: 0;
}
.tender .chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
/* iOS zooms into inputs under 16px */
@media (max-width: 899px) {
  .input,
  select.input {
    font-size: 16px;
  }
}
.pick-manual {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.pick-manual label {
  font-size: 12.5px;
  color: var(--muted);
}
.mode-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.mode-pill.real {
  background: var(--accent-soft);
  color: var(--accent);
}
.mode-pill.mock {
  background: var(--bad-soft);
  color: var(--bad);
}
.mode-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- combo meals ---------- */
.tile.combo {
  position: relative;
}
.combo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
}
.line-details {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 2px;
}
.combo-modal {
  width: min(640px, 100%);
}
.cg {
  display: grid;
  gap: 8px;
}
.cg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cg-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.cg-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--bad);
}
.cg-count.done {
  color: var(--good);
}
.cg-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.cg-opt {
  min-height: 52px;
  padding: 8px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: start;
  font-weight: 500;
}
.cg-opt .money {
  font-size: 12px;
  color: var(--muted);
}
.cg-opt[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tender-type {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cg-times {
  color: var(--accent);
  font-weight: 700;
}
.list-table {
  min-width: 520px;
}
.list-table td.center {
  text-align: center;
}
.list-table input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

/* ---------- order types & payment buttons ---------- */
.ot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ot-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 500;
}
.ot-chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.ot-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ot-grid,
.tender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.ot-big,
.tender-btn {
  min-height: 64px;
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.ot-big:hover,
.tender-btn:hover {
  border-color: var(--accent);
}
.tender-btn[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.sq.cond-btn {
  font-size: 16px;
  color: var(--accent);
  margin-inline-end: 6px;
}
.cg-opt[hidden] {
  display: none !important;
}
.act-code {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- admin security ---------- */
.sec-state {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  font-weight: 600;
}
.sec-state.on {
  background: var(--accent-soft);
  color: var(--good);
}
.sec-state.off {
  background: var(--surface-2);
  color: var(--muted);
}
.steps,
.policy {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.qr-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.qr-box {
  width: 192px;
  height: 192px;
  padding: 8px;
  border-radius: var(--r);
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.qr-box.qr-fail {
  display: none;
}
.qr-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.secret {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.totp-in {
  max-width: 180px;
}
.new-code {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--accent-soft);
  text-align: center;
}
.new-code strong {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.dev-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
input[data-weak]::placeholder {
  color: var(--bad);
}

/* ---------- begin check by table / name, item comments ---------- */
.start-fields {
  display: grid;
  gap: 8px;
}
.start-fields.two {
  grid-template-columns: 1fr 1fr;
}
.modal .start-fields {
  margin-bottom: 4px;
}
.req {
  color: var(--bad);
}
.sub-h {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.line-comment {
  margin: 2px 0 0;
  padding-inline-start: 18px;
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.sq.note-btn {
  font-size: 15px;
  margin-inline-end: 2px;
  filter: grayscale(1);
  opacity: 0.75;
}
.sq.note-btn[aria-pressed='true'] {
  filter: none;
  opacity: 1;
  border-color: var(--accent);
}
.seg4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 560px) {
  .seg4 {
    grid-template-columns: 1fr 1fr;
  }
}
.check-row input:disabled + span,
.check-row:has(input:disabled) {
  opacity: 0.55;
}

.check-no.draft {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- reports ---------- */
.report-modal {
  width: min(920px, 100%);
  align-content: start;
}
.range-bar {
  display: grid;
  gap: 10px;
}
.range-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.range-chips .chip {
  min-height: 38px;
}
.range-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.range-dates label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.range-dates .input {
  min-width: 150px;
}
.report-body {
  min-height: 120px;
}
.rp {
  display: grid;
  gap: 16px;
}
.rp-head {
  display: grid;
  gap: 2px;
}
.rp-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}
.rp-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.rp-head .rp-gen {
  font-size: 12px;
}
.rp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.rp-tile {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.rp-tile span {
  font-size: 13px;
  color: var(--muted);
}
.rp-tile strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.rp-tile.hero {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.rp-tile.hero strong {
  font-size: 24px;
}
.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.rp-sec {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}
.rp-sec h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rp-table th {
  text-align: start;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
}
.rp-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.rp-table .n {
  text-align: end;
  white-space: nowrap;
}
.rp-table .muted,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.rp-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rp-bars li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 2px 0;
}
.rp-bar {
  height: 14px;
  display: block;
}
.rp-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
}
#printRoot {
  display: none;
}
@media print {
  body.print-report > :not(#printRoot) {
    display: none !important;
  }
  body.print-report {
    background: #fff;
    color: #000;
  }
  body.print-report #printRoot {
    display: block;
    padding: 0 4mm;
    font-size: 12px;
  }
  #printRoot .rp-tile {
    background: #fff;
    border-color: #999;
  }
  #printRoot .rp-tile.hero {
    background: #fff;
  }
  #printRoot .rp-bar i {
    background: #555;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #printRoot .rp-grid {
    grid-template-columns: 1fr 1fr;
  }
  #printRoot .rp-sec {
    break-inside: avoid;
  }
}
@media (max-width: 560px) {
  .adm-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .adm-tabs button {
    flex: none;
    padding: 0 10px;
  }
}

/* ---------- home page (optional, Admin -> Home page) ---------- */
.home {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.home-main {
  overflow-y: auto;
  padding: 28px 16px 20px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 22px;
}
.home-hello {
  text-align: center;
  display: grid;
  gap: 4px;
}
.home-hello h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
}
.home-hello p {
  margin: 0;
  color: var(--muted);
}
.home-grid {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.home-tile {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  text-align: start;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  cursor: pointer;
}
.home-tile strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.home-tile span {
  font-size: 14px;
  color: var(--muted);
}
.home-tile:hover,
.home-tile:focus-visible {
  border-color: var(--accent);
}
.home-tile[data-act='hstart'] {
  border-inline-start: 4px solid var(--accent);
}
.home-tile.quiet {
  min-height: 80px;
  background: var(--surface-2);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 12px;
}
#ocSearch {
  margin-bottom: -4px;
}
@media (max-width: 560px) {
  .home-main {
    padding-top: 18px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-tile {
    min-height: 88px;
  }
}

/* ---------- admin: menu screens (SLU) ---------- */
.screens td.move {
  white-space: nowrap;
}
.screens td.move .sq {
  width: 34px;
  min-height: 34px;
  margin-inline-end: 4px;
}
.screens tr.off .cat-name {
  color: var(--muted);
  text-decoration: line-through;
}
.screens .hint-line {
  font-size: 12px;
}
.new-tag {
  background: var(--accent);
  color: var(--accent-fg);
}
.pick-head h2 {
  margin: 0;
}

/* ---------- discounts ---------- */
.check-tools {
  display: flex;
  gap: 6px;
  padding: 8px 16px 0;
}
.check-tools .btn {
  min-height: 38px;
  padding: 0 14px;
}
.totals .disc-row {
  color: var(--good);
}
.totals .disc-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sq.mini {
  width: 26px;
  height: 26px;
  min-height: 26px;
  font-size: 14px;
}
.disc-btn {
  display: grid;
  gap: 4px;
  align-content: center;
}
.disc-btn small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.disc-btn[aria-pressed='true'] small {
  color: inherit;
}
.disc-btn:disabled {
  opacity: 0.55;
}
.disc-btn .lock {
  font-size: 13px;
  margin-inline-start: 4px;
}
.totals .approved {
  font-size: 11px;
  color: var(--muted);
}
.approve-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.approve-box strong {
  font-family: var(--font-display);
  font-size: 17px;
}
.approve-form {
  display: grid;
  gap: 12px;
}
.acc-select {
  min-width: 140px;
}
.over-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.over-row .input {
  width: 80px;
}
.over-row .hint-line {
  flex: 1 1 260px;
}

/* ---------- admin: setup steps ---------- */
.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.step-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  border: 2px solid var(--line);
  color: var(--muted);
}
.step.done .step-mark {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.step.opt .step-mark {
  border-style: dashed;
}
.step-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.step.done .step-text strong {
  color: var(--muted);
}
.danger-card {
  border-color: var(--bad);
}
.danger-card h2 {
  color: var(--bad);
}

/* ---------- admin accounts ---------- */
.adm-user {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 10px;
}
.adm-user.off {
  opacity: 0.7;
}
.adm-user.new {
  border-style: dashed;
}
.adm-user-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.adm-who {
  margin-inline-start: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- design: groups of menu screens, tile sizes, category column ---------- */
.catbox {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.chip.grp {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.grp-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 12px;
  display: inline-grid;
  place-items: center;
}
.chip.grp.tinted {
  background: var(--gc);
  border-color: var(--gc);
  color: var(--gc-fg);
}
.chip.grp.tinted[aria-pressed='true'] {
  background: var(--gc);
  border-color: var(--gc);
  color: var(--gc-fg);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.cats.subcats {
  padding: 8px;
  border-radius: calc(var(--r) + 4px);
  background: color-mix(in srgb, var(--gc, var(--accent)) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gc, var(--accent)) 30%, var(--surface));
  padding-bottom: 8px;
}
.chip.sub {
  min-height: 40px;
  border-radius: var(--r);
}
.cats.side .subs {
  display: contents;
}
.tile.gtint {
  background: color-mix(in srgb, var(--gc) 22%, var(--surface));
  border-color: color-mix(in srgb, var(--gc) 48%, var(--surface));
}
.tiles-color .tile {
  background: var(--tile-bg);
  border-color: var(--tile-line);
  color: var(--tile-fg);
}
.tiles-color .tile .tile-price {
  color: var(--tile-fg);
  opacity: 0.8;
}
.pos.tiles-s .items {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.pos.tiles-s .tile {
  min-height: 70px;
  padding: 8px 10px;
  font-size: 14px;
}
.pos.tiles-l .items {
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
  gap: 12px;
}
.pos.tiles-l .tile {
  min-height: 124px;
  padding: 14px 16px;
  font-size: 18px;
}
.pos.tiles-l .tile-price {
  font-size: 16px;
}
@media (min-width: 900px) {
  .pos.cats-side .menu {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .pos.cats-side .toolbar {
    display: contents;
  }
  .pos.cats-side #search {
    grid-column: 1 / -1;
    width: auto;
    margin: 12px 16px 4px;
  }
  .pos.cats-side .catbox {
    grid-row: 2;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 0 16px;
    padding-inline-start: 16px;
    align-content: start;
  }
  .pos.cats-side .cats.side {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  .pos.cats-side .cats.side .chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    border-radius: var(--r);
    text-align: start;
  }
  .pos.cats-side .cats.side .subs {
    display: grid;
    gap: 6px;
    padding: 6px;
    margin-inline-start: 10px;
    border-inline-start: 3px solid var(--accent);
  }
  .pos.cats-side .cats.side .chip.sub {
    min-height: 42px;
  }
  .pos.cats-side .items {
    grid-row: 2;
    grid-column: 2;
  }
}

/* ---------- admin: design tab ---------- */
.seg.n3 {
  grid-template-columns: repeat(3, 1fr);
}
.presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.preset {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  text-align: start;
}
.preset[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.sw-row {
  display: flex;
  gap: 4px;
}
.sw {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.ds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.ds-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.color-in {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-in input[type='color'] {
  width: 52px;
  height: 40px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.color-in input[type='color']:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.color-in bdi {
  font-size: 13px;
  color: var(--muted);
}
.ds-preview {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  font-size: 14px;
}
.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pv-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
}
.pv-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  min-width: 0;
}
.pv-card b {
  width: 100%;
}
.pv-card .chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
}
.pv-menu {
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 0;
}
.pv-menu .chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
}
.pv-menu .cats {
  padding-bottom: 0;
  overflow: hidden;
}
.pv-menu .cats.subcats {
  padding: 6px;
}
.pv-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pv-items .tile {
  min-height: 60px;
  padding: 8px;
  font-size: 13px;
}
.pv-check {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
}
.pv-check .btn {
  min-height: 38px;
}
.pv-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.grp-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-inline-start: 6px solid var(--gc, var(--line));
  background: var(--surface-2);
}
.grp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.grp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gc, transparent);
  border: 1px solid var(--line);
}
.grp-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
}
.grp-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.grp-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grp-slus {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  counter-reset: slu;
}
.grp-slus li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  padding-inline-start: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: slu;
}
.grp-slus li > span:first-child::before {
  content: counter(slu) '. ';
  color: var(--muted);
}
.grp-slus .sq {
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.grp-slus .sq.danger {
  margin-inline-start: 0;
}
.grp-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pill-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: var(--surface);
  font-size: 13.5px;
}
.pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.danger-text {
  color: var(--bad);
  min-height: 36px;
}
@media (max-width: 760px) {
  .ds-grid,
  .grp-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cats.subcats[style] .chip.sub[aria-pressed='true'],
.subs.tinted .chip.sub[aria-pressed='true'] {
  background: var(--gc);
  border-color: var(--gc);
  color: var(--gc-fg);
}
.pos.cats-side .cats.side .subs.tinted {
  border-inline-start-color: var(--gc);
}
@media (max-width: 600px) {
  .pos.tiles-l .items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .pos.tiles-l .tile {
    min-height: 104px;
  }
}

/* ---------- design: groups on top, the chosen group's screens on the side ---------- */
.subside {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 4px 16px 0;
  padding: 8px;
  border-radius: calc(var(--r) + 4px);
  background: color-mix(in srgb, var(--gc, var(--accent)) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gc, var(--accent)) 30%, var(--surface));
  scrollbar-width: thin;
}
.subside-title {
  margin: 0;
  padding-inline: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.subside.tinted .chip.sub[aria-pressed='true'] {
  background: var(--gc);
  border-color: var(--gc);
  color: var(--gc-fg);
}
@media (min-width: 900px) {
  .pos.cats-split .menu.has-side {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .pos.cats-split .menu.has-side .toolbar {
    grid-column: 1 / -1;
  }
  .pos.cats-split .menu.has-side .subside {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100% - 24px);
    overflow-x: visible;
    overflow-y: auto;
    margin: 8px 0 16px;
    margin-inline-start: 16px;
  }
  .pos.cats-split .menu.has-side .subside .chip.sub {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    text-align: start;
  }
  .pos.cats-split .menu.has-side .items {
    grid-row: 2;
    grid-column: 2;
  }
}

/* ---------- design: check on a fixed side (left / right), whatever the language ---------- */
:root[dir='rtl'] {
  --pg-dir: rtl;
}
:root[dir='ltr'] {
  --pg-dir: ltr;
}
@media (min-width: 900px) {
  .pos.check-left,
  .pos.check-right {
    direction: ltr;
  }
  .pos.check-left > *,
  .pos.check-right > * {
    direction: var(--pg-dir, rtl);
  }
  .pos.check-left {
    grid-template-columns: 390px minmax(0, 1fr);
  }
  .pos.check-left .menu {
    grid-column: 2;
    grid-row: 2;
  }
  .pos.check-left .check {
    grid-column: 1;
    grid-row: 2;
    border-inline-start: 0;
    border-right: 1px solid var(--line);
  }
  .pos.check-right .check {
    border-inline-start: 0;
    border-left: 1px solid var(--line);
  }
  /* the side column of categories goes to the outer edge, away from the check */
  .pos.check-left.cats-side .menu,
  .pos.check-right.cats-side .menu,
  .pos.check-left.cats-split .menu.has-side,
  .pos.check-right.cats-split .menu.has-side {
    direction: ltr;
  }
  .pos.check-left.cats-side .menu > *,
  .pos.check-right.cats-side .menu > *,
  .pos.check-left.cats-split .menu.has-side > *,
  .pos.check-right.cats-split .menu.has-side > * {
    direction: var(--pg-dir, rtl);
  }
  .pos.check-left.cats-side .menu {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .pos.check-left.cats-side .catbox {
    grid-column: 2;
    padding-inline-start: 0;
    padding-left: 0;
    padding-right: 16px;
  }
  .pos.check-left.cats-side .items {
    grid-column: 1;
  }
  .pos.check-right.cats-side .catbox {
    padding-inline-start: 0;
    padding-right: 0;
    padding-left: 16px;
  }
  .pos.check-left.cats-split .menu.has-side {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .pos.check-left.cats-split .menu.has-side .subside {
    grid-column: 2;
    margin-inline-start: 0;
    margin-left: 0;
    margin-right: 16px;
  }
  .pos.check-left.cats-split .menu.has-side .items {
    grid-column: 1;
  }
  .pos.check-right.cats-split .menu.has-side .subside {
    margin-inline-start: 0;
    margin-right: 0;
    margin-left: 16px;
  }
}

/* ---------- admin: company logo ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.logo-box {
  width: 220px;
  max-width: 100%;
  height: 110px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px;
}
.logo-box.empty {
  background: var(--surface-2);
  border-style: dashed;
  color: var(--muted);
  font-size: 13px;
}
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.logo-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.sr-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sr-file:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.logo-acts label.btn {
  cursor: pointer;
}
.logo-acts .is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.login-top:has(.login-logo) {
  align-items: flex-start;
}

/* ---------- home page: actions in one column, open checks beside them ---------- */
.home-body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
}
.home-body .home-main {
  overflow: visible;
}
.home-checks {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.home-checks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-checks-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-checks-head .btn {
  min-height: 38px;
}
.home-oc-body {
  min-height: 0;
}
.home-oc-body .oc-list {
  margin: 0;
}
@media (min-width: 900px) {
  .home-body {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-content: stretch;
    overflow: hidden;
  }
  .home-body .home-main {
    overflow-y: auto;
  }
  .home-grid {
    width: min(520px, 100%);
    grid-template-columns: 1fr;
  }
  .home-tile {
    min-height: 92px;
  }
  .home-checks {
    border-top: 0;
    border-inline-start: 1px solid var(--line);
    overflow: hidden;
  }
  .home-oc-body {
    overflow-y: auto;
    margin-inline: -4px;
    padding-inline: 4px;
  }
  /* Admin -> Design -> check position also places the open checks column */
  .home.check-left .home-body,
  .home.check-right .home-body {
    direction: ltr;
  }
  .home.check-left .home-body > *,
  .home.check-right .home-body > * {
    direction: var(--pg-dir, rtl);
  }
  .home.check-left .home-body {
    grid-template-columns: 420px minmax(0, 1fr);
  }
  .home.check-left .home-checks {
    grid-column: 1;
    grid-row: 1;
    border-inline-start: 0;
    border-right: 1px solid var(--line);
  }
  .home.check-left .home-main {
    grid-column: 2;
    grid-row: 1;
  }
  .home.check-right .home-checks {
    border-inline-start: 0;
    border-left: 1px solid var(--line);
  }
}
.home-checks .oc-side .money {
  white-space: nowrap;
}

/* ---------- home page, "classic" look (like Simphony Begin / Pickup): tabs, open checks, operations, side column ---------- */

.hc-tabs {
  display: flex;
  gap: 3px;
  min-width: 0;
}
.hc-tabs [role='tab'],
.hc-lang,
.hc-side button,
.hc-status > div {
  background: #14171b;
  color: #fff;
}
.hc-tabs [role='tab'] {
  flex: 1;
  min-width: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.hc-tabs [role='tab'][aria-selected='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.hc-tabs [role='tab'][aria-selected='true']::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  translate: -50% 0;
  border: 9px solid transparent;
  border-bottom-color: color-mix(in srgb, var(--fg) 16%, var(--bg));
}
.hc-lang {
  border: 0;
  padding: 0 16px;
  font-weight: 500;
}



/* Admin -> Design -> check position "right": open checks on the right, the side column on the left */





.hc-bar {
  background: var(--hc-bar);
  color: var(--hc-bar-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 6px;
  min-width: 0;
}
.hc-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hc-checks-col .hc-bar h2 {
  margin-inline-start: auto;
}
.hc-n {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
}
.hc-filter {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
}
.hc-filter button {
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.hc-filter button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.94);
  color: #14171b;
}
.hc-grid {
  display: grid;
  gap: 3px;
  min-height: 0;
  align-content: stretch;
}
.hcc {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 0 8px;
  text-align: start;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.hcc:hover,
.hcc:focus-visible {
  border-color: var(--hc-tab);
}
.hcc.other {
  background: var(--surface-2);
}
.hcc-no {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16191d;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px 4px 6px;
  border-end-end-radius: 8px;
}
.hcc-no i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #19a34a;
  flex: none;
}
.hcc-no i.wait {
  background: #e5841a;
}
.hcc-mid {
  padding: 6px 10px 0;
  display: grid;
  align-content: end;
  gap: 2px;
  min-width: 0;
}
.hcc-mid b,
.hcc-mid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hcc-mid b {
  font-size: 15px;
}
.hcc-mid span {
  font-size: 12.5px;
  color: var(--muted);
}
.hcc-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.hcc-foot .amt {
  color: var(--fg);
  font-weight: 600;
}
.hc-page {
  border: 0;
  background: var(--hc-bar);
  color: var(--hc-bar-fg);
  font-weight: 600;
  font-size: 15px;
}
.hc-page:disabled {
  opacity: 0.45;
}
.hc-empty {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
  padding: 16px;
  color: var(--muted);
  background: var(--surface);
}
.hc-ops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(60px, 1fr);
  grid-auto-flow: row dense;
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
}
.hb {
  border: 0;
  background: var(--bc);
  color: var(--bf);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.25;
  padding: 8px;
  min-width: 0;
}
.hb:hover {
  filter: brightness(1.08);
}
.hb:active {
  filter: brightness(0.92);
}
.hb-w {
  grid-column: 1 / -1;
}
.hb-t {
  grid-row: span 2;
}
.hc-ops .note {
  grid-column: 1 / -1;
}

.hc-side button {
  border: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px;
}
.hc-side button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.hc-status {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 5px;
}
.hc-status > div {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.hc-status .k {
  color: #aeb4ba;
  font-weight: 400;
}
.hc-logo {
  height: 20px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 1px 3px;
}
@media (max-width: 899px) {
  
  .hc-tabs [role='tab'] {
    font-size: 14px;
    min-height: 50px;
  }
  
  
  .hc-ops-col,
  .home.hc-right .hc-ops-col {
    order: -1;
  }
  
  .hc-ops {
    grid-auto-rows: 70px;
    overflow: visible;
  }
  .hb {
    font-size: 17px;
  }
  .hc-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 108px;
  }
  .hc-status {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- home page: side buttons, Manager page (like Simphony's manager screen) ---------- */




.hc-who {
  font-weight: 500;
  opacity: 0.85;
}
.hc-mgr-col .hc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hc-mgr {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, 132px);
  grid-auto-flow: row dense;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
  padding: 2px;
}
.hc-mgr.in-modal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 96px;
  max-height: 70vh;
}
.mg {
  border: 0;
  background: var(--bc);
  color: var(--bf);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.mg:hover {
  filter: brightness(1.1);
}
.mg:active {
  filter: brightness(0.9);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.22);
}
.mg-i {
  font-size: 1.5em;
  line-height: 1;
  opacity: 0.85;
}
.mgs-w {
  grid-column: span 2;
}
span.mg-t {
  overflow-wrap: anywhere;
}
.mgs-t {
  grid-row: span 2;
}
@media (max-width: 899px) {
  
  .hc-mgr,
  .hc-mgr.in-modal {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 92px;
  }
}
.modal.wide {
  width: min(760px, 100%);
}
/* sold out items (Manager -> Menu item availability) */
.tile.sold,
.mi.sold {
  opacity: 0.55;
  filter: grayscale(0.7);
  cursor: not-allowed;
  position: relative;
}
.so-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.av-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.av-tools .input {
  flex: 1 1 200px;
}
.av-tools [aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-fg, #fff);
}
.av-count {
  color: var(--muted);
  font-size: 14px;
}
.av-list,
.rp-list {
  display: grid;
  gap: 6px;
  max-height: 52vh;
  overflow-y: auto;
  margin: 10px 0;
}
.av-list {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.av-row,
.rp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.av-row .n,
.rp-row .n {
  flex: 1;
  min-width: 0;
  display: grid;
}
.rp-row small {
  color: var(--muted);
  font-size: 12px;
}
.av-st {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #1f7a2e 16%, transparent);
  color: #1f7a2e;
  white-space: nowrap;
}
.av-row.out {
  border-color: #b3261e;
  background: color-mix(in srgb, #b3261e 9%, var(--surface));
}
.av-row.out .av-st {
  background: #b3261e;
  color: #fff;
}
.rp-row:hover,
.av-row:hover {
  border-color: var(--accent);
}
pre.rcpt {
  margin: 10px auto;
  padding: 14px 16px;
  width: fit-content;
  max-width: 100%;
  max-height: 56vh;
  overflow: auto;
  background: #fffef8;
  color: #111;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font: 13px/1.45 'IBM Plex Mono', ui-monospace, monospace;
  white-space: pre;
}
.rcpt-print {
  font: 12px/1.4 'IBM Plex Mono', ui-monospace, monospace;
  white-space: pre;
  margin: 0;
  color: #000;
}

/* ---------- admin: home page buttons editor ---------- */
.nv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.hb-row.plain {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.nv-prev {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 70px;
  max-height: 520px;
  padding: 6px;
  background: color-mix(in srgb, var(--fg) 12%, var(--bg));
  border-radius: var(--r);
}
.nv-prev .mg {
  font-size: 14px;
  cursor: default;
}

.hb-colors {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hb-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}
.hb-list {
  display: grid;
  gap: 8px;
}
.hb-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.hb-row.off {
  opacity: 0.6;
}
.hb-order {
  display: grid;
  gap: 4px;
}
.hb-order .sq {
  width: 34px;
  height: 30px;
  font-size: 12px;
}
.hb-color {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.hb-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.hb-kind {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.hb-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hb-names .input,
.hb-opts .input {
  min-height: 38px;
}
.hb-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.hb-opts .seg {
  flex: 1 1 210px;
}
.hb-show {
  flex: 0 1 160px;
  width: auto;
}
.hb-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hb-add select {
  flex: 1 1 220px;
  width: auto;
}
.hb-prev-wrap {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 8px;
}
.hb-prev-box {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  gap: 3px;
  height: 440px;
  padding: 3px;
  background: color-mix(in srgb, var(--fg) 16%, var(--bg));
  border-radius: 8px;
}
.hb-prev-bar {
  background: var(--hc-bar);
  color: var(--hc-bar-fg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.hb-prev .hb {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  padding: 4px;
}
.hb-prev {
  grid-auto-rows: minmax(36px, 1fr);
}
@media (max-width: 760px) {
  .hb-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .hb-prev-wrap {
    position: static;
  }
  .hb-names {
    grid-template-columns: 1fr;
  }
}

/* ---------- menu screen, "classic" look (like Simphony's ordering screen) ---------- */


.mc-last {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.mc-last .k {
  color: var(--muted);
}
.mc-tabs [role='tab'][style*='--tc'] {
  box-shadow: inset 0 -4px 0 var(--tc);
}






/* check */
.mc-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mc-ck-head {
  grid-column: 1 / -1;
  background: #14171b;
  color: #fff;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  font-size: 12.5px;
}
.mc-ck-head b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-ck-head .r {
  color: #b9c0c6;
  text-align: end;
}
.mc-ck-empty {
  padding: 16px 10px;
  color: var(--muted);
  list-style: none;
  grid-column: 1 / -1;
}
.mc-ck-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.mc-lines {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  min-height: 0;
  scroll-behavior: smooth;
}
.mc-ln {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  border-inline-start: 3px solid transparent;
}
.mc-ln.sel {
  background: color-mix(in srgb, var(--hc-tab) 14%, var(--surface));
  border-inline-start-color: var(--hc-tab);
}
.mc-ln .q {
  color: var(--muted);
}
.mc-ln .n {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.mc-ln small {
  color: var(--muted);
  font-size: 12px;
}
.mc-ln.new .p::after {
  content: ' •';
  color: #e5841a;
}
.mc-tot {
  border-top: 1px solid var(--line);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  font-size: 13px;
}
.mc-tot div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.mc-tot .t {
  font-size: 17px;
  font-weight: 700;
}
.mc-scroll {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: #5d6872;
}
.mc-scroll button {
  border: 0;
  background: #6b7782;
  color: #fff;
  font-size: 16px;
}
/* keypad */
.mc-pad {
  display: grid;
  grid-template-rows: 44px repeat(12, minmax(0, 1fr));
  gap: 3px;
}
.mc-disp {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
}
.mc-disp .ph {
  color: var(--muted);
  font-weight: 400;
}
.mc-pad button {
  border: 0;
  background: #3a6a7b;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}
.mc-pad button.x {
  font-size: 15px;
}
.mc-pad button:disabled {
  opacity: 0.4;
}
/* center */
.mc-center {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 44px;
  gap: 3px;
}
.mc-center.has-cond {
  grid-template-rows: 40px minmax(0, 1.7fr) auto minmax(0, 1fr) 44px;
}
.mc-title {
  background: var(--bc);
  color: var(--bf);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
}
.mc-title .input {
  max-width: 360px;
  min-height: 32px;
}
.mc-find {
  position: absolute;
  inset-inline-end: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: 16px;
}
.mc-items {
  display: grid;
  grid-auto-flow: row dense;
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
}
.mi {
  border: 0;
  background: var(--bc);
  color: var(--bf);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  min-width: 0;
  text-align: center;
  font-family: var(--font-display);
}
.mi:hover {
  filter: brightness(1.12);
}
.mi:active {
  filter: brightness(0.9);
}
.mi-n {
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.mi-p {
  font-size: 13px;
  opacity: 0.75;
}
.txt-s .mi-n {
  font-size: 14px;
}
.txt-l .mi-n {
  font-size: 21px;
}
.mi-w {
  grid-column: span 2;
}
.mi-t {
  grid-row: span 2;
}
.mi-b {
  grid-column: span 2;
  grid-row: span 2;
}
.mc-page {
  border: 0;
  background: #3a6a7b;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.mc-page:disabled {
  opacity: 0.45;
}
.mc-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  color: var(--muted);
  background: var(--surface);
}
.mc-cond-bar {
  background: #138a2e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  font-size: 13.5px;
  min-height: 34px;
  flex-wrap: wrap;
}
.mc-cond-bar b {
  font-weight: 600;
}
.mc-cond-bar .hint {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 12px;
}
.mc-cond-bar .cbtn {
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 600;
}
.mc-cond-bar .cbtn.ok {
  margin-inline-start: auto;
  background: #fff;
  color: #0f6b24;
}
.mc-cond-bar .cbtn.ok:disabled {
  opacity: 0.55;
}
.mc-cond-bar .cbtn:not(.ok):first-of-type {
  margin-inline-start: auto;
}
.mc-cond {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 3px;
  min-height: 0;
}
.mc-cond-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-height: 0;
}
.cd {
  border: 0;
  background: #b8322a;
  color: #fff;
  font-size: 15px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 4px;
}
.cd small {
  font-size: 12px;
  opacity: 0.85;
}
.cd[aria-pressed='true'] {
  outline: 3px solid #ffd54a;
  outline-offset: -3px;
  background: #8f2018;
}
.mc-cond-groups {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 3px;
}
.mc-cond-groups button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-size: 13px;
  padding: 2px 4px;
}
.mc-cond-groups button.need {
  color: #ffd54a;
}
.mc-cond-groups button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.mc-chef {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, #d8d4cc);
  color: var(--fg);
  font-size: 17px;
}
.mc-chef:disabled {
  opacity: 0.55;
}
/* screens column */
.mc-slus {
  display: grid;
  grid-auto-rows: minmax(52px, 1fr);
  gap: 3px;
  overflow-y: auto;
  align-content: stretch;
}
.mc-slus button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 4px;
}
.mc-slus button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
/* function bar */
.mc-bar {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: color-mix(in srgb, var(--hc-tab) 35%, #8fb7c9);
  min-width: 0;
}
.mb {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: var(--bc);
  color: var(--bf);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 2px 6px;
}
.mb-w {
  flex-grow: 1.5;
}
.mb:disabled {
  opacity: 0.45;
}
.mc-fn,
.mc-tenders {
  grid-auto-rows: minmax(64px, 96px);
  align-content: start;
}
.mc-center:has(.mc-fn),
.mc-center:has(.mc-pay) {
  grid-template-rows: 40px minmax(0, 1fr);
}
.mc-pay {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
}
.mc-due {
  background: var(--surface);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}
.mc-due strong {
  font-size: 26px;
}
.mc-due .k {
  color: var(--muted);
  font-size: 13px;
  flex-basis: 100%;
}
.btn.danger-bg {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.ot-big[aria-pressed='true'] {
  outline: 3px solid var(--accent);
}

/* ---------- admin: menu screens editor (one screen at a time) and function bar ---------- */
.ms-ed {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  gap: 16px;
  align-items: start;
}
.ms-list {
  display: grid;
  gap: 4px;
  max-height: 560px;
  overflow-y: auto;
}
.ms-g {
  margin: 8px 4px 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.ms-list button {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  text-align: start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
}
.ms-list button[aria-selected='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.ms-list small {
  color: var(--muted);
  font-weight: 400;
}
.ms-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.ms-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.ms-opts .field {
  min-width: 90px;
}
.ms-opts .seg {
  min-width: 150px;
}
.ms-screen {
  display: grid;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg) 16%, var(--bg));
}
.ms-screen .mc-title {
  min-height: 36px;
  font-size: 16px;
}
.ms-grid {
  overflow: visible;
}
.ms-grid .mi {
  cursor: grab;
}
.mi.sel {
  outline: 3px solid #ffb02e;
  outline-offset: -3px;
}
.mi.off {
  background: repeating-linear-gradient(45deg, #2b2f35 0 8px, #22262b 8px 16px);
  color: #8a939b;
}
.ms-hidden {
  margin-top: 6px;
}
.ms-screen .mc-page {
  display: grid;
  place-items: center;
}
.ms-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--surface-2);
  position: sticky;
  top: 70px;
}
.ms-panel h3 {
  margin: 0;
  font-size: 15px;
}
.ms-panel .seg button {
  padding: 0 8px;
}
.ms-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ms-sw {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0;
}
.ms-sw.def {
  width: auto;
  padding: 0 10px;
  background: var(--surface);
  font-size: 12.5px;
}
.ms-sw[aria-pressed='true'] {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.ms-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ms-moves .btn {
  min-height: 38px;
  padding: 0 10px;
}
.mb-prev {
  min-height: 54px;
  border-radius: 8px;
}
.mb-prev .mb {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  padding: 4px;
}
@media (max-width: 1100px) {
  .ms-ed {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .ms-panel {
    grid-column: 1 / -1;
    position: static;
  }
}
@media (max-width: 760px) {
  .ms-ed {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    max-height: none;
  }
}

/* ---------- classic screen: Payment page (tenders + keypad, discounts beside) ---------- */



.mc-center:has(.mc-paywrap) {
  grid-template-rows: 40px minmax(0, 1fr) auto;
}
.mc-due-t {
  position: absolute;
  inset-inline-end: 10px;
  font-size: 14px;
}
.mc-paywrap {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr);
  gap: 3px;
  min-height: 0;
}
.pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(64px, 1fr);
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
  align-content: stretch;
}
.pt {
  border: 0;
  background: var(--bc);
  color: var(--bf);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 24px);
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 6px;
}
.pt.w {
  grid-column: 1 / -1;
}
.pt small {
  font-size: 13px;
  opacity: 0.85;
}
.pt[aria-pressed='true'] {
  outline: 4px solid #ffd54a;
  outline-offset: -4px;
}
.pt:active {
  filter: brightness(0.9);
}
.pp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 3px;
  min-height: 0;
}
.pp-disp {
  grid-column: 1 / span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  direction: ltr;
  overflow: hidden;
}
.pp-disp .ph {
  color: var(--muted);
  font-weight: 400;
}
.pp-k {
  border: 0;
  background: #14171b;
  color: #fff;
  font-size: 24px;
}
.pp-k.x {
  font-size: 16px;
}
.pp-k:active {
  background: #2b3036;
}
.mc-pay-hint {
  margin: 0;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Overview (manager): sales dashboard ---------- */
.ov-modal {
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}
.ov {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ov-tiles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.ov-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.ov-tile .k {
  color: var(--muted);
  font-size: 13px;
}
.ov-tile strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.ov-tile .s {
  color: var(--muted);
  font-size: 12.5px;
}
.ov-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.ov-card h3 {
  margin: 0;
  font-size: 15px;
}
.ov-wide {
  grid-column: 1 / -1;
}
.ov-chart {
  height: 220px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-top: 22px;
  direction: ltr;
}
.ov-col {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.ov-bar {
  width: min(100%, 34px);
  min-height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, var(--surface));
  border-radius: 4px 4px 0 0;
}
.ov-col.peak .ov-bar {
  background: var(--accent);
}
.ov-col:hover .ov-bar {
  outline: 2px solid var(--fg);
}
.ov-h {
  position: absolute;
  bottom: -20px;
  font-size: 11.5px;
  color: var(--muted);
}
.ov-peak-v {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}
.ov-card .ov-chart {
  margin-bottom: 20px;
}
.ov-hbars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ov-hbars li {
  display: grid;
  grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.ov-hbars .l {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-hbars .track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.ov-hbars .bar {
  display: block;
  height: 100%;
  background: color-mix(in srgb, var(--accent) 45%, var(--surface));
  border-radius: 0 4px 4px 0;
}
.ov-hbars .bar.top {
  background: var(--accent);
}
.ov-hbars .v {
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .ov {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- admin: menu items shown (number ranges) ---------- */
.if-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.hb-color.sm {
  width: 36px;
  height: 36px;
}
textarea.input {
  min-height: 64px;
  padding: 8px 12px;
  resize: vertical;
  font-family: var(--font-mono);
}

/* Functions tab, like Simphony's function screen: big buttons spaced on a light grid */
.mc-center:has(.mc-fn2) {
  grid-template-rows: minmax(0, 1fr);
}
.mc-fn2 {
  --cell: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(84px, 128px);
  gap: clamp(14px, 3vw, 46px) clamp(14px, 3vw, 54px);
  align-content: start;
  padding: clamp(14px, 3.4vw, 52px) clamp(14px, 3.4vw, 52px);
  overflow-y: auto;
  min-height: 0;
  background-color: #cfd3d6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(180deg, #e6e8ea, #b9bec2 50%, #dfe2e4);
  background-size: var(--cell) var(--cell), var(--cell) var(--cell), 100% 100%;
}
.fb {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--bc);
  color: var(--bf);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.45vw, 20px);
  line-height: 1.25;
  padding: 8px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.fb-w {
  grid-column: span 2;
}
.fb:hover {
  filter: brightness(1.08);
}
.fb:active {
  filter: brightness(0.92);
}
.fb:disabled {
  opacity: 0.45;
}
.fb[aria-pressed='true'],
.mb[aria-pressed='true'] {
  box-shadow: inset 0 0 0 3px #ffb02e;
}
.mc-slus.one {
  align-content: start;
  grid-auto-rows: minmax(110px, 34%);
}
.fn-prev {
  min-height: 0;
  max-height: 340px;
  border-radius: 8px;
  grid-auto-rows: 72px;
  gap: 14px 18px;
  padding: 18px;
}
.fn-prev .fb {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 15px;
}
/* guests and split windows */
.big-num {
  font-size: 28px;
  text-align: center;
  min-height: 56px;
}
.gq {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.gq .btn {
  min-height: 48px;
  font-size: 18px;
}
.sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.sp-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.sp-main {
  flex: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  padding: 10px 12px;
  min-height: 52px;
}
.sp-main small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.sp-row.on .sp-main {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--accent);
}
.sp-row.off .sp-main {
  opacity: 0.55;
}
.sp-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 899px) {
  .mc-fn2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gq {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== sign-in page (Admin -> Design -> Sign-in page): looks "neon" (dark) and "light" ===== */
.lg2 {
  --gl: rgba(120, 160, 255, 0.22);
  --lg-fg: #eef3ff;
  --lg-mu: #9fb0d4;
  --lg-card: linear-gradient(160deg, rgba(20, 36, 76, 0.74), rgba(12, 18, 44, 0.82));
  --lg-in: rgba(5, 12, 30, 0.55);
  --lg-key: rgba(255, 255, 255, 0.05);
  --lg-keyh: rgba(255, 255, 255, 0.09);
  --lg-line: rgba(150, 175, 230, 0.26);
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 60px);
  color: var(--lg-fg);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(800px 520px at 28% 45%, color-mix(in srgb, var(--co) 28%, transparent), transparent 70%),
    radial-gradient(900px 600px at 85% 0%, rgba(40, 90, 200, 0.32), transparent 60%),
    linear-gradient(180deg, #071029, #050b1a 60%, #03060f);
}
.lg2.look-light {
  --gl: color-mix(in srgb, var(--co) 25%, #d7dee6);
  --lg-fg: #13202a;
  --lg-mu: #5a6b77;
  --lg-card: rgba(255, 255, 255, 0.92);
  --lg-in: #f4f6f8;
  --lg-key: #f1f4f7;
  --lg-keyh: #e6ebf0;
  --lg-line: #d5dde3;
  background:
    radial-gradient(900px 600px at 25% 40%, color-mix(in srgb, var(--co) 20%, transparent), transparent 70%),
    radial-gradient(800px 500px at 90% 0%, color-mix(in srgb, var(--co2) 25%, transparent), transparent 65%),
    linear-gradient(180deg, #fbfcfd, #eef2f5);
}
html.bg-on .lg2 {
  background: transparent;
}
.lg-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.lg-lights i {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  animation: lgDrift linear infinite;
}
html.bg-on .lg-lights {
  display: none;
}
@keyframes lgDrift {
  50% {
    transform: translate(28px, -16px);
  }
}
.lg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lg-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gl);
  border-radius: 999px;
  padding: 7px 14px;
  background: color-mix(in srgb, var(--lg-card) 0%, rgba(10, 20, 45, 0.45));
  color: inherit;
  font-size: 14px;
  font-family: inherit;
  cursor: default;
}
.look-light .lg-pill {
  background: rgba(255, 255, 255, 0.7);
}
button.lg-pill {
  cursor: pointer;
}
.lg-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d27b;
  animation: lgPing 1.8s infinite;
}
@keyframes lgPing {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 210, 123, 0.7);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(52, 210, 123, 0);
  }
}
.lg-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(460px, 42vw);
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
}
.lg-co {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}
.lg-co h1 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}
.lg-co h1 .c {
  background: linear-gradient(90deg, var(--co2), var(--co));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-branch {
  margin: 4px 0 0;
  color: var(--lg-mu);
  font-size: clamp(15px, 1.4vw, 19px);
}
.lg-clock {
  font: 600 clamp(38px, 5vw, 64px) / 1 var(--font-display);
  direction: ltr;
  letter-spacing: 1px;
}
.lg-clock .col {
  animation: lgBlink 1s steps(1) infinite;
}
@keyframes lgBlink {
  50% {
    opacity: 0.2;
  }
}
.lg-date {
  color: var(--lg-mu);
  font-size: 15px;
  margin-top: 8px;
}
.lg-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
}
/* moving logo */
.lg-logo {
  position: relative;
  width: clamp(170px, 19vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.lg-logo.sm {
  width: 120px;
}
.lg-logo .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--lga), var(--co), var(--co2), transparent 40%, #22c3ff, var(--co));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: lgRot 5s linear infinite;
  filter: drop-shadow(0 0 10px var(--co));
}
.lg-logo .ring2 {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--co) 55%, transparent);
  animation: lgSpin 30s linear infinite;
}
.lg-logo .orb {
  position: absolute;
  inset: -22px;
  animation: lgSpin 9s linear infinite;
}
.lg-logo .orb::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--co2);
  box-shadow: 0 0 12px 3px var(--co);
}
.lg-logo .orb.o2 {
  animation-duration: 14s;
  animation-direction: reverse;
}
.lg-logo .orb.o2::before {
  background: #22c3ff;
  box-shadow: 0 0 12px 3px #22c3ff;
  width: 7px;
  height: 7px;
}
.lg-logo .glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--co) 45%, transparent), transparent 70%);
  animation: lgBreathe 3.6s ease-in-out infinite;
}
.lg-logo .face {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: lgPop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both, lgFloat 5s ease-in-out 0.9s infinite;
}
.lg-logo .face img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.lg-logo .face::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 35%;
  left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  animation: lgShine 4.5s ease-in-out 1.4s infinite;
}
.lg-init {
  font: 800 clamp(56px, 7vw, 86px) / 1 var(--font-display);
  color: var(--co);
}
@property --lga {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes lgRot {
  to {
    --lga: 360deg;
  }
}
@keyframes lgSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lgBreathe {
  50% {
    transform: scale(1.18);
    opacity: 0.7;
  }
}
@keyframes lgPop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes lgFloat {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes lgShine {
  0%,
  62%,
  100% {
    left: -60%;
  }
  32% {
    left: 130%;
  }
}
/* the card */
.lg-card {
  position: relative;
  border-radius: 26px;
  padding: 26px clamp(18px, 2.2vw, 30px);
  background: var(--lg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  color: var(--lg-fg);
}
.look-light .lg-card {
  box-shadow: 0 24px 70px rgba(20, 40, 60, 0.16);
}
.lg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--lga), var(--co), var(--co2), transparent 45%, #22c3ff, var(--co));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: lgRot 6s linear infinite;
  pointer-events: none;
}
.lg-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}
.lg-sub {
  margin: 2px 0 0;
  color: var(--lg-mu);
  font-size: 14px;
}
.lg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lg-card .field label {
  color: var(--lg-mu);
}
.lg-in {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--lg-line);
  background: var(--lg-in);
  color: var(--lg-fg);
  font: 600 22px var(--font-display);
  text-align: center;
  padding: 0 10px;
}
.lg-in.pin {
  letter-spacing: 6px;
}
.lg-in:focus,
.lg-in.on {
  outline: none;
  border-color: var(--co);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--co) 30%, transparent);
}
.lg-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.lg-k {
  height: clamp(52px, 6.4vh, 64px);
  border-radius: 14px;
  border: 1px solid var(--lg-line);
  background: var(--lg-key);
  color: var(--lg-fg);
  font: 600 24px var(--font-display);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.lg-k:hover {
  background: var(--lg-keyh);
}
.lg-k:active {
  transform: scale(0.95);
  background: color-mix(in srgb, var(--co) 30%, transparent);
}
.lg-k.fn {
  font-size: 15px;
  font-family: var(--font-body);
}
.lg-go {
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--co2), var(--co) 55%, color-mix(in srgb, var(--co) 70%, #000));
  background-size: 200% 100%;
  color: #fff;
  font: 700 19px var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--co) 40%, transparent);
  animation: lgGs 4s ease-in-out infinite alternate;
}
.lg-go:disabled {
  opacity: 0.6;
}
.lg-go svg {
  width: 20px;
  height: 20px;
}
[dir='rtl'] .lg-go svg {
  transform: scaleX(-1);
}
@keyframes lgGs {
  to {
    background-position: 100% 0;
  }
}
.lg-hint {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--lg-mu);
  text-align: center;
}
.lg-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--lg-mu);
}
.lg-link {
  border: 0;
  background: none;
  padding: 0;
  color: color-mix(in srgb, var(--co2) 60%, #8fc4ff);
  font: inherit;
  cursor: pointer;
}
.look-light .lg-link {
  color: var(--co);
}
.lg-card .err {
  margin: 0;
}
.lg-foot {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--lg-mu);
  font-size: 13px;
}
.lg-foot .copyright {
  color: var(--lg-mu);
}
.lg-by b {
  color: var(--lg-fg);
  letter-spacing: 0.3px;
}
@media (max-width: 900px) {
  .lg-main {
    grid-template-columns: 1fr;
  }
  .lg-co {
    gap: 10px;
  }
  .lg-logo {
    width: 140px;
  }
  .lg-clock {
    font-size: 36px;
  }
  .lg-chips {
    display: none;
  }
  .lg-card {
    width: min(480px, 100%);
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg2 *,
  .lg2 *::before,
  .lg2 *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
}

/* Admin sign-in in the same look */
.lg-fields.one {
  grid-template-columns: 1fr;
}
.lg-in.tx {
  font: 500 18px var(--font-body);
  text-align: start;
  padding: 0 14px;
  height: 52px;
}
.lg-in.code {
  letter-spacing: 8px;
  font-size: 24px;
  height: 56px;
}
.lg-pw {
  position: relative;
}
.lg-pw .lg-in {
  padding-inline-end: 52px;
}
.lg-eye {
  position: absolute;
  inset-inline-end: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lg-mu);
  font-size: 18px;
  cursor: pointer;
}
.lg-eye[aria-pressed='true'] {
  background: color-mix(in srgb, var(--co) 22%, transparent);
}
.lg-hint.start {
  margin: 6px 0 0;
  text-align: start;
}
.lg-badge {
  font-weight: 600;
}
.lg-demo {
  position: fixed;
  bottom: 8px;
  inset-inline: 8px;
  margin: 0;
  text-align: center;
}

/* ===== background picture (Admin -> Design -> Background) ===== */
#posBg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  overflow: hidden;
}
html.bg-on #posBg {
  display: block;
}
#posBg::before {
  content: '';
  position: absolute;
  inset: calc(var(--bg-blur, 0px) * -2);
  background: var(--bg-img) center / cover no-repeat;
  filter: blur(var(--bg-blur, 0px));
}
#posBg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--bg-dim, 0.45));
}
html.bg-on body,
html.bg-on #app {
  background: transparent;
}
html.bg-on .login,
html.bg-on .home,
html.bg-on .home.hc,
html.bg-on .mc,
html.bg-on .pos {
  background: transparent;
}
html.bg-on .home-main,
html.bg-on .menu,
html.bg-on .mc-items {
  background: transparent;
}
html.bg-on .hc-grid {
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}

/* ===== Admin -> Design -> Sign-in page / Background ===== */
.lk-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.lk-btn {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-size: 14px;
}
.lk-btn[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  font-weight: 600;
}
.lk {
  position: relative;
  display: flex;
  gap: 8%;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  padding: 8%;
  background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--co) 45%, transparent), transparent 60%), linear-gradient(180deg, #0a1633, #050b1a);
}
.lk-light {
  background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--co) 30%, transparent), transparent 60%), linear-gradient(180deg, #fff, #e8edf1);
}
.lk-classic {
  background: #e9eef0;
}
.lk-co {
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: 1;
}
.lk-ring {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--co);
  background: #fff;
  box-shadow: 0 0 10px var(--co);
  animation: lgFloat 3s ease-in-out infinite;
}
.lk-co i,
.lk-card i {
  display: block;
  width: 70%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}
.lk-co i.s {
  width: 45%;
  opacity: 0.6;
}
.lk-light .lk-co i,
.lk-light .lk-card i,
.lk-classic .lk-card i {
  background: #b9c5cc;
}
.lk-card {
  flex: 1.1;
  display: grid;
  gap: 5px;
  justify-items: stretch;
  padding: 7%;
  border-radius: 8px;
  background: rgba(30, 45, 90, 0.75);
  border: 1px solid color-mix(in srgb, var(--co) 70%, transparent);
}
.lk-light .lk-card {
  background: #fff;
}
.lk-card.c {
  flex: 0 0 55%;
  background: #fff;
  border-color: #d2dadd;
}
.lk-card i {
  width: 100%;
}
.lk-card i.l {
  width: 40%;
  height: 9px;
  background: #0b6b66 !important;
}
.lk-card i.b {
  height: 9px;
  background: var(--co) !important;
}
.lk-classic .lk-card i.b {
  background: #0b6b66 !important;
}
.lk-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.lk-pad b {
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.lk-light .lk-pad b {
  background: #dfe5ea;
}
.lg-sw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lg-swb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.lg-swb[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--accent);
}
.lg-swb.auto {
  width: auto;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface-2, var(--surface));
  font-size: 13px;
}
.lg-swb.pick {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  display: inline-block;
}
.lg-swb.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.lg-grid {
  align-items: start;
}
.lg-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 14px;
}
.lgp-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #050b1a;
}
.lgp-in {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  transform-origin: 0 0;
  pointer-events: none;
  direction: inherit;
}
[dir='rtl'] .lgp-in {
  left: auto;
  right: 0;
  transform-origin: 100% 0;
}
.lgp-in > .lg2,
.lgp-in > .login {
  height: 100%;
  min-height: 0;
}
.lgp-in > .login {
  background: var(--bg);
}
.lgp-in.has-bg > .lg2,
.lgp-in.has-bg > .login {
  background: transparent;
}
.lgp-in.has-bg .lg-lights {
  display: none;
}
.lgp-bg,
.bg-box {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lgp-bg::before {
  content: '';
  position: absolute;
  inset: calc(var(--bg-blur, 0px) * -2);
  background: var(--bg-img) center / cover no-repeat;
  filter: blur(var(--bg-blur, 0px));
}
.lgp-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--bg-dim, 0.45));
}
.bg-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.bg-box {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-2, #f3f6f7);
}
.bg-box .bg-img {
  position: absolute;
  inset: calc(var(--bg-blur, 0px) * -2);
  background: center / cover no-repeat;
  filter: blur(var(--bg-blur, 0px));
}
.bg-box .bg-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--bg-dim, 0.45));
}
.bg-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 20px;
}
.bg-sliders input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
/* light look on a picture: the words outside the card turn white so they stay readable */
html.bg-on .look-light .lg-co,
html.bg-on .look-light .lg-foot,
.lgp-in.has-bg .look-light .lg-co,
.lgp-in.has-bg .look-light .lg-foot {
  --lg-fg: #fff;
  --lg-mu: rgba(255, 255, 255, 0.78);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
html.bg-on .look-light .lg-co .lg-pill,
.lgp-in.has-bg .look-light .lg-co .lg-pill {
  color: #13202a;
  text-shadow: none;
}

/* ---------- printing (Admin -> Connection -> Printing) ---------- */
.pr-fields {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.pr-help {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.pr-help ol {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 4px;
}
.ok-line {
  color: #1f7a2e;
  font-weight: 600;
  margin: 6px 0 0;
}
.pr-alt {
  justify-self: center;
  margin-top: -6px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.pr-fail {
  position: fixed;
  z-index: 60;
  bottom: 16px;
  inset-inline: 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid #b3261e;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.pr-fail p {
  margin: 0;
  font-size: 14px;
}
.pr-fail div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* discount target (Payment -> Discounts) and item discount under its line */
.dc-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 3px;
  min-height: 0;
}
.dc-target {
  margin: 0;
}
.dc-target button:disabled {
  opacity: 0.5;
}
.pt[aria-disabled='true'] {
  opacity: 0.45;
}
.ln-disc {
  color: #b3261e !important;
  font-weight: 600;
}

/* auto sign-out warning */
.idle-warn {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.55);
  padding: 16px;
}
.idle-warn > div {
  width: min(420px, 100%);
  background: var(--surface);
  color: var(--fg);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.idle-warn b {
  font-size: 20px;
}
.idle-warn p {
  margin: 0;
  color: var(--muted);
}

/* ===== screen layouts (Admin -> Design -> Screen designer): every page is a grid of cells ===== */
.lay {
  display: grid;
  gap: 3px;
  padding: 4px;
  height: 100%;
  box-sizing: border-box;
  direction: ltr;
  background: color-mix(in srgb, var(--fg) 16%, var(--bg));
  overflow: hidden;
}
.lay > * {
  direction: var(--pg-dir, rtl);
  min-width: 0;
  min-height: 0;
}
.lay > [hidden] {
  display: none !important;
}
/* a grid of buttons inside a part */
.bg-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 3px;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
/* buttons count from the start side: the right in Arabic, the left in English (the page parts stay as placed) */
.bgrid {
  display: grid;
  gap: 3px;
  min-height: 0;
  min-width: 0;
  direction: var(--pg-dir, rtl);
}
.bgrid > * {
  min-width: 0;
  min-height: 0;
}
.bgrid > .note,
.bgrid > .mc-empty {
  grid-column: 1 / -1;
}
.bg-wrap.bg-row {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) auto;
}
.bg-row .bg-pager {
  flex-direction: column;
  width: 44px;
}
.bg-row .bg-pager .mc-page {
  min-height: 0;
  width: 100%;
  padding: 0;
}
.bg-row .bg-pager span {
  min-width: 0;
  font-size: 11px;
}
.bg-wrap {
  overflow: hidden;
}
.bg-pager {
  display: flex;
  gap: 3px;
  align-items: center;
}
.bg-pager .mc-page {
  flex: 1;
  min-height: 34px;
}
.bg-pager span {
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
/* the parts */
.lay .mc-last {
  min-height: 0;
}
.lay .mc-tabs,
.lay .hc-tabs {
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.lay .mc-tabs [role='tab'] {
  flex: 1 0 auto;
  min-width: 84px;
  padding: 0 10px;
}
.lay .hc-tabs .bg-wrap {
  flex: 1;
  height: 100%;
}
.lay .hc-tabs .bgrid [role='tab'],
.lay .hc-tabs .bgrid button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.lay .hc-tabs .bgrid [role='tab'][aria-selected='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.lay .hc-lang {
  flex: 0 0 auto;
}
.lay .mc-ph {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3px;
}
.lay .mc-ph button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.lay .mc-ph button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.lay .mc-ph b {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5841a;
  color: #fff;
}
.lay .mc-bar {
  display: block;
  padding: 3px;
}
.lay .mc-bar .bgrid > .mb {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.2;
  padding: 2px 4px;
}
.lay .mc-items {
  display: block;
  overflow: hidden;
  min-height: 0;
}
.lay .mc-center {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 3px;
}
.lay .mc-center.has-cond {
  grid-template-rows: auto minmax(0, 1.7fr) auto minmax(0, 1fr) auto;
}
.lay .mc-center:has(.fn-wrap) {
  grid-template-rows: minmax(0, 1fr);
}
.lay .mc-center:has(.mc-paywrap) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lay .mc-title {
  min-height: 40px;
  flex-wrap: wrap;
}
.lay .mc-chef {
  min-height: 42px;
}
.lay .mc-paywrap.one {
  grid-template-columns: minmax(0, 1fr);
}
.lay .pt-grid2 .pt {
  min-height: 0;
}
/* keypad part: one column when tall, a row of keys when wide */
.lay .mc-pad {
  container-type: size;
  display: block;
}
.lay .mc-pad > .pp {
  height: 100%;
}
.pad-keys {
  display: grid;
  grid-template-rows: 44px repeat(12, minmax(0, 1fr));
  gap: 3px;
  height: 100%;
}
@container (min-aspect-ratio: 1/1) {
  .pad-keys {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pad-keys .mc-disp {
    grid-row: 1 / span 2;
  }
}
/* menu screens part: a column when tall, a row when wide */
.lay .mc-slus {
  container-type: size;
  display: block;
  overflow: hidden;
}
.slus-in {
  display: grid;
  grid-auto-rows: minmax(52px, 1fr);
  gap: 3px;
  height: 100%;
  overflow-y: auto;
}
@container (min-aspect-ratio: 2/1) {
  .slus-in {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .slus-in button {
    flex: 0 0 auto;
    min-width: 96px;
    padding: 4px 12px;
  }
}
.slus-in button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 4px;
}
.slus-in button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
/* home page parts */
.lay .hc-col {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}
.lay .hc-ops,
.lay .hc-mgr {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.lay .hc-ops .bgrid > .hb {
  grid-column: auto;
}
.lay .hc-side {
  display: block;
  min-height: 0;
}
.lay .hc-side .bgrid button {
  border: 0;
  background: #14171b;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px;
}
.lay .hc-side .bgrid button[aria-pressed='true'] {
  background: var(--hc-tab);
  color: var(--hc-tab-fg);
}
.lay .hc-grid {
  overflow-y: auto;
}
.lay.dev-phone .hc-tabs .bgrid button,
.lay.dev-phone .mc-tabs [role='tab'] {
  font-size: 14px;
}
.lay.dev-phone .mc-title {
  font-size: 16px;
}

.lay.dev-phone .mc-due-t {
  position: static;
  width: 100%;
  text-align: center;
}

/* ===== Admin -> Design -> Screen designer ===== */
.dz-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.dz-bar .seg {
  flex: 0 1 auto;
}
.dz-undo {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}
.dz-note {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.dz-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 899px) {
  .dz-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dz-stage {
  min-width: 0;
}
.dz-frame {
  width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  background: #c9d0d5;
  border: 8px solid #1d232a;
  border-radius: 14px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.dz-frame.dev-phone {
  max-width: 330px;
  border-radius: 26px;
  border-width: 10px;
}
.dz-frame.dev-desktop {
  border-radius: 6px;
}
.dz-page {
  position: absolute;
  inset: 3px;
  display: grid;
  gap: 2px;
  direction: ltr;
}
.dz-frame.parts .dz-page {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: calc(100% / var(--gc)) calc(100% / var(--gr));
}
.dz-reg {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #f4f6f8;
  border: 1.5px solid #7b8794;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  font-size: 10px;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.dz-frame:not(.parts) .dz-reg {
  cursor: pointer;
  touch-action: auto;
}
.dz-frame:not(.parts) .dz-reg.grp:hover {
  border-color: var(--accent);
}
.dz-reg.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: 2;
}
.dz-reg.drag,
.dz-btn.drag {
  opacity: 0.85;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.dz-reg.r-tabs,
.dz-reg.r-switch {
  background: #1d232a;
  color: #fff;
}
.dz-reg.r-bar {
  background: #b9cdd8;
}
.dz-reg.r-status {
  background: #2a3138;
  color: #ddd;
}
.dz-reg.r-check {
  background: #fff;
}
.dz-reg.r-pad {
  background: #4f7d8d;
  color: #fff;
}
.dz-reg.r-slus {
  background: #2a3138;
  color: #fff;
}
.dz-lbl {
  padding: 2px 4px;
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: var(--pg-dir, rtl);
}
.dz-ph {
  padding: 2px 4px;
  opacity: 0.6;
  overflow: hidden;
  direction: var(--pg-dir, rtl);
}
.dz-mini {
  display: grid;
  gap: 1px;
  padding: 1px;
  min-height: 0;
  direction: var(--pg-dir, rtl);
}
.dz-mb {
  background: var(--bc);
  color: var(--bf);
  font-size: 8.5px;
  line-height: 1.1;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
}
.dz-mb.faded,
.dz-btn.faded {
  opacity: 0.45;
}
.dz-h {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  cursor: nwse-resize;
  touch-action: none;
  z-index: 3;
}
.dz-page .dz-h {
  right: 0;
  left: auto;
}
.dz-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.dz-side {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.dz-sel {
  display: grid;
  gap: 6px;
}
.dz-sel b {
  font-size: 16px;
}
.dz-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-inline-end: 10px;
}
.dz-num b {
  min-width: 28px;
  text-align: center;
}
.dz-chips,
.dz-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.dz-moves {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dz-gedit {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.dz-gtools,
.dz-screen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.dz-screen .field {
  min-width: 140px;
}
.dz-gframe {
  width: 100%;
  max-height: 520px;
  margin: 0 auto;
  background: #c9d0d5;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}
.dz-gframe.narrow {
  max-width: 420px;
}
.dz-grid {
  height: 100%;
  display: grid;
  gap: 3px;
  position: relative;
}
.dz-cell {
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  min-width: 0;
  min-height: 0;
}
.dz-btn {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--bc);
  color: var(--bf);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.2;
  border-radius: 3px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  z-index: 1;
  overflow: hidden;
}
.dz-btn span {
  overflow-wrap: anywhere;
}
.dz-btn.sel {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  z-index: 2;
}
.dz-btn .dz-h {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, #fff 50%);
  opacity: 0.85;
}
[dir='rtl'] .dz-btn .dz-h {
  background: linear-gradient(225deg, transparent 50%, #fff 50%);
  cursor: nesw-resize;
}
.dz-pickpart {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.dz-sz {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 6px 0;
  width: 100%;
}
/* ---------- QR menu & orders ---------- */
.qr-wrap {
  display: grid;
  gap: 14px;
}
.qr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}
.qr-chips .chip {
  min-width: 52px;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.qr-big {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: #000;
}
.qr-big .qr-svg {
  width: min(300px, 70vw);
  aspect-ratio: 1;
}
.qr-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-tn {
  font-size: 22px;
}
.qr-url {
  font-size: 12px;
  color: #555;
  word-break: break-all;
  text-align: center;
  user-select: all;
}
.qr-rekey {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.qr-pill {
  position: fixed;
  z-index: 60;
  top: 8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #e1661f;
  color: #fff;
  font: 600 16px var(--font-display, inherit);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  animation: qrpill 1.4s ease-in-out infinite;
}
[dir='rtl'] .qr-pill {
  transform: translateX(50%);
}
.qr-pill b {
  background: #fff;
  color: #e1661f;
  border-radius: 999px;
  min-width: 26px;
  padding: 0 7px;
  text-align: center;
}
@keyframes qrpill {
  50% {
    box-shadow: 0 6px 26px rgba(225, 102, 31, 0.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qr-pill {
    animation: none;
  }
}
.qo-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
}
.qo-card {
  border: 1px solid var(--line);
  border-inline-start: 5px solid #e1661f;
  border-radius: var(--r);
  padding: 12px 14px;
  background: var(--surface, #fff);
}
.qo-card.failed {
  border-inline-start-color: #b3261e;
}
.qo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.qo-head .qo-st {
  margin-inline-start: auto;
  font-size: 13px;
  color: var(--muted);
}
.qo-lines {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.qo-lines li {
  display: flex;
  gap: 8px;
}
.qo-lines li > span:first-of-type {
  flex: 1;
}
.qo-lines small,
.qo-lines em {
  color: var(--muted);
  font-style: normal;
}
.qo-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qo-foot > b {
  margin-inline-end: auto;
  font-size: 17px;
}
.qo-done {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.qo-done li {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
#printRoot .qr-cards {
  display: none;
}
@media print {
  body.print-qr #printRoot {
    padding: 0;
  }
  body.print-qr #printRoot .qr-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
  }
  #printRoot .qr-card {
    break-inside: avoid;
    display: grid;
    justify-items: center;
    gap: 3mm;
    padding: 8mm 6mm;
    border: 0.4mm dashed #888;
    border-radius: 4mm;
    text-align: center;
    color: #000;
  }
  #printRoot .qr-card img {
    max-width: 30mm;
    max-height: 16mm;
    object-fit: contain;
  }
  #printRoot .qr-co {
    font-size: 15pt;
  }
  #printRoot .qr-card .qr-svg {
    width: 55mm;
    height: 55mm;
  }
  #printRoot .qr-card .qr-tn {
    font-size: 20pt;
  }
  #printRoot .qr-h {
    font-size: 12pt;
  }
  #printRoot .qr-card small {
    font-size: 9pt;
    color: #444;
  }
}
/* Admin -> item photos & descriptions */
.im-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.im-tools .input[type='search'] {
  flex: 1 1 220px;
  min-width: 0;
}
.im-count {
  font-size: 14px;
  color: var(--muted);
}
.im-bulk {
  cursor: pointer;
}
.im-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.im-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.im-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.im-name .tag {
  justify-self: start;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--chip, #eef2f3);
  color: var(--muted);
}
.im-edit {
  display: grid;
  grid-template-columns: 72px auto 1fr;
  gap: 10px;
  align-items: center;
}
.im-edit.compact {
  grid-template-columns: 64px 1fr;
}
.im-edit.compact .im-desc {
  grid-column: 1 / -1;
}
.im-ph {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chip, #eef2f3);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
}
.im-edit.compact .im-ph {
  width: 64px;
  height: 64px;
}
.im-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.im-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.im-desc {
  display: grid;
  gap: 6px;
  min-width: 0;
}
@media (max-width: 760px) {
  .im-row {
    grid-template-columns: 1fr;
  }
  .im-edit {
    grid-template-columns: 64px 1fr;
  }
  .im-desc {
    grid-column: 1 / -1;
  }
}
/* POS: item buttons with a photo */
.mi.mi-ph {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
}
.mi.mi-ph .mi-img {
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mi.mi-ph .mi-cap {
  display: grid;
  gap: 1px;
  padding: 4px 6px 6px;
  background: var(--bc);
  color: var(--bf);
}
.mi.mi-ph .mi-n {
  font-size: 0.92em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* device license line (Super Admin) */
.lic-bar {
  position: fixed;
  z-index: 70;
  bottom: 0;
  inset-inline: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: #f59e0b;
  color: #1c1300;
  font: 600 14px/1.4 var(--font-body, inherit);
  text-align: center;
  pointer-events: none;
}
.lic-bar.bad {
  background: #b3261e;
  color: #fff;
}
.lic-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--chip, #f4f7f8);
}
.lic-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: #e3f4e8;
  color: #1c6b37;
}
.lic-chip.warn {
  background: #fff3df;
  color: #8a5300;
}
.lic-chip.bad {
  background: #fde8e6;
  color: #a1221a;
}
