:root {
  --paper: #fff4e6;
  --paper-2: #fffdf9;
  --ink: #1c140f;
  --mute: #7a6a5c;
  --line: #f0d3b0;
  --copper: #ea580c;
  --copper-2: #f59e0b;
  --gold: #c2410c;
  --veg: #15803d;
  --nonveg: #b91c1c;
  --ok: #16a34a;
  --dock: #1c1410;
  --safe-t: 0px;
  --safe-b: 0px;
  --head: 0px;
  --dock-h: 82px;
  --qty-bg: #000000;
  --qty-ink: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
html, body, button, input, textarea, select {
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
}
body {
  background:
    radial-gradient(1100px 640px at 6% -8%, #1d4ed8 0%, transparent 52%),
    radial-gradient(980px 560px at 108% 6%, #0ea5e9 0%, transparent 48%),
    radial-gradient(860px 620px at 50% 118%, #1e3a8a 0%, transparent 52%),
    linear-gradient(155deg, #020617 0%, #0f172a 48%, #1e3a8a 100%);
  color: var(--ink);
}
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; font-family: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }

.app {
  height: 100%;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: var(--dock-h);
  overflow: visible;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(251, 191, 36, .22), transparent 60%),
    radial-gradient(460px 260px at 100% 12%, rgba(244, 63, 94, .12), transparent 58%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), 0 30px 80px rgba(15, 23, 42, .35);
}

.brand-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(280px 140px at 8% 110%, rgba(56, 189, 248, .38), transparent 62%),
    radial-gradient(320px 160px at 96% -10%, rgba(37, 99, 235, .5), transparent 58%),
    linear-gradient(135deg, #020617 0%, #0b1220 38%, #1e3a8a 100%);
  color: #e0f2fe;
  box-shadow: 0 14px 32px rgba(2, 6, 23, .4);
}
.brand-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .4;
  background-image:
    radial-gradient(circle at 18% 30%, #38bdf8 1.4px, transparent 1.8px),
    radial-gradient(circle at 72% 64%, #60a5fa 1.2px, transparent 1.7px),
    radial-gradient(circle at 42% 82%, #fff 1px, transparent 1.5px),
    radial-gradient(circle at 88% 28%, #93c5fd 1.3px, transparent 1.8px);
  background-size: 72px 72px, 90px 90px, 54px 54px, 110px 110px;
}
.status-bar {
  display: none;
}
.notch { display: none; }

.app-head {
  position: relative;
  color: #e0f2fe;
  padding: 5px 12px;
}
.head-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.resto { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 auto; }
.resto-copy { min-width: 0; }
.resto-mark {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  color: #fff;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .35);
  overflow: hidden; padding: 0;
}
.resto-mark img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff7ed; }
.resto-kicker {
  margin: 0; font-size: .64rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc;
}
.app-head h1 {
  margin: 0; font-family: Poppins, "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resto-place { margin: 3px 0 0; font-size: .8rem; font-weight: 650; color: #93c5fd; }
.resto-renew {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 14px;
  background: #000;
  color: #ffe14a;
  border: 0;
  border-bottom: 2px solid #ffe14a;
  border-radius: 0;
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes renewPulse {
  0%, 100% { background: #000; color: #ffe14a; border-bottom-color: #ffe14a; }
  50% { background: #ffe14a; color: #000; border-bottom-color: #000; }
}
.resto-renew.ok {
  background: #1c140f;
  color: #fde68a;
  border-bottom-color: transparent;
  animation: none;
}
.resto-renew.soon,
.resto-renew.bad {
  animation: renewPulse 1s ease-in-out infinite;
}
.resto-renew[hidden] { display: none !important; }
.resto-due {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid #fff7ed;
  background: #9a3412;
  color: #fff7ed;
  text-align: center;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}
#sheetDue h3,
#sheetDue .due-row,
#sheetDue .due-total,
#sheetDue .plan-note {
  font-family: Poppins, "Segoe UI", sans-serif;
}
#sheetDue h3 { font-size: 1.35rem; font-weight: 800; }
.resto-due[hidden] { display: none !important; }
.upd-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, .62);
}
.upd-scrim[hidden] { display: none !important; }
.upd-sheet {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 22px 18px;
  background: #161616;
  border-radius: 28px 28px 0 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  color: #fff;
}
.upd-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto;
  border-radius: 99px;
  background: #5c5c5c;
}
.upd-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.upd-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  background: #0f766e;
  object-fit: cover;
}
.upd-copy { min-width: 0; }
.upd-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8962e, #f6d56a);
  color: #1a1408;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.upd-copy b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.upd-copy p {
  margin: 2px 0 0;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.3;
}
.upd-notes {
  margin: 12px 0 0;
  color: #b5b5b5;
  font-size: 13px;
  line-height: 1.35;
}
.upd-notes[hidden] { display: none !important; }
.upd-prog { margin-top: 22px; }
.upd-prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upd-prog-row b {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.upd-prog-row span {
  color: #e6c15a;
  font-size: 18px;
  font-weight: 700;
}
.upd-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: #3a3a3a;
  overflow: hidden;
}
.upd-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: #e6c15a;
}
#updError {
  margin: 12px 0 0;
  color: #8e8e8e;
  font-size: 13px;
  line-height: 1.35;
}
#updError[hidden] { display: none !important; }
.upd-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #e2b84a, #f3d36a);
  color: #1a1408;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.upd-go svg { width: 22px; height: 22px; flex: 0 0 22px; }
.upd-go:disabled { cursor: default; }
.due-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(139, 90, 43, .16);
}
.due-row b { display: block; font-size: .95rem; }
.due-row small { color: #7a6654; font-weight: 650; }
.due-row strong { font-size: 1rem; white-space: nowrap; }
.due-total {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 16px;
  font-weight: 800;
}
#sheetDue .gate-go { width: 100%; }
.head-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .75rem; font-weight: 750;
  color: inherit;
}
.pill.live { background: rgba(22,163,74,.18); border-color: rgba(134,239,172,.35); color: #dcfce7; }
.pill.live svg { color: #86efac; }
#btnLogout { color: #fdba74; }
#btnKotLogout { color: #bbf7d0; }
.modes {
  display: flex; gap: 8px; margin-top: 12px;
}
.mode {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  border: 1px solid rgba(147, 197, 253, .28);
  background: rgba(2, 6, 23, .35);
  color: #dbeafe;
  border-radius: 12px;
  font-weight: 700; font-size: .82rem; line-height: 1;
}
.mode svg { width: 16px; height: 16px; display: block; }
.mode.on { background: #f73a3a; color: #fff; border-color: #f73a3a; }

.order-modes {
  display: none;
  gap: 6px;
  margin: 0 0 8px;
}
.order-mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 800;
  font-size: .72rem;
  line-height: 1;
}
.order-mode svg { width: 15px; height: 15px; display: block; }
.order-mode.on {
  background: #f73a3a;
  color: #fff;
  border-color: #f73a3a;
}
.edit-bill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  flex: 0 0 auto;
}
.edit-bill[hidden] { display: none !important; }
.edit-bill-row { display: flex; align-items: center; gap: 6px; }
.edit-bill-row > span {
  width: 34px;
  flex: 0 0 34px;
  font-size: .68rem;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
}
.edit-bill-picks { display: flex; gap: 4px; flex: 1; min-width: 0; }
.edit-bill-picks button {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 4px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 800;
  font-size: .68rem;
}
.edit-bill-picks button.on {
  background: #f73a3a;
  color: #fff;
  border-color: #f73a3a;
}
.edit-bill-split { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-bill-split[hidden] { display: none !important; }
.edit-bill-split label {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .62rem;
  font-weight: 800;
  color: var(--mute);
}
.edit-bill-split input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 8px;
  font-weight: 800;
  background: #fff;
}
.edit-bill-split p { flex: 1 1 100%; margin: 0; font-size: .72rem; font-weight: 750; color: var(--mute); }
.edit-bill-split p.ok { color: var(--ok); }
.edit-bill-split p.bad { color: var(--nonveg); }
#viewMenu.is-desk-split .edit-bill { order: 0; margin: 0 0 6px; }
.pay-card .pay-modes {
  display: flex;
  margin: 0 0 10px;
}
.pay-card .delivery-pick { margin: 0 0 10px; }

.delivery-pick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.delivery-pick[hidden] { display: none !important; }
.del-partners { display: flex; align-items: center; gap: 6px; width: 100%; flex-wrap: nowrap; }
.del-partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px 0 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, .35);
  background: rgba(2, 6, 23, .35);
  color: #dbeafe;
  font-weight: 800;
  font-size: .75rem;
  line-height: 1;
}
.del-partner.on[data-partner="Zomato"] {
  background: #E23744;
  color: #fff;
  border-color: #E23744;
}
.del-partner.on[data-partner="Swiggy"] {
  background: #FC8019;
  color: #fff;
  border-color: #FC8019;
}
.del-partner.on .del-logo circle,
.del-partner.on .del-logo rect { fill: #fff; }
.del-partner.on[data-partner="Zomato"] .del-logo text { fill: #E23744; }
.del-partner.on[data-partner="Swiggy"] .del-logo text { fill: #FC8019; }
.del-logo { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.del-token {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 72px;
  height: 40px;
  margin: 0;
  color: #9a3412;
}
.del-token input {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, .4);
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  font-size: .88rem;
  padding: 14px 10px 0;
  text-transform: none;
  letter-spacing: 0;
}
.del-token span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1;
  transition: top .14s ease, transform .14s ease, font-size .14s ease;
}
.del-token input:focus + span,
.del-token input:not(:placeholder-shown) + span {
  top: 6px;
  transform: none;
  font-size: .55rem;
}
.delivery-pick.in-menu { margin: 0 0 8px; flex: 0 0 auto; }
.delivery-pick.in-menu .del-partner {
  background: #fff;
  color: #1c140f;
  border-color: var(--line);
}
.delivery-pick.in-menu .del-partner.on[data-partner="Zomato"] {
  background: #E23744;
  color: #fff;
  border-color: #E23744;
  box-shadow: 0 0 0 2px rgba(226, 55, 68, .28);
}
.delivery-pick.in-menu .del-partner.on[data-partner="Swiggy"] {
  background: #FC8019;
  color: #fff;
  border-color: #FC8019;
  box-shadow: 0 0 0 2px rgba(252, 128, 25, .32);
}
.delivery-pick.in-menu .del-token { color: #9a3412; }
.delivery-pick.in-menu .del-token input { border-color: var(--line); }

.shell {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  position: relative;
  gap: 0;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(251, 191, 36, .22), transparent 60%),
    radial-gradient(460px 260px at 100% 12%, rgba(244, 63, 94, .12), transparent 58%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}
.stage {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  padding: 12px 12px 8px;
  overflow: hidden;
}
.view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.view.on { display: flex; }
.view-h h2 { margin: 0; font-family: Poppins, "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.view-h h2 svg { color: var(--copper); width: 22px; height: 22px; display: block; }
.view-h p { margin: 4px 0 12px; color: var(--mute); font-weight: 650; }

.page-hero {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0 0 12px;
  padding: 12px 12px 13px;
  border-radius: 22px;
  color: #e0f2fe;
  background:
    radial-gradient(240px 110px at 108% -10%, rgba(56, 189, 248, .42), transparent 62%),
    radial-gradient(180px 90px at -8% 120%, rgba(234, 88, 12, .38), transparent 58%),
    linear-gradient(135deg, #020617 0%, #0b1220 40%, #1e3a8a 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .28);
}
.page-hero-lite { grid-template-columns: minmax(0, 1fr) auto; }
.page-back {
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 247, 237, .1);
  color: #fdba74;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(253, 186, 116, .4);
}
.page-back svg { width: 18px; height: 18px; display: block; }
.page-back:active { transform: scale(.94); background: rgba(234, 88, 12, .28); }
.page-back-light {
  background: #fff7ed;
  color: #9a3412;
  box-shadow: inset 0 0 0 1.5px #f0d3b0;
}
.page-back-light:active { background: #ffedd5; }
.page-hero-copy { min-width: 0; }
.page-kicker {
  margin: 0 0 2px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fdba74;
}
.page-hero h2 {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.page-hero p:not(.page-kicker) {
  margin: 4px 0 0;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
  color: #bae6fd;
}
.page-hero-crest,
.page-hero-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #ea580c, #9a3412);
  color: #fff7ed;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(154, 52, 18, .35);
}
.page-hero-crest img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-ico { background: rgba(255, 247, 237, .12); box-shadow: inset 0 0 0 1px rgba(253, 186, 116, .28); color: #fdba74; }
.page-hero-ico svg { width: 22px; height: 22px; display: block; }

.menu-tools { display: flex; align-items: center; gap: 8px; }
.search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 12px;
  color: var(--mute);
  box-shadow: 0 8px 20px rgba(28,20,15,.04);
}
.search input {
  flex: 1; height: 46px; border: 0; background: transparent; outline: none; font-weight: 650;
  min-width: 0;
}
.search-mic {
  width: 36px; height: 36px; flex: 0 0 36px;
  border: 0; border-radius: 12px; padding: 0;
  display: grid; place-items: center;
  background: #fff1e6; color: #9a3412;
}
.search-mic svg { width: 18px; height: 18px; display: block; }
.search-mic.is-on {
  background: #f73a3a; color: #fff;
  box-shadow: 0 0 0 4px rgba(247, 58, 58, .2);
}
.voice-listen[hidden] { display: none !important; }
.voice-listen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 16, .62);
}
.voice-listen-card {
  width: min(340px, 100%);
  margin: 0;
  padding: 28px 22px 20px;
  border-radius: 28px;
  background: #1a1c2b;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  text-align: center;
  color: #fff;
}
.voice-orb {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
}
.voice-orb-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 60, 80, .5), rgba(255, 60, 80, 0) 70%);
  animation: voicePulse 1.35s ease-out infinite;
}
.voice-orb-ring-2 { inset: 0; animation-delay: .35s; }
.voice-orb-btn {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff5d6c, #e11d3a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(225, 29, 58, .45);
}
.voice-orb-btn svg { width: 30px; height: 30px; display: block; }
.voice-listen-card b {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.voice-listen-card p {
  margin: 8px 18px 0;
  color: #a7adbe;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.6em;
}
.voice-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin: 14px 0 18px;
}
.voice-bars i {
  display: block;
  width: 5px;
  border-radius: 99px;
  background: #ff4d5e;
  transform-origin: center bottom;
  animation: voiceBar .85s ease-in-out infinite;
}
.voice-bars i:nth-child(1) { height: 10px; }
.voice-bars i:nth-child(2) { height: 16px; animation-delay: .12s; }
.voice-bars i:nth-child(3) { height: 24px; animation-delay: .22s; }
.voice-bars i:nth-child(4) { height: 15px; animation-delay: .08s; }
.voice-bars i:nth-child(5) { height: 9px; animation-delay: .18s; }
.voice-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #e8eaf2;
  font: 700 .95rem/1 Poppins, "Segoe UI", sans-serif;
}
@keyframes voicePulse {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes voiceBar {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.search { padding-right: 6px; }
.cat-switch {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  color: var(--copper);
  display: grid; place-items: center;
  padding: 0;
}
.cat-switch svg { width: 20px; height: 20px; display: block; }
.veg-switch {
  display: flex;
  flex: 0 0 auto;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(28,20,15,.04);
}
.veg-switch button {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.veg-switch button + button { border-left: 1px solid var(--line); }
.veg-switch .veg { margin: 0; width: 11px; height: 11px; }
.veg-switch button.on[data-menu-veg="veg"] {
  background: #dcfce7;
  color: #166534;
}
.veg-switch button.on[data-menu-veg="non"] {
  background: #fee2e2;
  color: #9f1239;
}
.veg-switch button.on[data-menu-veg="all"] {
  background: #1c140f;
  color: #fff7ed;
}
.veg-switch button:active { transform: none; }
.live-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  flex: 0 0 auto;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  color: var(--mute);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(28,20,15,.04);
  position: relative;
}
.live-switch[hidden] { display: none !important; }
.live-switch .live-knob {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 99px;
  background: #d6d3d1;
  flex: 0 0 28px;
}
.live-switch .live-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.live-switch.on {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}
.live-switch.on .live-knob { background: #16a34a; }
.live-switch.on .live-knob::after { transform: translateX(12px); }
.live-switch:active { transform: none; }
.live-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(220, 38, 38, .45);
  pointer-events: none;
}
.live-count-badge[hidden] { display: none !important; }
.live-count-badge.is-pop { animation: liveCountPop .55s cubic-bezier(.16, 1, .3, 1); }
.live-switch.has-live { border-color: #4ade80; }
.modes .live-switch.has-live { color: #dcfce7; border-color: #4ade80; }
.live-switch.is-new { animation: liveSwitchNudge .55s ease; }
@keyframes liveCountPop {
  0% { transform: scale(.35); }
  55% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes liveSwitchNudge {
  0%, 100% { transform: none; }
  35% { transform: translateY(-2px) scale(1.05); }
}
.order-modes .live-switch,
.modes .live-switch {
  flex: 0 0 auto;
  height: 38px;
  align-self: center;
}
.modes .live-switch {
  height: 40px;
  background: rgba(2, 6, 23, .35);
  border-color: rgba(147, 197, 253, .28);
  color: #dbeafe;
  box-shadow: none;
}
.modes .live-switch.on {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}
#viewMenu.cat-vert.is-live-orders .menu-split {
  grid-template-columns: 56px minmax(0, 1fr);
}
#viewMenu.cat-vert.is-live-orders .cats {
  width: 56px;
  max-width: 56px;
  min-width: 0;
}
#viewMenu.is-live-orders .cats {
  gap: 8px;
  min-width: 0;
  align-items: center;
  overflow-x: hidden;
}
#viewMenu.is-live-orders .cat.live-cat {
  flex: 0 0 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 48px;
  max-width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  border-radius: 14px;
  text-align: center;
  overflow: visible;
  font-size: 0;
  line-height: 0;
  background: #fffdf9;
  box-shadow: 0 6px 14px rgba(28, 20, 15, .05);
}
#viewMenu.cat-horiz.is-live-orders .cat.live-cat {
  flex: 0 0 54px;
}
#viewMenu.is-live-orders .cat.live-cat .cat-ico {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: 0;
  border-radius: 14px;
}
#viewMenu.is-live-orders .cat.live-cat .live-cat-name,
#viewMenu.cat-vert.is-live-orders .cat.live-cat > span:not(.cat-ico),
#viewMenu.is-live-orders .cat.live-cat > span:not(.cat-ico) {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#viewMenu.is-live-orders .cat.live-cat .cat-badge {
  top: 2px;
  right: 2px;
  transform: none;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: .68rem;
  background: #ea580c;
  box-shadow: 0 4px 10px rgba(234, 88, 12, .28);
}
#viewMenu.cat-vert.is-live-orders .cat.live-cat.on .cat-badge,
#viewMenu.is-live-orders .cat.live-cat.on .cat-badge {
  background: #fff;
  color: var(--cat-on, #202e65);
}
#viewMenu.cat-vert.is-live-orders .cat.live-cat.on,
#viewMenu.is-live-orders .cat.live-cat.on {
  background: linear-gradient(145deg, #1e3a8a, #172554);
}
#viewMenu.is-live-orders .grid-wrap,
#viewMenu.is-live-orders .grid.is-live {
  min-width: 0;
  width: 100%;
}
#viewMenu.is-live-orders .menu-split {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}
#viewMenu.is-live-orders .cats { display: none !important; }
#viewMenu.is-live-orders .grid.is-live {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px;
  align-content: start;
  padding-top: 2px;
  overflow: auto;
}
.live-filter {
  display: flex;
  margin-top: 8px;
}
.live-filter[hidden] { display: none !important; }
.live-filter .live-group { flex: 1; height: 40px; }
.live-filter .live-group button {
  flex: 1;
  justify-content: center;
  gap: 6px;
}
.live-filter .live-group button svg {
  width: 16px;
  height: 16px;
  display: block;
}
.live-filter .live-group button.on {
  background: #1e3a8a;
  color: #fff;
}
@keyframes liveArrive {
  0% { opacity: 0; transform: translateY(18px) scale(.9); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.035); }
  100% { opacity: 1; transform: none; }
}
@keyframes liveArriveRing {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, .55); }
  100% { box-shadow: 0 0 0 14px rgba(234, 88, 12, 0); }
}
#viewMenu.is-live-orders .dish.is-arrive {
  content-visibility: visible;
  animation: liveArrive .62s cubic-bezier(.16, 1, .3, 1) both, liveArriveRing .9s ease-out;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  #viewMenu.is-live-orders .dish.is-arrive,
  .live-slip.is-gone,
  .dish.live-dish.is-gone,
  .live-count-badge.is-pop,
  .live-switch.is-new { animation: none; }
}
.live-tok-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 158px;
  border-radius: 19px 19px 0 0;
  color: #fff;
  background: linear-gradient(165deg, #1d4ed8 0%, #1e3a8a 46%, #172554 100%);
}
.live-tok-face span {
  color: #93c5fd;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.live-tok-face b {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.live-tok-sub {
  margin: 2px 0 0;
  color: #9a3412;
  font-size: .78rem;
  font-weight: 800;
}
.live-tok-who {
  margin: 2px 0 0;
  min-height: 1.25em;
  color: #1e3a8a;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-tok-who {
  margin: 2px 0 0;
  min-height: 1.25em;
  color: #1e3a8a;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-slip-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.live-slip-name b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
}
.live-slip-name .veg { flex: 0 0 auto; }
.live-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas: "pic copy" "pic meta";
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 20px;
  color: #e0f2fe;
  background:
    radial-gradient(140px 70px at 100% 0%, rgba(251, 191, 36, .35), transparent 70%),
    linear-gradient(135deg, #020617 0%, #172554 58%, #1e3a8a 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
}
.live-head-photo { grid-area: pic; }
.live-head-copy { grid-area: copy; }
.live-head-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.live-head-photo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #fdba74;
  overflow: hidden;
}
.live-head-photo svg { width: 24px; height: 24px; }
.live-head-photo.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-head-copy { min-width: 0; }
.live-head-copy small {
  display: block;
  color: #7dd3fc;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.live-head-copy b {
  display: -webkit-box;
  margin-top: 2px;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.live-head-stat {
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}
.live-head-stat b {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live-head-stat span {
  display: block;
  margin-top: 2px;
  color: #bfdbfe;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-head-stat.is-plates {
  background: #fff7ed;
  color: #9a3412;
}
.live-head-stat.is-plates span { color: #c2410c; }
.live-slip {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: 0 10px 22px rgba(28, 20, 15, .08);
}
.live-slip-token {
  position: relative;
  display: flex;
  flex: 0 0 76px;
  width: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px;
  color: #fff;
  background: linear-gradient(165deg, #1d4ed8 0%, #1e3a8a 46%, #172554 100%);
}
.live-slip-token span {
  color: #93c5fd;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-slip-token b {
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.live-slip-guest {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  color: #1e3a8a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-slip-guest + .live-qty-stamp {
  flex: 0 0 72px;
  width: 72px;
  align-items: center;
  text-align: center;
  padding: 0;
}
.live-slip-token em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-align: left;
}
.live-slip-token.has-name {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  align-items: flex-start;
  padding: 10px 12px;
}
.live-slip-token.has-name + .live-qty-stamp {
  flex: 0 0 72px;
  width: 72px;
  align-items: center;
  text-align: center;
  padding: 0;
}
.live-slip-token em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-align: left;
}
.live-slip-token.has-name {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  align-items: flex-start;
  padding: 10px 12px;
}
.live-slip-token.has-name + .live-qty-stamp {
  flex: 0 0 72px;
  width: 72px;
  align-items: center;
  text-align: center;
  padding: 0;
}
.live-qty-stamp {
  width: auto;
  height: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}
.live-qty-stamp b {
  color: #c2410c;
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live-qty-stamp span {
  margin-top: 1px;
  color: #9a3412;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-ready {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 44px;
  min-width: 68px;
  margin: 0 8px 0 0;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 16px rgba(22, 163, 74, .32);
}
.live-ready svg { width: 16px; height: 16px; display: block; }
@keyframes liveSlipLeave {
  0% { opacity: 1; transform: none; }
  42% { opacity: 1; transform: translateX(14px) scale(.98); }
  100% { opacity: 0; transform: translateX(72px) scale(.88); min-height: 0; padding-top: 0; padding-bottom: 0; }
}
@keyframes liveCardLeave {
  0% { opacity: 1; transform: scale(1); }
  32% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(.7) translateY(18px); }
}
.dish.live-dish.is-gone {
  animation: liveCardLeave .5s cubic-bezier(.4, 0, 1, 1) forwards;
  pointer-events: none;
}
.live-ready:active { transform: scale(.97); }
.live-slip.is-gone {
  animation: liveSlipLeave .52s cubic-bezier(.4, 0, .2, 1) forwards;
  pointer-events: none;
  overflow: hidden;
}
.live-dish .live-count {
  top: 6px;
  right: 6px;
  left: auto;
}
#sheetLiveTokens { z-index: 46; }
#sheetLiveTokens .live-token-card {
  width: min(440px, 100%);
  padding-bottom: calc(var(--dock-h, 72px) + var(--safe-b) + 16px);
}
#sheetLiveTokens .live-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#sheetLiveTokens .live-slip { align-items: center; }
#sheetLiveTokens .live-slip.is-token {
  align-items: center;
  min-height: 72px;
  padding: 8px 0;
}
#sheetLiveTokens .live-slip.is-token .live-slip-name {
  flex: 1 1 auto;
  align-items: center;
  padding: 0 12px;
}
#sheetLiveTokens .live-slip.is-token .live-slip-name b {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.3;
  font-size: 1rem;
}
#sheetLiveTokens .live-slip.is-token .live-qty-stamp {
  flex: 0 0 76px;
  width: 76px;
  align-items: center;
  text-align: center;
  padding: 0;
}
#sheetLiveTokens .live-slip.is-token .live-ready {
  align-self: center;
}
.live-count {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: #ea580c;
  color: #fff;
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(234, 88, 12, .4);
}
.grid-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.grid-ptr {
  flex: 0 0 0;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--copper);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.grid-ptr.is-on,
.pull-ptr.is-on {
  flex-basis: 36px;
  height: 36px;
}
.pull-ptr {
  flex: 0 0 0;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--copper);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pull-ptr.is-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: gate-spin .7s linear infinite;
}
.grid-ptr svg { width: 16px; height: 16px; display: block; }
.grid-ptr:not(.is-busy) svg { display: none; }
.menu-split {
  flex: 1; min-height: 0;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
#viewMenu.cat-vert .menu-split {
  grid-template-columns: minmax(68px, 10%) minmax(0, 90%);
}
#viewMenu.cat-horiz .menu-split {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
}
.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  position: relative;
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 76px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 18px;
  padding: 9px 10px 8px;
  font-weight: 800; font-size: .72rem; color: var(--mute);
  line-height: 1.15;
}
.cat span { text-align: center; }
.cat-ico {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: #f3e4d4; color: #9a3412;
  overflow: hidden;
}
.cat-ico svg { width: 22px; height: 22px; display: block; }
.cat-ico.has-photo { padding: 0; background: #efe4d6; }
.cat-ico.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-ico.cat-ini { font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.cat.on {
  background: #f73a3a; border-color: #f73a3a; color: #fff;
  box-shadow: 0 10px 18px rgba(247, 58, 58, .25);
}
.cats.is-sorting { touch-action: none; }
.cat.is-drag {
  position: relative;
  z-index: 4;
  opacity: .96;
  transform: scale(1.05);
  box-shadow: 0 14px 24px rgba(28, 20, 15, .28);
}
.cat-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ea580c;
  color: #fff;
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}
.cat.on .cat-ico { background: #fff; color: #f73a3a; }
.cat.on .cat-ico.has-photo { box-shadow: inset 0 0 0 2px #fff; }

#viewMenu.cat-vert .cats {
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px 8px 0;
  gap: 6px;
}
#viewMenu.cat-vert .cat {
  min-width: 0;
  width: 100%;
  padding: 8px 4px 7px;
  font-size: .58rem;
  border-radius: 14px;
}
#viewMenu.cat-vert .cat span {
  max-width: 100%;
  word-break: break-word;
}
#viewMenu.cat-vert .cat-ico {
  width: 42px; height: 42px; border-radius: 14px;
}
#viewMenu.cat-vert .cat .cat-ico { word-break: normal; }
#viewMenu.cat-vert .cat-ico svg { width: 18px; height: 18px; }
#viewMenu.cat-vert .cat.on {
  background: var(--cat-on, #202e65);
  border-color: var(--cat-on, #202e65);
  color: var(--cat-ink, #fff);
  box-shadow: 0 10px 18px rgba(32, 46, 101, .28);
}
#viewMenu.cat-vert .cat.on span { color: inherit; }
#viewMenu.cat-vert .cat.on .cat-ico { color: var(--cat-on, #202e65); }
.tone-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(140px 90px at 100% 0%, rgba(234, 88, 12, .18), transparent 72%),
    linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  border: 1px solid rgba(234, 88, 12, .24);
  box-shadow: 0 12px 24px rgba(154, 52, 18, .06);
}
.tone-card-h b {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.tone-card-h small {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 650;
  color: var(--mute);
}
.tone-studio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#menuQtyBox .tone-studio {
  padding: 8px;
  border-radius: 16px;
  background:
    radial-gradient(90px 60px at 0% 100%, rgba(15, 23, 42, .08), transparent 70%),
    linear-gradient(180deg, #fffdfb, #f4efe8);
  border: 1px solid rgba(28, 20, 15, .06);
}
.master-form label.tone-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f7f2eb 100%);
  border: 1px solid rgba(28, 20, 15, .08);
  box-shadow: 0 8px 16px rgba(28, 20, 15, .06), inset 0 1px 0 #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.master-form .tone-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}
.tone-swatch:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .2), inset 0 1px 0 #fff;
}
.tone-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 34px;
  background: var(--orb, #111);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .72),
    inset 0 -8px 10px rgba(0, 0, 0, .2),
    0 6px 12px rgba(28, 20, 15, .16);
  position: relative;
}
.tone-orb::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  transform: rotate(-18deg);
  pointer-events: none;
}
.tone-meta {
  display: grid;
  gap: 1px;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: 0;
}
.tone-meta b {
  font-size: .68rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.tone-meta small {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.tone-live-qty {
  display: inline-flex;
  align-items: stretch;
  height: 36px;
  margin-left: auto;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 8px 16px rgba(28, 20, 15, .16);
}
.tone-live-qty span {
  display: grid;
  place-items: center;
  min-width: 28px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
}
.tone-live-qty .tone-minus,
.tone-live-qty .tone-plus {
  background: var(--qty-bg, #000);
  color: var(--qty-ink, #fff);
}
.tone-live-qty .tone-num {
  min-width: 22px;
  background: #fffbeb;
  color: #7c2d12;
  font-size: .78rem;
}
.tone-live-cat {
  margin-left: auto;
  min-width: 72px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--cat-on, #202e65);
  color: var(--cat-ink, #fff);
  font-weight: 800;
  font-size: .72rem;
  box-shadow: 0 10px 18px rgba(32, 46, 101, .28);
}
#viewMenu.cat-vert .grid-wrap,
#viewMenu.cat-horiz .grid-wrap { min-height: 0; }
#viewMenu.cat-vert .grid,
#viewMenu.cat-horiz .grid { margin-top: 0; min-height: 0; flex: 1; }
#viewMenu.cat-horiz .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid {
  margin-top: 10px; overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  align-content: start;
  flex: 1;
  min-height: 0;
  padding-bottom: 28px;
}
.grid.is-pick-top .pick-band {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  align-content: start;
}
#viewMenu.cat-horiz .grid.is-pick-top .pick-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.is-pick-top .pick-band {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  align-content: start;
}
#viewMenu.cat-horiz .grid.is-pick-top .pick-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dish {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  padding: 0; text-align: left;
  background: var(--paper-2);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 10px 22px rgba(28,20,15,.05);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 248px;
}
.dish:active { transform: scale(.97); }
.dish.in {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22,163,74,.28), 0 10px 22px rgba(28,20,15,.08);
}
.dish-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 158px;
  margin: 0;
  padding: 0;
  background-color: #e6e1dc;
  background-image: linear-gradient(90deg, #e6e1dc 0%, #f6f3f0 42%, #e6e1dc 84%);
  background-size: 220% 100%;
  animation: bb-shimmer 1.15s ease-in-out infinite;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
}
.dish-photo.is-ready {
  animation: none;
  background-image: none;
  background-color: #fff7ed;
}
.dish.in .dish-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,163,74,.18), rgba(22,163,74,.08) 40%, transparent 70%);
  pointer-events: none;
}
.dish-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: #c4a484;
}
.dish-photo img {
  display: block;
  width: 100%;
  height: 158px;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center 62%;
  vertical-align: top;
  opacity: 0;
}
.dish-photo img.is-in { opacity: 1; transition: opacity .18s ease; }
#viewMenu .dish-photo {
  position: relative;
  overflow: hidden;
  background-color: #e4e6eb;
}
#viewMenu .dish-photo > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.16);
  transform-origin: center center;
}
@keyframes bb-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.bb-shimmer {
  background-color: #e4e6eb;
  background-image: linear-gradient(90deg, #e4e6eb 0%, #e4e6eb 35%, #f7f8fa 50%, #e4e6eb 65%, #e4e6eb 100%);
  background-size: 240% 100%;
  animation: bb-shimmer 1.2s linear infinite;
}
.dish.skel {
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
  background: #f0f2f5;
}
.dish.skel:active { transform: none; }
.skel-line {
  display: block;
  height: 12px;
  width: 74%;
  margin-top: 8px;
  border-radius: 999px;
}
.skel-line.skel-short { width: 38%; height: 10px; }
.cat.skel {
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
  background: #f0f2f5;
}
.cat.skel .skel-line { width: 70%; height: 8px; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .bb-shimmer, .dish-photo { animation: none; }
  .dish-photo img.is-in { transition: none; }
}
.dish-photo, .live-tok-face { flex: 0 0 auto; }
.dish-body { padding: 9px 11px 11px; min-width: 0; }
.dish-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.dish h3 {
  margin: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.price { margin: 5px 0 0; font-weight: 800; color: var(--gold); }
.veg {
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid var(--veg);
  display: grid; place-items: center; margin-top: 3px;
}
.veg i { width: 6px; height: 6px; border-radius: 50%; background: var(--veg); }
.veg.no { border-color: var(--nonveg); }
.veg.no i { background: var(--nonveg); }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-block;
  background: rgba(28,20,15,.78); color: #fff;
  font-size: .66rem; font-weight: 800; line-height: 1.2;
  padding: 4px 8px; border-radius: 999px;
}
.badge-most {
  background: linear-gradient(180deg, #f59e0b, #ea580c);
  color: #fff7ed;
  box-shadow: 0 6px 12px rgba(234, 88, 12, .35);
}
.dish-code {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: inline-block;
  background: #fffbeb; color: #7c2d12;
  border: 1px solid #fff;
  font-size: .68rem; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 3px 6px; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(28, 20, 15, .22);
}
.food-code { font-weight: 800; color: #7c2d12; font-variant-numeric: tabular-nums; }
.dish-tick {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 6px 14px rgba(22,163,74,.45);
}
.dish-tick em { font-style: normal; min-width: .7em; text-align: center; }
.dish-code-row {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
}
.dish-step {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dish-step-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fffbeb;
  color: #7c2d12;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dish-step-btn.is-off {
  opacity: 1;
  background: transparent;
  color: #78716c;
}
.dish-step [data-step-minus] {
  background: transparent;
  color: #1c1917;
}
.dish.in .dish-step [data-step-minus] {
  background: var(--qty-bg, #000000);
  color: var(--qty-ink, #ffffff);
}
.dish-step [data-step-plus] {
  background: var(--qty-bg, #000000);
  color: var(--qty-ink, #ffffff);
}
.dish-step em {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  height: 30px;
  min-width: 0;
  padding: 0 4px;
  border-radius: 0;
  background: #fffbeb;
  text-align: center;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #7c2d12;
}
.dish.in .dish-step em { color: #14532d; }
.dish.picked {
  border-color: #f73a3a;
  box-shadow: 0 0 0 2px rgba(247, 58, 58, .38), 0 10px 22px rgba(28,20,15,.08);
}
.dish-pick {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f73a3a; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(247, 58, 58, .4);
}
.dish-pick svg { width: 16px; height: 16px; display: block; }
.dish-drag {
  position: absolute; right: 8px; bottom: 8px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(28, 20, 15, .85); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 18px rgba(28, 20, 15, .35);
  cursor: grab; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.dish-drag svg { width: 22px; height: 22px; display: block; }
.dish-drag:active { cursor: grabbing; transform: scale(1.1); }
.grid.is-reordering .dish-code { right: 50px; }
.grid.is-sorting { touch-action: none; }
.dish.is-drag {
  position: relative; z-index: 6;
  opacity: .96; transform: scale(1.04);
  border-color: #ff6b35;
  box-shadow: 0 18px 34px rgba(28, 20, 15, .32);
}
.dish.is-drop-target {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .45), 0 14px 26px rgba(28, 20, 15, .2);
  transform: scale(1.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.grid.is-picking { padding-bottom: 168px; }
.pick-bar, .pick-cats { position: fixed; left: 12px; right: 12px; z-index: 34; }
.pick-bar {
  bottom: calc(var(--dock-h) + var(--safe-b) + 10px);
  display: grid;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #2a211c 0%, #161311 100%);
  color: #fff;
  border: 1px solid rgba(255, 236, 214, .14);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(20, 12, 8, .38);
}
.pick-bar[hidden], .pick-cats[hidden] { display: none !important; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-bar b {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.pick-bar b::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%;
  background: #f73a3a;
  box-shadow: 0 0 0 4px rgba(247, 58, 58, .2);
  vertical-align: 1px;
}
.pick-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pick-bar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 8px; border: 0; border-radius: 14px;
  font: 800 .78rem/1 inherit;
}
.pick-bar button svg { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
.pick-bar .pick-x {
  width: 36px; height: 36px; padding: 0;
  background: rgba(255,255,255,.08); color: #fff;
  border-radius: 12px;
}
.pick-bar .pick-copy { background: #fff7ed; color: #9a3412; }
.pick-bar .pick-move { background: #e0f2fe; color: #075985; }
.pick-bar .pick-del { background: #fee2e2; color: #b91c1c; }
.pick-cats {
  bottom: calc(var(--dock-h) + var(--safe-b) + 118px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - var(--dock-h) - var(--safe-b) - 136px);
  overflow: hidden;
  padding: 12px;
  background: #fffdfb;
  border: 1px solid #f3e6d8;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(28, 20, 15, .18);
}
.pick-cats-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pick-cats button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #f0e2d4;
  background: #fff;
  color: #3f2a22;
  border-radius: 14px;
  padding: 6px 8px;
  font: 800 .82rem/1 inherit;
  text-align: left;
  box-shadow: 0 4px 10px rgba(90, 42, 18, .04);
}
.pick-cats button span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-cats button em {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pick-cats .cat-ico { width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto; }
.pick-cats .cat-ico svg { width: 18px; height: 18px; }
.pick-cats button:active { background: #fff1e6; border-color: #f73a3a; color: #9a3412; }
.pick-cats-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  color: #1c1410;
}

.ticket {
  display: flex; flex-direction: column;
  background: #fffaf4;
  border-left: 1px solid var(--line);
  padding: 14px 14px 20px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.ticket-h { display: flex; justify-content: space-between; align-items: flex-start; }
.kicker {
  margin: 0 0 2px; font-size: .66rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper);
}
.ticket h2 { margin: 0; font-family: Poppins, "Segoe UI", sans-serif; font-size: 1.35rem; }
.order-staff { margin: 8px 0 0; }
.order-staff[hidden] { display: none !important; }
.order-staff-chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.order-staff-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: .78rem;
}
.order-staff-chip.on { background: #111; color: #fff; border-color: #111; }
.order-table-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 2px;
  -webkit-overflow-scrolling: touch;
}
.order-table-chips[hidden] { display: none !important; }
.order-table-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 12px;
  padding: 8px 10px;
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: .78rem;
}
.order-table-chip small {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f3ebe3;
  font-size: .68rem;
  text-align: center;
}
.order-table-chip.on { background: #111; color: #fff; border-color: #111; }
.order-table-chip.on small { background: #fff; color: #111; }
.ticket.is-order-board .ticket-foot,
.ticket.is-order-board #btnClear { display: none !important; }
.order-board {
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.order-board-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
  font-family: Poppins, "Segoe UI", sans-serif;
}
.order-board-h b {
  display: block;
  font-weight: 800;
  font-size: .98rem;
}
.order-board-h small,
.order-board-sum small {
  display: block;
  margin-top: 2px;
  color: var(--mute);
  font-size: .72rem;
  font-weight: 700;
}
.order-board-sum { text-align: right; }
.order-board-sum b { font-size: .92rem; }
.order-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf4;
  text-align: left;
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
}
.order-card:last-child { margin-bottom: 0; }
.order-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.order-card-who { min-width: 0; }
.order-card-who b { display: block; font-size: .95rem; font-weight: 800; }
.order-card-who small { display: block; margin-top: 2px; color: var(--mute); font-size: .7rem; font-weight: 700; }
.order-card-top strong { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.order-photos { display: flex; align-items: center; }
.order-photo {
  width: 46px;
  height: 46px;
  margin-left: -10px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #fff;
  background: #efe4d6;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.order-photo:first-child { margin-left: 0; }
.order-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-ph, .order-more {
  font-size: .68rem;
  font-weight: 800;
  color: #9a3412;
}
.order-more { background: #111; color: #fff; font-size: .72rem; }
.order-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.order-cats i {
  font-style: normal;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 800;
}
.order-names {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}
.order-card-party {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 800;
}
.order-card-party.is-all { background: #111; color: #fff; border-color: #111; }
.order-card-meta {
  color: var(--mute);
  font-size: .74rem;
  font-weight: 700;
}
.ghost {
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 6px 12px;
  font-weight: 750; color: var(--mute);
  display: inline-flex; align-items: center; gap: 6px;
}
.ghost:disabled {
  opacity: .38;
  pointer-events: none;
}
.ticket-h,
.totals,
.ticket-foot {
  flex: 0 0 auto;
}
.lines {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 6px 0 4px;
  display: grid;
  align-content: start;
  gap: 6px;
}
.empty-bill { margin: 24px 8px; text-align: center; color: var(--mute); font-weight: 650; font-size: .9rem; }
.line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-height: 56px;
}
.line img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #e8d5c0;
}
.line b {
  display: block;
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}
.line small {
  display: block;
  color: var(--mute);
  font-weight: 650;
  font-size: .74rem;
  line-height: 1.2;
  margin-top: 2px;
}
.line .line-amt { color: var(--ink); font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 800;
  font-size: 1.1rem; line-height: 1;
}
.stepper button:disabled {
  opacity: .35;
  pointer-events: none;
}
.stepper em { font-style: normal; min-width: 22px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.stepper-qty {
  width: 42px; height: 32px; margin: 0; padding: 0 2px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; text-align: center; font-weight: 800; font-size: 1.05rem;
  color: inherit; font-family: inherit; -webkit-appearance: none; appearance: none;
}
.stepper-qty:focus { outline: 2px solid #f59e0b; outline-offset: 1px; }
.stepper-qty:disabled { opacity: .35; }
.totals {
  display: grid;
  gap: 6px;
  padding: 6px 0 4px;
  border-top: 1px dashed var(--line);
  background: #fffaf4;
}
.tot-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 5px;
}
.tot-bar[hidden],
.tot-manual[hidden],
.pay-disc[hidden],
#discAmtRow[hidden] { display: none !important; }
.tot-manual {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
}
.tot-manual .switch-lab {
  width: 100%;
  color: #9a3412;
  font-weight: 800;
}
.tot-manual input {
  margin-left: auto;
  width: 128px;
  height: 42px;
  text-align: right;
  font-weight: 800;
  font-size: 1.15rem;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #9a3412;
}
.line-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: #9a3412;
  display: grid;
  place-items: center;
}
.line-x:disabled { opacity: .35; pointer-events: none; }
.tot-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 7px 5px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
}
.tot-cell span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
}
.tot-cell b,
.tot-cell strong {
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tot-cell.tot-collect {
  background: #fff7ed;
  border-color: #fdba74;
}
.tot-cell.tot-collect span { color: #c2410c; }
.tot-cell.tot-collect strong { color: #9a3412; font-size: 1rem; }
.tot-disc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.tot-disc .switch-lab {
  flex: 1 1 auto;
  min-width: 0;
}
.tot-disc input {
  width: 78px;
  height: 32px;
  text-align: right;
  font-weight: 800;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 8px;
  background: #fff;
  flex: 0 0 auto;
}
.tot-disc input:disabled {
  opacity: .5;
  background: #f3ece4;
  color: var(--mute);
  pointer-events: none;
}
.switch-lab {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 10px; font-weight: 800; font-size: .86rem;
}
.switch {
  width: 44px; height: 26px; border: 0; border-radius: 999px;
  background: #d6c4b4; position: relative; padding: 0; flex: 0 0 auto;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(28,20,15,.25);
  transition: transform .16s ease;
}
.switch.on { background: #16a34a; }
.switch.on::after { transform: translateX(18px); }
.switch:disabled { opacity: .4; }
.disc-amt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.disc-amt input {
  width: 108px; text-align: right; font-weight: 800;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 10px; background: #fff;
}
.disc-amt input:disabled {
  opacity: .5;
  background: #f3ece4;
  color: var(--mute);
  pointer-events: none;
}
.pay-disc {
  margin: 4px 0 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  display: grid; gap: 8px;
}
.pay-due {
  margin: 0 0 10px; padding: 8px 12px;
  border-radius: 12px; background: #fff7ed; color: #9a3412;
  font-weight: 700; font-size: .78rem;
}
.pay-print-copy {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.pay-print-set {
  display: grid;
  gap: 8px;
  margin: -4px 0 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink, #1c140f);
}
.pay-print-picks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.pay-print-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid #e7d3c4;
  background: #fffaf4;
  color: #9a3412;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
}
.pay-print-picks button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.pay-print-picks button.on {
  background: #f73a3a;
  border-color: #f73a3a;
  color: #fff;
}
.pay-print-set[hidden] { display: none; }
.ticket-foot {
  padding: 4px 0 6px;
  background: #fffaf4;
}
.ticket-acts {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  background: #fffaf4;
}
.ticket-acts .receipt-btn,
.ticket-acts .kot-btn,
.ticket-acts .pay,
.ticket-acts .ghost-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  margin: 0;
  width: auto;
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 800;
  padding: 0 6px;
  gap: 4px;
  box-shadow: none;
}
.ticket-acts .receipt-btn svg,
.ticket-acts .kot-btn svg,
.ticket-acts .pay svg,
.ticket-acts .ghost-btn svg {
  width: 14px;
  height: 14px;
}
.receipt-btn {
  height: 38px;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #1c140f;
  color: #fff7ed;
  font-weight: 800;
  font-size: .76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: none;
}
.receipt-btn[hidden] { display: none !important; }
.receipt-btn svg { width: 14px; height: 14px; display: block; flex: 0 0 auto; }
.receipt-btn.is-busy::before {
  left: 50%;
  margin-left: -8px;
}
.receipt-btn.is-busy::after { content: ""; }
.kot-btn {
  height: 38px;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #166534;
  color: #ecfdf3;
  font-weight: 800;
  font-size: .76rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
  box-shadow: none;
}
.kot-btn svg { width: 14px; height: 14px; display: block; flex: 0 0 auto; }
.kot-btn span { display: inline-block; }
.kot-btn.is-on { display: inline-flex; }
.kot-btn.is-busy::before {
  left: 50%;
  margin-left: -24px;
}
.kot-btn.is-busy::after {
  content: "Wait";
  color: #ecfdf3;
}
.kot-btn.is-sent {
  background: #fff;
  color: #166534;
  border: 1.5px solid #86efac;
  box-shadow: none;
}
.line-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pay, .ghost-btn {
  margin-top: 0; height: 54px; width: 100%;
  border: 0; border-radius: 16px;
  background: #f73a3a;
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 10px 20px rgba(247, 58, 58, .25);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pay:disabled { opacity: .4; box-shadow: none; }
.ghost-btn { background: #1c140f; box-shadow: none; }
.print-help {
  margin: 2px 0 0;
  font-size: .78rem;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mute);
  line-height: 1.45;
}
.print-help a { color: #c2410c; font-weight: 800; }
.print-status {
  margin: 4px 0 0;
  font-size: .82rem;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.print-status.ok { color: #166534; }
.print-status.off { color: var(--mute); }
.print-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.print-actions .ghost-btn,
.print-actions .print-btn,
#btnSavePrint.print-btn {
  margin: 0;
  height: 52px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(28, 20, 15, .12);
}
.print-actions .print-btn svg,
#btnSavePrint.print-btn svg {
  flex-shrink: 0;
}
#btnConnectPrinter,
.print-btn-connect {
  background: #f73a3a;
  box-shadow: 0 8px 16px rgba(194, 65, 12, .28);
}
#btnConnectPrinter.is-live,
.print-btn-connect.is-live {
  background: linear-gradient(180deg, #22c55e, #15803d);
  box-shadow: 0 8px 16px rgba(22, 163, 74, .28);
}
#btnForgetPrinter,
.print-btn-forget {
  background: linear-gradient(180deg, #94a3b8, #475569);
  box-shadow: 0 8px 16px rgba(71, 85, 105, .22);
}
#btnTestPrint,
.print-btn-test {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 16px rgba(37, 99, 235, .28);
}
#btnSavePrint,
.print-btn-save {
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  box-shadow: 0 8px 16px rgba(15, 118, 110, .28);
}

#viewMore.on { overflow: hidden; }
#viewMore .page-hero {
  margin-bottom: 8px;
  padding: 8px 10px 9px;
  border-radius: 18px;
}
#viewMore .page-hero h2 { font-size: 1.12rem; }
#viewMore .page-hero p:not(.page-kicker) { margin: 0; font-size: .72rem; }
.master-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 3px;
  flex: 0 0 auto;
  padding: 3px;
  margin: 0 0 8px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.master-tabs button[hidden] { display: none; }
.master-tabs button {
  min-height: 44px;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 11px;
  color: var(--mute);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  line-height: 1.15;
  white-space: nowrap;
}
.master-tabs button svg {
  width: 16px; height: 16px;
  display: block;
}
.master-tabs button.on {
  background: #9a3412;
  color: #fff7ed;
  box-shadow: 0 8px 16px rgba(154, 52, 18, .22);
}
.master-find {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0 0 8px;
}
.master-find-ico {
  position: absolute;
  left: 14px;
  top: 17px;
  color: #9a3412;
  pointer-events: none;
}
.master-find input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 22px 36px 8px 40px;
  border: 1px solid rgba(154, 52, 18, .18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(28, 20, 15, .05);
  font: inherit;
  font-weight: 750;
  color: var(--ink);
  text-align: left;
}
.master-find span {
  position: absolute;
  left: 40px;
  top: 16px;
  font-size: .84rem;
  font-weight: 800;
  color: var(--mute);
  pointer-events: none;
  transition: top .12s ease, font-size .12s ease, color .12s ease;
}
.master-find input::placeholder { color: transparent; }
.master-find input:focus::placeholder { color: #a89888; }
.master-find input:focus + span,
.master-find input:not(:placeholder-shown) + span {
  top: 6px;
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c2410c;
}
.master-find input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .16);
}
.master-find-empty {
  flex: 0 0 auto;
  margin: -2px 2px 8px;
  color: #9a3412;
  font-size: .78rem;
  font-weight: 750;
}
.master-find-empty[hidden] { display: none !important; }
.master-form > .is-find-off,
.master-form .master-grid > .is-find-off,
.master-grid.is-find-off { display: none !important; }
.master-body {
  flex: 1;
  min-height: 0;
  position: relative;
}
.master-pane {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}
.master-pane.on { display: block; }
#paneFood.master-pane.on,
#paneCats.master-pane.on {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 8px;
}
.master-pane[hidden] { display: none !important; }
.master-form {
  display: grid; gap: 10px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.master-form label {
  display: grid; gap: 4px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--mute);
}
.master-form .switch-lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 800;
}
.qr-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.qr-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qr-box-copy { min-width: 0; }
.qr-box-copy b {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.qr-box-copy small {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--mute);
  text-transform: none;
  letter-spacing: 0;
}
.qr-box .switch {
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
  background: #d6c4b4;
}
.qr-box .switch::after {
  width: 24px;
  height: 24px;
}
.qr-box .switch.on { background: #16a34a; }
.qr-box .switch.on::after { transform: translateX(22px); }
.qr-box #mUpiWrap[hidden] { display: none !important; }
.qr-box #mDeskSpeedWrap[hidden] { display: none !important; }
.qr-box #mUpiWrap { display: grid; gap: 6px; }
.master-form input, .master-form textarea, .master-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font: inherit; font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  margin-top: 22px;
}
.check-row input { width: 18px; height: 18px; accent-color: #ea580c; }
#uStayRow[hidden],
#uStayNote[hidden] { display: none !important; }
#uStayRow { margin-top: 12px; }
.check-row.tight { margin-top: 0; font-size: .82rem !important; }
.access-lab {
  margin: 14px 0 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.access-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf4;
}
.dock-shell.is-no-rpt { grid-template-columns: 1fr 1fr 1.25fr 1fr; }
#btnKotDesk { color: #fdba74; }
#btnFloor { color: #bbf7d0; }
.food-desk {
  margin: 0;
  flex: 0 0 auto;
  background: #ffedd5;
  z-index: 4;
}
.food-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: #ffedd5;
  padding: 0 0 8px;
}
.food-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.food-search { margin: 0; min-width: 0; box-shadow: none; border-radius: 12px; }
.food-search input { height: 40px; }
.food-add {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #9a3412;
  color: #fff7ed;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}
.food-add svg { width: 18px; height: 18px; display: block; }
.food-add-row { display: flex; gap: 8px; align-items: center; position: relative; flex: 0 0 auto; }
.food-scan {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.menu-scan-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-scan-shot {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72px;
  margin: 0 auto 6px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff7ed;
}
.menu-scan-shot[hidden] { display: none; }
.menu-scan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(54vh, 460px);
  overflow: auto;
  margin: 0 0 8px;
}
.menu-scan-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.menu-scan-row.is-have { background: #fffaf4; }
.menu-scan-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3e4d4;
}
.menu-scan-photo img, .menu-scan-ph {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: #c2410c;
  background: #f3e4d4;
}
.menu-scan-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.menu-scan-main input[data-scan-name] {
  width: 100%;
  height: 30px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  background: #fff;
}
.menu-scan-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
}
.menu-scan-amt {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  font-weight: 800;
  color: #9a3412;
}
.menu-scan-amt input,
.menu-scan-line select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 6px;
  font: inherit;
  font-size: .78rem;
  background: #fff;
}
.menu-scan-amt input { width: 52px; padding: 0 4px; }
.menu-scan-del {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.menu-scan-veg {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.menu-scan-veg input {
  width: 15px;
  height: 15px;
  margin: 0;
}
.menu-scan-note {
  grid-column: 1 / -1;
  color: var(--mute);
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sheetMenuScan .sheet-card header { margin-bottom: 6px; }
#sheetMenuScan .sheet-card header h3 { font-size: 1.2rem; }
#sheetMenuScan .pay-sub {
  margin: 0 0 8px;
  font-size: .75rem;
  line-height: 1.3;
}
#sheetMenuScan .master-grid { gap: 8px; }
.food-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.food-rail::-webkit-scrollbar { display: none; }
.food-filter-row {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0;
}
.food-filter-kind {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.food-filter-row button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--mute);
  font-weight: 800;
  font-size: .68rem;
  white-space: nowrap;
}
.food-filter-row button.on {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff7ed;
}
.food-filter-kind button[data-food-veg="veg"].on { background: #166534; border-color: #166534; }
.food-filter-kind button[data-food-veg="non"].on { background: #9a3412; }
.food-count {
  margin: 0 2px 6px;
  color: var(--mute);
  font-size: .65rem;
  font-weight: 700;
}
.food-list {
  display: grid;
  gap: 6px;
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  align-content: start;
}
.food-sec {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 8px 2px 7px;
  background: #ffedd5;
  box-shadow: 0 10px 12px #ffedd5;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a3412;
}
.food-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 8px;
  cursor: pointer;
}
.food-row.off { opacity: .55; }
.food-row img, .food-ph {
  width: 44px; height: 44px; object-fit: cover; border-radius: 11px;
  background: #f3e4d4; display: grid; place-items: center; font-weight: 800; color: #c2410c;
}
.food-copy { min-width: 0; }
.food-row b {
  display: block;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.food-row small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--mute);
  font-weight: 650;
  margin-top: 2px;
  font-size: .66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.food-rs {
  font-size: .8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: -.02em;
}
.veg-dot {
  width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1.4px currentColor;
}
.veg-dot.veg { color: #15803d; background: #dcfce7; }
.veg-dot.non { color: #b91c1c; background: #fee2e2; }
.food-acts {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.user-row .food-acts { grid-template-columns: none; }
.food-acts button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.food-acts button svg { width: 14px; height: 14px; display: block; }
.food-acts .act-edit { color: #9a3412; border-color: #f0d3b0; background: #fff7ed; }
.food-acts .act-hide { color: #b91c1c; }
.food-acts .act-del { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.food-acts .act-show { color: #15803d; background: #f0fdf4; }
#btnAddFood,
#btnAddUser {
  margin: 0;
  width: auto;
  height: 40px;
  padding: 0 14px;
  flex: 0 0 auto;
}
#btnAddFood.food-add {
  width: 40px;
  padding: 0;
}
.user-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
}
.user-row.off { opacity: .5; }
.user-ph {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #9a3412;
  color: #fff7ed;
  flex: 0 0 auto;
}
.user-ph svg { width: 18px; height: 18px; }
.user-ph.is-cashier { background: #0369a1; }
.user-ph.is-manager { background: #7c2d12; }
.user-ph.is-kot-user { background: #ea580c; }
.user-row b {
  display: block;
  font-size: .86rem;
  font-weight: 700;
}
.user-row b em {
  font-style: normal;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
}
.user-row small {
  display: block;
  color: var(--mute);
  font-weight: 600;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.user-row .food-copy { min-width: 0; }
.cat-master {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.cat-add {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px;
  background:
    radial-gradient(160px 80px at 100% 0%, rgba(234, 88, 12, .12), transparent 70%),
    linear-gradient(180deg, #fffdf9, #fff6ec);
  border: 1px solid #f0d3b0;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(90, 42, 18, .06);
}
.cat-add-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.cat-photo-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  padding: 0;
  border: 1.5px dashed #e7b48a;
  background: #fff7ed;
  color: #9a3412;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.cat-photo-btn:has(img) { border-style: solid; border-color: #f0d3b0; }
.cat-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-add .photo-file {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0);
}
.cat-add-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.cat-note {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--mute);
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.35;
}
.cat-cancel {
  flex: 0 0 auto;
  border: 0;
  background: #fff7ed;
  color: #9a3412;
  font: 800 .72rem/1 inherit;
  border-radius: 999px;
  padding: 6px 10px;
}
.cat-cancel[hidden] { display: none; }
.cat-board {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: none;
  background: transparent;
  border: 0;
  -webkit-overflow-scrolling: touch;
}
.cat-cards {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fffdf9;
  border: 1px solid #f0d3b0;
  border-radius: 18px;
  overflow: hidden;
}
.cat-cards .empty-bill { margin: 0; padding: 22px 14px; }
.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f3e6d8;
  border-radius: 0;
  padding: 10px 10px 10px 14px;
}
.cat-card:last-child { border-bottom: 0; }
.cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: #9a3412;
}
.cat-card:nth-child(3n+2)::before { background: #c2410c; }
.cat-card:nth-child(3n)::before { background: #b45309; }
.cat-card.on { background: #ffedd5; }
.cat-card-photo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff7ed, #f3e4d4);
  display: grid;
  place-items: center;
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(154, 52, 18, .1);
}
.cat-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-photo svg { width: 20px; height: 20px; display: block; }
.cat-card-copy { min-width: 0; }
.cat-card-copy b {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-copy small {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff1e4;
  color: #9a3412;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.cat-card-acts {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.cat-card-acts button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid #f0d3b0;
  border-radius: 12px;
  background: #fff;
  color: #7a6a5c;
}
.cat-card-acts button svg { width: 15px; height: 15px; display: block; }
.cat-card-acts .cat-edit { color: #9a3412; background: #fff7ed; }
.cat-card-acts .cat-del { color: #b91c1c; border-color: #fecaca; background: #fff; }
.cat-add-row input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  border: 1px solid #f0d3b0;
  border-radius: 16px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
}
.cat-add-row input::placeholder { color: #b7a394; font-weight: 650; }
.cat-add-row input:focus {
  outline: none;
  border-color: #9a3412;
  box-shadow: 0 0 0 3px rgba(154, 52, 18, .12);
}
.cat-add .ghost-btn {
  margin: 0;
  width: auto;
  min-width: 72px;
  max-width: none;
  height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  background: #9a3412;
  color: #fff7ed;
  box-shadow: 0 8px 16px rgba(154, 52, 18, .2);
  white-space: nowrap;
  font-size: .88rem;
}
.cat-add .ghost-btn svg { width: 16px; height: 16px; display: block; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-weight: 800; font-size: .78rem;
}
.cat-chip button {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #fee2e2; color: #b91c1c;
  display: grid; place-items: center; padding: 0;
}
.cat-chip button.cat-edit { background: #fff7ed; color: #9a3412; }
.cat-chip.on { border-color: #c2410c; background: #fff7ed; }
.cat-chip button svg { width: 12px; height: 12px; }
.cat-chip.lock { padding-right: 12px; color: var(--mute); }
.food-sheet {
  max-height: min(88vh, 740px);
  overflow: auto;
}
.food-sheet .master-form { margin: 0; padding: 0; border: 0; background: transparent; }
.exp-form { margin: 12px 0 10px; min-width: 0; max-width: 100%; }
.exp-kinds {
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}
#sheetExpense .sheet-card { overflow-x: hidden; }
.exp-list { display: grid; gap: 8px; margin: 0 0 8px; }
.exp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 12px;
}
.exp-row b { display: block; font-size: .84rem; font-weight: 800; }
.exp-row small { display: block; color: var(--mute); font-weight: 650; margin-top: 2px; font-size: .7rem; }
.exp-row strong { font-weight: 800; color: #9a3412; }
.exp-row button {
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: #fee2e2; color: #b91c1c;
  display: grid; place-items: center; padding: 0;
}
.exp-row button.exp-edit { background: #f4efe8; color: #1c140f; }
.exp-row.is-on { border-color: #1c140f; }
.food-master .master-grid .ghost-btn { margin-top: 0; }
#sheetFood #btnSaveFood,
#sheetFood #btnNewFood { grid-column: auto; margin-top: 0; }
.pill svg { display: block; }
.master-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#panePrint .master-grid { grid-template-columns: 1fr; }
.logo-pick {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(120px 60px at 0% 0%, rgba(234, 88, 12, .12), transparent 70%),
    #fff;
  border: 1.5px dashed #fdba74;
}
.lic-now {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  background: #1c140f;
  color: #fff7ed;
}
.lic-now-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(251, 191, 36, .16); color: #fbbf24;
}
.lic-now-copy { flex: 1; min-width: 0; }
.lic-now-copy b { color: #fff !important; font-size: .92rem !important; }
.lic-now-copy small { color: #fdba74 !important; margin: 1px 0 0 !important; font-size: .72rem; }
.lic-now-go {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #38bdf8, #2563eb); color: #fff;
  font: 800 .82rem/1 Poppins, "Segoe UI", sans-serif;
}
.logo-pick b { display: block; font-size: .9rem; color: var(--ink); }
.logo-pick small { display: block; font-weight: 650; color: var(--mute); margin: 2px 0 8px; }
.logo-pick .photo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.name-suggest { display: grid; gap: 4px; text-transform: none; letter-spacing: 0; }
.name-suggest-list { display: grid; gap: 6px; }
.name-suggest-list[hidden] { display: none !important; }
.name-suggest-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 5px 12px 5px 5px;
  border: 1px solid #f0d3b0;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 6px 14px rgba(28, 20, 15, .05);
  color: #1c140f;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  font-weight: 700;
}
.name-suggest-list button span {
  min-width: 0;
  line-height: 1.2;
}
.name-suggest-list img,
.name-suggest-ph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff7ed;
}
.name-suggest-ph {
  display: grid;
  place-items: center;
  color: #c4a484;
  font-weight: 800;
  font-size: 1.1rem;
}
.gal-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 2px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: 16px;
  text-align: left;
  color: #166534;
}
.gal-hit[hidden] { display: none !important; }
.gal-hit img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #dcfce7;
}
.gal-hit b { display: block; font-size: .8rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.gal-hit small { display: block; margin-top: 1px; font-size: .68rem; font-weight: 700; color: #15803d; }
.photo-pick-copy { min-width: 0; flex: 1; }
.photo-pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-pick-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  font-size: .78rem;
}
.food-gen {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.food-gen[hidden] { display: none; }
.food-gen img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid var(--line);
}
.food-gen img[hidden] { display: none; }
.food-gen-wait {
  margin: 0;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: 16px;
  background: #1c140f;
  color: #fff7ed;
  font-weight: 800;
  text-align: center;
}
.food-gen-wait[hidden] { display: none; }
.food-gen-wait::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #ffe14a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.photo-pick-btn.is-busy {
  color: transparent !important;
}
.photo-pick-btn.is-busy::after {
  content: "";
  color: transparent;
}
.photo-pick-btn.is-busy::before {
  left: 50%;
  margin-left: -8px;
  border-color: #fdba74;
  border-top-color: #ea580c;
}
.food-gen-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.logo-preview {
  width: 72px; height: 72px; border-radius: 20px; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #ea580c, #9a3412); color: #fff7ed;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 10px 18px rgba(154, 52, 18, .28);
  cursor: pointer;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
#sheetCrop { z-index: 46; }
#sheetPhotoPick { z-index: 45; }
.photo-src-sheet { width: min(420px, 100%); }
.photo-src-list { display: grid; gap: 10px; margin-top: 4px; }
.photo-src {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 18px;
  padding: 12px 14px;
}
.photo-src b { display: block; font-size: .95rem; }
.photo-src small { display: block; color: var(--mute); font-weight: 650; margin-top: 2px; }
.photo-src-ico {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #fff7ed; color: #9a3412;
}
.photo-src:active { transform: scale(.98); }
.gallery-sheet {
  z-index: 47;
  place-items: stretch;
  background: rgba(28,20,15,.55);
}
.gallery-card {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding: calc(10px + var(--safe-t)) 12px calc(12px + var(--safe-b));
  background:
    radial-gradient(900px 420px at 0% -20%, rgba(234, 88, 12, .16), transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fff4e6 100%);
}
.gallery-card header { flex: 0 0 auto; }
.gallery-card .menu-tools { flex: 0 0 auto; margin-top: 8px; }
.gallery-desk .menu-split {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  display: grid;
  grid-template-columns: minmax(68px, 10%) minmax(0, 90%);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  overflow: hidden;
}
.gallery-desk .cats {
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 2px 8px 0;
  gap: 6px;
}
.gallery-desk .cat {
  min-width: 0;
  width: 100%;
  padding: 8px 4px 7px;
  font-size: .58rem;
  border-radius: 14px;
}
.gallery-desk .cat span { max-width: 100%; word-break: break-word; }
.gallery-desk .cat-ico { width: 34px; height: 34px; border-radius: 12px; }
.gallery-desk .cat-ico svg { width: 18px; height: 18px; }
.gallery-desk .grid-wrap {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-desk .grid {
  margin-top: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: 16px;
}
.gallery-desk .gal-dish {
  box-shadow: 0 4px 10px rgba(28, 20, 15, .06);
  content-visibility: visible;
  contain: none;
}
.gal-dish .dish-body { padding-bottom: 12px; }
@media (max-width: 720px) {
  .gallery-desk .menu-split { grid-template-columns: 58px minmax(0, 1fr); }
}
.crop-sheet { max-height: min(calc(100dvh - 24px), 720px); }
.crop-stage {
  display: grid;
  place-items: center;
  padding: 4px 0 12px;
}
.crop-frame.is-menu {
  width: min(88vw, 360px);
  height: min(58vh, 480px);
  border-radius: 18px;
}
.crop-frame.is-land {
  width: min(92vw, 480px);
  height: calc(min(92vw, 480px) * 9 / 16);
  border-radius: 16px;
}
#noteCrop { z-index: 80; }
#noteCrop .crop-acts .admin-btn { width: 100%; }
.menu-scan-load {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 8px 8px;
  text-align: center;
}
.menu-scan-load[hidden] { display: none; }
.menu-scan-load b {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}
.menu-scan-load p {
  margin: 0;
  max-width: 260px;
  color: var(--mute);
  font-size: .82rem;
  font-weight: 650;
}
.menu-scan-orb {
  width: 76px;
  height: 76px;
  margin-bottom: 4px;
  border-radius: 26px;
  background: #fff7ed;
  color: #9a3412;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px #fdba74;
}
.menu-scan-spin {
  position: absolute;
  inset: -5px;
  border-radius: 30px;
  border: 3px solid #ffedd5;
  border-top-color: #9a3412;
  animation: menu-scan-spin .8s linear infinite;
}
.menu-scan-bar {
  width: min(100%, 220px);
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: #ffedd5;
  overflow: hidden;
}
.menu-scan-bar i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: #9a3412;
}
@keyframes menu-scan-spin { to { transform: rotate(360deg); } }
#sheetMenuScan .sheet-card.is-reading .pay-sub,
#sheetMenuScan .sheet-card.is-reading #menuScanShot,
#sheetMenuScan .sheet-card.is-reading #menuScanList,
#sheetMenuScan .sheet-card.is-reading .master-grid { display: none; }
.menu-scan-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.menu-scan-note {
  color: var(--mute);
  font-size: .72rem;
  font-weight: 700;
}
.crop-frame {
  position: relative;
  width: min(78vw, 300px);
  height: min(78vw, 300px);
  border-radius: 28px;
  overflow: hidden;
  background: #1c140f;
  touch-action: none;
  cursor: grab;
  box-shadow: inset 0 0 0 2px rgba(253, 186, 116, .55);
}
.crop-frame:active { cursor: grabbing; }
.crop-frame img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 18px rgba(28, 20, 15, .28);
  border-radius: inherit;
}
.crop-zoom {
  display: grid;
  gap: 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}
.crop-zoom input {
  width: 100%;
  accent-color: #ea580c;
}
.crop-hint {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: .78rem;
  font-weight: 650;
}
.crop-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.crop-acts .ghost-btn { margin: 0; }

#viewTables.on {
  overflow: hidden;
  margin: -12px -12px 0;
  padding: 12px 10px 8px;
  color: #f6efe6;
  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(255, 186, 90, .18), transparent 55%),
    repeating-linear-gradient(90deg, #2a1810 0 22px, #24140d 22px 23px, #331c12 23px 44px),
    #24140d;
}
#viewTables .page-hero,
#viewReports .page-hero {
  margin: 0 0 8px;
  padding: 12px;
  align-items: center;
}
.floor-top {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.floor-title h2 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: -.05em;
  color: #fff4e3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.floor-kicker {
  margin: 0 0 2px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #f0b45a;
}
.floor-bar {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  max-width: 300px;
}
.floor-bar div {
  min-width: 0;
  background: linear-gradient(180deg, #5b3a1e, #3a2312);
  border: 1px solid rgba(240, 180, 90, .28);
  border-radius: 10px;
  padding: 6px 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, .2), 0 4px 10px rgba(0, 0, 0, .28);
}
.floor-bar b {
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  color: #ffe7c2;
}
.floor-bar span {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 214, 160, .62);
}
.floor-bar .floor-open b { color: #fbbf24; font-size: .66rem; }
.floor-filters {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px;
  margin: 0;
  scrollbar-width: none;
}
.floor-filters::-webkit-scrollbar { display: none; }
.floor-filters button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 160, .16);
  background: rgba(12, 8, 6, .45);
  color: #f6e4c8;
  font: 800 .7rem Poppins, "Segoe UI", sans-serif;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.floor-filters button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a8a29e;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}
.floor-filters button[data-floor="free"]::before { background: #34d399; }
.floor-filters button[data-floor="ordered"]::before { background: #38bdf8; }
.floor-filters button[data-floor="preparing"]::before { background: #fb923c; }
.floor-filters button[data-floor="running"]::before { background: #a78bfa; }
.floor-filters button[data-floor="due"]::before { background: #f87171; }
.floor-filters button[data-floor="all"]::before {
  background: conic-gradient(#34d399, #38bdf8, #fb923c, #a78bfa, #f87171, #34d399);
}
.floor-filters button i {
  font-style: normal;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
}
.floor-filters button.on {
  background: #f3c57a;
  border-color: #f3c57a;
  color: #2a1708;
}
.floor-filters button.on i {
  background: rgba(42, 23, 8, .16);
  color: #2a1708;
}
.floor-empty {
  grid-column: 1 / -1;
  margin: 28px 8px;
  text-align: center;
  color: rgba(255, 228, 190, .7);
  font-weight: 700;
  font-size: .9rem;
}
.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 18px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  padding: 18px 8px 32px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 18px),
    repeating-linear-gradient(90deg, rgba(255, 210, 140, .05) 0 18px, transparent 18px 19px);
  border-radius: 16px;
}
@media (min-width: 560px) {
  .table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
}
.tbl {
  --lamp: rgba(255, 210, 140, .18);
  --d: 0;
  min-height: 168px;
  height: auto;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  font-family: Poppins, "Segoe UI", sans-serif;
  padding: 2px 2px 6px;
  text-align: center;
  position: relative;
  color: #fff8ef;
  overflow: visible;
}
.tbl-glow {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lamp) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.tbl-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 118px;
}
.tbl-wood,
.tbl-lip,
.tbl-shadow,
.tbl-party,
.tbl-guest,
.tbl-chair,
.tbl-no {
  transition:
    transform .55s cubic-bezier(.22, .8, .2, 1),
    width .55s cubic-bezier(.22, .8, .2, 1),
    height .55s cubic-bezier(.22, .8, .2, 1),
    margin .55s cubic-bezier(.22, .8, .2, 1),
    border-radius .45s ease,
    box-shadow .45s ease,
    background .4s ease,
    opacity .35s ease;
}
.tbl-wood {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f0c27a 0%, #c47a32 42%, #7a3f14 78%, #4a240c 100%);
  box-shadow:
    inset 0 0 0 8px rgba(62, 28, 8, .42),
    inset 0 0 0 9px rgba(255, 226, 170, .28),
    0 10px 18px rgba(0, 0, 0, .45);
}
.tbl-wood::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  background: radial-gradient(circle at 40% 34%, #5a3014, #2a1408);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, .2);
}
.tbl.is-duo .tbl-wood {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
}
.tbl.is-duo .tbl-party {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
}
.tbl.is-duo .tbl-guest { transform: rotate(var(--a, 0deg)) translateY(-34px); }
.tbl.is-square .tbl-wood,
.tbl.is-square .tbl-wood::after { border-radius: 11px; }
.tbl.is-square .tbl-wood {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
}
.tbl.is-oval .tbl-wood {
  width: 88px;
  height: 48px;
  margin: -24px 0 0 -44px;
}
.tbl.is-oval .tbl-party {
  width: 88px;
  height: 48px;
  margin: -24px 0 0 -44px;
}
.tbl.is-oval .tbl-guest { transform: rotate(var(--a, 0deg)) translateY(-40px); }
.tbl.is-oval { grid-column: 1 / -1; max-width: 240px; justify-self: center; width: 100%; }
.tbl.tone-b .tbl-wood {
  background: radial-gradient(circle at 32% 28%, #e8c9a0 0%, #9a6b3c 42%, #6a3d22 100%);
}
.tbl.tone-c .tbl-wood {
  background: radial-gradient(circle at 32% 28%, #d7b07a 0%, #8d5a28 48%, #4a2a12 100%);
}
.tbl.tone-d .tbl-wood {
  background: radial-gradient(circle at 32% 28%, #f0d0a8 0%, #b87333 44%, #5c3010 100%);
}
.tbl:nth-child(2n) { margin-top: 12px; }
.tbl.is-oval { margin-top: 4px; }
.tbl-party {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  pointer-events: none;
  z-index: 3;
}
.tbl-guest {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 16px;
  margin: -8px 0 0 -9px;
  transform: rotate(var(--a, 0deg)) translateY(-42px);
}
.tbl-chair {
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 8px 8px;
  border: 2px solid rgba(232, 190, 130, .38);
  border-top-width: 5px;
  background: rgba(28, 14, 8, .55);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}
.tbl-diner {
  display: none;
  position: absolute;
  left: 50%;
  top: 4px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7c4, #d08940 70%, #7a3f16);
  box-shadow: 0 2px 0 #4a240c, 0 0 8px rgba(255, 200, 120, .35);
  z-index: 1;
}
.tbl-guest.is-in .tbl-diner { display: block; }
.tbl-guest.is-in .tbl-chair {
  border-color: rgba(255, 214, 150, .85);
  background: #3a220f;
}
.tbl-no {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  line-height: 1;
  font-size: 1.12rem;
  letter-spacing: -.05em;
  font-weight: 800;
  color: #ffe9c4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
.tbl-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: -4px;
  min-width: 0;
}
.tbl-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  background: #3a2614;
  color: #f3e0c4;
  border: 1px solid rgba(240, 180, 90, .28);
}
.tbl-amt {
  font-size: .78rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tbl-meta {
  font-size: .56rem;
  font-weight: 700;
  color: rgba(255, 226, 186, .62);
  letter-spacing: .02em;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbl.is-free { --lamp: rgba(52, 211, 153, .28); }
.tbl.is-free .tbl-tag { background: #14532d; color: #bbf7d0; border-color: rgba(52, 211, 153, .35); }
.tbl.is-free .tbl-amt { display: none; }
.tbl.is-ordered { --lamp: rgba(56, 189, 248, .42); }
.tbl.is-ordered .tbl-tag { background: #0369a1; color: #e0f2fe; border-color: rgba(125, 211, 252, .45); }
.tbl.is-ordered .tbl-amt { color: #7dd3fc; }
.tbl.is-preparing { --lamp: rgba(251, 146, 60, .55); }
.tbl.is-preparing .tbl-glow { animation: floorLamp 1.5s ease-in-out infinite; }
.tbl.is-preparing .tbl-tag { background: #c2410c; color: #ffedd5; border-color: rgba(253, 186, 116, .5); }
.tbl.is-preparing .tbl-amt { color: #fdba74; }
.tbl.is-running { --lamp: rgba(167, 139, 250, .42); }
.tbl.is-running .tbl-tag { background: #5b21b6; color: #ede9fe; border-color: rgba(196, 181, 253, .45); }
.tbl.is-running .tbl-amt { color: #ddd6fe; }
.tbl.is-due { --lamp: rgba(248, 113, 113, .48); }
.tbl.is-due .tbl-tag { background: #991b1b; color: #fee2e2; border-color: rgba(252, 165, 165, .5); }
.tbl.is-due .tbl-amt { color: #fecaca; }
.tbl.on .tbl-wood {
  box-shadow:
    inset 0 0 0 8px rgba(62, 28, 8, .42),
    inset 0 0 0 9px rgba(255, 226, 170, .28),
    0 0 0 3px #f3c57a,
    0 12px 22px rgba(0, 0, 0, .5);
}
@keyframes floorLamp {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.tbl-shadow,
.tbl-lip { display: none; }

#viewTables.is-3d {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 190, 90, .2), transparent 50%),
    repeating-linear-gradient(90deg, #3a2416 0 36px, #2c1a10 36px 38px, #462a18 38px 74px),
    #2c1a10;
}
#viewTables.is-3d .table-grid {
  gap: 34px 24px;
  padding: 18px 8px 32px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 200, 110, .08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 42px);
}
#viewTables.is-3d .tbl {
  min-height: 188px;
  padding: 8px 4px 10px;
}
#viewTables.is-3d .tbl-stage {
  height: 136px;
  perspective: 420px;
}
#viewTables.is-3d .tbl-shadow {
  display: block;
  position: absolute;
  left: 50%;
  top: 64%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  filter: blur(7px);
  z-index: 0;
}
#viewTables.is-3d .tbl-lip {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 18px;
  margin: 4px 0 0 -39px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #6b3a12, #3a1e08);
  z-index: 1;
  box-shadow: 0 8px 10px rgba(0, 0, 0, .35);
}
#viewTables.is-3d .tbl-wood {
  width: 78px;
  height: 46px;
  margin: -22px 0 0 -39px;
  border-radius: 50%;
  transform: rotateX(48deg) scale(1.05);
  z-index: 2;
  background:
    radial-gradient(circle at 30% 30%, #f6d39a, #d0893a 46%, #8a4a16 100%);
  box-shadow:
    inset 0 0 0 7px rgba(90, 40, 10, .38),
    inset 0 0 0 8px rgba(255, 230, 180, .35),
    0 2px 0 #5a3010;
}
#viewTables.is-3d .tbl-wood::after {
  inset: 12px 16px;
}
#viewTables.is-3d .tbl-party {
  width: 78px;
  height: 46px;
  margin: -22px 0 0 -39px;
  z-index: 5;
}
#viewTables.is-3d .tbl-guest {
  width: 20px;
  height: 22px;
  margin: -11px 0 0 -10px;
  transform: rotate(var(--a, 0deg)) translateY(-44px) rotateX(-8deg) rotate(calc(-1 * var(--a, 0deg)));
}
#viewTables.is-3d .tbl-chair {
  inset: 8px 2px 0;
  height: auto;
  border-radius: 4px 4px 5px 5px;
  border: 0;
  border-top: 7px solid #6b4220;
  background: linear-gradient(180deg, #c48a48, #6b3a14);
  box-shadow: 0 5px 0 #2a1608, 0 8px 10px rgba(0, 0, 0, .3);
}
#viewTables.is-3d .tbl-diner {
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 35% 28%, #ffe7c8, #c47a38 72%);
  box-shadow: 0 3px 0 #4a240c;
}
#viewTables.is-3d .tbl-diner::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 10px;
  height: 8px;
  border-radius: 3px 3px 4px 4px;
  background: #3b6ea8;
}
#viewTables.is-3d .tbl-guest:nth-child(2) .tbl-diner::after { background: #c45c3a; }
#viewTables.is-3d .tbl-guest:nth-child(3) .tbl-diner::after { background: #2f9e6a; }
#viewTables.is-3d .tbl-guest:nth-child(4) .tbl-diner::after { background: #7c5cbf; }
#viewTables.is-3d .tbl-guest:nth-child(5) .tbl-diner::after { background: #c9a227; }
#viewTables.is-3d .tbl-no {
  top: 46%;
  font-size: 1.05rem;
  z-index: 6;
}
#viewTables.is-3d .tbl-foot { margin-top: 2px; }
#viewTables.is-3d .tbl.on .tbl-wood {
  box-shadow:
    inset 0 0 0 7px rgba(90, 40, 10, .38),
    0 0 0 3px #f3c57a,
    0 12px 18px rgba(0, 0, 0, .45);
}
#viewTables.is-3d .tbl.is-duo .tbl-wood {
  width: 58px;
  height: 32px;
  margin: -14px 0 0 -29px;
}
#viewTables.is-3d .tbl.is-duo .tbl-lip {
  width: 58px;
  margin: 2px 0 0 -29px;
  height: 14px;
}
#viewTables.is-3d .tbl.is-duo .tbl-party {
  width: 58px;
  height: 32px;
  margin: -14px 0 0 -29px;
}
#viewTables.is-3d .tbl.is-duo .tbl-guest {
  transform: rotate(var(--a, 0deg)) translateY(-36px) rotateX(-8deg) rotate(calc(-1 * var(--a, 0deg)));
}
#viewTables.is-3d .tbl.is-square .tbl-wood,
#viewTables.is-3d .tbl.is-square .tbl-wood::after,
#viewTables.is-3d .tbl.is-square .tbl-lip {
  border-radius: 8px;
}
#viewTables.is-3d .tbl.is-square .tbl-wood {
  width: 68px;
  height: 42px;
  margin: -18px 0 0 -34px;
}
#viewTables.is-3d .tbl.is-square .tbl-lip {
  width: 68px;
  margin: 4px 0 0 -34px;
  border-radius: 0 0 8px 8px;
}
#viewTables.is-3d .tbl.is-square .tbl-party {
  width: 68px;
  height: 42px;
  margin: -18px 0 0 -34px;
}
#viewTables.is-3d .tbl.is-oval .tbl-wood {
  width: 108px;
  height: 38px;
  margin: -16px 0 0 -54px;
}
#viewTables.is-3d .tbl.is-oval .tbl-lip {
  width: 108px;
  margin: 4px 0 0 -54px;
}
#viewTables.is-3d .tbl.is-oval .tbl-party {
  width: 108px;
  height: 38px;
  margin: -16px 0 0 -54px;
}
#viewTables.is-3d .tbl.is-oval .tbl-shadow {
  width: 118px;
  margin-left: -59px;
}
#viewTables.is-3d .tbl.is-oval .tbl-guest {
  transform: rotate(var(--a, 0deg)) translateY(-42px) rotateX(-8deg) rotate(calc(-1 * var(--a, 0deg)));
}
#viewTables.is-look-anim .tbl-stage {
  animation: floorLookPop .58s cubic-bezier(.22, .8, .2, 1) both;
  animation-delay: calc(var(--d, 0) * 45ms);
}
@keyframes floorLookPop {
  0% { transform: translateY(10px) scale(.9); opacity: .55; }
  55% { transform: translateY(-4px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.tbl svg { color: var(--copper); width: 20px; height: 20px; }
.tbl-pend {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 99px;
  line-height: 1;
}
.tbl.free,
.tbl.busy { padding-left: 2px; }
.seat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}
.seat {
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink);
}
.seat.on {
  background: #f73a3a;
  border-color: #f73a3a;
  color: #fff;
}
.seat:disabled {
  opacity: .4;
  background: #f3ece4;
}
.seat small { display: block; font-size: .62rem; font-weight: 700; opacity: .8; }
.seat-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seat-acts .pay,
.seat-acts .ghost-btn { height: 44px; font-size: .84rem; }
#btnAnotherOrder { margin-top: 10px; width: 100%; }

.more-list {
  list-style: none; margin: 0 0 14px; padding: 0;
  background: #fffaf4; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.more-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.more-list li:last-child { border-bottom: 0; }
.more-list span { color: var(--mute); }

.dock {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 1280px;
  padding: 5px 12px;
  background: #050216;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 30;
  pointer-events: none;
}
.dock-shell {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr;
  align-items: center;
  gap: 2px;
  height: 72px;
  padding: 6px;
  border-radius: 26px;
  color: #8b9bb4;
  background: #050216;
  box-shadow: none;
}
.dock-item {
  border: 0;
  background: transparent;
  color: #8b9bb4;
  height: 60px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: capitalize;
  padding: 0;
  position: relative;
  z-index: 2;
}
.dock-ico {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.dock-ico svg { width: 20px; height: 20px; display: block; }
.dock-item.on {
  color: #fff;
  font-weight: 800;
  background: transparent;
}
.dock-item {
  transition: background .22s ease, color .22s ease;
}
.dock-item.is-tap {
  animation: dockTabIn .36s cubic-bezier(.18, .9, .26, 1.28);
}
.dock-item.is-tap .dock-ico {
  animation: dockIcoPop .42s cubic-bezier(.18, .9, .26, 1.3);
}
.dock-item:active,
.dock-charge:active {
  transform: scale(.94);
}
.view.is-in,
#ticket.is-in,
#grid.is-in {
  animation: dockViewIn .32s ease;
}
@keyframes dockTabIn {
  0% { transform: scale(.88); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes dockIcoPop {
  0% { transform: translateY(5px) scale(.72); }
  50% { transform: translateY(-3px) scale(1.14); }
  100% { transform: none; }
}
@keyframes dockViewIn {
  from { opacity: .4; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-item.is-tap,
  .dock-item.is-tap .dock-ico,
  .view.is-in,
  #ticket.is-in,
  #grid.is-in { animation: none; }
  .dock-shell.is-mark .dock-mark { transition: none; }
}
.dock-item.on .dock-ico {
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.dock-mark {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: #f73a3a;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scaleX(.4);
}
.dock-shell.is-mark .dock-mark {
  opacity: 1;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scaleX(1);
  transition: transform .42s cubic-bezier(.22, 1.25, .36, 1), opacity .2s ease;
}
.dock-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ea580c;
  color: #fff;
  font-size: .62rem;
  display: grid;
  place-items: center;
  box-shadow: none;
  border: 0;
}
.dock-charge {
  border: 0;
  height: 60px;
  margin: 0 2px;
  border-radius: 18px;
  background: #f73a3a;
  color: #fff7ed;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: capitalize;
  position: relative;
  z-index: 5;
  overflow: visible;
  padding: 0 8px;
  box-shadow:
    0 8px 16px rgba(194, 65, 12, .35),
    inset 0 1px 0 rgba(255, 247, 237, .35);
}
.dock-charge-lab {
  line-height: 1;
  display: block;
  color: inherit;
  white-space: nowrap;
}
.dock-orb-wrap {
  position: relative;
  left: auto;
  top: auto;
  width: 20px;
  height: 20px;
  margin: 0;
  pointer-events: none;
  z-index: 6;
}
.dock-orb-ring { display: none; }
.dock-orb {
  width: 20px;
  height: 20px;
  border-radius: 0;
  display: grid;
  place-items: center;
  position: relative;
  background: none;
  color: inherit;
  animation: none;
  box-shadow: none;
}
.dock-orb svg {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(124, 45, 18, .35));
}
.dock-orb::after { content: none; }
.dock-sparks {
  position: absolute; inset: -8px; pointer-events: none;
}
.dock-sparks i {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 8px #facc15;
  opacity: 0;
}
.dock-charge:not(:disabled):hover {
  filter: brightness(1.06);
}
.dock-charge:not(:disabled):active,
.dock-charge.is-firing {
  animation: charge-pop .72s cubic-bezier(.18, 1.4, .32, 1);
}
.dock-charge.is-firing .dock-orb svg {
  animation: charge-bolt .7s ease-out;
}
.dock-charge.is-firing .dock-sparks i {
  animation: spark-fly .62s ease-out forwards;
}
.dock-sparks i:nth-child(1) { --sx: 0px; --sy: -22px; }
.dock-sparks i:nth-child(2) { --sx: 18px; --sy: -12px; animation-delay: .03s; }
.dock-sparks i:nth-child(3) { --sx: 16px; --sy: 12px; animation-delay: .06s; }
.dock-sparks i:nth-child(4) { --sx: 0px; --sy: 20px; animation-delay: .02s; }
.dock-sparks i:nth-child(5) { --sx: -16px; --sy: 12px; animation-delay: .05s; }
.dock-sparks i:nth-child(6) { --sx: -18px; --sy: -12px; animation-delay: .04s; }
@keyframes charge-pop {
  0% { transform: scale(1); }
  16% { transform: scale(.94); }
  40% { transform: scale(1.06); }
  62% { transform: scale(.98); }
  100% { transform: scale(1); }
}
@keyframes charge-bolt {
  0%, 100% { transform: scale(1); }
  22% { transform: scale(.8) translateY(1px); }
  48% { transform: scale(1.2) translateY(-2px); }
  70% { transform: scale(.95); }
}
@keyframes spark-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.15); }
}
.dock-charge:disabled {
  background: #1c1830;
  color: #8b9bb4;
  box-shadow: none;
  opacity: 1;
}
.dock-charge:disabled .dock-orb { animation: none; }

@media (max-width: 900px) {
  :root { --dock-h: 72px; }
  .dock {
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    background: #050216;
  }
  .dock-shell {
    width: 100%;
    max-width: none;
    height: 72px;
    padding: 6px 6px;
    gap: 2px;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
  }
  .dock-item,
  .dock-charge {
    height: 60px;
    min-height: 0;
    margin: 0;
    border-radius: 16px;
    font-size: .78rem;
    line-height: 1.1;
  }
  .dock-ico,
  .dock-ico svg,
  .dock-orb,
  .dock-orb svg {
    width: 22px;
    height: 22px;
  }
}

.sheet[hidden], .done[hidden], .toast[hidden], .loader[hidden], .totals[hidden], .dock-badge[hidden], .view[hidden],
.gate[hidden], .kot-app[hidden], button[hidden], .gate-err[hidden]:not(.is-on) {
  display: none !important;
}
.loader {
  position: fixed; inset: 0;
  z-index: 70;
  display: grid; place-items: center;
  background: rgba(28, 20, 15, .42);
  backdrop-filter: blur(5px);
}
.loader-card {
  min-width: 168px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 28px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 24px 50px rgba(28, 20, 15, .28);
}
.loader-card p {
  margin: 0;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: .04em;
}
.spin-wrap {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  position: relative;
  color: #ea580c;
}
.spin-wrap::before {
  content: "";
  position: absolute; inset: 0;
  border: 3px solid #fed7aa;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spin-ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
button.is-busy,
.logo-pick.is-busy {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
button.is-busy > *,
.logo-pick.is-busy > * { visibility: hidden; }
#viewMore button.is-busy,
#sheetFood button.is-busy,
#viewMore .logo-pick.is-busy,
#sheetFood .logo-pick.is-busy {
  color: transparent !important;
}
button.is-busy::before,
.logo-pick.is-busy::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: calc(50% - 62px);
  top: 50%;
  margin-top: -8px;
  border: 2.4px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  z-index: 1;
}
button.is-busy::after,
.logo-pick.is-busy::after {
  content: "Please wait";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 22px;
  font-weight: 800;
  color: #fff;
  z-index: 1;
}
.ghost-btn.alt.is-busy::before,
.food-acts button.is-busy::before,
.logo-pick.is-busy::before {
  border-color: #f0d3b0;
  border-top-color: #ea580c;
}
.ghost-btn.alt.is-busy::after,
.food-acts button.is-busy::after,
.logo-pick.is-busy::after {
  color: #9a3412;
}
.food-acts .act-hide.is-busy::after { color: #b91c1c; }
.food-acts .act-show.is-busy::after { color: #15803d; }
.food-acts button.is-busy { min-width: 0; overflow: hidden; }
.food-acts button.is-busy::before {
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
}
.food-acts button.is-busy::after { content: none; }
.cat-add .ghost-btn.is-busy { min-width: 148px; }
.cat.is-busy::before, .dish.is-busy::before, .tbl.is-busy::before,
.dock-item.is-busy::before, .dock-charge.is-busy::before, .cat-switch.is-busy::before,
.mode.is-busy::before, .x.is-busy::before, .cat-chip button.is-busy::before {
  left: 50%;
  margin-left: -8px;
}
.cat.is-busy::after, .dish.is-busy::after, .tbl.is-busy::after,
.dock-item.is-busy::after, .dock-charge.is-busy::after, .cat-switch.is-busy::after,
.mode.is-busy::after, .x.is-busy::after, .stepper button.is-busy::after,
.cat-chip button.is-busy::after {
  content: none;
}
.sheet, .done {
  position: fixed; inset: 0;
  background: rgba(28,20,15,.5);
  display: grid; place-items: end center;
  z-index: 40;
}
.ask {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: rgba(28, 20, 15, .48);
}
.ask[hidden] { display: none !important; }
.ask-card {
  width: min(360px, 100%);
  background: #fffdf9;
  border-radius: 22px;
  padding: 20px 18px 16px;
  box-shadow: 0 24px 50px rgba(28, 20, 15, .28);
}
.ask-kicker {
  margin: 0 0 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c2410c;
}
.ask-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ask-card p {
  margin: 8px 0 16px;
  color: var(--mute);
  font-weight: 650;
  font-size: .88rem;
  line-height: 1.4;
}
.ask-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#askBox .ask-acts.has-stop { grid-template-columns: 1fr 1fr 1.15fr; }
#askStop[hidden] { display: none !important; }
#askBox .ask-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  font: 800 .74rem/1 Poppins, "Segoe UI", sans-serif;
  white-space: nowrap;
}
#askBox .ask-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
#askBox .ask-skip { background: #1c140f; color: #fff; }
#askBox .ask-stop {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1.5px #fdba74;
}
#askBox .ask-go { background: #f73a3a; color: #fff; }
#askBox .ask-go.is-danger { background: #b91c1c; color: #fff; }
.ask-pin[hidden] { display: none !important; }
.ask-pin {
  display: block;
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a6654;
}
.ask-pin input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 1.5px solid rgba(139, 90, 43, .2);
  border-radius: 12px;
  padding: 0 12px;
  font: 800 1.05rem Poppins, "Segoe UI", sans-serif;
  letter-spacing: .2em;
}
.ask-acts .ghost-btn { margin: 0; height: 46px; }
.ask-yes {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.sheet-card, .done-card {
  width: min(520px, 100%);
  background: #fffaf4;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b));
  max-height: min(calc(100dvh - 24px), 720px);
  overflow: auto;
}
.sheet.gallery-sheet {
  top: 0;
  right: 0;
  left: 0;
  bottom: auto;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
}
.gallery-sheet .gallery-card {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 100%;
  overflow: hidden;
  border-radius: 0;
}
#sheetOrders .sheet-card,
#sheetExpense .sheet-card {
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 16px);
}
.sheet-card header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.sheet-kicker {
  margin: 0 0 2px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c2410c;
}
.sheet-card header h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}
#ordersTitle,
#seatsTitle,
#foodSheetTitle,
#liveSheetTitle {
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
#sheetLiveTokens .live-token-card,
#sheetLiveTokens .live-token-card * {
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
}
#sheetLiveTokens .live-sheet-name {
  margin: 6px 0 0;
  min-height: 1.3em;
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
#sheetLiveTokens .live-sheet-hero {
  height: 176px;
  margin: 0 0 12px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(251, 191, 36, .35), transparent 70%),
    linear-gradient(165deg, #1d4ed8 0%, #1e3a8a 55%, #172554 100%);
}
#sheetLiveTokens .live-sheet-hero[hidden] { display: none !important; }
#sheetLiveTokens .live-sheet-hero img,
#sheetLiveTokens .live-sheet-hero .dish-ph {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
  object-position: center 62%;
}
#sheetLiveTokens .live-sheet-hero .dish-ph {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.6rem;
  letter-spacing: .04em;
}
#sheetLiveTokens .live-token-card {
  position: relative;
  padding-top: 16px;
  background:
    radial-gradient(120px 70px at 50% 0%, rgba(220, 38, 38, .16), transparent 70%),
    #fffaf4;
}
#sheetLiveTokens .live-sheet-x {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .38);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
#sheetLiveTokens .live-sheet-x svg {
  display: block;
  width: 18px;
  height: 18px;
}
#sheetLiveTokens .live-sheet-x:active { transform: scale(.96); }
#sheetLiveTokens .live-sheet-head {
  display: block;
  margin: 4px 0 14px;
  text-align: center;
}
#sheetLiveTokens .live-sheet-head h3 { font-size: 1.4rem; }
#sheetLiveTokens .live-sheet-meta {
  margin: 6px 0 0;
  color: #78716c;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}
#sheetLiveTokens .live-sheet-facts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
#sheetLiveTokens .live-sheet-facts span {
  flex: 1 1 0;
  max-width: 124px;
  padding: 8px 6px 7px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(154, 52, 18, .06);
}
#sheetLiveTokens .live-sheet-facts b {
  display: block;
  color: #9a3412;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.15;
}
#sheetLiveTokens .live-sheet-facts small {
  display: block;
  margin-top: 2px;
  color: #a8a29e;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#sheetLiveTokens .live-slip-guest {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  white-space: normal;
}
#sheetLiveTokens .live-slip-guest b {
  display: block;
  max-width: 100%;
  min-height: 1.25em;
  overflow: hidden;
  color: #1e3a8a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#sheetLiveTokens .live-slip-guest small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #9a3412;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#sheetLiveTokens .live-slip.is-token .live-slip-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
#sheetLiveTokens .live-slip.is-token .live-slip-copy small {
  color: #78716c;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}
.live-slip.is-token .live-slip-photo {
  flex: 0 0 68px;
  width: 68px;
  align-self: stretch;
  min-height: 68px;
  overflow: hidden;
  background: #fff7ed;
}
.live-slip.is-token .live-slip-photo img,
.live-slip.is-token .live-slip-photo .dish-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 68px;
  object-fit: cover;
  object-position: center 62%;
}
.live-slip.is-token .live-slip-photo .dish-ph {
  display: grid;
  place-items: center;
  color: #9a3412;
  font-size: 1rem;
  background: #ffedd5;
}
.gallery-card,
.gallery-card header h3,
.gallery-card .dish h3,
.gallery-card .cat,
.gallery-card .search input,
.gallery-card .veg-switch button,
.gallery-card .empty-bill {
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
}
.gallery-card header h3 {
  font-weight: 800;
  letter-spacing: 0;
}
.pay-card { max-height: min(calc(100dvh - var(--dock-h) - 24px), 740px); overflow: auto; }
.pay-amount { margin: 0; font-size: 2.4rem; font-weight: 800; text-align: center; font-family: Poppins, "Segoe UI", sans-serif; }
.pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 6px 0 10px;
}
.pay-qr canvas {
  width: 168px;
  height: 168px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.pay-qr p {
  margin: 6px 0 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.pay-qr-note {
  display: block;
  margin: 4px 0 0;
  max-width: 260px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #9a3412;
  line-height: 1.25;
}
.x {
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff7ed;
  display: grid; place-items: center; color: #9a3412;
  box-shadow: inset 0 0 0 1.5px #f0d3b0;
  padding: 0;
  flex: 0 0 40px;
}
.x svg { width: 16px; height: 16px; display: block; }
.guest-phone em { font-style: normal; font-weight: 650; text-transform: none; letter-spacing: 0; color: #b45309; }
.done-phone { margin: 10px 0 0; }
#payGuestPhone[hidden],
#doneGuestPhone[hidden] { display: none !important; }
.guest-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
}
.guest-name[hidden] { display: none !important; }
.guest-name span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a3412;
}
.guest-name input {
  height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  font: 800 1rem Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", sans-serif;
}
.guest-name input:focus { outline: none; border-color: #ea580c; }
.bill-guest-name {
  display: block;
  position: relative;
  z-index: 2;
  margin: 12px 14px 0;
  padding: 8px 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: #1c140f;
  background: #fffaf6;
  border-top: 2px solid #1c140f;
  border-bottom: 2px solid #1c140f;
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", sans-serif;
}
.bill-paper.has-type .bill-guest-name { margin-bottom: 8px; }
.guest-phone {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 0 8px;
  text-transform: none; letter-spacing: 0;
  font-size: .78rem; font-weight: 800; color: var(--mute);
}
.guest-phone > span:first-child {
  display: inline-flex; align-items: center; gap: 6px;
}
.guest-phone > span:first-child svg { width: 14px; height: 14px; color: #c2410c; }
.guest-phone-row {
  display: flex; align-items: stretch;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.guest-phone-row:focus-within { border-color: #ea580c; }
.guest-phone.ok .guest-phone-row { border-color: #16a34a; }
.guest-phone.bad .guest-phone-row { border-color: #b91c1c; }
.guest-cc {
  display: grid; place-items: center;
  padding: 0 12px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800; font-size: .92rem;
  border-right: 1px solid var(--line);
}
.guest-phone input {
  flex: 1; min-width: 0;
  height: 100%;
  border: 0; background: transparent;
  padding: 0 12px;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--ink);
}
.pay-wa-send {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font: 800 .78rem/1 Poppins, "Segoe UI", sans-serif;
  letter-spacing: .02em;
  -webkit-appearance: none;
  appearance: none;
}
.pay-wa-send svg { width: 18px; height: 18px; flex: 0 0 18px; color: #fff; fill: #fff; }
.pay-wa-send span { color: #fff; }
.pay-wa-send:active { background: #0f766e; }
.guest-phone small {
  font-weight: 650; font-size: .72rem; letter-spacing: 0;
  color: var(--mute);
}
.guest-phone.bad small { color: #b91c1c; }
.guest-phone.ok small { color: #15803d; }
.guest-skip {
  display: block; width: 100%;
  border: 0; background: transparent;
  color: #9a3412; font: inherit; font-weight: 800; font-size: .78rem;
  padding: 0 0 12px; text-align: center;
}
.method.wa { background: #ecfdf5; border-color: #86efac; color: #14532d; }
.method.wa .method-ico { background: #dcfce7; color: #15803d; }
.method.wa small { color: #166534; }
.pay-methods { display: grid; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 12px 14px; text-align: left;
}
.method-ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; background: #f3e4d4; flex: 0 0 auto;
}
.method-txt { display: flex; flex-direction: column; gap: 2px; }
.method-txt b { font-weight: 800; }
.method-txt small { color: var(--mute); font-weight: 650; }
.method.primary { background: #f73a3a; border-color: #f73a3a; color: #fff; }
.method.primary .method-ico { background: rgba(255,255,255,.18); color: #fff; }
.method.primary small { color: rgba(255,255,255,.88); }
.pay-card {
  padding: 12px 14px calc(10px + var(--safe-b));
  background: #f6f3ee;
}
.pay-card .pay-head {
  align-items: center;
  margin-bottom: 8px;
}
.pay-card .pay-amount {
  font-size: 1.85rem;
  text-align: left;
  letter-spacing: -.04em;
  line-height: 1;
}
.pay-card .pay-sub {
  margin: 3px 0 0;
  font-size: .76rem;
  font-weight: 700;
  color: #78716c;
}
.pay-card .pay-qr {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 8px;
  padding: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid #efe6dc;
  border-radius: 16px;
}
.pay-card .pay-qr canvas {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.pay-card .pay-qr-copy { min-width: 0; }
.pay-card .pay-qr p {
  margin: 0;
  font-size: .66rem;
  letter-spacing: .1em;
  color: #78716c;
}
.pay-card .pay-qr-note {
  margin: 3px 0 0;
  max-width: none;
  text-align: left;
  font-size: 1rem;
  line-height: 1.2;
}
.pay-card .pay-qr-token {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 750;
  color: #78716c;
}
.pay-qr[hidden],
.pay-billno[hidden],
.pay-qr-token[hidden] { display: none !important; }
.pay-card .pay-billno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #efe6dc;
  border-radius: 16px;
  font-size: .95rem;
  font-weight: 800;
  color: #9a3412;
}
.pay-card .pay-billno .switch-lab {
  width: auto;
  flex: 0 0 auto;
  gap: 8px;
  font-size: .78rem;
  color: #44403c;
}
.pay-card .method.is-off,
.pay-card .method:disabled {
  opacity: .38;
  filter: grayscale(1);
  pointer-events: none;
}
.pay-card .pay-due { margin: 0 0 8px; }
.pay-card .pay-tools,
.pay-card .pay-meta {
  margin: 0 0 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #efe6dc;
  border-radius: 16px;
}
.pay-card .pay-tools { display: grid; gap: 6px; }
.pay-card .pay-print-copy,
.pay-card .pay-print-set {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.pay-card .pay-print-picks { gap: 6px; }
.pay-card .pay-print-picks button {
  flex-direction: row;
  min-height: 40px;
  padding: 6px 4px;
  font-size: .72rem;
}
.pay-card .pay-print-picks button svg { width: 15px; height: 15px; }
.pay-card .pay-disc {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-card .pay-disc .switch-lab { width: auto; flex: 1; }
.pay-card .disc-amt { flex: 0 0 auto; }
.pay-card .disc-amt span { font-size: .75rem; font-weight: 800; color: #78716c; }
.pay-card .disc-amt input { width: 72px; padding: 5px 8px; }
.pay-card .guest-phone { margin: 0; gap: 4px; }
.pay-card .guest-phone > span:first-child { display: flex; width: 100%; }
.pay-card .guest-phone-row { height: 46px; }
.pay-card .guest-phone input { height: 100%; padding: 0 10px; font-size: .95rem; }
.pay-card .pay-wa-send { height: 100%; padding: 0 14px; }
.pay-card .guest-phone small { display: none; }
.pay-card .guest-phone.bad small,
.pay-card .guest-phone.ok small { display: block; }
.pay-card .pay-methods {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.pay-card .method {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 14px;
  min-height: 62px;
}
.pay-card .method-ico { width: 28px; height: 28px; border-radius: 9px; }
.pay-card .method-ico svg { width: 16px; height: 16px; }
.pay-card .method-txt { align-items: center; }
.pay-card .method-txt b { font-size: .78rem; }
.pay-card .method-txt small { display: none; }
.pay-card #btnSaveEdit,
.pay-card #btnSplitToggle,
.pay-card #btnPrintDue {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 42px;
  padding: 8px 12px;
  text-align: left;
  justify-content: flex-start;
}
.pay-card #btnSaveEdit .method-txt,
.pay-card #btnSplitToggle .method-txt,
.pay-card #btnPrintDue .method-txt { align-items: flex-start; }
.pay-card #btnSaveEdit .method-txt small,
.pay-card #btnSplitToggle .method-txt small,
.pay-card #btnPrintDue .method-txt small { display: block; }
.pay-split[hidden],
.pay-card .pay-methods[hidden] { display: none !important; }
.pay-split {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.pay-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.float-field {
  position: relative;
  display: block;
  min-width: 0;
}
.float-field span {
  position: absolute;
  left: 8px;
  top: 14px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--mute);
  pointer-events: none;
  transition: top .12s ease, font-size .12s ease;
}
.float-field input {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font: inherit;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 8px 6px;
  background: #fff;
}
.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span {
  top: 4px;
  font-size: .62rem;
}
.pay-split-left {
  margin: 0;
  min-height: 1em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--mute);
}
.pay-split-left.ok { color: #15803d; }
.pay-split-left.bad { color: #b91c1c; }
.pay-card .pay-split .method {
  flex-direction: row;
  text-align: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
}
.pay-card .pay-split .method-txt { align-items: center; }
.pay-card .pay-split .method-txt small { display: block; }
.pay-card .pay-split .method-txt b { font-size: .92rem; }
.pay-split .method:disabled { opacity: .45; }
.pay-split-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}
.pay-card .pay-split .pay-split-acts .method {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 6px;
}
.pay-card .pay-split .method-txt b { font-size: .82rem; }
.pay-card .pay-split .method.one-pay {
  background: #111;
  color: #fff;
  border-color: #111;
}
.pay-card .pay-split .method.one-pay .method-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: calc(var(--dock-h) + var(--safe-b) + 14px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: #fffdf9;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 750;
  font-size: .9rem;
  letter-spacing: 0;
  z-index: 80;
  box-shadow: 0 18px 40px rgba(28, 20, 15, .28);
  border: 1px solid var(--line);
  max-width: min(92vw, 360px);
  width: min(92vw, 360px);
  text-align: left;
  pointer-events: auto;
}
.toast p {
  margin: 0;
  font-weight: 750;
  line-height: 1.35;
}
.toast #toastAct {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f73a3a;
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.toast.has-act { padding-bottom: 12px; }

.device-note {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock-h) + var(--safe-b) + 10px);
  top: auto;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: none;
  pointer-events: none;
  text-align: left;
}
.device-note[hidden] { display: none !important; }
body.is-kot .device-note {
  bottom: calc(14px + var(--safe-b));
}
.device-note-card {
  position: relative;
  pointer-events: auto;
  width: min(92vw, 380px);
  margin: 0 auto;
  padding: 12px 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .9));
  color: #f8fafc;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, .38),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  overflow: hidden;
}
.device-note-card.is-in {
  animation: toast-pop .34s cubic-bezier(.18, .9, .22, 1.12);
}
.device-note-card.is-out {
  animation: toast-shrink .28s ease-in forwards;
}
.device-note-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}
.device-note-ico {
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.device-note-ico svg { display: block; }
.device-note-copy b {
  display: block;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: left;
  color: #fff;
}
.device-note-copy small {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.3;
  color: #cbd5e1;
  text-align: left;
}
.device-note-x {
  position: static;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  z-index: 5;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  pointer-events: auto;
}
.device-note-x svg { display: block; width: 16px; height: 16px; }
.device-note-copy small[hidden] { display: none !important; }
.device-note-act {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 36px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fb923c, #ea580c);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
}
.device-note-act[hidden] { display: none !important; }
.device-note-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  grid-column: auto;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.device-note-timer i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
  animation: toast-drain 2s linear forwards;
}
.device-note-card.is-info .device-note-ico {
  background: rgba(56, 189, 248, .18);
  color: #7dd3fc;
}
.device-note-card.is-on .device-note-ico {
  background: rgba(74, 222, 128, .18);
  color: #86efac;
}
.device-note-card.is-on .device-note-timer i {
  background: linear-gradient(90deg, #4ade80, #86efac);
}
.device-note-card.is-off .device-note-ico {
  background: rgba(248, 113, 113, .18);
  color: #fca5a5;
}
.device-note-card.is-off .device-note-timer i {
  background: linear-gradient(90deg, #f87171, #fb923c);
}
@keyframes toast-pop {
  from { opacity: 0; transform: translateY(18px) scale(1.06); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-shrink {
  to { opacity: 0; transform: translateY(10px) scale(.82); }
}
@keyframes toast-drain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .device-note-card.is-in,
  .device-note-card.is-out,
  .device-note-timer i { animation: none; }
}
#btnTicketNew.is-pulse {
  animation: new-order-pulse 1.2s ease-out 2;
}
@keyframes new-order-pulse {
  0%, 100% { transform: scale(1); box-shadow: none; }
  40% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(234, 88, 12, .28); }
}
.done {
  place-items: end center;
  padding: 8px 8px calc(var(--dock-h) + var(--safe-b) + 10px);
  z-index: 50;
}
.done-card {
  border-radius: 24px;
  width: min(420px, calc(100% - 16px));
  max-height: min(calc(100dvh - var(--dock-h) - var(--safe-b) - 28px), 680px);
  overflow: hidden;
  text-align: center;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
}
.done-top {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 2px;
}
.done-bar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.done-bar .page-kicker {
  margin: 0;
  text-align: center;
  color: #c2410c;
}
.done-bar-gap { width: 40px; height: 40px; }
.done-stamp { display: flex; flex-direction: column; align-items: center; }
.done-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 2px;
  filter: drop-shadow(0 8px 14px rgba(22, 163, 74, .28));
}
.done-seal svg { display: block; overflow: visible; }
.done-check {
  width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.done-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 700;
}
.done-card #doneMsg,
.done-card > p { margin: 3px 0 0; color: var(--mute); font-weight: 700; font-size: .82rem; }
.done-phone {
  margin: 8px 0 0;
  text-align: left;
  flex: 0 0 auto;
}
.done-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  background: #fffaf4;
  padding-top: 8px;
}
.done-actions .method {
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  text-align: center;
}
.done-actions .method-ico {
  width: 32px; height: 32px; border-radius: 10px;
}
.done-actions .method-txt small { font-size: .62rem; }
.done-actions .method.primary {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 48px;
  gap: 8px;
}
.receipt { display: none; }
#slipCapture {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  transform: translateX(-120vw);
  pointer-events: none;
  z-index: 0;
}
.bill-paper .is-bold,
.bill-paper .is-bold b,
.bill-paper .is-bold strong,
.bill-paper h1.is-bold,
.bill-paper .is-bold h1 {
  font-weight: 800 !important;
}
.bill-paper .is-plain,
.bill-paper .is-plain b,
.bill-paper .is-plain strong,
.bill-paper h1.is-plain,
.bill-paper .is-plain h1 {
  font-weight: 500 !important;
}
.slip-design { margin: 14px 0 4px; }
.slip-lead { margin: 0 0 8px; color: #78716c; font-size: .78rem; font-weight: 650; }
.slip-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.slip-tab {
  flex: 1; height: 36px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: #1c140f; font-weight: 800; font-size: .82rem;
}
.slip-tab.on { background: #9a3412; color: #fff7ed; border-color: #9a3412; }
.slip-work { display: grid; gap: 10px; }
.slip-fields { display: grid; gap: 6px; }
.slip-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.slip-row.off { opacity: .5; }
.slip-show { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: .82rem; min-width: 0; }
.slip-show input { width: 16px; height: 16px; accent-color: #9a3412; }
.slip-bold {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: #78716c; font-weight: 800; font-size: .72rem;
}
.slip-bold.on { background: #1c140f; color: #fff7ed; border-color: #1c140f; }
.slip-bold.is-na { width: 52px; border: 0; background: transparent; }
.slip-row { flex-wrap: wrap; align-items: flex-start; }
.slip-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.slip-sizes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.slip-size {
  width: 28px; height: 28px; border: 0; background: transparent; color: #78716c;
  font-weight: 800; font-size: .72rem;
}
.slip-size.on { background: #9a3412; color: #fff7ed; }
.slip-del {
  height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid #fecaca;
  background: #fff; color: #b91c1c; font-weight: 800; font-size: .68rem;
}
.kot-wait {
  display: grid; gap: 8px; margin: 2px 0 8px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.master-form .kot-wait .switch-lab {
  display: flex; text-transform: none; letter-spacing: 0;
  font-size: .92rem; color: var(--ink); font-weight: 800;
}
.master-form .kot-wait-sec {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--ink); font-weight: 800;
}
.master-form .kot-wait-sec input { width: 88px; text-align: center; font-weight: 800; }
.bill-paper h1.sz-s { font-size: 1.1rem !important; }
.bill-paper h1.sz-l { font-size: 1.9rem !important; }
.bill-paper .bill-kicker.sz-s { font-size: .5rem !important; }
.bill-paper .bill-kicker.sz-l { font-size: .82rem !important; }
.bill-paper .bill-addr.sz-s { font-size: .58rem !important; }
.bill-paper .bill-addr.sz-l { font-size: .95rem !important; }
.bill-paper .bill-gstin.sz-s { font-size: .54rem !important; }
.bill-paper .bill-gstin.sz-l { font-size: .88rem !important; }
.bill-paper .bill-title.sz-s { font-size: .58rem !important; }
.bill-paper .bill-title.sz-l { font-size: .95rem !important; }
.bill-paper .bill-meta .sz-s span { font-size: .48rem !important; }
.bill-paper .bill-meta .sz-s b { font-size: .64rem !important; }
.bill-paper .bill-meta .sz-l span { font-size: .76rem !important; }
.bill-paper .bill-meta .sz-l b { font-size: 1.05rem !important; }
.bill-paper .bill-items td.sz-s { font-size: .64rem !important; }
.bill-paper .bill-items td.sz-l { font-size: 1.05rem !important; }
.bill-paper .bill-sums .sz-s { font-size: .58rem !important; }
.bill-paper .bill-sums .sz-l { font-size: .95rem !important; }
.bill-paper .bill-token.sz-s span { font-size: .5rem !important; }
.bill-paper .bill-token.sz-s b { font-size: 1.7rem !important; }
.bill-paper .bill-token.sz-l span { font-size: .82rem !important; }
.bill-paper .bill-token.sz-l b { font-size: 3.15rem !important; }
.bill-paper .bill-grand.sz-s { font-size: .7rem !important; }
.bill-paper .bill-grand.sz-s strong { font-size: .82rem !important; }
.bill-paper .bill-grand.sz-l { font-size: 1.05rem !important; }
.bill-paper .bill-grand.sz-l strong { font-size: 1.35rem !important; }
.bill-paper .bill-paid.sz-s { font-size: .64rem !important; }
.bill-paper .bill-paid.sz-l { font-size: 1.05rem !important; }
.bill-paper .bill-thanks.sz-s, .bill-paper .bill-tag.sz-s { font-size: .62rem !important; }
.bill-paper .bill-thanks.sz-l { font-size: 1.2rem !important; }
.bill-paper .bill-tag.sz-l { font-size: .88rem !important; }
.bill-paper .bill-foot.sz-s { font-size: .5rem !important; }
.bill-paper .bill-foot.sz-l { font-size: .82rem !important; }
.bill-paper .bill-type.sz-s { font-size: .54rem !important; }
.bill-paper .bill-type.sz-l { font-size: .74rem !important; }
.bill-paper .print-logo.sz-s { width: 40px; height: 30px; }
.bill-paper .print-logo.sz-l { width: 74px; height: 56px; }
.slip-reset {
  height: 36px; border: 0; border-radius: 12px; background: #efe6dc; color: #1c140f; font-weight: 800;
}
.slip-preview {
  background: #efe6dc; border-radius: 16px; padding: 10px; max-height: 520px;
  max-width: 100%; overflow: auto; box-sizing: border-box;
}
.slip-stage { display: grid; gap: 8px; align-content: start; }
.slip-ink { display: flex; gap: 6px; }
.slip-ink-btn {
  flex: 1; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: #1c140f; font-weight: 800; font-size: .78rem;
}
.slip-ink-btn.on { background: #1c140f; color: #fff7ed; border-color: #1c140f; }
.slip-preview.is-mono { background: #e7e5e4; }
.slip-preview.is-mono .bill-paper {
  background: #fff; color: #111; box-shadow: none; border: 1px solid #111;
}
.slip-preview.is-mono .bill-head {
  background: #fff; color: #111; border-bottom: 2px solid #111;
}
.slip-preview.is-mono .bill-head h1,
.slip-preview.is-mono .bill-kicker,
.slip-preview.is-mono .bill-addr,
.slip-preview.is-mono .bill-gstin,
.slip-preview.is-mono .bill-title,
.slip-preview.is-mono .bill-items th,
.slip-preview.is-mono .bill-grand,
.slip-preview.is-mono .bill-grand strong,
.slip-preview.is-mono .bill-paid,
.slip-preview.is-mono .bill-meta span,
.slip-preview.is-mono .bill-items .bill-item small,
.slip-preview.is-mono .bill-thanks,
.slip-preview.is-mono .bill-tag,
.slip-preview.is-mono .bill-upi-cap,
.slip-preview.is-mono .bill-upi-note { color: #111 !important; }
.slip-preview.is-mono .bill-title,
.slip-preview.is-mono .bill-items th,
.slip-preview.is-mono .bill-grand,
.slip-preview.is-mono .bill-paid,
.slip-preview.is-mono .bill-paid.due {
  background: #fff !important; border: 1px solid #111;
}
.slip-preview.is-mono .bill-items tbody tr:nth-child(odd) td { background: #f4f4f4; }
.slip-preview.is-mono .bill-items tbody tr:nth-child(even) td { background: #fff; }
.slip-preview.is-mono .bill-dash { border-top-color: #111; }
.slip-preview.is-mono .bill-foot { color: #333 !important; }
.slip-preview.is-mono .bill-upi { background: #fff; border-color: #111; }
.slip-preview.is-mono .bill-crest,
.slip-preview.is-mono .bill-crest img,
.slip-preview.is-mono .bill-upi img { filter: grayscale(1); }
.slip-preview .bill-paper,
.slip-preview .kot-paper { width: 100%; max-width: 100%; box-sizing: border-box; }
.bill-paper { position: relative; }
.bill-type {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  max-width: 46%;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800 !important;
  font-size: .62rem;
  line-height: 1.1;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bill-paper .bill-type {
  top: auto;
  bottom: 8px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: 70%;
  background: #111;
  color: #fff;
}
.bill-paper.has-type { padding-bottom: 42px; }
#billPreview .bill-paper.has-type { padding-bottom: 42px; }
.bill-paper.has-type .bill-head { padding-top: 12px; }
#billPreview .bill-paper.has-type .bill-head { padding: 12px 12px 12px; }
.bill-paper .bill-type.is-plain { font-weight: 800 !important; color: #fff !important; }
@media (min-width: 860px) {
  .slip-work { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
#slipCapture .bill-paper {
  width: 100%;
  max-width: none;
  margin: 0;
}

.bill-preview-wrap {
  margin: 8px 0 0;
  padding: 8px 6px;
  border-radius: 16px;
  min-height: 160px;
  max-height: none;
  overflow: auto;
  flex: 1 1 auto;
  background:
    repeating-linear-gradient(90deg, #c4a574 0 8px, transparent 8px 14px) top / 100% 3px no-repeat,
    #e8d5c0;
}
#billPreview .bill-paper {
  padding: 0 0 8px;
}
#billPreview .bill-paper.has-type { padding-bottom: 46px; }
#billPreview .bill-head { padding: 14px 12px 12px; }
#billPreview .bill-head h1 { font-size: 1.2rem; }
#billPreview .bill-crest { width: 56px; height: 56px; font-size: .9rem; border-radius: 8px; }
.bill-paper {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #fffaf6;
  color: #1c140f;
  padding: 0 0 12px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(60, 24, 8, .16);
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.bill-head {
  text-align: center;
  color: #fff;
  padding: 18px 16px 16px;
  background: linear-gradient(155deg, #1e293b 0%, #7c2d12 46%, #c2410c 100%);
}
.bill-crest {
  width: 64px; height: 64px; margin: 0 auto 10px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #fff7ed; color: #9a3412;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .85);
}
.bill-crest img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.bill-crest.print-logo,
#billPreview .bill-crest.print-logo {
  width: 54px; height: 40px; margin: 0 auto 6px;
  background: #fff; border-radius: 4px; border: 0; box-shadow: none;
}
.bill-kicker {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffedd5;
}
.bill-head h1 {
  margin: 4px auto 6px;
  width: 100%;
  text-align: center;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}
.bill-stars {
  display: none;
}
.bill-rule {
  height: 0;
  margin: 8px auto 10px;
  width: 72%;
  border-top: 2px solid rgba(255, 255, 255, .7);
}
.bill-addr {
  margin: 0;
  font-size: .72rem;
  line-height: 1.4;
  color: #fff7ed;
  font-weight: 700;
}
.bill-gstin {
  margin: 6px 0 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}
.bill-token {
  margin: 6px 0 2px;
  text-align: center;
}
.bill-token span {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.bill-token b {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  background: transparent;
  color: #111;
}
.kot-paper .bill-token {
  margin: 4px 12px 2px;
  padding: 0;
  background: transparent;
  color: #111;
}
.kot-paper .bill-token span {
  color: #111;
  font-size: .72rem;
  letter-spacing: .22em;
}
.kot-paper .bill-token b {
  color: #111;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
}
.kot-paper .bill-items { font-size: 1rem; }
.kot-paper .bill-items td.bill-item,
.kot-paper .bill-items td.c {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.kot-paper .bill-items td.bill-item {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.kot-paper .bill-items td.c { white-space: nowrap; vertical-align: top; }
.kot-paper .bill-items td.sz-s { font-size: .84rem !important; }
.kot-paper .bill-items td.sz-l { font-size: 1.28rem !important; }
.bill-title {
  margin: 12px 14px 8px;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  background: #9a3412;
  border-radius: 8px;
  padding: 7px 0;
}
.bill-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-bottom: 4px;
}
.bill-meta { padding: 0 14px; }
.bill-meta span {
  display: block;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9a3412;
}
.bill-meta b {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-top: 1px;
}
.bill-dash {
  height: 0;
  margin: 8px 14px;
  border-top: 1px dashed #e7cbb8;
}
.bill-items {
  width: calc(100% - 20px);
  max-width: calc(100% - 20px);
  margin: 0 10px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .78rem;
}
.bill-items th {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: #9a3412;
  font-weight: 800;
  padding: 7px 6px;
  border-bottom: 0;
}
.bill-items th:first-child { border-radius: 8px 0 0 8px; }
.bill-items th:last-child { border-radius: 0 8px 8px 0; }
.bill-items td {
  padding: 7px 6px;
  vertical-align: top;
  border-bottom: 0;
  font-weight: 700;
  color: #1c140f;
}
.bill-items tbody tr:nth-child(odd) td { background: #fff1e6; }
.bill-items tbody tr:nth-child(even) td { background: #fff; }
.bill-items .bill-item { font-weight: 800; }
.bill-items .bill-item small {
  display: block;
  margin-top: 1px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9a3412;
}
.bill-items .c, .bill-items th.c { text-align: center; width: 12%; }
.bill-items .r, .bill-items th.r { text-align: right; width: 22%; white-space: nowrap; }
.bill-sums {
  width: 100%;
  max-width: 100%;
  font-size: .7rem;
  padding: 0 14px;
  box-sizing: border-box;
}
.bill-sums div, .bill-grand {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 12px;
  padding: 1px 0;
}
.bill-sums span { color: #1c140f; font-weight: 800; }
.bill-sums b { font-weight: 800; }
.bill-grand {
  margin: 6px 14px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #9a3412, #c2410c);
  color: #fff;
  font-size: .85rem;
  align-items: baseline;
  font-weight: 800;
}
.bill-grand strong {
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #fff;
}
.bill-paid {
  margin: 8px 14px 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: #14532d;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
}
.bill-paid.due { background: #9a3412; }
.bill-upi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px 14px 2px;
  padding: 12px 10px 10px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
}
.bill-upi-frame {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(154, 52, 18, .12);
}
.bill-upi img, .bill-upi canvas {
  width: 168px;
  height: 168px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #fff;
  image-rendering: pixelated;
}
.bill-upi-cap {
  margin: 8px 0 0;
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a3412;
}
.bill-upi-note {
  margin: 2px 0 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  color: #1c140f;
  line-height: 1.25;
}
.bill-thanks {
  margin: 10px 14px 0;
  text-align: center;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: #9a3412;
}
.bill-tag {
  margin: 2px 0 0;
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c2410c;
}
.bill-foot {
  margin: 6px 14px 0;
  text-align: center;
  font-size: .62rem;
  line-height: 1.35;
  color: #78716c;
  font-weight: 700;
}

.back-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px 0 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: .8rem; line-height: 1;
}
.back-btn svg { width: 16px; height: 16px; display: block; }
.rpt-head {
  display: flex; align-items: flex-start; gap: 10px;
}
.rpt-head h2 { margin: 0; }
.rpt-head p { margin: 4px 0 12px; }
#viewReports.on {
  overflow-y: auto;
  margin: -12px -12px 0;
  padding: 12px 12px calc(var(--dock-h) + var(--safe-b) + 18px);
  gap: 8px;
  background: #f6f1ea;
}
body:has(#viewReports.on) .dock {
  background: #050216;
}
@media (max-width: 900px) {
  body:has(#viewReports.on) .dock {
    background: #050216;
  }
}
.rpt-staff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.rpt-scope {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  font-size: .78rem;
  color: var(--mute);
}
.rpt-scope[hidden],
.rpt-staff-pick[hidden] {
  display: none !important;
}
.rpt-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 3px;
  cursor: pointer;
}
.rpt-switch-knob {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
  transform: translateX(0);
  transition: transform .18s ease;
}
.rpt-switch.is-all {
  background: #0f172a;
}
.rpt-switch.is-all .rpt-switch-knob {
  transform: translateX(22px);
}
.rpt-staff-pick {
  display: grid;
  gap: 4px;
  width: 100%;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.rpt-staff-pick select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 700 .9rem Poppins, sans-serif;
  color: var(--ink);
  padding: 0 12px;
}
.rpt-bill small { display: block; line-height: 1.4; }
.rpt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.rpt-edit {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #1c140f;
  color: #fff7ed;
  font: 800 .78rem/1 Poppins, "Segoe UI", sans-serif;
}
.rpt-bill-acts { display: flex; gap: 6px; }
.rpt-del {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1f2;
  color: #9f1239;
  font: 800 .78rem/1 Poppins, "Segoe UI", sans-serif;
}
.rpt-range {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.rpt-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.rpt-export {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.rpt-export button {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: .78rem;
}
.rpt-export button svg { width: 16px; height: 16px; display: block; }
.rpt-export button:disabled { opacity: .45; }
.rpt-export #btnRptPdf { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.rpt-export #btnRptXls { background: #ecfdf3; border-color: #86efac; color: #166534; }
.rpt-range button, .rpt-tabs button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  font-weight: 750; font-size: .74rem;
  color: var(--mute);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px;
  line-height: 1.15;
  text-align: center;
}
.rpt-range button svg, .rpt-tabs button svg {
  width: 15px; height: 15px; display: block;
}
.rpt-tabs button { font-size: .7rem; }
.rpt-range button.on, .rpt-tabs button.on {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff7ed;
}
.rpt-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.rpt-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.rpt-kpi span {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.2;
}
.rpt-kpi b,
.rpt-kpi .rpt-amt {
  display: block;
  margin: 0;
  width: 100%;
  font-size: 1.08rem;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--ink);
}
.rpt-kpi:nth-child(2) .rpt-amt,
.rpt-kpi:nth-child(6) .rpt-amt {
  color: #9a3412;
}
.rpt-body { display: grid; gap: 10px; padding-bottom: 28px; }
#viewReports .rpt-body { gap: 6px; }
.rpt-hero {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  background:
    radial-gradient(180px 80px at 8% 0%, rgba(251, 191, 36, .35), transparent 70%),
    linear-gradient(135deg, #9a3412, #c2410c 55%, #ea580c);
  color: #fff7ed;
  border-radius: 18px;
  padding: 12px;
}
.rpt-hero b { display: block; font-size: 1.02rem; font-weight: 800; }
.rpt-hero small { display: block; margin-top: 3px; opacity: .88; font-weight: 650; }
.rpt-hero strong { font-size: 1.05rem; font-weight: 800; }
.rpt-amt {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-size: .95rem;
  flex: 0 0 auto;
  align-self: start;
}
.rpt-hero .rpt-amt { color: #fff7ed; font-size: 1.05rem; }
.rpt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.rpt-row.media, .rpt-row.item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
}
.rpt-copy { min-width: 0; }
.rpt-row > div { min-width: 0; }
.rpt-row.off { opacity: .45; }
.rpt-row b { font-weight: 800; }
.rpt-row small { display: block; color: var(--mute); font-weight: 650; margin-top: 4px; line-height: 1.4; }
.rpt-row .rpt-amt { margin-top: 2px; }
.rpt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rpt-name b { min-width: 0; overflow-wrap: anywhere; }
.rpt-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rpt-pill.due { background: #fee2e2; color: #991b1b; }
.rpt-hero-k {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,247,237,.18);
  border-radius: 99px;
  padding: 2px 8px;
  margin-bottom: 4px;
}
.rpt-photo {
  width: 56px; height: 56px; object-fit: cover; border-radius: 14px;
  background: #f3e4d4; display: block;
}
.rpt-photo.lg { width: 72px; height: 72px; border-radius: 16px; }
.rpt-photo.hero {
  width: 100%; height: 160px; border-radius: 18px; object-fit: cover;
  display: block; margin-bottom: 10px;
}
.rpt-photo.ph {
  display: grid; place-items: center; color: #c2410c;
}
.rpt-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff7ed; color: #c2410c;
  flex: 0 0 48px;
}
.rpt-ico.pay-upi { background: #ffedd5; color: #c2410c; }
.rpt-ico.pay-cash { background: #dcfce7; color: #15803d; }
.rpt-ico.pay-card { background: #e0e7ff; color: #3730a3; }
.rpt-ico.mode-dine { background: #ffedd5; color: #c2410c; }
.rpt-ico.mode-takeaway { background: #e0f2fe; color: #0369a1; }
.rpt-ico.mode-delivery { background: #ede9fe; color: #6d28d9; }
.rpt-stack {
  width: 48px; height: 48px; position: relative; flex: 0 0 48px;
}
.rpt-stack img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 12px;
  position: absolute; border: 2px solid #fffaf4;
  background: #f3e4d4;
}
.rpt-stack img:nth-child(1) { left: 0; top: 10px; z-index: 1; }
.rpt-stack img:nth-child(2) { left: 10px; top: 4px; z-index: 2; }
.rpt-stack img:nth-child(3) { left: 18px; top: 0; z-index: 3; }
.rpt-rank {
  display: inline-flex; align-items: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  background: #f3e4d4; color: #9a3412;
  border-radius: 99px; padding: 2px 7px;
}
.rpt-rank.r1 { background: #ea580c; color: #fff7ed; }
.rpt-rank.r2 { background: #f59e0b; color: #7c2d12; }
.rpt-rank.r3 { background: #fdba74; color: #7c2d12; }
.rpt-veg {
  width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1.6px currentColor;
  background: currentColor;
}
.rpt-veg.veg { color: #15803d; }
.rpt-veg.nv { color: #b91c1c; }
.rpt-bar {
  grid-column: 1 / -1;
  height: 7px;
  margin-top: 2px;
  background: #ead9c8;
  border-radius: 99px;
  overflow: hidden;
}
.rpt-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ea580c, #9a3412);
  border-radius: 99px;
}

#viewReports.on > * {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}
#viewReports .page-hero p:not(.page-kicker),
#viewTables .page-hero p:not(.page-kicker) {
  margin: 3px 0 0;
}
#viewReports .rpt-export {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
#viewReports .rpt-export .rpt-top-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
  font-size: .64rem;
  gap: 3px;
}
#viewReports .rpt-export .rpt-pdf {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
#viewReports .rpt-export .rpt-xls {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}
#viewReports .rpt-export .rpt-wa {
  background: #dcfce7;
  border-color: #4ade80;
  color: #15803d;
}
#viewReports .rpt-export .rpt-mail {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
#viewReports .rpt-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #eadfce;
  background: #fff;
  color: #1c140f;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}
#viewReports .rpt-top-btn svg { width: 14px; height: 14px; display: block; }
#viewReports .rpt-top-btn.is-solid {
  background: #1c140f;
  border-color: #1c140f;
  color: #fff7ed;
}
#viewReports .rpt-top-btn:disabled { opacity: .45; }
#viewReports .rpt-add-exp {
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: #1c140f;
  color: #fff7ed;
  font: 800 .92rem Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-add-exp svg { width: 16px; height: 16px; display: block; }
#viewReports .rpt-export button {
  min-height: 32px;
  border-radius: 999px;
  box-shadow: none;
}
#viewReports .rpt-find {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#viewReports .rpt-find:has(.rpt-when:not([hidden])) {
  align-items: stretch;
  border-radius: 0;
}
#viewReports .rpt-range {
  display: flex;
  flex: 1 1 100%;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#viewReports .rpt-range .rpt-top-btn {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 4px;
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #fff;
  color: #5c4a3a;
  font-size: .68rem;
  box-shadow: none;
}
#viewReports.is-audit #btnExpense { display: none !important; }
#viewReports .rpt-tabs button svg { width: 14px; height: 14px; flex: 0 0 auto; }
#viewReports .rpt-range .rpt-top-btn.on {
  background: #1c140f;
  border-color: #1c140f;
  color: #fff7ed;
  box-shadow: none;
}
#viewReports .rpt-when {
  position: relative;
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  min-width: 0;
  margin: 0;
  gap: 6px;
}
#viewReports .rpt-when[hidden] { display: none !important; }
#viewReports .rpt-when .float-field {
  flex: 1 1 auto;
  min-width: 0;
}
#viewReports .rpt-when .float-field[hidden],
#viewReports .rpt-when .date-face[hidden] { display: none !important; }
#viewReports .rpt-when .float-field > span {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  color: #8a7564;
}
#viewReports .rpt-span {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#viewReports .rpt-span[hidden] { display: none !important; }
#viewReports .rpt-span label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a7564;
}
#viewReports .rpt-span input {
  height: 36px;
  width: 100%;
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 0 8px;
  background: #fff;
  color: #1c140f;
  font: 700 .78rem Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-staff-pick { text-transform: none; letter-spacing: 0; }
#viewReports .rpt-staff-chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}
#viewReports .rpt-who {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #fff;
  color: #5c4a3a;
  font: 800 .72rem Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-who.on {
  background: #1c140f;
  color: #fff7ed;
  border-color: #1c140f;
}
#viewReports .rpt-when input {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-left: 1px solid #eadfce;
  border-radius: 0 999px 999px 0;
  background: #fff7ed;
  color: #1c140f;
  font: 700 .68rem Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-bill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 8px 14px;
  border-left: 3px solid #d6d3d1;
}
#viewReports .rpt-bill.is-cash { border-left-color: #16a34a; }
#viewReports .rpt-bill.is-upi { border-left-color: #4f46e5; }
#viewReports .rpt-bill.is-card { border-left-color: #ea580c; }
#viewReports .rpt-bill.is-due { border-left-color: #e11d48; }
#viewReports .rpt-bill.is-split { border-left-color: #0f766e; }
#viewReports .rpt-bill.is-other { border-left-color: #a16207; }
#viewReports .rpt-bill.is-room { border-left-color: #f59e0b; }
#viewReports .rpt-bill-top,
#viewReports .rpt-bill-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#viewReports .rpt-bill-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
#viewReports .rpt-bill-id {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#viewReports .rpt-bill-no {
  font-size: .92rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}
#viewReports .rpt-mod {
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff1df;
  color: #c2410c;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
}
.bill-view-lines .mod-h { display: block; margin: 10px 0 4px; color: #8a7564; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
#viewReports .rpt-bill .rpt-amt {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#viewReports .rpt-bill-when {
  color: #8a7564;
  font-size: .72rem;
  font-weight: 650;
}
#viewReports .rpt-bill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
#viewReports .rpt-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f4efe8;
  color: #5c4a3a;
  font: 700 .62rem/1 Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-chip.rpt-token {
  background: #1c140f;
  color: #fff7ed;
}
#viewReports .rpt-bill .rpt-bill-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
#viewReports .rpt-bill .rpt-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  font: 800 .66rem/1 Poppins, "Segoe UI", sans-serif;
}
#viewReports .rpt-bill .rpt-act svg { width: 13px; height: 13px; flex: 0 0 auto; }
#viewReports .rpt-bill .rpt-print { background: #fff7ed; color: #c2410c; }
#viewReports .rpt-bill .rpt-edit { background: #f4efe8; color: #1c140f; }
#viewReports .rpt-bill .rpt-del { background: #fff1f2; color: #be123c; }
#viewReports .rpt-bill .rpt-view { background: #eff6ff; color: #1d4ed8; }
#viewReports .rpt-bill .rpt-restore {
  width: auto;
  align-self: flex-start;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1c140f;
  color: #fff7ed;
  box-shadow: 0 6px 14px rgba(28, 20, 15, .16);
}
#viewReports .rpt-diff {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#viewReports .rpt-diff li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .74rem;
  color: #3f342c;
}
#viewReports .rpt-diff li span {
  font-weight: 800;
  color: #c2410c;
  white-space: nowrap;
}
#viewReports .rpt-diff li.is-added span { color: #15803d; }
#viewReports .rpt-diff li.is-removed span { color: #be123c; }
#viewReports .rpt-diff-empty { margin: 4px 0 0; color: #8a7564; font-size: .72rem; }
.bill-view-lines .rpt-diff { list-style: none; margin: 0; padding: 0; }
.bill-view-lines .rpt-diff li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f3ebe3; font-size: .84rem; }
.bill-view-lines .rpt-diff li span { font-weight: 800; color: #c2410c; }
.bill-view-lines .rpt-diff li.is-added span { color: #15803d; }
.bill-view-lines .rpt-diff li.is-removed span { color: #be123c; }
#viewReports .rpt-bill .rpt-wa-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #128C7E;
  color: #fff;
  font: 800 .82rem/1 Poppins, "Segoe UI", sans-serif;
  box-shadow: 0 6px 14px rgba(18, 140, 126, .22);
}
#viewReports .rpt-bill .rpt-wa-bar svg { width: 16px; height: 16px; }
.offer-studio { background: #fffdf9; gap: 8px; margin-bottom: 0; }
.offer-api {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font: 750 .74rem/1.35 Poppins, "Segoe UI", sans-serif;
}
.offer-attach { display: grid; gap: 6px; }
.offer-attach > span,
.offer-file {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #8a7564;
}
.offer-attach-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.offer-attach-row button {
  height: 36px; border: 1px solid #eadfce; border-radius: 12px;
  background: #fff; color: #1c140f; font: 800 .76rem Poppins, "Segoe UI", sans-serif;
}
.offer-attach-row button.on { border-color: #075E54; background: #f0fdfa; color: #075E54; }
.offer-file { margin: 0; text-transform: none; letter-spacing: 0; color: #075E54; font-size: .78rem; }
.offer-file[hidden] { display: none !important; }
#offerSavedBox { display: grid; gap: 0; }
.offer-field { display: grid; gap: 6px; }
.offer-field > span {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #8a7564;
}
.offer-field textarea {
  width: 100%; min-height: 88px; resize: vertical; box-sizing: border-box;
  border: 1.5px solid #eadfce; border-radius: 14px; padding: 12px;
  background: #fff; color: #1c140f;
  font: 650 .92rem/1.45 Poppins, "Segoe UI", sans-serif;
  text-transform: none; letter-spacing: 0;
}
.offer-src {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 4px; border-radius: 999px; background: #f4efe8;
}
.offer-src button {
  height: 38px; border: 0; border-radius: 999px; background: transparent;
  color: #5c4a3a; font: 800 .78rem Poppins, "Segoe UI", sans-serif;
}
.offer-src button.on { background: #075E54; color: #fff; }
.offer-all {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 36px; margin: 0; border: 1px solid #075E54; border-radius: 14px 14px 0 0;
  background: #f0fdf4; color: #166534; font: 800 .78rem Poppins, "Segoe UI", sans-serif;
}
.offer-all.on { background: #075E54; color: #fff; }
.offer-guests { display: grid; gap: 0; max-height: 280px; overflow: auto; margin: 0; }
.offer-guest {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 8px 12px; box-sizing: border-box;
  border: 1.5px solid #eadfce; border-top: 0; border-radius: 0; background: #fff;
  text-align: left; text-transform: none; letter-spacing: 0; color: #1c140f;
}
.offer-guest .offer-tick {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px;
  border: 1.5px solid #d6d3d1; background: #fff;
}
.offer-guest.on { border-color: #128C7E; background: #f0fdfa; }
.offer-guest.on .offer-tick { border-color: #128C7E; background: #128C7E; box-shadow: inset 0 0 0 3px #fff; }
.offer-guest .offer-num {
  flex: 1; min-width: 0; font: 800 1rem/1 Poppins, "Segoe UI", sans-serif;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.offer-guest .offer-meta { color: #8a7564; font: 700 .68rem Poppins, "Segoe UI", sans-serif; }
.offer-guest.is-now { border-color: #075E54; background: #075E54; color: #fff; }
.offer-guest.is-now .offer-meta { color: #bbf7d0; }
.offer-guest.is-done { opacity: .55; }
.offer-guest:last-child { border-radius: 0 0 14px 14px; }
.offer-live {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: #075E54; color: #fff;
}
.offer-live b { font-size: .95rem; }
.offer-live span { font: 750 .82rem Poppins, "Segoe UI", sans-serif; letter-spacing: .04em; }
.offer-live[hidden] { display: none !important; }
.offer-status { margin: 0; color: #78716c; font-size: .8rem; font-weight: 650; }
.offer-send {
  width: 100%; height: 48px; border: 0; border-radius: 14px;
  background: #128C7E; color: #fff;
  font: 800 .95rem Poppins, "Segoe UI", sans-serif;
  box-shadow: 0 8px 16px rgba(18, 140, 126, .24);
}
#offerTypeBox[hidden], #offerSavedBox[hidden] { display: none !important; }
#waAsk { padding: 16px; box-sizing: border-box; }
#waAsk .ask-card {
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
#waAsk .ask-card h3,
#waAsk .ask-card p { overflow-wrap: anywhere; }
#waAsk .ask-card p { margin: 6px 0 14px; }
#waAsk .guest-phone,
#waAsk .guest-phone-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
#waAsk .guest-phone { margin: 0 0 14px; }
#waAsk .ask-acts { grid-template-columns: 1fr 1.15fr; min-width: 0; }
#waAsk .ask-acts .ghost-btn {
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  gap: 6px;
  font-size: .86rem;
  white-space: nowrap;
}
#waAsk .ask-acts .ghost-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
#waAskYes {
  background: #128C7E;
  border-color: #128C7E;
  color: #fff;
}
.bill-view-card { width: min(420px, 100%); }
#billView .ask-card p { margin: 6px 0 12px; color: #78716c; font-size: .78rem; font-weight: 700; }
.bill-view-lines {
  max-height: min(46vh, 320px);
  overflow: auto;
  margin: 0 0 10px;
  border: 1px solid #efe6dc;
  border-radius: 14px;
  background: #fff;
}
.bill-view-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f4efe8;
  font-size: .88rem;
  font-weight: 650;
}
.bill-view-line:last-child { border-bottom: 0; }
.bill-view-line b { font-weight: 800; }
.bill-view-tot { display: grid; gap: 4px; margin: 0 0 12px; }
.bill-view-tot span { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: #78716c; font-weight: 700; }
.bill-view-tot b { color: #1c140f; }
.bill-view-tot .is-grand { font-size: .95rem; color: #1c140f; font-weight: 800; padding-top: 4px; }
.bill-view-acts { display: grid; gap: 8px; }
.bill-view-acts .ghost-btn svg,
#printPickClose svg { width: 16px; height: 16px; flex: 0 0 16px; }
.print-pick-acts { margin: 0 0 10px; }
#printPickClose { width: 100%; }
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 62%;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font: 800 .6rem/1 Poppins, "Segoe UI", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pay-badge.pay-cash { background: #dcfce7; color: #166534; }
.pay-badge.pay-upi { background: #e0e7ff; color: #3730a3; }
.pay-badge.pay-card { background: #ffedd5; color: #9a3412; }
.pay-badge.pay-due { background: #fee2e2; color: #991b1b; }
.pay-badge.pay-split { background: #ccfbf1; color: #115e59; }
.pay-badge.pay-other { background: #f1f5f9; color: #334155; }
#viewReports .rpt-staff { margin: 0; }
#viewReports .rpt-staff-pick { gap: 6px; }
#viewReports .rpt-staff-pick span { color: #8a7564; letter-spacing: .16em; }
#viewReports .rpt-staff-pick select,
#viewReports .rpt-staff-pick select:focus {
  height: 46px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  padding: 0 36px 0 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231c140f' stroke-width='1.8'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
  box-shadow: none;
  color: #1c140f;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#viewReports .rpt-load {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 146, 60, .42), transparent 36%),
    radial-gradient(circle at 50% 80%, rgba(154, 52, 18, .35), transparent 42%),
    #14110e;
  color: #fff7ed;
  box-shadow: none;
}
#viewReports .rpt-load[hidden] { display: none !important; }
#viewReports .rpt-load-spin {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 50%;
  border: 3px solid rgba(255, 247, 237, .18);
  border-top-color: #fb923c;
  border-right-color: #fdba74;
  animation: spin .75s linear infinite;
}
#viewReports .rpt-load-spin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid transparent;
  border-bottom-color: #fff7ed;
  border-radius: 50%;
  animation: spin 1.15s linear infinite reverse;
}
#viewReports .rpt-load-msg {
  margin: 0;
  flex: 0 0 auto;
  min-height: 1.2em;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff7ed;
}
#viewReports .rpt-load-msg span {
  display: inline-block;
  animation: rptLoadIn .42s ease;
}
#viewReports .rpt-load-msg span::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: bootDots 1s steps(4, end) infinite;
}
#viewReports .rpt-load-dots { display: none; }
#viewReports .rpt-more {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff7f0;
  color: #9a3412;
  font-weight: 700;
}
#viewReports .rpt-skel,
#viewReports .rpt-skel-line {
  border-radius: 14px;
  background: linear-gradient(90deg, #f3ebe3 20%, #fffaf6 45%, #f3ebe3 70%);
  background-size: 220% 100%;
  animation: rptShimmer 1.05s linear infinite;
}
#viewReports .rpt-skel { height: 108px; }
#viewReports .rpt-skel-line {
  height: 64px;
  margin: 0 0 8px;
}
#viewReports .rpt-skel-line.short { width: 72%; }
@keyframes rptLoadIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rptDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes rptShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
#viewReports .rpt-amt.is-tick,
#viewReports .rpt-snap-vals b.is-tick {
  display: inline-block;
  animation: rptCount .72s cubic-bezier(.16, .84, .32, 1);
}
#viewReports .rpt-kpis.is-sync .rpt-snap-main > div:first-child span {
  animation: rptLive 1s ease-in-out infinite;
}
@keyframes rptCount {
  0% { transform: translateY(8px) scale(.9); opacity: .2; }
  45% { transform: translateY(-3px) scale(1.06); opacity: 1; color: #ea580c; }
  100% { transform: none; opacity: 1; }
}
@keyframes rptLive {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
#viewReports .rpt-kpis {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
#viewReports .rpt-look {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 8px;
}
#viewReports .rpt-look button {
  min-height: 38px;
  border: 1px solid #eadfce;
  background: #fffdfb;
  border-radius: 14px;
  color: #8a6a42;
  font-weight: 750;
  font-size: .74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
}
#viewReports .rpt-look button svg { width: 15px; height: 15px; display: block; }
#viewReports .rpt-look button.on {
  background: #1c140f;
  border-color: #1c140f;
  color: #fff7ed;
}
#viewReports .rpt-look.is-enter button.on svg { animation: rptIco .48s cubic-bezier(.16, .84, .32, 1); }
#viewReports .rpt-board.is-enter > span,
#viewReports .rpt-graph.is-enter .rpt-graph-stats span,
#viewReports .rpt-graph.is-enter .rpt-chart-card {
  animation: rptRise .52s cubic-bezier(.16, .84, .32, 1) both;
}
#viewReports .rpt-board.is-enter > span:nth-child(2) { animation-delay: .04s; }
#viewReports .rpt-board.is-enter > span:nth-child(3) { animation-delay: .08s; }
#viewReports .rpt-board.is-enter > span:nth-child(4) { animation-delay: .12s; }
#viewReports .rpt-board.is-enter > span:nth-child(5) { animation-delay: .16s; }
#viewReports .rpt-board.is-enter > span:nth-child(6) { animation-delay: .2s; }
#viewReports .rpt-board.is-enter > span:nth-child(7) { animation-delay: .24s; }
#viewReports .rpt-board.is-enter > span:nth-child(8) { animation-delay: .28s; }
#viewReports .rpt-board.is-enter > span:nth-child(9) { animation-delay: .32s; }
#viewReports .rpt-board.is-enter > span:nth-child(10) { animation-delay: .36s; }
#viewReports .rpt-board.is-enter > span:nth-child(11) { animation-delay: .4s; }
#viewReports .rpt-board.is-enter > span:nth-child(12) { animation-delay: .44s; }
#viewReports .rpt-graph.is-enter .rpt-graph-stats span:nth-child(2) { animation-delay: .05s; }
#viewReports .rpt-graph.is-enter .rpt-graph-stats span:nth-child(3) { animation-delay: .1s; }
#viewReports .rpt-graph.is-enter .rpt-graph-stats span:nth-child(4) { animation-delay: .15s; }
#viewReports .rpt-graph.is-enter .rpt-chart-card:nth-child(2) { animation-delay: .12s; }
#viewReports .rpt-graph.is-enter .rpt-chart-card:nth-child(3) { animation-delay: .22s; }
#viewReports .rpt-graph.is-enter .rpt-chart-card:nth-child(4) { animation-delay: .32s; }
@keyframes rptRise {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes rptIco {
  0% { transform: scale(.55) rotate(-14deg); opacity: .2; }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #viewReports .rpt-board.is-enter > span,
  #viewReports .rpt-graph.is-enter .rpt-graph-stats span,
  #viewReports .rpt-graph.is-enter .rpt-chart-card,
  #viewReports .rpt-look.is-enter button.on svg { animation: none; }
}
#viewReports .rpt-board[hidden],
#viewReports .rpt-graph[hidden],
#viewReports .rpt-chart-card[hidden] { display: none !important; }
#viewReports .rpt-graph { display: flex; flex-direction: column; gap: 8px; }
#viewReports .rpt-graph-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
#viewReports .rpt-graph-stats span {
  min-width: 0;
  background: #fffdfb;
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}
#viewReports .rpt-graph-stats i {
  display: block;
  font-style: normal;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a89888;
}
#viewReports .rpt-graph-stats b {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: #1c140f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#viewReports .rpt-chart-card {
  background: #fffdfb;
  border: 1px solid #eadfce;
  border-radius: 16px;
  padding: 10px 6px 2px;
  box-shadow: 0 8px 22px rgba(28, 20, 15, .04);
}
#viewReports .rpt-chart-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}
#viewReports .rpt-chart-card header b { font-size: .82rem; color: #1c140f; }
#viewReports .rpt-chart-card header small {
  color: #a89888;
  font-size: .62rem;
  font-weight: 650;
  text-align: right;
}
#viewReports .rpt-chart-card .empty-bill { margin: 18px 8px 22px; }
#viewReports .rpt-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#viewReports .rpt-board > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 8px 10px;
  background: #fffdfb;
  border: 1px solid #eadfce;
  border-left: 4px solid #019d9d;
  border-radius: 12px;
}
#viewReports .rpt-board > span i {
  font-style: normal;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #a89888;
}
#viewReports .rpt-board > span b {
  display: block;
  font-size: .9rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #1c140f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#viewReports .rpt-board > .tone-ink { border-left-color: #1c140f; }
#viewReports .rpt-board > .tone-rose { border-left-color: #e11d48; }
#viewReports .rpt-board > .tone-rose b { color: #9f1239; }
#viewReports .rpt-board > .tone-amber { border-left-color: #c2410c; }
#viewReports .rpt-board > .tone-stone { border-left-color: #78716c; }
#viewReports .rpt-board > .tone-lodge { border-left-color: #0d9488; background: linear-gradient(160deg, #f0fdfa, #fffdfb 70%); }
#viewReports .rpt-board > .tone-lodge b { color: #0f766e; }
#viewReports .rpt-board > .tone-lodge.is-all { background: linear-gradient(150deg, #04202b, #0b3b35); border-color: #0b3b35; border-left-color: #5eead4; }
#viewReports .rpt-board > .tone-lodge.is-all i { color: #5eead4; }
#viewReports .rpt-board > .tone-lodge.is-all b { color: #fff; }
.rpt-ico.pay-room { background: #fef3c7; color: #b45309; }
.pay-badge.pay-room { gap: 4px; background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }
.pay-badge.pay-room svg { width: 10px; height: 10px; flex: 0 0 auto; }
.rpt-row.rpt-bill.is-room { border-left-color: #f59e0b; }
.rpt-chip.rpt-room { display: inline-flex; align-items: center; gap: 4px; background: #ccfbf1; color: #0f766e; font-weight: 800; }
.rpt-gst-sum.rpt-lodge-sum .gst-total { background: linear-gradient(150deg, #04202b, #0b3b35); border-color: #0b3b35; color: #fff; }
.rpt-gst-sum.rpt-lodge-sum .gst-total span { color: #5eead4; }
.rpt-lodge-mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 2px; }
.rpt-lodge-mix span {
  display: flex; align-items: center; gap: 5px; min-width: 0; padding: 7px 9px; border-radius: 10px;
  font-size: .66rem; font-weight: 700; color: #57534e; background: #fffaf4; border: 1px solid var(--line);
}
.rpt-lodge-mix span b { margin-left: auto; font-size: .78rem; color: #1c140f; white-space: nowrap; }
.rpt-lodge-mix .is-cash svg { color: #15803d; }
.rpt-lodge-mix .is-upi svg { color: #c2410c; }
.rpt-lodge-mix .is-card svg { color: #3730a3; }

/* ---- Reports by area: Overview / Restaurant / Lodge ---- */
#rptSeg[hidden], #rptTabs[hidden] { display: none !important; }
.rpt-seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  margin: 0 0 10px; padding: 3px; border-radius: 15px;
  background: #ede3d4; border: 1px solid #e3d6c3;
}
.rpt-seg button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  height: 38px; padding: 0 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: #7c6a5a; white-space: nowrap;
  font: 700 .72rem/1 Poppins, "Segoe UI", sans-serif;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.rpt-seg button svg { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
.rpt-seg button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rpt-seg button:active { transform: scale(.97); }
.rpt-seg button.on { color: #fff; box-shadow: 0 3px 10px rgba(28, 20, 15, .18); }
.rpt-seg button[data-seg="all"].on { background: #1c140f; }
.rpt-seg button[data-seg="rest"].on { background: linear-gradient(150deg, #ea580c, #c2410c); }
.rpt-seg button[data-seg="lodge"].on { background: linear-gradient(150deg, #0f766e, #0b3b35); }
.rpt-seg button[data-seg="pharma"].on { background: linear-gradient(150deg, #15803d, #166534); }
.rpt-seg.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#viewReports.seg-lodge .rpt-add-exp,
#viewReports.seg-lodge .rpt-staff,
#viewReports.seg-pharma .rpt-add-exp,
#viewReports.seg-pharma .rpt-staff { display: none !important; }
#viewReports.seg-lodge .rpt-tabs button.on { background: #0f766e; border-color: #0f766e; color: #fff; }
#viewReports.seg-pharma .rpt-tabs button.on { background: #15803d; border-color: #15803d; color: #fff; }
.rpt-slab { display: grid; gap: 6px; margin: 0 0 12px; }
.rpt-slab div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fffdfb; border: 1px solid #e3d6c3; font-size: .78rem; }
.rpt-sub { margin: 4px 2px 8px; font-size: .82rem; }
/* Lodge / overview numbers: first card is a full-width banner */
#viewReports .rpt-board.is-hero > span:first-child { grid-column: 1 / -1; min-height: 62px; }
#viewReports .rpt-board.is-hero > span:first-child b { font-size: 1.3rem; }
/* Lodge rows */
.rpt-lodge-total {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 2px 2px 8px; padding: 8px 12px; border-radius: 12px;
  background: #f0fdfa; border: 1px solid #ccfbf1; color: #0f766e;
  font-size: .7rem; font-weight: 700;
}
.rpt-lodge-total b { font-size: .86rem; font-weight: 800; color: #0b3b35; white-space: nowrap; }
#viewReports .rpt-lodge-row .rpt-bill-id { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.rpt-lodge-guest { font-size: .66rem; font-weight: 600; color: #8a7564; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-stay-pill { padding: 3px 9px; border-radius: 99px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.rpt-stay-pill.is-in { background: #fef3c7; color: #92400e; }
.rpt-stay-pill.is-out { background: #e7e5e4; color: #57534e; }
.rpt-chip.rpt-paid { background: #dcfce7; color: #166534; font-weight: 800; }
.rpt-chip.rpt-due { background: #ffe4e6; color: #9f1239; font-weight: 800; }
/* Guest cards (lodge report) */
.lg-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  margin: 0 0 10px; padding: 12px 12px 12px 16px; border-radius: 20px;
  background: #fff; border: 1px solid #e6efe9; box-shadow: 0 6px 16px -10px rgba(11, 59, 53, .35);
}
.lg-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
}
.lg-card.is-in::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.lg-card.is-out::before { background: linear-gradient(180deg, #94a3b8, #64748b); }
.lg-card.has-due::before { background: linear-gradient(180deg, #fb7185, #e11d48); }
.lg-card.is-cash::before { background: linear-gradient(180deg, #4ade80, #16a34a); }
.lg-card.is-upi::before { background: linear-gradient(180deg, #fb923c, #ea580c); }
.lg-card.is-card::before { background: linear-gradient(180deg, #818cf8, #4f46e5); }
.lg-card.is-room::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.lg-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-av {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font: 800 .86rem/1 Poppins, "Segoe UI", sans-serif; letter-spacing: .02em;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 4px 10px -4px rgba(15, 23, 42, .4);
}
.lg-av-0 { background: linear-gradient(145deg, #14b8a6, #0f766e); }
.lg-av-1 { background: linear-gradient(145deg, #f59e0b, #c2410c); }
.lg-av-2 { background: linear-gradient(145deg, #818cf8, #4338ca); }
.lg-av-3 { background: linear-gradient(145deg, #fb7185, #be123c); }
.lg-av-4 { background: linear-gradient(145deg, #38bdf8, #0369a1); }
.lg-av-5 { background: linear-gradient(145deg, #a3e635, #4d7c0f); }
.lg-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lg-who b { font-size: .92rem; font-weight: 800; color: #0f1f1c; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-who span {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  padding: 2px 8px; border-radius: 99px; background: #ecfdf5; color: #0f766e;
  font-size: .62rem; font-weight: 800; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lg-who svg { flex: 0 0 auto; }
.lg-amt { flex: 0 0 auto; font-size: 1.02rem; font-weight: 800; color: #0b3b35; letter-spacing: -.02em; white-space: nowrap; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed #dbe7e1; }
.lg-when { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: #6b7d76; }
.lg-trail { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #f4faf7; }
.lg-day { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-day i { font-style: normal; font-size: .5rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8aa098; }
.lg-day b { font-size: .8rem; font-weight: 800; color: #0f1f1c; white-space: nowrap; }
.lg-day.is-end { text-align: right; align-items: flex-end; }
.lg-line { flex: 1 1 auto; position: relative; display: flex; justify-content: center; min-width: 40px; }
.lg-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 2px dotted #9fc4b9;
}
.lg-line em {
  position: relative; padding: 2px 9px; border-radius: 99px; background: #0f766e; color: #fff;
  font-style: normal; font-size: .6rem; font-weight: 800; white-space: nowrap;
}
.lg-card.is-in .lg-line::before { border-top-style: dashed; border-top-color: #f5b94a; }
.lg-card.is-in .lg-line em { background: #f59e0b; color: #1c1917; }
.lg-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lg-money span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px;
  background: #f8faf9; border: 1px solid #edf2ef;
}
.lg-money i { font-style: normal; font-size: .5rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8aa098; }
.lg-money b { font-size: .78rem; font-weight: 800; color: #0f1f1c; white-space: nowrap; }
.lg-money .is-paid { background: #ecfdf5; border-color: #bbf7d0; }
.lg-money .is-paid b { color: #166534; }
.lg-money .is-due { background: #fff1f2; border-color: #fecdd3; }
.lg-money .is-due b { color: #be123c; }
.lg-money .is-clear b { color: #0f766e; }
.lg-prog { height: 6px; border-radius: 99px; background: #e6efe9; overflow: hidden; }
.lg-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2dd4bf, #16a34a); transition: width .5s cubic-bezier(.16, .84, .32, 1); }
.lg-card.has-due .lg-prog i { background: linear-gradient(90deg, #fb923c, #f59e0b); }
/* Overview */
.rpt-ov { display: flex; flex-direction: column; gap: 10px; }
.rpt-ov-block, .rpt-ov-card {
  border: 1px solid #eadfce; border-radius: 16px; background: #fffdfb; padding: 12px 14px;
}
.rpt-ov-block > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rpt-ov-block > header b { font-size: .82rem; font-weight: 800; color: #1c140f; }
.rpt-ov-block > header small { font-size: .62rem; font-weight: 600; color: #a89888; }
.rpt-ov-block .empty-bill { margin: 6px 0; }
.rpt-ov-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #f1e9dc; }
.rpt-ov-bar i { display: block; height: 100%; min-width: 0; transition: width .5s cubic-bezier(.16, .84, .32, 1); }
.rpt-ov-bar i + i { margin-left: 2px; }
.rpt-ov-bar .is-rest { background: linear-gradient(90deg, #f97316, #c2410c); }
.rpt-ov-bar .is-lodge { background: linear-gradient(90deg, #14b8a6, #0f766e); }
.rpt-ov-bar .is-cash { background: #16a34a; }
.rpt-ov-bar .is-upi { background: #f97316; }
.rpt-ov-bar .is-card { background: #4f46e5; }
.rpt-ov-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.rpt-ov-legend span {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot name pct" "dot amt amt";
  align-items: center; column-gap: 6px; row-gap: 1px; min-width: 0;
  font-size: .62rem; font-weight: 700; color: #7c6a5a;
}
.rpt-ov-legend u { grid-area: dot; width: 8px; height: 8px; border-radius: 99px; align-self: start; margin-top: 3px; }
.rpt-ov-legend b { grid-area: amt; font-size: .8rem; font-weight: 800; color: #1c140f; white-space: nowrap; }
.rpt-ov-legend em { grid-area: pct; font-style: normal; color: #a89888; }
.rpt-ov-legend .is-rest u { background: #c2410c; }
.rpt-ov-legend .is-lodge u { background: #0f766e; }
.rpt-ov-legend .is-cash u { background: #16a34a; }
.rpt-ov-legend .is-upi u { background: #f97316; }
.rpt-ov-legend .is-card u { background: #4f46e5; }
.rpt-ov-cards { display: flex; flex-direction: column; gap: 10px; }
.rpt-ov-card { border-left-width: 4px; }
.rpt-ov-card.is-rest { border-left-color: #c2410c; }
.rpt-ov-card.is-lodge { border-left-color: #0f766e; background: linear-gradient(160deg, #f0fdfa, #fffdfb 60%); }
.rpt-ov-card > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rpt-ov-card > header b { font-size: .84rem; font-weight: 800; color: #1c140f; }
.rpt-ov-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.rpt-ov-card.is-rest .rpt-ov-ico { background: #ffedd5; color: #c2410c; }
.rpt-ov-card.is-lodge .rpt-ov-ico { background: #ccfbf1; color: #0f766e; }
.rpt-ov-ico svg { display: block; }
.rpt-ov-card > header button {
  margin-left: auto; height: 26px; padding: 0 10px; border-radius: 99px; cursor: pointer;
  border: 1px solid #eadfce; background: #fff; color: #57534e; font: 700 .64rem/1 Poppins, "Segoe UI", sans-serif;
}
.rpt-ov-card.is-lodge > header button { border-color: #99f6e4; color: #0f766e; }
.rpt-ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.rpt-ov-grid span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rpt-ov-grid i { font-style: normal; font-size: .52rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a89888; }
.rpt-ov-grid b { font-size: .86rem; font-weight: 800; color: #1c140f; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .rpt-ov-cards { flex-direction: row; }
  .rpt-ov-cards > * { flex: 1 1 0; min-width: 0; }
}
#viewReports .rpt-kpis.is-sync .rpt-board > span:first-child i {
  animation: rptLive 1s ease-in-out infinite;
}
#viewReports .rpt-board b.is-tick {
  display: inline-block;
  animation: rptCount .72s cubic-bezier(.16, .84, .32, 1);
}
#viewReports .rpt-snap-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
}
#viewReports .rpt-snap-main span {
  display: block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c2410c;
}
#viewReports .rpt-snap-main .rpt-amt,
#viewReports .rpt-snap-main b {
  display: block;
  margin-top: 1px;
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #1c140f;
}
#viewReports .rpt-snap-net { text-align: right; }
#viewReports .rpt-snap-net span { color: #78716c; }
#viewReports .rpt-snap-net .rpt-amt,
#viewReports .rpt-snap-net b { font-size: 1.05rem; }
#viewReports .rpt-snap-vals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #f3e8dc;
}
#viewReports .rpt-snap-vals > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 6px 8px 7px;
  border-right: 1px solid #f3e8dc;
  border-bottom: 1px solid #f3e8dc;
}
#viewReports .rpt-snap-vals > span:nth-child(4n) { border-right: 0; }
#viewReports .rpt-snap-vals > span:nth-last-child(-n + 4) { border-bottom: 0; }
#viewReports .rpt-snap-vals i {
  font-style: normal;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a89888;
}
#viewReports .rpt-snap-vals b {
  font-size: .74rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #1c140f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#viewReports .rpt-kpi {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 14px 16px 13px;
  background: transparent;
  box-shadow: none;
}
#viewReports .rpt-kpi span {
  color: #8a7564;
  letter-spacing: .12em;
}
#viewReports .rpt-kpi .rpt-amt,
#viewReports .rpt-kpi b {
  color: #1c140f;
  font-size: 1.12rem;
}
#viewReports .rpt-kpi.kpi-take {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 14px 16px 10px;
  color: #1c140f;
  background:
    radial-gradient(180px 70px at 100% 0%, rgba(251, 146, 60, .18), transparent 70%),
    #fffdfb;
  border: 0;
  border-bottom: 1px solid #f3e8dc;
  box-shadow: none;
}
#viewReports .rpt-kpi.kpi-take span { color: #c2410c; }
#viewReports .rpt-kpi.kpi-take .rpt-amt,
#viewReports .rpt-kpi.kpi-take b {
  color: #1c140f;
  font-size: 1.85rem;
  letter-spacing: -.045em;
  margin-top: 0;
}
#viewReports .rpt-kpi em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: .7rem;
  font-weight: 600;
  color: #a89888;
}
#viewReports .rpt-kpi.kpi-take em { color: #a89888; }
#viewReports .rpt-kpi.kpi-bills,
#viewReports .rpt-kpi.kpi-gst,
#viewReports .rpt-kpi.kpi-tax,
#viewReports .rpt-kpi.kpi-exp {
  padding: 10px 16px;
  background: #fffdfb;
  border-bottom: 1px solid #f3e8dc;
  box-shadow: none;
}
#viewReports .rpt-kpi.kpi-bills,
#viewReports .rpt-kpi.kpi-tax { border-right: 1px solid #f3e8dc; }
#viewReports .rpt-kpi.kpi-bills .rpt-amt,
#viewReports .rpt-kpi.kpi-bills b,
#viewReports .rpt-kpi.kpi-gst .rpt-amt,
#viewReports .rpt-kpi.kpi-gst b,
#viewReports .rpt-kpi.kpi-tax .rpt-amt,
#viewReports .rpt-kpi.kpi-tax b,
#viewReports .rpt-kpi.kpi-exp .rpt-amt,
#viewReports .rpt-kpi.kpi-exp b { color: #1c140f; }
#viewReports .rpt-kpi.kpi-net {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  background: #1c140f;
  border: 0;
  box-shadow: none;
}
#viewReports .rpt-kpi.kpi-net span { color: #fdba74; }
#viewReports .rpt-kpi.kpi-net em {
  grid-column: 1;
  color: #d6d3d1;
}
#viewReports .rpt-kpi.kpi-net .rpt-amt {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #fff;
  font-size: 1.28rem;
}
#viewReports .rpt-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin: 0;
  padding: 2px 0 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f6f1ea;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#viewReports .rpt-tabs::-webkit-scrollbar { display: none; }
#viewReports .rpt-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  color: #8a7564;
  box-shadow: none;
}
#viewReports .rpt-tabs button.on {
  background: #1c140f;
  border-color: #1c140f;
  color: #fff7ed;
}
#viewReports .rpt-row {
  position: relative;
  border: 1px solid #eadfce;
  border-radius: 16px;
  padding: 12px 12px 12px 14px;
  background: #fffdfb;
  box-shadow: none;
}
#viewReports .rpt-row.rpt-bill {
  padding: 10px 12px 8px 14px;
  border-radius: 16px;
}
#viewReports .rpt-row.rpt-bill::before { display: none; }
#viewReports .rpt-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #fdba74;
}
#viewReports .empty-bill {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
.rpt-sheet { max-height: min(86vh, 640px); overflow: auto; }
.rpt-detail-cat {
  margin: 0 0 12px; font-weight: 700; color: var(--mute);
  display: flex; align-items: center; gap: 8px;
}
.rpt-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 12px;
}
.rpt-stats div {
  background: #fff7ed; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px;
}
.rpt-stats span {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
}
.rpt-stats b { display: block; margin-top: 2px; font-size: 1.05rem; }
.rpt-hint { margin: 0; color: var(--mute); font-weight: 650; font-size: .82rem; }
.rpt-mini { display: grid; gap: 8px; }
.rpt-mini-row {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 10px; align-items: center;
  background: #fff7ed; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px;
}
.rpt-mini-row .rpt-photo { width: 48px; height: 48px; border-radius: 12px; }
.rpt-mini-row b { display: block; font-size: .86rem; }
.rpt-mini-row small { display: block; color: var(--mute); font-weight: 650; }
.rpt-sec {
  margin: 6px 2px 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.rpt-gst-sum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rpt-gst-sum div {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.rpt-gst-sum span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.rpt-gst-sum b { display: block; margin-top: 2px; font-size: 1.02rem; font-weight: 800; }
.rpt-gst-sum .gst-total { background: #9a3412; border-color: #9a3412; color: #fff7ed; }
.rpt-gst-sum .gst-total span { color: #fed7aa; }
.rpt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .74rem;
  min-width: 520px;
}
.rpt-table th, .rpt-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f3e4d4;
  white-space: nowrap;
}
.rpt-table th {
  background: #fff7ed;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a3412;
}
.rpt-table td.num, .rpt-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rpt-table tfoot td { font-weight: 800; background: #fffaf4; border-bottom: 0; }
.rpt-table tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .ticket { display: none; }
  .ticket.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    z-index: 8;
    box-shadow: none;
    padding: 10px 12px 8px;
  }
  .ticket.open .ticket-h { flex: 0 0 auto; }
  .ticket.open .lines { margin: 6px 0 4px; gap: 6px; }
  .ticket.open .totals {
    flex: 0 0 auto;
    margin: 0 -12px;
    padding: 4px 12px 6px;
  }
  .ticket.open .ticket-foot {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 0 -12px;
    padding: 6px 12px 18px;
    background: #fffaf4;
    box-shadow: 0 -8px 14px rgba(255, 250, 244, .95);
  }
  .ticket.open .ticket-acts {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .ticket.open .ticket-acts:has(#btnPay[hidden]):has(#btnTicketNew[hidden]):not(:has(#btnKot.is-on)) {
    display: none;
  }
  .ticket.open .ticket-acts .pay,
  .ticket.open .ticket-acts .ghost-btn,
  .ticket.open .ticket-acts .receipt-btn,
  .ticket.open .ticket-acts .kot-btn,
  .ticket.open .kot-btn.is-on {
    height: 38px;
    width: auto;
    min-width: 0;
    font-size: .76rem;
    padding: 0 6px;
  }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; }
  .grid.is-pick-top .pick-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .grid.is-pick-top .pick-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #viewMenu.cat-vert .menu-split { grid-template-columns: 58px minmax(0, 1fr); }
  #viewMenu.cat-vert.is-live-orders .menu-split { grid-template-columns: 56px minmax(0, 1fr); }
  #viewMenu.cat-vert.is-live-orders .cats { width: 56px; max-width: 56px; }
  #viewMenu.cat-vert.is-live-orders .cat.live-cat { width: 48px; max-width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; }
  #viewMenu.is-live-orders .cat.live-cat .cat-ico { width: 40px; height: 40px; flex-basis: 40px; }
  .live-head { grid-template-columns: 42px minmax(0, 1fr); gap: 2px 8px; padding: 8px; border-radius: 16px; }
  .live-head-photo { width: 42px; height: 42px; border-radius: 12px; }
  .live-head-copy b { font-size: .92rem; }
  .live-head-stat { min-width: 0; padding: 4px 6px; }
  .live-head-stat b { font-size: 1rem; }
  #viewMenu.is-live-orders .grid.is-live {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .live-slip { min-height: 60px; }
  .live-slip-token { flex-basis: 64px; width: 64px; padding: 6px 4px; }
  .live-slip-token b { font-size: 1rem; }
  .live-qty-stamp { padding: 0 8px; }
  .live-qty-stamp b { font-size: 1.15rem; }
  .live-ready { min-width: 64px; height: 40px; padding: 0 10px; font-size: .74rem; }
  .head-meta { display: flex; }
  .head-meta .pill.live { display: none; }
  .status-bar,
  .resto-kicker,
  .resto-place { display: none; }
  .app-head .modes { display: none !important; }
  #orderModes,
  .order-modes {
    display: flex !important;
  }
  .brand-wrap { box-shadow: 0 8px 18px rgba(2, 6, 23, .28); }
  .app-head {
    padding: 8px 12px 8px;
  }
  .head-row { align-items: center; gap: 8px; }
  .resto { gap: 10px; align-items: center; min-width: 0; overflow: hidden; }
  .resto-mark {
    width: 42px; height: 42px; border-radius: 12px;
    font-size: .82rem;
    flex: 0 0 42px;
    box-shadow: 0 4px 10px rgba(2, 6, 23, .28);
  }
  .resto-copy { min-width: 0; overflow: hidden; text-align: left; }
  .app-head h1 {
    font-size: 1.02rem;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .resto-renew {
    font-size: .78rem;
    margin: 0;
    padding: calc(7px + var(--safe-t)) 12px 7px;
    background: #000;
    color: #ffe14a;
    border-radius: 0;
  }
  .head-meta { gap: 6px; flex: 0 0 auto; align-items: center; position: relative; z-index: 1; }
  .head-meta .pill:not(#waiterPill) {
    width: 34px; height: 34px; padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  #waiterPill {
    display: inline-flex;
    width: auto;
    max-width: 96px;
    height: 34px;
    padding: 0 8px;
    font-size: .72rem;
    font-weight: 800;
    gap: 5px;
  }
  #waiterPill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .head-meta .pill svg { width: 16px; height: 16px; }
  .dish { border-radius: 14px; }
  .dish-photo,
  .dish-photo img,
  .live-tok-face {
    height: 78px;
    border-radius: 13px 13px 0 0;
  }
  .live-tok-face b { font-size: 1.15rem; }
  .dish-photo img {
    object-fit: cover;
    object-position: center 62%;
  }
  .dish-body { position: relative; padding: 6px 6px 7px; }
  .dish-top { display: block; }
  .dish h3 {
    font-size: .68rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dish .veg {
    position: absolute;
    right: 6px;
    bottom: 8px;
    margin: 0;
  }
  .price { margin: 3px 0 0; font-size: .72rem; padding-right: 16px; }
  .veg { width: 10px; height: 10px; margin-top: 1px; }
  .veg i { width: 5px; height: 5px; }
  .badge { top: 5px; left: 5px; font-size: .52rem; padding: 2px 5px; }
  .dish-code { bottom: 5px; right: 5px; top: auto; left: auto; font-size: .58rem; padding: 2px 5px; }
  .dish-tick {
    top: 5px; right: 5px;
    min-width: 22px; height: 22px;
    padding: 0 5px; font-size: .68rem;
  }
  .dish-code-row { position: relative; left: auto; right: auto; bottom: auto; width: 100%; }
  .dish-step-btn { flex-basis: 28px; width: 28px; height: 26px; font-size: .85rem; }
  .dish-step em { height: 26px; font-size: .72rem; }
  #viewMenu.cat-vert .cats { gap: 4px; }
  #viewMenu.cat-vert .cat {
    padding: 6px 2px 5px;
    font-size: .52rem;
    border-radius: 12px;
  }
  #viewMenu.cat-vert .cat-ico { width: 36px; height: 36px; border-radius: 12px; }
  #viewMenu.cat-vert .cat-ico svg { width: 15px; height: 15px; }
  .menu-tools { gap: 6px; }
  .search { border-radius: 12px; padding: 0 6px 0 10px; }
  .search input { height: 40px; }
  .search-mic { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .cat-switch { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .veg-switch { height: 40px; border-radius: 12px; }
  .live-switch { height: 40px; border-radius: 12px; padding: 0 8px 0 6px; font-size: .58rem; }
  .veg-switch button { padding: 0 6px; font-size: .58rem; gap: 3px; }
  .page-hero {
    padding: 10px 10px 11px;
    border-radius: 18px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .page-hero h2 { font-size: 1.18rem; }
  .page-hero-crest,
  .page-hero-ico { width: 44px; height: 44px; border-radius: 14px; font-size: 1rem; }
  .page-back,
  .x { width: 38px; height: 38px; flex-basis: 38px; }
  .done-bar { grid-template-columns: 38px minmax(0, 1fr) 38px; }
  .done-bar-gap { width: 38px; height: 38px; }
  .stage { padding: 8px 8px 6px; }
  #viewReports.on {
    margin: -8px -8px 0;
    padding: 8px 8px calc(var(--dock-h) + var(--safe-b) + 18px);
  }
  .table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 600px) and (max-width: 900px) {
  #viewMenu.cat-vert .menu-split { grid-template-columns: 76px minmax(0, 1fr); }
  #viewMenu.cat-vert.is-live-orders .menu-split { grid-template-columns: 56px minmax(0, 1fr); }
  #viewMenu.cat-vert.is-live-orders .cats { width: 56px; max-width: 56px; }
  #viewMenu.cat-vert .cat {
    font-size: .68rem;
    padding: 8px 4px 7px;
  }
  #viewMenu.cat-vert .cat-ico { width: 40px; height: 40px; }
  #viewMenu.cat-vert .cat-ico svg { width: 16px; height: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.menu-cols-3 .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.is-pick-top .pick-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.menu-cols-3 .grid.is-pick-top .pick-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.is-pick-top .pick-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.menu-cols-3 .grid.is-pick-top .pick-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 600px) and (max-width: 900px) and (min-height: 640px) {
  .dish-photo,
  .dish-photo img,
  .live-tok-face {
    height: clamp(124px, 18vh, 176px);
  }
  .dish h3 { font-size: .84rem; }
  .price { font-size: .84rem; }
}

@media (max-width: 1180px) and (orientation: landscape) and (max-height: 560px) {
  .app-head { padding: 4px 10px 4px; }
  .resto-mark { width: 34px; height: 34px; }
  .order-mode { height: 32px; }
  .order-modes .live-switch,
  .modes .live-switch { height: 32px; }
  .search input,
  .veg-switch,
  .live-switch,
  .cat-switch { height: 34px; }
  .stage { padding: 4px 8px 4px; }
  .menu-split { margin-top: 6px; }
  .dish-photo,
  .dish-photo img { height: 72px; }
}

@media (min-width: 901px) {
  .shell:has(#ticket.open) { grid-template-columns: 1fr; }
  .shell:has(#ticket.open) .stage { display: none; }
  .table-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.is-gated {
  background: #100c0a;
  color: #fff7ed;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body.is-gated .app,
body.is-gated .kot-app,
body.is-gated .admin-app { display: none !important; }
body.is-gated .loader { display: none !important; }
body.is-gated.is-autologin #loader {
  display: grid !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 146, 60, .42), transparent 36%),
    radial-gradient(circle at 50% 80%, rgba(154, 52, 18, .35), transparent 42%),
    #14110e;
}
body.is-autologin .gate { visibility: hidden; }
body.is-autologin .loader-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
body.is-autologin .loader-card p { color: #fff7ed; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
body.is-autologin .spin-wrap { width: 78px; height: 78px; }
body.is-autologin .spin-wrap::before {
  border-width: 3px;
  border-color: rgba(255, 247, 237, .18);
  border-top-color: #fb923c;
  border-right-color: #fdba74;
  animation: spin .75s linear infinite;
}
body.is-autologin .spin-wrap::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid transparent;
  border-bottom-color: #fff7ed;
  border-radius: 50%;
  animation: spin 1.15s linear infinite reverse;
}
body.is-autologin .spin-ico { display: none; }
.loader-sign { display: none; }
body.is-autologin .loader-wait { display: none; }
body.is-autologin .loader-sign { display: inline; }
body.is-autologin .loader-sign::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: bootDots 1s steps(4, end) infinite;
}
@keyframes bootDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
body.is-kot .app { display: none !important; }
body.is-kot .admin-app { display: none !important; }
body.is-kot .kot-app { display: flex; }
body.is-admin {
  background: #070b14;
  color: #e2e8f0;
  overflow: auto;
}
body.is-admin .app,
body.is-admin .gate,
body.is-admin .kot-app { display: none !important; }
body.is-admin .admin-app { display: flex; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: stretch;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(251, 146, 60, .38), transparent 58%),
    radial-gradient(70% 50% at 108% 18%, rgba(14, 165, 233, .28), transparent 55%),
    radial-gradient(80% 48% at -10% 88%, rgba(244, 63, 94, .28), transparent 58%),
    linear-gradient(180deg, #1e3a8a 0%, #0f172a 42%, #7c2d12 100%);
}
.gate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.gate-haze {
  position: absolute;
  left: -20%;
  top: -18%;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, .35), transparent 70%);
  filter: blur(10px);
}
.gate-haze-2 {
  left: auto;
  right: -24%;
  top: auto;
  bottom: -22%;
  width: 80%;
  height: 58%;
  background: radial-gradient(circle, rgba(251, 146, 60, .4), transparent 72%);
}
.gate-star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, .45);
  animation: gate-float 7s ease-in-out infinite;
  top: 18%;
  left: 16%;
  opacity: .75;
}
.gate-star-2 { top: 32%; left: 82%; animation-delay: -2.4s; width: 3px; height: 3px; }
.gate-star-3 { top: 58%; left: 10%; animation-delay: -4.1s; }
.gate-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  max-height: 100dvh;
  justify-self: center;
  min-height: 0;
  padding: 5px 18px;
  overflow: hidden;
}
.gate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.gate-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .28);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ecfeff;
}
.gate-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .22);
}
.gate-when {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  color: #e0f2fe;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gate-when b {
  font-size: .92rem;
  letter-spacing: .02em;
  color: #fff;
}
.gate-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-height: 0;
  margin: 18px 0 16px;
  padding: 0 2px;
}
.gate-seal {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(160deg, #fff, #fdba74);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
}
.gate-crest {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: #9a3412;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
}
.gate-crest img,
.gate-crest svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gate-crest.is-ini {
  font-size: 1.35rem;
  letter-spacing: .04em;
  background: radial-gradient(circle at 40% 32%, #fff7ed, #fed7aa);
}
.gate-hero-copy { min-width: 0; }
.gate-est {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fdba74;
}
.gate-est:empty,
.gate-tag:empty { display: none; }
.gate-hero h2 {
  margin: 2px 0 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 8px 20px rgba(15, 23, 42, .35);
}
.gate-tag {
  margin: 4px 0 0;
  font-weight: 650;
  color: rgba(224, 242, 254, .82);
  font-size: .78rem;
}
.gate-card {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 0;
  box-shadow: 0 28px 60px rgba(15, 23, 42, .32);
  border-radius: 28px 28px 22px 22px;
  color: #0f172a;
}
.gate-kicker {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ea580c;
}
.gate-help {
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 600;
  color: #64748b;
}
.gate-code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: visible;
}
.gate-code-field {
  position: relative;
  flex: 0 0 auto;
}
.gate-code-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: #1c140f;
  pointer-events: none;
  z-index: 1;
}
.gate-code-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
}
.gate-info,
.gate-info-card {
  display: none !important;
}
.gate-brief {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  margin: 6px 0 0;
}
.gate-board {
  flex: 0 0 auto;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.gate-board-h {
  margin: 0;
  padding: 6px 12px;
  background: #1c140f;
  color: #fff7ed;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gate-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid #f3ebe3;
  color: #1c140f;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.gate-row b {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}
.gate-row small {
  display: block;
  margin-top: 1px;
  color: #8a7564;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.25;
}
.gate-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font: 800 .72rem/1 Poppins, sans-serif;
}
.gate-row svg {
  width: 18px;
  height: 18px;
  justify-self: center;
  color: #c2410c;
  fill: none;
  stroke: currentColor;
}
.gate-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gate-phones .gate-row {
  grid-template-columns: 16px 1fr;
  gap: 6px;
  min-height: 42px;
  padding: 8px 8px;
  font-size: .74rem;
}
.gate-phones .gate-row + .gate-row {
  border-left: 1px solid #f3ebe3;
}
.gate-phones svg { width: 15px; height: 15px; }
.gate-trust {
  display: flex;
  gap: 0;
  flex: 0 0 auto;
  padding-top: 12px;
  border-top: 1px solid #eadfce;
}
.gate-trust span {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #8a7564;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
}
.gate-trust-ico {
  width: 16px;
  height: 16px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #c2410c;
  background: transparent;
  font-style: normal;
}
.gate-trust span.is-bill .gate-trust-ico,
.gate-trust span.is-staff .gate-trust-ico,
.gate-trust span.is-lock .gate-trust-ico { background: transparent; color: #c2410c; }
.gate-trust-ico svg,
.gate-trust svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
}
.gate-code .gate-go {
  flex: 0 0 auto;
  margin-top: 4px;
}
.gate-code[hidden],
#gateStaffWrap[hidden] { display: none !important; }
#gateStaffWrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.gate-code-lab {
  margin: 2px 0 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8;
}
#gateCode {
  height: 56px;
  width: 100%;
  padding: 0 16px 0 48px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font: 800 1.15rem/1 Poppins, sans-serif;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  outline: none;
}
#gateCode:focus {
  border-color: #1c140f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 20, 15, .08);
}
.gate-switch {
  align-self: center;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  background: none;
  color: #ea580c;
  font: 700 .75rem/1.4 Poppins, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}
.gate-card h1,
.gate-card-title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  flex: 0 0 auto;
}
.gate-staff {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 0 0 auto;
  min-height: 76px;
  margin: 2px 0 0;
  padding: 2px 1px 4px;
}
.gate-staff::-webkit-scrollbar { display: none; }
.gate-person {
  flex: 1 1 0;
  min-width: 72px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px 7px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 16px;
  color: #334155;
  text-align: center;
  flex-shrink: 0;
}
.gate-person b {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: #0f172a;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gate-person small { display: none; }
.gate-ava {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #2563eb;
  overflow: hidden;
}
.gate-ava svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
}
.gate-person.on {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .16);
}
.gate-person.on .gate-ava {
  background: linear-gradient(160deg, #2563eb, #14b8a6);
  color: #fff;
}
.gate-person.on b { color: #1e3a8a; }
.gate-person.is-kot.on {
  background: #f0fdf4;
  border-color: #16a34a;
}
.gate-person.is-kot.on .gate-ava {
  background: linear-gradient(160deg, #22c55e, #15803d);
  color: #fff;
}
.gate-person.is-kot.on b { color: #14532d; }
.gate-back[hidden] { display: none; }
.gate-pin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  margin: 0;
}
.gate-pin-lab {
  margin: 0;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #64748b;
}
.gate-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  height: 46px;
  margin: 0;
  padding: 0 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.gate-dots i {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .05);
}
.gate-dots i::after {
  content: none;
}
.gate-dots i.on {
  border-color: #1d4ed8;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.gate-dots i.on::after {
  content: none;
  background: transparent;
  box-shadow: none;
}
.gate-dots.bad { animation: gate-shake .42s ease; }
.gate-err {
  flex: 0 0 auto;
  margin: 0;
  min-height: 0;
  padding: 0;
  text-align: center;
  color: #b91c1c;
  font-weight: 800;
  font-size: .8rem;
  line-height: 1.35;
  position: relative;
  z-index: 4;
}
.gate-err.is-on {
  display: block !important;
  flex: 0 0 auto;
  min-height: 22px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.gate-err[hidden]:not(.is-on) { display: none !important; }
.gate-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.gate-pad button {
  width: 100%;
  height: 100%;
  min-height: 36px;
  margin: 0;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  font-size: clamp(.95rem, 2.4vh, 1.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.gate-pad button:active {
  transform: none;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.gate-pad-act {
  font-size: .72rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ea580c !important;
  font-weight: 800 !important;
}
.gate-go {
  width: 100%;
  height: 48px;
  flex: 0 0 auto;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .32);
}
.gate-code .gate-go {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, .3);
}
.gate-go svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}
.gate-go:disabled { opacity: .38; box-shadow: none; }
.gate-go.is-busy,
.gate-go.is-busy:disabled {
  opacity: 1;
  color: transparent !important;
}
.gate-go.is-busy::before {
  left: calc(50% - 54px);
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-width: 2.5px;
}
.gate-go.is-busy::after {
  content: "Checking";
  gap: 0;
}
@keyframes gate-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
@keyframes gate-spin {
  to { transform: rotate(360deg); }
}
@keyframes gate-float {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(-14px); opacity: .9; }
}

@media (min-width: 860px) {
  .gate { place-items: center; }
  .gate-stage {
    width: min(420px, 94vw);
    height: min(760px, 92dvh);
    max-height: 92dvh;
    padding: 22px 22px 20px;
  }
}

@media (max-width: 859px) {
  html:has(body.is-gated),
  body.is-gated {
    height: 100svh;
    overflow: hidden;
  }
  .gate,
  .gate-stage {
    height: 100svh;
    max-height: 100svh;
  }
}

@media (max-width: 859px) and (max-height: 700px) {
  .gate-hero { margin: 12px 0 12px; }
  .gate-seal { width: 58px; height: 58px; }
  .gate-hero h2 { font-size: 1.28rem; }
  .gate-card { padding: 14px 14px 12px; gap: 8px; border-radius: 22px; }
  .gate-go { height: 44px; }
  .gate-pad { gap: 7px; }
  .gate-dots { height: 42px; }
}

@media (max-width: 859px) and (max-height: 560px) {
  .gate-hero { margin: 8px 0; }
  .gate-seal { width: 48px; height: 48px; }
  .gate-card { padding: 10px 12px; }
  .gate-pad { gap: 6px; }
  .gate-dots { height: 38px; gap: 14px; }
  .gate-trust span { min-height: 64px; padding: 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-dots.bad,
  .gate-star { animation: none; }
}
@media print {
  @page { size: 58mm auto; margin: 2mm; }
  html.paper-80 @page { size: 80mm auto; margin: 3mm; }
  html, body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #1c140f;
  }
  .sprites, .app, .sheet, .done, .toast, .device-note, .loader, .gate, .kot-app { display: none !important; }
  #receipt {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: transparent;
    padding: 0;
    color: #000;
  }
  #receipt .bill-paper + .bill-paper {
    break-before: page;
    page-break-before: always;
  }
  #receipt .bill-paper {
    width: 54mm;
    max-width: 54mm;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px;
    background: #fffaf6;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #receipt .bill-paper.has-type { padding-bottom: 12mm; }
  #receipt .bill-guest-name {
    display: block !important;
    margin: 3mm 0 2mm;
    padding: 1.5mm 0;
    color: #000 !important;
    background: #fff !important;
    border-top: 0.6mm solid #000 !important;
    border-bottom: 0.6mm solid #000 !important;
    font-size: 14pt !important;
    font-weight: 800 !important;
    text-align: center;
  }
  #receipt .bill-dash,
  #receipt .bill-meta,
  #receipt .bill-sums,
  #receipt .bill-grand {
    margin-left: 0;
    margin-right: 0;
  }
  #receipt .bill-meta,
  #receipt .bill-sums {
    padding-left: 0;
    padding-right: 0;
  }
  #receipt .bill-meta {
    display: block;
  }
  #receipt .bill-meta > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
  }
  #receipt .bill-meta > div span,
  #receipt .bill-meta > div b {
    display: inline;
  }
  #receipt .bill-items {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  html.paper-80 #receipt .bill-paper {
    width: 72mm;
    max-width: 72mm;
    padding: 0 0 6px;
  }
  #receipt .bill-upi img, #receipt .bill-upi canvas {
    width: 34mm;
    height: 34mm;
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }
  html.paper-80 #receipt .bill-upi img, html.paper-80 #receipt .bill-upi canvas {
    width: 44mm;
    height: 44mm;
  }
}

.admin-app {
  display: none;
}
html:has(body.admin-page),
body.admin-page {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow: auto;
  overscroll-behavior: auto;
}
html.admin-keep body.admin-page #adminLock { display: none !important; }
html.admin-keep body.admin-page #adminApp,
html.admin-keep body.admin-page #adminApp[hidden] {
  display: grid !important;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100dvh;
}
html.admin-keep body.admin-page {
  height: auto;
  max-height: none;
  overflow: auto;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(196, 165, 116, .22), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(234, 88, 12, .08), transparent 50%),
    #efe6d8;
  color: #1c140e;
}
body.admin-page.is-admin-lock {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.admin-page.is-admin-desk {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(196, 165, 116, .22), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(234, 88, 12, .08), transparent 50%),
    #efe6d8;
  color: #1c140e;
  font-family: Manrope, "Segoe UI", sans-serif;
}
body.admin-page .admin-app[hidden],
body.admin-page .gate[hidden] {
  display: none !important;
}
body.admin-page.is-admin-desk .admin-app {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100dvh;
  padding: 0;
  max-width: none;
  margin: 0;
  width: 100%;
  gap: 0;
}
.admin-scrim {
  display: none;
}
.admin-side {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(196, 165, 116, .12), transparent 28%),
    linear-gradient(180deg, #17110d 0%, #120e0b 100%);
  color: #f4ead8;
  padding: 22px 14px 16px;
  min-height: 100dvh;
  border-right: 1px solid rgba(196, 165, 116, .18);
  box-shadow: inset -1px 0 0 rgba(255, 247, 237, .04);
}
.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid rgba(196, 165, 116, .18);
}
.admin-side-brand strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff7ed;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.admin-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #f4e4c4, #c4a574);
  color: #1c140e;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .82rem;
  box-shadow: 0 10px 22px rgba(196, 165, 116, .28);
}
.admin-kicker {
  margin: 0 0 2px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c4a574;
}
.admin-side-nav {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  flex: 1;
  align-content: start;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #c9bba8;
  font-weight: 700;
  font-size: .9rem;
}
.admin-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: .78;
}
.admin-nav.on {
  background: linear-gradient(180deg, rgba(244, 228, 196, .18), rgba(196, 165, 116, .12));
  color: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(244, 228, 196, .22);
}
.admin-nav.on svg { opacity: 1; color: #f4e4c4; }
.admin-side-foot {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(196, 165, 116, .18);
}
.admin-side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 247, 237, .04);
}
.admin-side-user strong {
  display: block;
  font-size: .86rem;
  color: #fff7ed;
}
.admin-side-user small {
  display: block;
  font-size: .68rem;
  color: #c4a574;
  font-weight: 700;
  letter-spacing: .04em;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(196, 165, 116, .22);
  color: #f4e4c4;
  font-weight: 800;
  font-size: .82rem;
}
.admin-side-link {
  text-align: left;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8d5b5;
  font-weight: 700;
  font-size: .82rem;
}
.admin-side-link.danger { color: #f0b4a4; }
.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: transparent;
}
.admin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 10px;
  background: transparent;
  border-bottom: 0;
}
.admin-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28, 20, 14, .12);
  border-radius: 14px;
  background: rgba(255, 247, 237, .72);
  color: #1c140e;
}
.admin-top-copy { min-width: 0; flex: 1; }
.admin-top-kicker {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-top h1 {
  margin: 2px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #1c140e;
  line-height: 1.1;
}
.admin-live {
  display: none;
  text-align: right;
  line-height: 1.15;
}
.admin-live span {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-live b {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  color: #1c140e;
}
@media (min-width: 760px) {
  .admin-live { display: block; }
}
.admin-top-acts { display: flex; gap: 8px; }
.admin-btn {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4e4c4, #c4a574);
  color: #1c140e;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(139, 90, 43, .18);
}
.admin-btn.ghost {
  background: rgba(255, 247, 237, .7);
  color: #1c140e;
  border: 1px solid rgba(28, 20, 14, .12);
  box-shadow: none;
}
.admin-pane {
  padding: 8px 22px 36px;
}
.admin-pane[hidden] { display: none !important; }
.admin-pane.on { display: grid; gap: 16px; }
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-kpi.hero { grid-column: 1 / -1; }
@media (min-width: 980px) {
  .admin-kpis {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .admin-kpi.hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
.admin-kpi {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 250, 243, .86);
  border: 1px solid rgba(139, 90, 43, .12);
  box-shadow: 0 12px 30px rgba(80, 50, 20, .06);
}
.admin-kpi.hero {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(244, 228, 196, .28), transparent 60%),
    linear-gradient(165deg, #241910, #17110d);
  color: #fff7ed;
  border-color: transparent;
}
.admin-kpi.due {
  background: #fff7f4;
  border-color: rgba(185, 28, 28, .14);
}
.admin-kpi p {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-kpi.hero p { color: #c4a574; }
.admin-kpi.due p { color: #b45309; }
.admin-kpi b {
  display: block;
  margin: 10px 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1c140e;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.admin-kpi.hero b {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: #fff7ed;
  margin-top: 18px;
}
.admin-kpi small {
  color: #7a6654;
  font-weight: 650;
}
.admin-kpi.hero small { color: rgba(244, 228, 196, .78); }
.admin-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 980px) {
  .admin-charts { grid-template-columns: 1.25fr .75fr; }
  .admin-chart-wide { grid-column: 1 / -1; }
}
.admin-chart-card {
  padding: 18px 16px 10px;
  border-radius: 22px;
  background: rgba(255, 250, 243, .9);
  border: 1px solid rgba(139, 90, 43, .12);
  box-shadow: 0 12px 30px rgba(80, 50, 20, .06);
}
.admin-chart-card header p {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-chart-card header h2 {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #1c140e;
}
.admin-chart { width: 100%; min-height: 220px; }
.admin-track-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  color: #1c140e;
}
.admin-track-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c140e;
}
.admin-track-head .admin-count { color: #7a6654; }
.admin-filter {
  display: grid;
  gap: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-filter select {
  min-width: min(100%, 260px);
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(139, 90, 43, .18);
  background: #fffaf3;
  color: #1c140e;
  font-weight: 700;
  padding: 0 12px;
}
.admin-bills-title {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #1c140e;
}
.admin-track-table-wrap {
  overflow: auto;
  border-radius: 22px;
  background: rgba(255, 250, 243, .92);
  border: 1px solid rgba(139, 90, 43, .12);
  box-shadow: 0 12px 30px rgba(80, 50, 20, .06);
  -webkit-overflow-scrolling: touch;
}
.admin-track-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .84rem;
}
.admin-track-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6a42;
  background: #f6ead8;
  position: sticky;
  top: 0;
}
.admin-track-table td {
  padding: 13px 16px;
  border-top: 1px solid rgba(139, 90, 43, .08);
  color: #1c140e;
  font-weight: 650;
  vertical-align: top;
}
.admin-track-table td b { display: block; font-size: .92rem; }
.admin-track-table td small { display: block; color: #7a6654; font-weight: 600; margin-top: 2px; }
.admin-track-table tbody tr.on { background: rgba(196, 165, 116, .16); }
.admin-track-table tbody tr[data-track-row] { cursor: pointer; }
.bill-log-row { cursor: pointer; }
.bill-log-act { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.bill-log-act.is-del { background: #fde8e6; color: #b42318; }
.bill-log-act.is-edit { background: #e8f1ea; color: #3f6b3a; }
.bill-log-detail td { background: #fbf7f1; color: #5c4d40; font-size: .86rem; }
.bill-log-detail p { margin: 4px 0; }
.admin-track-table .bill-log-undo { height: 32px; padding: 0 12px; border-radius: 10px; font-size: .75rem; }
.admin-track-table .lic-ok { color: #3f6b3a; font-weight: 800; }
.admin-track-table .lic-bad { color: #b42318; font-weight: 800; }
.admin-take { color: #6b4a24; font-weight: 800; }
.admin-resto.on .admin-take { color: #f4e4c4; }
.admin-security { max-width: 560px; }
.note-kicker {
  margin: 0 0 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c2410c;
}
.note-form { margin-top: 14px; }
.note-form textarea {
  min-height: 96px;
  resize: vertical;
}
.note-styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.note-style {
  position: relative;
  display: block !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 650 !important;
  color: #1c140e !important;
}
.note-style input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.note-style > span {
  display: grid;
  gap: 2px;
  min-height: 64px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(139, 90, 43, .16);
  background: #fffaf3;
}
.note-style b { font-size: .92rem; font-weight: 800; }
.note-style small { color: #7a6654; font-weight: 650; font-size: .72rem; letter-spacing: 0; text-transform: none; }
.note-style input:checked + span {
  border-color: #ea580c;
  background: #fff1e6;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}
.note-file[hidden] { display: none !important; }
.note-preview-cap {
  margin: 8px 2px 0;
  color: #7a6654;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.4;
}
.note-phone {
  border-radius: 22px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #1c140e 0%, #3b2a22 100%);
}
.note-shade {
  background: rgba(255, 250, 243, .96);
  border-radius: 16px;
  padding: 12px;
  color: #1c140e;
}
.note-app {
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c2410c;
}
#notePreviewTitle {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}
#notePreviewBody {
  margin: 0;
  color: #5c4d40;
  font-size: .86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
#notePreviewImg {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
#notePreviewImg[hidden] { display: none !important; }

/* ---- Admin: Notify composer ---- */
#paneNotify .nz { display: grid; gap: 16px; font-family: Poppins, system-ui, sans-serif; color: #101828; }
#paneNotify [hidden] { display: none !important; }
.nz-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(45, 212, 191, .45) 0%, rgba(45, 212, 191, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(129, 140, 248, .5) 0%, rgba(129, 140, 248, 0) 60%),
    linear-gradient(135deg, #0b1f3a 0%, #102a43 45%, #0f3d3e 100%);
  box-shadow: 0 18px 40px -22px rgba(15, 61, 62, .8);
}
.nz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  pointer-events: none;
}
.nz-hero-ico {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.nz-hero-ico svg { width: 28px; height: 28px; transform-origin: 50% 8%; animation: nzBell 3.2s ease-in-out infinite; }
.nz-hero-ico i {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 3px #102a43;
  animation: nzPing 2.4s ease-out infinite;
}
@keyframes nzBell {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(14deg); }
  72% { transform: rotate(-12deg); }
  78% { transform: rotate(8deg); }
  84% { transform: rotate(-5deg); }
  90% { transform: rotate(2deg); }
}
@keyframes nzPing {
  0% { box-shadow: 0 0 0 3px #102a43, 0 0 0 3px rgba(251, 113, 133, .55); }
  70%, 100% { box-shadow: 0 0 0 3px #102a43, 0 0 0 12px rgba(251, 113, 133, 0); }
}
.nz-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1 1 auto; }
.nz-kicker {
  margin: 0 0 2px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5eead4;
}
.nz-hero h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
#noteNow { margin: 4px 0 0; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.nz-live {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  color: #ccfbf1;
  background: rgba(20, 184, 166, .18);
  border: 1px solid rgba(94, 234, 212, .35);
}
.nz-live i { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; animation: nzBlink 1.6s ease-in-out infinite; }
@keyframes nzBlink { 50% { opacity: .25; } }
.nz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
body.admin-page .nz-form,
.nz-form {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: 1fr;
}
.nz-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eaecf0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  animation: nzRise .45s cubic-bezier(.22, 1, .36, 1) both;
}
.nz-step:nth-child(2) { animation-delay: .06s; }
.nz-step:nth-child(3) { animation-delay: .12s; }
@keyframes nzRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nz-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #101828;
}
.nz-step h3 span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
}
.nz-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.admin-page .nz-form label.nz-opt,
.nz-opt {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  height: auto;
  background: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.nz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nz-opt > span {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico title" "ico sub";
  column-gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #eaecf0;
  background: #f9fafb;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.nz-opt > span::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  transition: all .2s;
}
.nz-opt svg { grid-area: ico; width: 22px; height: 22px; color: #667085; transition: color .2s; }
.nz-opt b { grid-area: title; font-size: .88rem; font-weight: 650; color: #101828; }
.nz-opt small { grid-area: sub; font-size: .72rem; font-weight: 500; color: #667085; }
.nz-seg-sm .nz-opt > span { grid-template-columns: 1fr; grid-template-areas: "title" "sub"; min-height: 56px; }
.nz-opt:hover > span { border-color: #99f6e4; }
.nz-opt:active > span { transform: scale(.985); }
.nz-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20, 184, 166, .3); }
.nz-opt input:checked + span {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  box-shadow: 0 6px 18px -10px rgba(13, 148, 136, .55);
}
.nz-opt input:checked + span svg { color: #0f766e; }
.nz-opt input:checked + span::after {
  border-color: #0d9488;
  background: #0d9488 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.nz-pick { display: grid; gap: 8px; animation: nzRise .3s ease both; }
.nz-find {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f2f4f7;
}
.nz-find:focus-within { background: #fff; box-shadow: 0 0 0 2px #14b8a6; }
.nz-find svg { width: 18px; height: 18px; color: #98a2b3; flex: 0 0 auto; }
body.admin-page .nz-find input,
.nz-find input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 500 .9rem Poppins, system-ui, sans-serif;
  color: #101828;
  outline: none;
}
.nz-outlets {
  display: grid;
  gap: 6px;
  max-height: 248px;
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
}
.nz-outlet {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #f9fafb;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .18s, border-color .18s;
}
.nz-outlet:hover { background: #f0fdfa; }
.nz-outlet.on { border-color: #14b8a6; background: #f0fdfa; }
.nz-outlet.is-off { opacity: .6; }
.nz-outlet-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #4f46e5);
}
.nz-outlet-copy { min-width: 0; display: grid; }
.nz-outlet-copy b { font-size: .86rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-outlet-copy small { font-size: .72rem; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-outlet-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0d9488;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.nz-outlet-check svg { width: 13px; height: 13px; }
.nz-outlet.on .nz-outlet-check { transform: scale(1); }
.nz-empty { margin: 0; padding: 14px; text-align: center; font-size: .82rem; color: #667085; }
.nz-field { position: relative; display: grid; gap: 6px; }
body.admin-page .nz-form .nz-field label,
.nz-field label {
  display: block;
  margin: 0;
  padding: 0;
  height: auto;
  background: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #344054;
}
body.admin-page .nz-form .nz-field input,
body.admin-page .nz-form .nz-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f2f4f7;
  color: #101828;
  font: 500 .95rem/1.4 Poppins, system-ui, sans-serif;
  transition: background .18s, box-shadow .18s;
}
body.admin-page .nz-form .nz-field textarea { min-height: 108px; resize: vertical; padding-bottom: 26px; }
body.admin-page .nz-form .nz-field input:focus,
body.admin-page .nz-form .nz-field textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px #14b8a6; }
.nz-field em {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  color: #98a2b3;
  pointer-events: none;
}
.nz-field:has(input) em { bottom: 15px; }
body.admin-page .nz-form label.nz-file,
.nz-file {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 18px 14px;
  height: auto;
  border: 1.5px dashed #99f6e4;
  border-radius: 16px;
  background: #f0fdfa;
  text-align: center;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: background .2s, border-color .2s;
}
.nz-file:hover { background: #ccfbf1; border-color: #14b8a6; }
.nz-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nz-file svg { width: 28px; height: 28px; color: #0d9488; }
.nz-file b { font-size: .86rem; font-weight: 650; color: #0f766e; }
.nz-file small { font-size: .72rem; color: #667085; }
.nz-err {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.nz-err.is-shake { animation: nzShake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes nzShake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.nz-send {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font: 650 .98rem Poppins, system-ui, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 45%, #4338ca 100%);
  background-size: 160% 100%;
  box-shadow: 0 12px 24px -14px rgba(15, 118, 110, .9);
  transition: background-position .4s, transform .15s, box-shadow .2s, opacity .2s;
}
.nz-send::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .6s;
}
.nz-send:hover { background-position: 100% 0; }
.nz-send:hover::before { left: 120%; }
.nz-send:active { transform: scale(.985); }
.nz-send:disabled { cursor: progress; }
.nz-send-ico svg { width: 20px; height: 20px; display: block; transition: transform .3s; }
.nz-send:hover .nz-send-ico svg { transform: translate(2px, -2px) rotate(-6deg); }
.nz-spin {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: nzSpin .7s linear infinite;
}
.nz-send.is-busy { background-position: 100% 0; opacity: .92; }
.nz-send.is-busy .nz-send-ico { display: none; }
.nz-send.is-busy .nz-spin { display: block; }
.nz-send.is-busy .nz-send-text { animation: nzBlink 1.4s ease-in-out infinite; }
@keyframes nzSpin { to { transform: rotate(360deg); } }
.nz-preview { position: sticky; top: 12px; display: grid; gap: 10px; justify-items: center; }
.nz-preview-cap {
  margin: 0;
  justify-self: start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #667085;
}
.nz-phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 420px;
  padding: 46px 14px 20px;
  border-radius: 38px;
  border: 8px solid #101828;
  background:
    radial-gradient(120% 70% at 20% 0%, #5b21b6 0%, transparent 60%),
    radial-gradient(100% 70% at 100% 100%, #0f766e 0%, transparent 60%),
    linear-gradient(180deg, #1e1b4b 0%, #0b1f3a 100%);
  box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
  box-sizing: border-box;
}
.nz-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 22px;
  border-radius: 999px;
  background: #101828;
  transform: translateX(-50%);
}
.nz-clock {
  position: absolute;
  top: 12px;
  left: 22px;
  font-size: .72rem;
  font-weight: 650;
  color: rgba(255, 255, 255, .85);
}
.nz-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  animation: nzDrop .6s cubic-bezier(.22, 1, .36, 1) both .15s;
}
@keyframes nzDrop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.nz-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.nz-app {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: .66rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #4338ca);
}
.nz-card-top b { font-size: .7rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #475467; }
.nz-card-top small { margin-left: auto; font-size: .68rem; color: #98a2b3; }
#paneNotify #notePreviewTitle { display: block; margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.3; color: #101828; word-break: break-word; }
#paneNotify #notePreviewBody { margin: 0; font-size: .82rem; line-height: 1.45; color: #475467; white-space: pre-wrap; word-break: break-word; }
#paneNotify #notePreviewImg { margin-top: 8px; border-radius: 12px; }
.nz-card-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; margin-top: 10px; }
.nz-card-acts span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  font-size: .76rem;
  font-weight: 650;
  color: #344054;
  background: #f2f4f7;
}
.nz-card-acts .is-main { color: #fff; background: linear-gradient(135deg, #0d9488, #0f766e); }
.nz-to {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
}
.nz-toast {
  position: fixed;
  z-index: 9999;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 12px 12px 14px 14px;
  border-radius: 20px;
  overflow: hidden;
  font-family: Poppins, system-ui, sans-serif;
  color: #101828;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 184, 166, .25);
  box-shadow: 0 24px 48px -18px rgba(15, 61, 62, .45), 0 2px 6px rgba(16, 24, 40, .06);
  transform: translate(-50%, -140%);
  opacity: 0;
}
.nz-toast[hidden] { display: none !important; }
.nz-toast.is-in { animation: nzToastIn .55s cubic-bezier(.22, 1.3, .36, 1) forwards; }
.nz-toast.is-out { animation: nzToastOut .3s ease-in forwards; }
@keyframes nzToastIn {
  from { transform: translate(-50%, -140%) scale(.92); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
@keyframes nzToastOut {
  from { transform: translate(-50%, 0) scale(1); opacity: 1; }
  to { transform: translate(-50%, -60%) scale(.96); opacity: 0; }
}
.nz-tick {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecfdf3;
}
.nz-toast.is-in .nz-tick { animation: nzPop .5s cubic-bezier(.34, 1.56, .64, 1) .25s both; }
@keyframes nzPop { from { transform: scale(.4); } to { transform: scale(1); } }
.nz-tick svg { width: 40px; height: 40px; overflow: visible; }
.nz-tick-ring {
  fill: none;
  stroke: #12b76a;
  stroke-width: 3.2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.nz-tick-mark {
  fill: none;
  stroke: #12b76a;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}
.nz-toast.is-in .nz-tick-ring { animation: nzDraw .6s ease-out .3s forwards; }
.nz-toast.is-in .nz-tick-mark { animation: nzDraw .4s cubic-bezier(.65, 0, .45, 1) .8s forwards; }
@keyframes nzDraw { to { stroke-dashoffset: 0; } }
.nz-toast-copy { display: grid; gap: 2px; min-width: 0; }
.nz-toast-copy b { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-toast-copy small { font-size: .76rem; font-weight: 500; color: #667085; line-height: 1.35; }
.nz-toast-x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
}
.nz-toast-x:hover { background: #f2f4f7; color: #344054; }
.nz-toast-x svg { width: 16px; height: 16px; }
.nz-toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #12b76a, #14b8a6);
  transform-origin: left center;
  transform: scaleX(0);
}
.nz-toast.is-in .nz-toast-bar { animation: nzBar 5.2s linear forwards; }
@keyframes nzBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 900px) {
  .nz-grid { grid-template-columns: 1fr; }
  .nz-preview { position: static; order: -1; }
  .nz-phone { min-height: 0; }
}
@media (max-width: 520px) {
  .nz-hero { padding: 16px; gap: 12px; border-radius: 20px; }
  .nz-hero-ico { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .nz-live { display: none; }
  .nz-seg { grid-template-columns: 1fr; }
  .nz-seg-sm { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-hero-ico svg, .nz-hero-ico i, .nz-live i, .nz-step, .nz-card, .nz-pick { animation: none !important; }
}
@media (max-width: 900px) {
  body.admin-page.is-admin-desk .admin-app {
    grid-template-columns: 1fr;
  }
  .admin-menu { display: grid; place-items: center; }
  .admin-side {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    min-height: 100dvh;
  }
  body.admin-nav-open .admin-side { transform: none; }
  .admin-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(23, 17, 13, .55);
  }
  .admin-scrim[hidden] { display: none; }
  .admin-pane { padding: 8px 12px 28px; }
  .admin-top { padding: 12px 12px 6px; }
  .admin-top h1 { font-size: 1.38rem; }
  .admin-kpi b { font-size: 1.28rem; }
}
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: minmax(280px, .92fr) minmax(320px, 1.08fr); }
}
.admin-card {
  background: rgba(255, 250, 243, .92);
  border: 1px solid rgba(139, 90, 43, .12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(80, 50, 20, .06);
  color: #1c140e;
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-card h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.admin-count {
  margin: 4px 0 0;
  color: #7a6654;
  font-weight: 650;
  font-size: .78rem;
}
.admin-empty {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  color: #7a6654;
  font-weight: 650;
}
.admin-resto-list {
  display: grid;
  gap: 8px;
}
.admin-resto {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1.5px solid rgba(139, 90, 43, .14);
  background: #fffaf3;
  border-radius: 16px;
  color: #1c140e;
}
.admin-resto.on {
  border-color: transparent;
  background: linear-gradient(165deg, #241910, #17110d);
  color: #fff7ed;
}
.admin-resto-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.admin-resto-copy b {
  font-size: .92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.admin-resto-copy small {
  display: block;
  color: #7a6654;
  font-weight: 650;
  font-size: .72rem;
}
.admin-resto.on .admin-resto-copy small { color: #e8d5b5; }
.admin-resto-acts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.admin-mini {
  height: 38px;
  border-radius: 11px;
  border: 1.5px solid rgba(139, 90, 43, .16);
  background: #fff;
  font-weight: 800;
  font-size: .72rem;
  color: #1c140e;
}
.admin-mini.seed {
  background: #fff7ed;
  border-color: #c4a574;
  color: #7c4a12;
}
.admin-mini.danger,
.admin-btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.admin-resto.on .admin-mini {
  background: rgba(255,255,255,.08);
  border-color: rgba(244, 228, 196, .22);
  color: #fff7ed;
}
.admin-resto.on .admin-mini.seed {
  background: linear-gradient(180deg, #f4e4c4, #c4a574);
  border-color: transparent;
  color: #1c140e;
}
.admin-code {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  padding: 8px 8px;
  border-radius: 12px;
  background: #f4e4c4;
  color: #5c3d16;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.admin-resto.on .admin-code {
  background: linear-gradient(160deg, #f4e4c4, #c4a574);
  color: #1c140e;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .admin-form { grid-template-columns: 1fr 1fr; }
  .admin-form .span-2 { grid-column: 1 / -1; }
}
.admin-form label {
  display: grid;
  gap: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1.5px solid rgba(139, 90, 43, .16);
  border-radius: 14px;
  background: #fffaf3;
  padding: 12px 14px;
  font: 650 1rem/1.3 Manrope, sans-serif;
  color: #1c140e;
  text-transform: none;
  letter-spacing: 0;
}
.admin-form select { height: 46px; }
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: #c4a574;
  box-shadow: 0 0 0 4px rgba(196, 165, 116, .22);
}
#rCode {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem !important;
  color: #1c140e !important;
}
.admin-check input { width: auto; }
.admin-form .gate-go {
  margin-top: 4px;
  height: 50px;
}
.admin-form-msg {
  margin: 0;
  color: #b42318;
  font-weight: 700;
  font-size: .8rem;
}
.admin-form-msg.ok { color: #3f6b3a; }
.admin-form-msg[hidden] { display: none; }
.admin-menu-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1.5px solid #e8c99a;
  display: grid;
  gap: 12px;
}
.admin-menu-box[hidden] { display: none; }
.admin-menu-kicker {
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a42;
}
.admin-menu-box h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.admin-menu-box .admin-count { margin-top: 6px; }
.admin-menu-box .admin-btn {
  width: 100%;
  height: 44px;
  box-shadow: none;
}
.admin-btn.ghost {
  background: #fff7ed;
  color: #7c2d12;
  box-shadow: none;
}
.admin-kind-edit { margin-top: 18px; display: grid; gap: 14px; }
.admin-kind-edit[hidden] { display: none; }
.admin-kind-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4e4c4;
  font-size: .78rem;
  font-weight: 700;
  color: #5c3d16;
}
.admin-kind-chip button {
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.admin-kind-items { display: grid; gap: 8px; }
.admin-kind-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fffaf3;
  border: 1px solid rgba(139, 90, 43, .12);
}
.admin-kind-copy { min-width: 0; }
.admin-kind-copy b { display: block; font-size: .92rem; }
.admin-kind-copy small { color: #8a6a42; font-weight: 650; }
.admin-kind-row .food-rs { font-weight: 800; color: #7c2d12; }

.kot-app {
  display: none;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(820px 420px at 0% -10%, rgba(234, 88, 12, .22), transparent 58%),
    radial-gradient(720px 380px at 100% 0%, rgba(14, 165, 233, .16), transparent 52%),
    radial-gradient(640px 480px at 50% 120%, rgba(22, 163, 74, .14), transparent 58%),
    linear-gradient(180deg, #070b14 0%, #0b1220 46%, #111827 100%);
  color: #e2e8f0;
}
.kot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand clock"
    "meta clock";
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  padding: calc(10px + var(--safe-t)) 14px 8px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .55), transparent);
  border-bottom: 1px solid rgba(253, 186, 116, .12);
}
.kot-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.kot-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ea580c, #9a3412);
  color: #fff7ed;
  font-weight: 800;
  font-size: 1rem;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(234, 88, 12, .28);
}
.kot-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kot-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fdba74;
}
.kot-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: gate-pulse 1.8s ease-out infinite;
}
.kot-brand h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff7ed;
}
.kot-sub {
  margin: 2px 0 0;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 650;
}
.kot-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}
.kot-clock {
  grid-area: clock;
  align-self: start;
  justify-self: end;
  height: 42px;
  padding: 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #fff7ed;
  background: rgba(255, 247, 237, .12);
  border: 1px solid rgba(253, 186, 116, .28);
}
.kot-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .16);
  border: 1px solid rgba(134, 239, 172, .28);
  color: #dcfce7;
  font-size: .78rem;
  font-weight: 800;
}
.kot-live-chip em {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: gate-pulse 1.8s ease-out infinite;
}
.kot-live-chip b { font-size: 1.05rem; color: #fff; }
.kot-app .pill {
  background: rgba(255, 247, 237, .08);
  color: #fed7aa;
  border: 1px solid rgba(253, 186, 116, .18);
}
.kot-app .pill svg { color: #fdba74; }
.kot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 8px 14px 6px;
  position: relative;
  z-index: 1;
}
.kot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kot-filters button {
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(253, 186, 116, .22);
  background: rgba(255, 247, 237, .06);
  color: #fed7aa;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kot-filters button.on {
  background: #fff7ed;
  color: #9a3412;
  border-color: transparent;
}
.kot-filters button svg { width: 14px; height: 14px; }
.kot-count {
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  color: #fdba74;
}
.kot-board {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 6px 10px calc(10px + var(--safe-b));
  display: flex;
  flex-direction: column;
}
.kot-stage {
  flex: 1;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kot-lanes {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}
.kot-lanes button {
  height: 40px;
  border: 1px solid rgba(253, 186, 116, .22);
  background: rgba(255, 247, 237, .06);
  color: #fed7aa;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 247, 237, .2);
}
.kot-lanes button em {
  font-style: normal;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.kot-lanes button.on {
  background: #fff7ed;
  color: #9a3412;
  border-color: transparent;
}
.kot-lanes button.on em { background: #f73a3a; color: #fff7ed; }
.kot-kanban {
  flex: 1;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}
.kot-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(15, 23, 42, .45);
  border: 1px solid rgba(255, 247, 237, .08);
}
.kot-col-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  color: #fff7ed;
  flex: 0 0 auto;
}
.kot-col-h svg { flex: 0 0 auto; }
.kot-col-h div { min-width: 0; flex: 1; }
.kot-col-h b {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kot-col-h small {
  display: block;
  margin-top: 2px;
  font-size: .62rem;
  font-weight: 700;
  opacity: .8;
  letter-spacing: 0;
  text-transform: none;
}
.kot-col-h em {
  font-style: normal;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,.12);
}
.kot-col.is-ordered { border-color: rgba(249, 115, 22, .45); }
.kot-col.is-ordered .kot-col-h { color: #fdba74; }
.kot-col.is-ordered .kot-col-h em { background: #ea580c; color: #fff7ed; }
.kot-col.is-preparing { border-color: rgba(245, 158, 11, .4); }
.kot-col.is-preparing .kot-col-h { color: #fcd34d; }
.kot-col.is-preparing .kot-col-h em { background: #d97706; color: #fffbeb; }
.kot-col.is-ready { border-color: rgba(74, 222, 128, .35); }
.kot-col.is-ready .kot-col-h { color: #86efac; }
.kot-col.is-ready .kot-col-h em { background: #166534; color: #ecfdf3; }
.kot-col-cards {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kot-col-empty {
  margin: 24px 8px;
  text-align: center;
  color: rgba(226, 232, 240, .45);
  font-size: .78rem;
  font-weight: 700;
}
.kot-empty {
  margin: 56px auto;
  max-width: 420px;
  text-align: center;
  color: #cbd5e1;
}
.kot-empty svg {
  width: 52px;
  height: 52px;
  color: #fdba74;
  margin-bottom: 10px;
}
.kot-empty b {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff7ed;
}
.kot-empty p { margin: 0; font-weight: 650; line-height: 1.45; }
.kot-lanes button.is-preparing.on em { background: #d97706; }
.kot-lanes button.is-ready.on em { background: #166534; }
.kot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(380px, 56vh);
  background: #fffaf3;
  color: #1c140f;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(2, 6, 23, .28);
  flex: 0 0 auto;
}
.kot-card.is-new {
  box-shadow: 0 0 0 3px #f97316, 0 14px 28px rgba(234, 88, 12, .35);
  animation: kot-flash 1.2s ease-out 3;
}
@keyframes kot-flash {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .7), 0 14px 28px rgba(234, 88, 12, .35); }
  100% { box-shadow: 0 0 0 3px #f97316, 0 14px 28px rgba(234, 88, 12, .35); }
}
.kot-card.is-late .kot-top .kot-age { box-shadow: inset 0 0 0 2px #fecaca; }
.kot-card.is-ready { background: #f0fdf4; }
.kot-card.is-preparing { background: #fffbeb; }
.kot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  flex: 0 0 auto;
}
.kot-top .kot-age {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4em;
  padding: 0 10px;
  background: #1c140f;
  color: #fed7aa;
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}
.kot-advance {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  flex: 0 0 auto;
  gap: 1px;
  background: #1c140f;
  touch-action: manipulation;
}
.kot-step {
  min-height: 44px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
  background: #3f2a1c;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 247, 237, .25);
}
.kot-step svg,
.kot-step b { pointer-events: none; }
.kot-step b { font-size: .55rem; letter-spacing: 0; font-weight: 800; }
.kot-step.is-ordered { color: #fdba74; }
.kot-step.is-preparing { color: #fde68a; }
.kot-step.is-ready { color: #86efac; }
.kot-step.is-done { background: #14532d; color: #bbf7d0; }
.kot-step.on {
  cursor: pointer;
  color: #fff7ed;
}
.kot-step.is-ordered.on { background: #f73a3a; color: #fff7ed; }
.kot-step.is-ordered.on.is-wait {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .45);
  animation: kotWait 1.2s ease-in-out infinite;
}
@keyframes kotWait {
  50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(234, 88, 12, .15); }
}
.kot-step.is-preparing.on { background: #d97706; color: #fffbeb; }
.kot-step.is-ready.on { background: #166534; color: #ecfdf3; }
.kot-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.kot-who {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  padding: 8px 10px;
  background: #9a3412;
  color: #fff7ed;
}
.kot-stub {
  display: none;
}
.kot-card.is-preparing .kot-who { background: #b45309; }
.kot-card.is-ready .kot-who { background: #166534; }
.kot-card.is-mode-takeaway .kot-who { background: #0369a1; }
.kot-card.is-mode-delivery .kot-who { background: #6d28d9; }
.kot-stub-k {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
}
.kot-table {
  margin: 0;
  margin-right: auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.kot-table svg { width: 22px; height: 22px; }
.kot-table em {
  font-style: normal;
  font-family: "Poppins", sans-serif;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 247, 237, .18);
  color: inherit;
  border-radius: 999px;
  padding: 2px 6px;
}
.kot-mode-pill,
.kot-age,
.kot-new {
  font-size: .58rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.kot-mode-pill {
  background: rgba(255, 247, 237, .16);
  color: inherit;
}
.kot-age {
  color: inherit;
  background: rgba(255, 247, 237, .12);
  text-transform: none;
  letter-spacing: 0;
}
.kot-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  background: #f73a3a;
  color: #fff7ed;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: kot-new-pop 1.1s ease-in-out infinite;
}
.kot-new-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 247, 237, .28);
}
@keyframes kot-new-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.kot-status-btn {
  display: none;
}
.kot-body {
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 8px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.kot-body > small {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: #7a6a5c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kot-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.kot-lines li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 10px auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.kot-dish-pic {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3e0cc, #d9b99a);
  flex: 0 0 auto;
}
.kot-dish-pic img,
.kot-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kot-ph {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #9a3412;
  background: linear-gradient(160deg, #fed7aa, #fdba74);
}
.kot-lines .veg { margin-top: 0; width: 10px; height: 10px; justify-self: center; }
.kot-dish-copy { min-width: 0; }
.kot-dish-copy b {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kot-dish-copy small {
  margin: 1px 0 0;
  color: #7a6a5c;
  font-size: .58rem;
  font-weight: 700;
}
.kot-lines .qty {
  min-width: 1.4em;
  text-align: right;
  font-size: .9rem;
  font-weight: 800;
  color: #9a3412;
}
.kot-card.is-ready .kot-lines .qty { color: #166534; }
.kot-card.is-preparing .kot-lines .qty { color: #b45309; }
.kot-lines .void { opacity: .7; }
.kot-lines .void b { color: #b91c1c; text-decoration: line-through; }
.kot-lines .void .qty { color: #b91c1c; }
@media (max-width: 820px) {
  .kot-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand clock"
      "meta meta";
    padding: calc(8px + var(--safe-t)) 10px 6px;
    gap: 8px;
  }
  .kot-clock {
    height: 36px;
    padding: 0 10px;
    font-size: .92rem;
  }
  .kot-sub { display: none; }
  .kot-toolbar { padding: 4px 10px 2px; }
  .kot-count { display: none; }
  .kot-board { padding: 6px 10px calc(10px + var(--safe-b)); }
  .kot-brand h1 { font-size: 1.2rem; }
  .kot-col-h { display: none; }
  .kot-lanes { display: grid; }
  .kot-lanes button { height: 48px; }
  .kot-kanban {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: auto;
  }
  .kot-kanban .kot-col {
    display: none;
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-width: none;
    border-radius: 16px;
  }
  .kot-kanban.is-lane-ordered .kot-col.is-ordered,
  .kot-kanban.is-lane-preparing .kot-col.is-preparing,
  .kot-kanban.is-lane-ready .kot-col.is-ready {
    display: flex;
  }
  .kot-card { max-height: min(420px, 62vh); }
  .kot-step { min-height: 52px; }
}

.admin-lic-head {
  margin: 8px 0 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a3412;
}
.admin-lic-hint {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  color: #64748b;
}
#rBilling.is-year-free {
  background: #fff7ed;
  border-color: #1c140f;
  font-weight: 800;
  color: #9a3412;
}
.admin-lic-hint.is-year-free {
  background: #fff7ed;
  color: #9a3412;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
}
.admin-form input[readonly] {
  background: #f8fafc;
  color: #334155;
}
.admin-resto-copy small .lic-ok { color: #15803d; }
.admin-resto-copy small .lic-bad { color: #b91c1c; font-weight: 800; }
.admin-resto.on .admin-resto-copy small .lic-ok,
.admin-resto.on .admin-resto-copy small .lic-bad { color: inherit; }

#sheetRenew { z-index: 95; }
.renew-card, .renew-card h3, .renew-card .sheet-kicker, .renew-card .plan, .renew-card .gate-go, .renew-card .plan-note {
  font-family: Poppins, "Segoe UI", sans-serif;
}
.renew-card { background: #fffaf4; color: #1c140f; }
.renew-card .sheet-kicker { color: #c2410c; }
.renew-card h3 { color: #1c140f; font-weight: 800; font-size: 1.45rem; }
.renew-card .x { background: #fff; color: #1c140f; box-shadow: inset 0 0 0 1px #eadfce; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 12px; }
.plan {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid #eadfce;
  background: #fff;
  color: #1c140f;
  box-shadow: 0 6px 14px rgba(28, 20, 15, .04);
}
.plan-copy { min-width: 0; display: grid; gap: 1px; }
.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.plan-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: #fff1e6; color: #c2410c; }
.plan b { font-size: .82rem; font-weight: 800; }
.plan strong { display: block; margin: 0; font-size: 1.05rem; letter-spacing: -.03em; font-weight: 800; color: #1c140f; white-space: nowrap; }
.plan small { display: block; color: #8a7564; font-size: .68rem; font-weight: 700; line-height: 1.35; }
.renew-card .gate-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.plan.is-current { box-shadow: inset 0 0 0 1px #fdba74; }
.plan em {
  position: static;
  font-style: normal;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1c140f;
  background: #fbbf24;
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1.2;
}
.plan.on { border-color: #ea580c; background: #fff7ed; box-shadow: 0 8px 18px rgba(234, 88, 12, .12); }
.plan-best {
  border-color: #1c140f;
  background: linear-gradient(135deg, #fffaf4 0%, #fff 55%);
}
.plan-best.on { background: #fff7ed; }
.plan-best .plan-ico { background: #1c140f; color: #fbbf24; }
.renew-card .renew-log { display: none; }
.plan-note { margin: 8px 0 0; color: #8a7564; font-size: .75rem; font-weight: 650; line-height: 1.4; }
.renew-log { display: grid; gap: 8px; margin-top: 14px; }
.renew-fold {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #eadfce; border-radius: 16px;
  background: #fff; color: #c2410c; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.renew-fold em {
  margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #ffedd5; color: #9a3412;
  font-style: normal; letter-spacing: 0;
}
.renew-fold i { font-style: normal; letter-spacing: 0; color: #9a3412; }
.renew-fold-body { display: grid; gap: 8px; }
.renew-fold-body[hidden] { display: none; }
.renew-log h4 { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #c2410c; }
.renew-card .renew-log h4 { color: #c2410c; }
.renew-log article { border: 1px solid #eadfce; border-radius: 16px; padding: 12px; background: #fff; }
.pay-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pay-hist-top strong { color: #9a3412; font-size: 1rem; font-weight: 800; }
.pay-hist-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pay-hist-pills span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .68rem;
  font-weight: 800;
}
.pay-hist-pills .is-paid { background: #dcfce7; color: #166534; }
.renew-card .renew-log article { background: #fff; border-color: #eadfce; }
.renew-log b { display: block; font-size: .92rem; color: #1c140f; }
.renew-log small { display: block; margin-top: 2px; color: #8a7564; font-weight: 650; }
.renew-card .renew-log small { color: #8a7564; }
.renew-log .empty { margin: 0; color: #8a7564; font-size: .8rem; font-weight: 650; }
body.is-plan-required #sheetRenew {
  z-index: 200;
  background: rgba(20, 17, 14, .72);
  place-items: center;
  padding: 18px 14px;
}
body.is-plan-required #sheetRenew .renew-card {
  width: min(440px, 100%);
  height: auto;
  max-height: calc(100dvh - 36px);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
body.is-plan-required #sheetRenew .x { display: none; }
.plan-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.4;
}
.plan-alert[hidden] { display: none; }
#planSwitch { width: 100%; margin-top: 8px; }
#planSwitch[hidden] { display: none !important; }
.app-live-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.app-live-acts .admin-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.admin-btn.danger { color: #9f1239; }
.plan-wait { margin: 0; color: #94a3b8; }
.plan-open { margin: 8px 0 4px; }
.lic-lock,
.lic-warn {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background: rgba(15, 23, 42, .72);
}
.lic-lock[hidden],
.lic-warn[hidden] { display: none; }
.lic-lock-card,
.lic-warn-card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: #fff7ed;
  color: #431407;
  text-align: center;
}
.lic-kicker {
  margin: 0 0 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c2410c;
}
.lic-lock-card h2,
.lic-warn-card h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
}
.lic-lock-card p,
.lic-warn-card p {
  margin: 0 0 16px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7c2d12;
}
.lic-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f73a3a;
  color: #fff7ed;
  font-weight: 800;
  text-decoration: none;
}
.lic-lock .gate-switch { width: 100%; }
.lic-warn .gate-go { width: 100%; }
body.is-lic-lock .app,
body.is-lic-lock .kot-app { visibility: hidden; pointer-events: none; }

body.is-gated {
  background: #14110e;
  color: #fff;
}
.gate {
  color: #f8fafc;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(234, 88, 12, .28), transparent 60%),
    linear-gradient(180deg, #1c140f 0%, #14110e 100%) !important;
}
.gate-star, .gate-star-2, .gate-star-3 { display: none; }
.gate-haze {
  background: radial-gradient(circle, rgba(253, 186, 116, .22), transparent 70%);
}
.gate-haze-2 {
  background: radial-gradient(circle, rgba(234, 88, 12, .16), transparent 72%);
}
.gate-live {
  background: rgba(255, 247, 237, .08);
  border-color: rgba(253, 186, 116, .28);
  color: #fff7ed;
}
.gate-when, .gate-when b { color: #fdba74; }
.gate-hero {
  margin: 8px 0 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.gate-seal {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.gate-crest,
.gate-crest.is-ini {
  border-radius: 18px;
  background: transparent;
  color: #9a3412;
}
.gate-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.gate-stage { padding: 14px 16px 14px; }
.gate-card {
  background: #fffdfb;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  padding: 14px;
  gap: 6px;
  overflow: visible;
}
.gate-code { overflow: visible; }
.gate-code .gate-go { margin: 8px 0 0; flex: 0 0 auto; }
.gate-code { gap: 6px; }
.gate-help { font-size: .74rem; line-height: 1.3; }
.gate-step b { font-size: .76rem; }
.gate-step small { font-size: .66rem; line-height: 1.25; margin-top: 0; }
#gateCode { height: 44px; text-align: left; letter-spacing: .08em; padding-left: 48px; }
.gate-kicker {
  display: block;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #c2410c !important;
  letter-spacing: .16em;
  font-size: .64rem;
  font-weight: 800;
}
.gate-card h1,
.gate-card-title {
  color: #1c140f;
  font-size: 1.28rem;
}
.gate-help { color: #8a7564; }
.gate-go,
.gate-code .gate-go,
.lic-lock .gate-go,
.lic-warn .gate-go {
  background: #1c140f !important;
  box-shadow: none !important;
  border-radius: 14px;
  color: #fff7ed;
  text-transform: none;
  height: 42px;
  margin: 8px 0 0;
}
.gate-pad-act {
  color: #1c140f !important;
}
.gate-dots i.on {
  border-color: #1c140f;
  background: #1c140f;
  box-shadow: 0 0 0 4px rgba(28, 20, 15, .1);
}
.gate-dots i.on::after {
  content: none;
}
.gate-ava {
  background: #eef2ff;
  color: #2563eb;
}
.gate-person.on {
  background: #eff6ff;
  border-color: #2563eb;
}
.gate-person.on .gate-ava {
  background: linear-gradient(160deg, #2563eb, #14b8a6);
  color: #fff;
}
.lang-box { display: grid; gap: 10px; }
.lang-scope {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.lang-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lang-scope-row > div { min-width: 0; }
.lang-scope-row b {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
}
.lang-scope-row small,
.lang-scope-note {
  display: block;
  margin: 2px 0 0;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--mute);
}
.lang-scope .switch { width: 52px; height: 30px; flex: 0 0 52px; }
.lang-scope .switch::after { width: 24px; height: 24px; }
.lang-scope .switch.on::after { transform: translateX(22px); }
.float-field textarea,
.float-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px 12px 8px;
  text-transform: none;
  letter-spacing: 0;
}
.float-field textarea { min-height: 84px; resize: vertical; }
.float-field select {
  min-height: 52px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 12px;
  text-indent: 0;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2378756c' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.float-field textarea:focus + span,
.float-field textarea:not(:placeholder-shown) + span,
.float-field select + span,
.float-field.is-raised > span {
  top: 6px;
  font-size: .62rem;
}
.float-field input::placeholder,
.float-field textarea::placeholder { color: transparent; }
.float-field input:focus::placeholder,
.float-field textarea:focus::placeholder { color: #a89888; }
.float-field input:focus,
.float-field textarea:focus,
.float-field select:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}
.float-field:focus-within > span { color: #c2410c; }
.master-form label.float-field > span,
.admin-form label.float-field > span,
.admin-filter.float-field > span,
.cat-add label.float-field > span,
.ask-pin.float-field > span,
#viewReports .rpt-span label.float-field > span {
  top: 16px;
  left: 13px;
}
.master-form label.float-field input:focus + span,
.master-form label.float-field input:not(:placeholder-shown) + span,
.master-form label.float-field textarea:focus + span,
.master-form label.float-field textarea:not(:placeholder-shown) + span,
.master-form label.float-field select + span,
.master-form label.float-field.is-raised > span,
.admin-form label.float-field input:focus + span,
.admin-form label.float-field input:not(:placeholder-shown) + span,
.admin-form label.float-field textarea:focus + span,
.admin-form label.float-field textarea:not(:placeholder-shown) + span,
.admin-form label.float-field select + span,
.admin-form label.float-field.is-raised > span,
.admin-filter.float-field select + span,
.admin-filter.float-field.is-raised > span,
.cat-add label.float-field input:focus + span,
.cat-add label.float-field input:not(:placeholder-shown) + span,
.ask-pin.float-field input:focus + span,
.ask-pin.float-field input:not(:placeholder-shown) + span,
#viewReports .rpt-span label.float-field.is-raised > span {
  top: 6px;
  font-size: .62rem;
}
.master-form label.float-field,
.admin-form label.float-field,
.admin-filter.float-field,
.offer-field.float-field,
.ask-pin.float-field,
.cat-add label.float-field {
  display: block;
  position: relative;
  gap: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
.master-form label.float-field input,
.master-form label.float-field textarea,
.master-form label.float-field select,
.admin-form label.float-field input,
.admin-form label.float-field textarea,
.admin-form label.float-field select,
.admin-filter.float-field select,
.cat-add label.float-field input,
.ask-pin.float-field input,
.offer-field.float-field textarea {
  height: auto;
  min-height: 52px;
  margin-top: 0;
  padding: 22px 12px 8px;
  text-indent: 0;
  text-align: left;
}
.offer-field.float-field > span {
  position: absolute;
  left: 13px;
  top: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .84rem;
  font-weight: 800;
  color: var(--mute);
  pointer-events: none;
}
.offer-field.float-field textarea:focus + span,
.offer-field.float-field textarea:not(:placeholder-shown) + span {
  top: 6px;
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#viewReports .rpt-span label.float-field {
  display: block;
  position: relative;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
#viewReports .rpt-span label.float-field input {
  height: 52px;
  padding: 20px 8px 6px;
}
.date-face {
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 22px 28px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2378756c' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat;
  color: var(--ink, #1c140f);
  font: 800 .92rem Poppins, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}
.float-field > input.date-native,
#viewReports .rpt-span label.float-field input.date-native,
#viewReports .rpt-when input.date-native {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  background: transparent;
  box-shadow: none;
  z-index: 2;
}
.float-field:focus-within > .date-face {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .15);
}
#viewReports .rpt-when .date-face {
  width: 100%;
  min-height: 36px;
  height: 36px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px 0 62px;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background-color: #fff;
  font-size: .78rem;
  line-height: 1;
  text-align: right;
  box-shadow: none;
}
#viewReports .rpt-when .float-field:focus-within > .date-face {
  border-color: transparent;
  border-left-color: #eadfce;
  box-shadow: none;
}

body.admin-page.is-admin-desk {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #0f172a;
}
body.admin-page.is-admin-desk .admin-app,
html.admin-keep body.admin-page #adminApp,
html.admin-keep body.admin-page #adminApp[hidden] {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  width: min(480px, 100%);
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  min-height: 0 !important;
  position: relative;
  padding: 0 0 76px;
  overflow: hidden;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(251, 191, 36, .22), transparent 60%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), 0 30px 80px rgba(15, 23, 42, .35);
}
body.admin-page .admin-side,
body.admin-page .admin-scrim,
body.admin-page .admin-menu { display: none !important; }
body.admin-page.is-admin-desk .admin-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-dock {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 22px;
  background: #2a3339;
  z-index: 40;
}
.admin-dock button {
  border: 0;
  background: transparent;
  color: #ead7c4;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: .62rem;
  font-weight: 800;
}
.admin-dock button svg { width: 18px; height: 18px; }
.admin-dock button.on { background: #019d9d; color: #fff; }
.admin-more {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 80px;
  z-index: 41;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #fffdfb;
  border: 1px solid #eadfce;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .2);
}
.admin-more[hidden] { display: none !important; }
.admin-more button {
  height: 44px;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  color: #1c140e;
  font-weight: 800;
}
body.admin-page.is-admin-desk .admin-live { display: none; }
body.admin-page.is-admin-desk .admin-top {
  flex-wrap: wrap;
  padding: 14px 14px 8px;
  gap: 8px;
}
body.admin-page.is-admin-desk .admin-top h1 { font-size: 1.35rem; }
body.admin-page.is-admin-desk .admin-top-acts { margin-left: auto; }

body.admin-page.is-admin-desk {
  background: #dfe5ec;
  font-family: Poppins, system-ui, sans-serif;
}
body.admin-page.is-admin-desk .admin-app,
html.admin-keep body.admin-page #adminApp,
html.admin-keep body.admin-page #adminApp[hidden] {
  background: #f3f5f8;
  box-shadow: none;
  width: min(430px, 100%);
}
body.admin-page.is-admin-desk .admin-top-kicker { display: none; }
body.admin-page.is-admin-desk .admin-top {
  height: 56px;
  flex-wrap: nowrap;
  padding: 0 12px 0 16px;
  gap: 8px;
  background: #f3f5f8;
  position: sticky;
  top: 0;
  z-index: 6;
}
body.admin-page.is-admin-desk .admin-top h1 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: #101828;
}
.admin-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #344054;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.admin-icon svg { width: 18px; height: 18px; }
.admin-icon.is-busy { opacity: .45; }
.admin-fab {
  position: absolute;
  right: 16px;
  bottom: 80px;
  z-index: 36;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .32);
}
.admin-fab[hidden] { display: none !important; }
.admin-fab svg { width: 24px; height: 24px; }
.admin-back {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-weight: 700;
  font-size: .75rem;
}
body.admin-page .admin-pane { padding: 4px 12px 24px; gap: 10px; }
body.admin-page .admin-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.admin-page .admin-kpi,
body.admin-page .admin-kpi.hero,
body.admin-page .admin-kpi.due {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  color: #101828;
  border: 0;
  border-left: 3px solid #0f766e;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
body.admin-page .admin-kpi.due { border-left-color: #e11d48; }
body.admin-page .admin-kpi p {
  color: #667085;
  font-size: .62rem;
  letter-spacing: .08em;
}
body.admin-page .admin-kpi b {
  color: #101828;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
body.admin-page .admin-kpi small { color: #98a2b3; }
body.admin-page .admin-charts { display: grid; gap: 8px; }
body.admin-page .admin-chart-card {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  padding: 12px 12px 4px;
}
body.admin-page .admin-chart-card header p { display: none; }
body.admin-page .admin-chart-card h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: #101828;
  letter-spacing: -.02em;
}
body.admin-page .admin-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
body.admin-page .admin-card-form {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
body.admin-page .admin-count { color: #667085; margin: 0 2px 8px; }
body.admin-page .admin-resto-list { display: grid; gap: 8px; }
body.admin-page .admin-resto,
body.admin-page .admin-resto.on {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "code copy" "acts acts";
  gap: 2px 10px;
  align-items: center;
  background: #fff;
  color: #101828;
  border: 0;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
body.admin-page .admin-code,
body.admin-page .admin-resto.on .admin-code {
  grid-area: code;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .62rem;
  display: grid;
  place-items: center;
}
body.admin-page .admin-resto-copy { grid-area: copy; min-width: 0; }
body.admin-page .admin-resto-copy b,
body.admin-page .admin-resto.on .admin-resto-copy b { color: #101828; font-size: .95rem; }
body.admin-page .admin-resto-copy small,
body.admin-page .admin-resto.on .admin-resto-copy small {
  display: block;
  color: #667085;
  font-size: .72rem;
  line-height: 1.35;
}
body.admin-page .admin-meta { margin-top: 2px; }
body.admin-page .admin-resto-acts {
  grid-area: acts;
  display: flex;
  gap: 6px;
  margin: 6px 0 0;
}
body.admin-page .admin-mini,
body.admin-page .admin-resto.on .admin-mini,
body.admin-page .admin-resto.on .admin-mini.seed {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  box-shadow: none;
}
body.admin-page .admin-mini.danger,
body.admin-page .admin-resto.on .admin-mini.danger { background: #fff1f2; color: #be123c; }
body.admin-page .admin-dock {
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  border-radius: 0;
  padding: 0 4px;
  background: #111827;
  box-shadow: none;
}
body.admin-page .admin-dock button.on {
  background: transparent;
  color: #2dd4bf;
}
body.admin-page.is-admin-desk .admin-app,
html.admin-keep body.admin-page #adminApp { padding-bottom: 62px; }

.admin-form-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.admin-form-bar h2 {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #101828;
}
.admin-form-bar .admin-back {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.admin-form-bar .admin-back svg { width: 18px; height: 18px; }
body.admin-page .admin-form {
  grid-template-columns: 1fr;
  gap: 10px;
}
body.admin-page .admin-form label,
body.admin-page .admin-form label.float-field {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  padding: 0;
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: #344054;
}
body.admin-page .admin-form label.float-field > span {
  position: static;
  transform: none;
  order: -1;
  left: auto;
  top: auto;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: #344054;
  pointer-events: none;
}
body.admin-page .admin-form input,
body.admin-page .admin-form textarea,
body.admin-page .admin-form select,
body.admin-page .admin-form label.float-field input,
body.admin-page .admin-form label.float-field textarea,
body.admin-page .admin-form label.float-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #f2f4f7;
  color: #101828;
  font: 600 .95rem/1.3 Poppins, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
body.admin-page .admin-form textarea,
body.admin-page .admin-form label.float-field textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
}
body.admin-page .admin-form input:focus,
body.admin-page .admin-form textarea:focus,
body.admin-page .admin-form select:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #0f766e;
}
body.admin-page .admin-form input::placeholder,
body.admin-page .admin-form textarea::placeholder,
body.admin-page .admin-form label.float-field input::placeholder,
body.admin-page .admin-form label.float-field textarea::placeholder {
  color: #98a2b3;
}
body.admin-page .admin-lic-head {
  margin: 10px 0 0;
  color: #101828;
  letter-spacing: -.01em;
  text-transform: none;
  font-size: .95rem;
  font-weight: 700;
}
body.admin-page .admin-form .admin-btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  box-shadow: none;
  font-weight: 700;
}
body.admin-page .admin-form .admin-btn-danger {
  background: #fff1f2;
  color: #be123c;
}
body.admin-page .admin-check {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f2f4f7;
}
body.admin-page #adminRestoForm { gap: 12px; }
body.admin-page #adminRestoForm > label:not(.admin-check) {
  position: relative;
  display: block;
  height: 56px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: #f2f4f7;
}
body.admin-page #adminRestoForm > label:has(textarea) {
  height: auto;
  min-height: 96px;
}
body.admin-page #adminRestoForm label.float-field > span {
  position: absolute;
  left: 14px;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  order: 0;
  font-family: Poppins, system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #667085;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: top .16s ease, transform .16s ease, font-size .16s ease, color .16s ease;
}
body.admin-page #adminRestoForm label.float-field:has(textarea) > span {
  top: 18px;
  transform: none;
}
body.admin-page #adminRestoForm label.float-field:focus-within > span,
body.admin-page #adminRestoForm label.float-field input:focus + span,
body.admin-page #adminRestoForm label.float-field input:not(:placeholder-shown) + span,
body.admin-page #adminRestoForm label.float-field textarea:focus + span,
body.admin-page #adminRestoForm label.float-field textarea:not(:placeholder-shown) + span,
body.admin-page #adminRestoForm label.float-field.is-raised > span {
  top: 8px;
  transform: none;
  font-size: .68rem;
  font-weight: 650;
  color: #667085;
}
body.admin-page #adminRestoForm label.float-field:focus-within > span { color: #0f766e; }
body.admin-page #adminRestoForm label.float-field input,
body.admin-page #adminRestoForm label.float-field select,
body.admin-page #adminRestoForm label.float-field textarea {
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 20px 14px 0;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  box-shadow: none;
  color: #101828;
  font: 600 .95rem/1.2 Poppins, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
body.admin-page #adminRestoForm label.float-field textarea {
  height: 96px;
  min-height: 96px;
  padding: 28px 14px 10px;
  resize: none;
}
body.admin-page #adminRestoForm label.float-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
body.admin-page #adminRestoForm label.float-field:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px #0f766e;
}
body.admin-page #adminRestoForm label.float-field input:focus,
body.admin-page #adminRestoForm label.float-field textarea:focus,
body.admin-page #adminRestoForm label.float-field select:focus {
  outline: none;
  background-color: transparent;
  box-shadow: none;
}
body.admin-page #adminRestoForm label.float-field input::placeholder,
body.admin-page #adminRestoForm label.float-field textarea::placeholder { color: transparent; }
body.admin-page #adminRestoForm label.float-field input:focus::placeholder,
body.admin-page #adminRestoForm label.float-field textarea:focus::placeholder { color: #98a2b3; }
body.admin-page #adminRestoForm label.admin-check {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f2f4f7;
  overflow: visible;
  color: #101828;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body.admin-page #adminRestoForm label.admin-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  accent-color: #0f766e;
  background: transparent;
  box-shadow: none;
}
body.admin-page #adminRestoForm label.admin-check span {
  position: static;
  transform: none;
  right: auto;
  font-size: .9rem;
  font-weight: 600;
  color: #101828;
  white-space: normal;
}

/* ---- Lodge front desk (Rooms) ---- */
/* Lodge outlets: Rooms / Check in / Check-outs / Reports sit in the top bar, in place of the order type.
   The order type on the payment screen (#payModes) is not touched. */
.lodge-nav, .lodge-nav-head { display: none; }
body.is-lodge #orderModes,
body.is-lodge .app-head .modes { display: none !important; }
.lodge-nav-btn {
  position: relative; flex: 1 1 0; min-width: 0; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  height: 34px; padding: 0 3px; border-radius: 10px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
  font: 700 .62rem/1 Poppins, "Segoe UI", sans-serif; letter-spacing: -.1px;
}
.lodge-nav-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lodge-nav-btn svg { width: 13px; height: 13px; display: block; flex: 0 0 auto; }
.lodge-nav-btn:active { transform: scale(.97); }
.lodge-nav-btn.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.lodge-nav-badge {
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 99px; flex: 0 0 auto;
  background: #f59e0b; color: #1c1917; font: 800 .54rem/14px Poppins, "Segoe UI", sans-serif; font-style: normal; text-align: center;
}
.lodge-nav-badge[hidden] { display: none; }
body.is-lodge .lodge-nav-head { display: flex; gap: 8px; margin-top: 12px; }
.lodge-nav-head .lodge-nav-btn {
  height: 38px; font-size: .74rem; gap: 5px;
  border: 1px solid rgba(147, 197, 253, .28); background: rgba(2, 6, 23, .35); color: #dbeafe;
}
.lodge-nav-head .lodge-nav-btn svg { width: 16px; height: 16px; }
.lodge-nav-head .lodge-nav-btn.on { background: #0f766e; border-color: #2dd4bf; color: #fff; }
@media (max-width: 900px) {
  body.is-lodge .lodge-nav { display: flex; gap: 6px; margin: 0 0 8px; flex: 0 0 auto; }
  body.is-lodge .lodge-nav-head { display: none; }
}
#viewRooms { overflow-y: auto; padding: 0 2px 18px; }
#viewRooms > * { flex-shrink: 0; }
.lodge-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 2px 0 12px; padding: 18px;
  border-radius: 22px; color: #ecfeff; position: relative; overflow: hidden;
  background:
    radial-gradient(240px 120px at 88% -10%, rgba(45, 212, 191, .45), transparent 65%),
    radial-gradient(200px 140px at 8% 115%, rgba(245, 158, 11, .28), transparent 60%),
    linear-gradient(128deg, #04202b 0%, #07332f 52%, #0b2537 100%);
  box-shadow: 0 16px 32px rgba(4, 32, 43, .28);
}
.lodge-hero::after {
  content: ""; position: absolute; right: -34px; top: -44px; width: 150px; height: 150px;
  border: 22px solid rgba(255, 255, 255, .055); border-radius: 50%; pointer-events: none;
}
.lodge-kicker {
  display: flex; align-items: center; gap: 6px; margin: 0 0 4px;
  font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5eead4;
}
.lodge-hero h2 { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.05; color: #fff; }
.lodge-hero-copy p:last-child { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: rgba(204, 251, 241, .86); max-width: 420px; }
.lodge-hero-ico { display: none; }
.lodge-hero-acts { display: flex; gap: 8px; flex: 0 0 auto; position: relative; z-index: 1; }
.lodge-primary-btn, .lodge-ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 .86rem Poppins, "Segoe UI", sans-serif;
}
.lodge-primary-btn { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; box-shadow: 0 8px 18px rgba(234, 88, 12, .35); }
.lodge-primary-btn:active, .lodge-ghost-btn:active { transform: scale(.97); }
.lodge-ghost-btn { background: #fff; color: #134e4a; border: 1.5px solid #99f6e4; }
.lodge-hero .lodge-ghost-btn { background: rgba(255, 255, 255, .1); color: #ecfeff; border-color: rgba(153, 246, 228, .4); }
.lodge-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.lodge-stat {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 11px 12px;
  display: grid; gap: 1px; box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.lodge-stat span { font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #64748b; }
.lodge-stat b { font-size: 1.22rem; font-weight: 800; color: #0f172a; line-height: 1.15; }
.lodge-stat small { font-size: .68rem; font-weight: 650; color: #94a3b8; }
.lodge-stat.is-hero { background: linear-gradient(135deg, #0f766e, #115e59); border-color: #0f766e; }
.lodge-stat.is-hero span, .lodge-stat.is-hero small { color: rgba(204, 251, 241, .85); }
.lodge-stat.is-hero b { color: #fff; }
.lodge-stat.is-free { border-left: 4px solid #10b981; }
.lodge-stat.is-leaving { border-left: 4px solid #f59e0b; }
.lodge-stat.is-due { border-left: 4px solid #e11d48; }
.lodge-meter { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .25); margin-top: 6px; overflow: hidden; }
.lodge-meter em { display: block; height: 100%; border-radius: 99px; background: #fbbf24; transition: width .5s ease; }
.lodge-tools { display: grid; gap: 8px; margin-bottom: 12px; }
.lodge-search { background: #fff; }
.lodge-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.lodge-filters button {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid #cbd5e1; background: #fff; color: #475569; font: 700 .78rem Poppins, "Segoe UI", sans-serif;
}
.lodge-filters button.on { background: #04202b; border-color: #04202b; color: #fff; }
.lodge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 10px; }
.lodge-room {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px;
  display: grid; gap: 8px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.lodge-room.is-vacant { border: 1.6px dashed #6ee7b7; background: linear-gradient(160deg, #f0fdf7, #fff 70%); }
.lodge-room.is-occupied { cursor: pointer; border-top: 5px solid #0f766e; }
.lodge-room.is-occupied:active { transform: scale(.985); }
.lodge-room.is-leaving { border-top-color: #f59e0b; }
.lodge-room.is-overdue { border-top-color: #e11d48; }
.lodge-room-wm {
  position: absolute; right: 2px; bottom: -18px; font-size: 4.6rem; font-weight: 800;
  color: rgba(15, 118, 110, .07); line-height: 1; pointer-events: none;
}
.lodge-room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lodge-room-no {
  position: relative; display: inline-grid; place-content: center; text-align: center;
  min-width: 62px; height: 50px; padding: 0 12px 0 22px; border-radius: 10px 16px 16px 10px;
  background: linear-gradient(150deg, #04202b, #0b3b35); color: #fff;
  font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 10px 18px -12px rgba(4, 32, 43, .8);
}
.lodge-room-no::before { content: "Room"; display: block; margin-bottom: 3px; font-size: .48rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #5eead4; }
.lodge-room-no::after {
  content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #f8fffd; box-shadow: inset 0 0 0 1.5px rgba(94, 234, 212, .7);
}
.lodge-room.is-vacant .lodge-room-no { background: linear-gradient(150deg, #ecfdf5, #d1fae5); color: #065f46; box-shadow: inset 0 0 0 1.5px #a7f3d0; }
.lodge-room.is-vacant .lodge-room-no::before { color: #059669; }
.lodge-room.is-vacant .lodge-room-no::after { box-shadow: inset 0 0 0 1.5px #6ee7b7; }
.lodge-room.is-leaving .lodge-room-no { background: linear-gradient(150deg, #78350f, #b45309); }
.lodge-room.is-overdue .lodge-room-no { background: linear-gradient(150deg, #881337, #be123c); }
.lodge-chip { font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; }
.lodge-chip.is-free { background: #dcfce7; color: #15803d; }
.lodge-chip.is-occ { background: #ccfbf1; color: #0f766e; }
.lodge-chip.is-leaving { background: #fef3c7; color: #b45309; }
.lodge-chip.is-overdue { background: #ffe4e6; color: #be123c; }
.lodge-room-meta { margin: 0; font-size: .76rem; font-weight: 650; color: #64748b; }
.lodge-room-dates { margin: 0; font-size: .76rem; font-weight: 600; color: #475569; }
.lodge-room-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lodge-room-foot b { font-size: 1rem; color: #0f172a; }
.lodge-room-foot b small { font-size: .68rem; font-weight: 650; color: #94a3b8; }
.lodge-room-acts { display: inline-flex; gap: 6px; align-items: center; }
.lodge-checkin-btn {
  min-height: 38px; padding: 0 13px; border: 0; border-radius: 11px; cursor: pointer;
  background: #0f766e; color: #fff; font: 700 .78rem Poppins, "Segoe UI", sans-serif;
}
.lodge-edit-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; cursor: pointer;
  border: 1.5px solid #cbd5e1; background: #fff; color: #475569;
}
.lodge-guest { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lodge-avatar {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f59e0b, #0f766e); color: #fff; font-weight: 800; font-size: .92rem;
  box-shadow: 0 6px 14px rgba(15, 118, 110, .3);
}
.lodge-guest.is-big .lodge-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 1.1rem; }
.lodge-guest-copy { min-width: 0; display: grid; }
.lodge-guest-copy b { font-size: .98rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lodge-guest-copy small { font-size: .74rem; font-weight: 600; color: #64748b; }
.lodge-due-chip { font-size: .74rem; font-weight: 800; color: #be123c; background: #fff1f2; padding: 6px 10px; border-radius: 99px; }
.lodge-paid-chip { font-size: .74rem; font-weight: 800; color: #15803d; background: #dcfce7; padding: 6px 10px; border-radius: 99px; }
.lodge-view { font-size: .74rem; font-weight: 800; color: #0f766e; }
.lodge-empty {
  grid-column: 1 / -1; text-align: center; padding: 30px 18px; display: grid; gap: 8px; justify-items: center;
  background: #fff; border: 1.6px dashed #99f6e4; border-radius: 20px; color: #475569;
}
.lodge-empty b { font-size: 1.05rem; color: #0f172a; }
.lodge-empty p { margin: 0; font-size: .84rem; font-weight: 600; max-width: 340px; }
.lodge-empty-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #ccfbf1; color: #0f766e; }
.lodge-hist-head { margin: 18px 2px 8px; }
.lodge-hist-head h3 { margin: 0; font-size: .95rem; font-weight: 800; color: #0f172a; }
.lodge-history { display: grid; gap: 7px; }
.lodge-hist-row {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 10px 12px;
}
.lodge-hist-room { font-weight: 800; color: #0f766e; background: #f0fdfa; border-radius: 10px; padding: 7px 9px; font-size: .8rem; }
.lodge-hist-copy { flex: 1; min-width: 0; display: grid; }
.lodge-hist-copy b { font-size: .86rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lodge-hist-copy small, .lodge-hist-amt small { font-size: .68rem; font-weight: 600; color: #94a3b8; }
.lodge-hist-amt { text-align: right; display: grid; }
.lodge-hist-amt b { font-size: .9rem; color: #0f172a; }
/* Lodge sheets */
.lodge-sheet { background: #f8fffd; }
.lodge-est {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  background: linear-gradient(135deg, #04202b, #07332f); color: #ccfbf1;
  border-radius: 14px; padding: 11px 13px; font-size: .8rem; font-weight: 650;
}
.lodge-est b { color: #fff; }
.lodge-sec { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0f766e; }
.lodge-members {
  display: grid; gap: 0; margin-top: 4px; overflow: hidden;
  background: #fff; border: 1px solid #ccfbf1; border-radius: 18px;
  box-shadow: 0 10px 24px -18px rgba(4, 32, 43, .45);
}
.lodge-member {
  --mem: #0f766e; --mem-soft: #ccfbf1;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; position: relative;
}
.lodge-member + .lodge-member { border-top: 1px dashed #d1fae5; }
.lodge-member.is-women { --mem: #be185d; --mem-soft: #fce7f3; }
.lodge-member.is-kids { --mem: #b45309; --mem-soft: #fef3c7; }
.lodge-member-ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mem-soft); color: var(--mem);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 700; font-style: italic;
}
.lodge-member-copy { display: grid; gap: 1px; min-width: 0; }
.lodge-member-copy b { font-size: .9rem; font-weight: 800; color: #0f172a; }
.lodge-member-copy small { font-size: .68rem; font-weight: 600; color: #64748b; }
.lodge-stepper {
  display: flex; align-items: center; gap: 2px; flex: 0 0 auto;
  width: 150px; padding: 3px; border-radius: 999px; background: var(--mem-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}
.lodge-step {
  flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--mem);
  font: 700 1.3rem/1 Poppins, "Segoe UI", sans-serif; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .16);
}
.lodge-step[data-dir="1"] { background: var(--mem); color: #fff; }
.lodge-step:active { transform: scale(.92); }
.master-form .lodge-stepper input,
.lodge-sheet .lodge-stepper input,
.lodge-stepper input {
  flex: 1 1 auto; width: 100%; min-width: 52px; height: 38px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  text-align: center; font: 800 1.3rem/38px Poppins, "Segoe UI", sans-serif;
  color: #0f172a; -webkit-text-fill-color: #0f172a; opacity: 1; text-indent: 0;
  font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: textfield; -moz-appearance: textfield;
}
.lodge-stepper input::-webkit-outer-spin-button,
.lodge-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lodge-members-total {
  margin: 8px 0 10px; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #04202b, #07332f); color: #99f6e4;
  font-size: .76rem; font-weight: 700;
}
.lodge-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lodge-docs-guest { grid-template-columns: 1fr; max-width: 220px; }
.lodge-doc {
  position: relative; min-height: 118px; border: 1.8px dashed #5eead4; border-radius: 16px;
  background: #f0fdfa; display: grid; place-items: center; overflow: hidden; cursor: pointer; text-decoration: none;
}
.lodge-doc.is-required { border-color: #f59e0b; background: #fffbeb; }
.lodge-doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lodge-doc-cap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; text-align: center; color: #115e59; padding: 10px; }
.lodge-doc.has-photo .lodge-doc-cap { align-self: end; justify-self: stretch; background: linear-gradient(transparent, rgba(4, 32, 43, .78)); color: #fff; padding-top: 22px; }
.lodge-doc.has-file { border-style: solid; border-color: #0f766e; background: #ecfdf5; }
.lodge-doc.has-file .lodge-doc-cap { color: #115e59; background: transparent; padding-top: 10px; align-self: center; }
.lodge-doc-cap b { font-size: .84rem; }
.lodge-doc-cap small { font-size: .66rem; font-weight: 650; opacity: .85; }
.lodge-doc.has-photo { border-style: solid; border-color: #0f766e; }
.lodge-doc.is-reading::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, #5eead4, transparent);
  box-shadow: 0 0 12px 2px rgba(94, 234, 212, .8);
  animation: lcamScan 1.4s ease-in-out infinite alternate;
}
.ci-ocr {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 9px 12px; border-radius: 12px;
  font-size: .76rem; font-weight: 700; line-height: 1.35; background: #f0fdfa; color: #115e59; border: 1px solid #99f6e4;
}
.ci-ocr[hidden] { display: none !important; }
.ci-ocr svg { flex: 0 0 auto; }
.ci-ocr.is-ok { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.ci-ocr.is-warn { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.ci-ocr.is-info { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.ci-ocr-spin {
  flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #99f6e4; border-top-color: #0f766e; animation: lcamSpin .8s linear infinite;
}
#checkinForm input.is-auto,
#checkinForm textarea.is-auto { background: #f0fdfa; box-shadow: inset 0 0 0 1.5px #5eead4; }

/* In-app camera for guest photo and ID documents */
html.lcam-open, html.lcam-open body { overflow: hidden; }
.lcam {
  position: fixed; inset: 0; z-index: 9000; background: #020617; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  font-family: Poppins, "Segoe UI", sans-serif; touch-action: manipulation;
}
.lcam[hidden] { display: none !important; }
.lcam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lcam.is-mirror .lcam-video { transform: scaleX(-1); }
/* Never show the browser's own play button / controls on the live preview */
.lcam-video { pointer-events: none; }
.lcam-video::-webkit-media-controls,
.lcam-video::-webkit-media-controls-enclosure,
.lcam-video::-webkit-media-controls-panel,
.lcam-video::-webkit-media-controls-start-playback-button,
.lcam-video::-webkit-media-controls-overlay-play-button,
.lcam-video::-webkit-media-controls-play-button {
  display: none !important; -webkit-appearance: none; opacity: 0 !important; visibility: hidden !important;
}
.lcam-shade { position: absolute; inset: 0; z-index: 1; overflow: hidden; display: grid; place-items: center; pointer-events: none; padding: 96px 18px 170px; }
.lcam-frame {
  position: relative; width: min(92vw, 560px); aspect-ratio: 1.586; max-height: 100%;
  border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(2, 6, 23, .62);
  transition: width .28s ease, aspect-ratio .28s ease, border-radius .28s ease;
}
.lcam.is-port .lcam-frame { width: auto; height: min(101vw, calc(100vh - 290px), 570px); aspect-ratio: .63; }
.lcam.is-guest .lcam-frame { width: auto; height: min(90vw, calc(100vh - 290px), 436px); aspect-ratio: .78; border-radius: 50%; }
.lcam.is-guest .lcam-shade { padding-bottom: 130px; }
.lcam-frame i { position: absolute; width: 30px; height: 30px; border: 0 solid #5eead4; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .65)); }
.lcam-frame i:nth-child(1) { left: -3px; top: -3px; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 18px; }
.lcam-frame i:nth-child(2) { right: -3px; top: -3px; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 18px; }
.lcam-frame i:nth-child(3) { left: -3px; bottom: -3px; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 18px; }
.lcam-frame i:nth-child(4) { right: -3px; bottom: -3px; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 18px; }
.lcam.is-guest .lcam-frame i { display: none; }
.lcam.is-guest .lcam-frame { outline: 3px solid rgba(94, 234, 212, .85); outline-offset: 0; }
.lcam-line {
  position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5eead4, transparent); box-shadow: 0 0 14px 2px rgba(94, 234, 212, .7);
  animation: lcamScanFrame 2.2s ease-in-out infinite alternate;
}
.lcam.is-guest .lcam-line { display: none; }
@supports not (aspect-ratio: 1) {
  .lcam-frame { height: 58vw; max-height: 353px; }
  .lcam.is-port .lcam-frame { width: 64vw; max-width: 360px; height: 101vw; max-height: 570px; }
  .lcam.is-guest .lcam-frame { width: 70vw; max-width: 340px; height: 90vw; max-height: 436px; }
}
@keyframes lcamScanFrame { from { top: 8%; } to { top: 90%; } }
@keyframes lcamScan { from { top: 0; } to { top: calc(100% - 3px); } }
@keyframes lcamSpin { to { transform: rotate(360deg); } }
.lcam-top {
  position: relative; z-index: 3; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
  background: linear-gradient(rgba(2, 6, 23, .85), transparent);
}
.lcam-title { display: grid; justify-items: center; text-align: center; gap: 1px; }
.lcam-title b { font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
.lcam-title small { font-size: .72rem; font-weight: 600; color: #99f6e4; }
.lcam-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lcam-btn:active { transform: scale(.92); }
.lcam-orient {
  position: absolute; z-index: 3; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.lcam-orient[hidden] { display: none !important; }
.lcam-orient button {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #cbd5e1; font: 700 .74rem/1 Poppins, "Segoe UI", sans-serif;
}
.lcam-orient button.on { background: #5eead4; color: #042f2e; }
.lcam-shape { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.lcam-shape.is-land { width: 18px; height: 12px; }
.lcam-shape.is-port { width: 12px; height: 18px; }
.lcam-msg {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(84vw, 360px); margin: 0;
  padding: 14px 16px; border-radius: 14px; text-align: center; background: rgba(15, 23, 42, .88); color: #e2e8f0;
  font-size: .82rem; font-weight: 650; line-height: 1.4;
}
.lcam-msg[hidden] { display: none !important; }
.lcam-bottom {
  position: relative; z-index: 3; grid-row: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(2, 6, 23, .9) 40%);
}
.lcam-side {
  justify-self: center; display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 6px; border: 0; cursor: pointer;
  background: transparent; color: #e2e8f0; font: 700 .68rem/1 Poppins, "Segoe UI", sans-serif;
}
.lcam-side svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-sizing: border-box; }
.lcam-side.on svg { background: #fde68a; color: #78350f; }
.lcam-side[hidden] { visibility: hidden; display: grid !important; }
.lcam-shutter {
  width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; padding: 5px; cursor: pointer;
  background: transparent; box-shadow: 0 0 0 6px rgba(94, 234, 212, .25);
}
.lcam-shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .12s ease; }
.lcam-shutter:active i { transform: scale(.86); background: #5eead4; }
.lcam-review {
  position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: 1fr auto; gap: 16px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(circle at 50% 30%, #0b3b35, #020617 70%);
}
.lcam-review[hidden] { display: none !important; }
.lcam-review img {
  align-self: center; justify-self: center; max-width: 100%; max-height: 100%; border-radius: 16px; object-fit: contain;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9), 0 0 0 2px rgba(94, 234, 212, .5);
}
.lcam.is-guest .lcam-review img { border-radius: 24px; }
.lcam-review-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.lcam-review-acts button {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: 0; border-radius: 16px; cursor: pointer;
  font: 800 .9rem/1 Poppins, "Segoe UI", sans-serif;
}
.lcam-retake { background: rgba(255, 255, 255, .12); color: #fff; }
.lcam-use { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #042f2e; box-shadow: 0 12px 24px -12px rgba(45, 212, 191, .9); }
@media (orientation: landscape) and (max-height: 520px) {
  .lcam-shade { padding: 70px 120px 20px 20px; }
  .lcam-frame { width: auto; height: 76vh; }
  .lcam.is-port .lcam-frame, .lcam.is-guest .lcam-frame { width: auto; height: 76vh; }
  .lcam-bottom { position: absolute; right: 0; top: 0; bottom: 0; grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; padding: 20px 16px; background: linear-gradient(90deg, transparent, rgba(2, 6, 23, .9) 40%); }
  .lcam-orient { bottom: 14px; left: 40%; }
}
.lodge-guest-shot {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
  border: 2px solid #0f766e; background: #ecfdf5; flex-shrink: 0;
}
.lodge-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff1f2; color: #be123c; font-size: .8rem; font-weight: 700; }
.lodge-msg[hidden] { display: none !important; }
.lodge-submit { width: 100%; min-height: 50px; }
/* Check-in and payment sheets: the title bar and the save button stay on screen while the form scrolls. */
.sheet-card.lodge-pin { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lodge-pin > header {
  flex: 0 0 auto; margin: 0; padding: 16px 16px 16px 18px; align-items: center; gap: 12px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(45, 212, 191, .28), transparent 55%), linear-gradient(140deg, #04202b, #0b3b35 72%, #0f766e);
  border: 0; position: relative; z-index: 3; color: #ecfeff;
}
.lodge-pin > header .sheet-kicker { color: #5eead4; margin: 0 0 1px; }
.lodge-pin > header h3 { color: #fff; margin: 0; }
/* Lodge sheet titles use the same font as the page titles (Rooms, Reports), not the serif. */
.lodge-sheet header h3 {
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 1.22rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
}
.lodge-sheet header .sheet-kicker { font-family: Poppins, "Segoe UI", system-ui, sans-serif; }
.lodge-pin > header .x {
  flex: 0 0 auto; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff;
}
.lodge-pin > form {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 14px 14px 0; margin: 0; gap: 12px;
  background: #eef7f4; border: 0; border-radius: 0;
}
.lodge-pin .lodge-foot {
  grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  margin: 4px -14px 0; padding: 10px 14px calc(12px + var(--safe-b, 0px));
  background: #fff; border-top: 1px solid #d5ebe4; box-shadow: 0 -12px 22px -16px rgba(4, 32, 43, .5);
}
.lodge-pin .lodge-foot .lodge-msg { margin: 0; }
.lodge-pin .lodge-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 52px;
  border: 0; border-radius: 16px; color: #fff; font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(135deg, #0f766e, #0b3b35);
  box-shadow: 0 10px 20px -10px rgba(15, 118, 110, .75);
}
.lodge-pin .lodge-submit:active { transform: scale(.985); }
/* Check-in sheet */
.ci-hero-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center;
  color: #5eead4; background: rgba(94, 234, 212, .14); border: 1px solid rgba(94, 234, 212, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ci-hero-copy { flex: 1 1 auto; min-width: 0; }
.ci-hero-sub { margin: 3px 0 0; font-size: .7rem; font-weight: 600; color: rgba(204, 251, 241, .78); }
.ci-card {
  display: grid; gap: 10px; padding: 14px; border-radius: 20px;
  background: #fff; border: 1px solid #d9efe8; box-shadow: 0 10px 24px -20px rgba(4, 32, 43, .55);
}
.ci-card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; }
.ci-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font: 800 .8rem/1 Poppins, "Segoe UI", sans-serif;
  background: linear-gradient(145deg, #14b8a6, #0f766e); box-shadow: 0 6px 12px -6px rgba(15, 118, 110, .7);
}
.ci-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ci-t b { font-size: .92rem; font-weight: 800; color: #0f1f1c; letter-spacing: -.01em; }
.ci-t small { font-size: .66rem; font-weight: 600; color: #6b7d76; }
.ci-ico { flex: 0 0 auto; color: #99d6c9; }
.ci-sub {
  display: flex; align-items: center; gap: 6px; margin: 4px 0 -2px;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0f766e;
}
.ci-card .lodge-members { margin: 0; border: 0; box-shadow: none; background: #f6fbf9; border-radius: 16px; }
.ci-card .lodge-members-total { margin: 0; }
.ci-card .lodge-docs-guest { max-width: none; grid-template-columns: 1fr !important; }
.ci-card .lodge-docs-guest .lodge-doc { min-height: 92px; }
#ciEstimate.lodge-est {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden;
  background: linear-gradient(135deg, #04202b, #07332f);
}
.ci-est-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 12px; }
.ci-est-cell + .ci-est-cell { border-left: 1px dashed rgba(153, 246, 228, .28); }
.ci-est-cell i { font-style: normal; font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.ci-est-cell b { font-size: .92rem; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: -.02em; }
.ci-est-cell small { font-size: .6rem; font-weight: 600; color: rgba(204, 251, 241, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-est-cell.is-bal b { color: #fcd34d; }
.ci-foot-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .72rem; font-weight: 600; color: #5b6b66;
}
.ci-foot-sum b { color: #0f1f1c; font-weight: 800; }
.ci-foot-sum .is-bal b { color: #0f766e; font-size: .9rem; }
.ci-foot-sum:empty { display: none; }
#checkinForm .master-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#checkinForm .master-grid > label, .ci-card { min-width: 0; }
#checkinForm input, #checkinForm select, #checkinForm textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lodge-pin > form { overflow-x: hidden; }
/* Split payment in the lodge payment sheet (same idea as the restaurant bill) */
.lodge-split-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 14px; border: 1.5px dashed #99f6e4; background: #f0fdfa; color: #134e4a;
  font-family: inherit;
}
.lodge-split-toggle:active { transform: scale(.985); }
.lodge-split-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #ccfbf1; color: #0f766e;
}
.lodge-split-txt { display: grid; gap: 1px; min-width: 0; }
.lodge-split-txt b { font-size: .88rem; font-weight: 800; color: #134e4a; }
.lodge-split-txt small { font-size: .7rem; font-weight: 650; color: #4b7d77; }
.lodge-split-toggle.is-open { border-style: solid; background: #fff; }
.lodge-split-toggle.is-open .lodge-split-ico { background: #0f766e; color: #fff; }
.lodge-split {
  display: grid; gap: 6px; padding: 10px; border-radius: 14px;
  border: 1px solid #99f6e4; background: #f7fffd;
}
.lodge-split[hidden] { display: none; }
.lodge-split-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lodge-split-row label { min-width: 0; }
.lodge-split-row input { width: 100%; min-width: 0; box-sizing: border-box; font-weight: 800; }
.lodge-split-left { margin: 0; min-height: 1.1em; font-size: .76rem; font-weight: 800; color: var(--mute); }
.lodge-split-left.ok { color: #15803d; }
.lodge-split-left.bad { color: #b91c1c; }
.lodge-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.lodge-kv > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 9px 11px; display: grid; gap: 1px; }
.lodge-kv span { font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #94a3b8; }
.lodge-kv b { font-size: .84rem; color: #0f172a; }
.lodge-money { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 12px 0; }
.lodge-money > div { background: #04202b; border-radius: 14px; padding: 11px; display: grid; gap: 1px; }
.lodge-money span { font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #5eead4; }
.lodge-money b { font-size: .98rem; color: #fff; }
.lodge-money b.is-paid { color: #4ade80; }
.lodge-money b.is-due { color: #fb7185; }
.lodge-call-acts { margin-left: auto; display: flex; gap: 7px; }
.lodge-call-acts a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #04202b; color: #5eead4; text-decoration: none;
}
.lodge-stay-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 6px; }
.lodge-note { margin: 0 0 10px; font-size: .78rem; font-weight: 650; color: #92400e; background: #fffbeb; border-radius: 10px; padding: 9px 11px; }
.lodge-money.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lodge-money.is-four > div { padding: 10px 9px; }
.lodge-money.is-four b { font-size: .88rem; }
.lodge-room-food {
  margin: 0; display: flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 650; color: #9a3412;
}
.lodge-room-food b { color: #7c2d12; }

/* Guest folio: food bills charged to the room */
.lodge-folio {
  margin: 12px 0 0; border-radius: 18px; overflow: hidden;
  background: #fffaf3; border: 1px solid #fed7aa;
  background-image: radial-gradient(circle at 0 0, rgba(251, 146, 60, .14), transparent 55%);
}
.lodge-folio-head {
  margin: 0; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px dashed #fdba74;
}
.lodge-folio-head span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9a3412;
}
.lodge-folio-head b { font-size: 1.05rem; color: #7c2d12; font-variant-numeric: tabular-nums; }
.lodge-folio-list { list-style: none; margin: 0; padding: 4px 14px 8px; display: grid; }
.lodge-folio-row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 9px 0; position: relative;
}
.lodge-folio-row + .lodge-folio-row { border-top: 1px solid #ffedd5; }
.lodge-folio-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #fb923c; box-shadow: 0 0 0 3px #ffedd5; }
.lodge-folio-copy { display: grid; gap: 2px; min-width: 0; }
.lodge-folio-copy b { font-size: .8rem; font-weight: 800; color: #1c1917; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.lodge-folio-copy em { font-style: normal; font-size: .68rem; font-weight: 600; color: #a8a29e; }
.lodge-folio-copy small { font-size: .72rem; font-weight: 600; color: #57534e; line-height: 1.35; }
.lodge-folio-amt { font-size: .86rem; font-weight: 800; color: #7c2d12; font-variant-numeric: tabular-nums; }
.lodge-folio-note { margin: 0; padding: 10px 14px 12px; font-size: .74rem; font-weight: 600; color: #78716c; }
.lodge-folio.is-empty .lodge-folio-head { border-bottom: 0; padding-bottom: 2px; }

/* Check-out invoice */
.lodge-est.lodge-invoice {
  display: grid; gap: 0; padding: 14px 15px 12px; border-radius: 18px; position: relative;
  background: linear-gradient(160deg, #04202b 0%, #062a2c 60%, #0b3b35 100%);
}
.lodge-invoice::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 12px;
  background: radial-gradient(circle at 6px 0, transparent 5px, #f8fffd 5.5px) 0 0 / 12px 12px repeat-x;
  pointer-events: none;
}
.lodge-inv-guest { margin: 0 0 8px; display: grid; gap: 1px; }
.lodge-inv-guest b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.1; }
.lodge-inv-guest small { font-size: .7rem; font-weight: 650; color: #5eead4; letter-spacing: .02em; }
.lodge-inv-row, .lodge-inv-total { margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lodge-inv-row { padding: 6px 0; font-size: .78rem; color: #ccfbf1; border-top: 1px dashed rgba(94, 234, 212, .22); }
.lodge-inv-row b { color: #fff; font-variant-numeric: tabular-nums; }
.lodge-inv-row.is-less b { color: #86efac; }
.lodge-inv-row.is-later { opacity: .7; }
.lodge-inv-total { margin-top: 4px; padding: 10px 0 4px; border-top: 1.5px solid rgba(94, 234, 212, .45); }
.lodge-inv-total span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.lodge-inv-total b { font-size: 1.45rem; color: #fff; font-variant-numeric: tabular-nums; }
.lodge-inv-row.is-food span { color: #fed7aa; }
.lodge-inv-row.is-food b { color: #fdba74; }
.lodge-inv-food {
  list-style: none; margin: 0 0 6px 2px; padding: 2px 0 4px 12px; display: grid; gap: 7px;
  border-left: 2px solid rgba(251, 146, 60, .55); max-height: 220px; overflow-y: auto;
}
.lodge-inv-food li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lodge-inv-food li > span { display: grid; gap: 1px; min-width: 0; }
.lodge-inv-food li > span b { font-size: .74rem; font-weight: 800; color: #fff; }
.lodge-inv-food em { font-style: normal; font-size: .62rem; font-weight: 600; color: #5eead4; }
.lodge-inv-food small { font-size: .64rem; font-weight: 600; color: rgba(204, 251, 241, .8); line-height: 1.3; }
.lodge-inv-food li > b { font-size: .78rem; color: #fed7aa; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pay sheet: Bill to (walk-in customer or room guest) */
.pay-billto {
  margin: 10px 0 4px; padding: 12px; border-radius: 20px;
  background: linear-gradient(180deg, #f0fdfa, #fff); border: 1px solid #ccfbf1;
}
.pay-billto-kicker { margin: 0 0 8px 2px; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0f766e; }
.pay-billto-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-billto-seg button {
  display: flex; align-items: center; gap: 9px; text-align: left; min-width: 0;
  padding: 10px; border-radius: 15px; border: 1.5px solid #e2e8f0; background: #fff; color: #0f172a;
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.pay-billto-seg button:active { transform: scale(.98); }
.pay-billto-seg button > span:last-child { display: grid; gap: 1px; min-width: 0; }
.pay-billto-seg b { font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-billto-seg small { font-size: .66rem; font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-billto-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: #f1f5f9; color: #475569;
}
.pay-billto-seg button.on { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.pay-billto-seg button.on .pay-billto-ico { background: #04202b; color: #5eead4; }
.pay-rooms { display: grid; gap: 7px; margin-top: 10px; max-height: 236px; overflow-y: auto; padding: 2px; }
button.pay-room {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; gap: 10px;
  padding: 8px 10px 8px 8px; border-radius: 15px; border: 1.5px solid #e2e8f0; background: #fff;
  font: inherit; color: #0f172a; text-align: left; cursor: pointer;
}
button.pay-room.on { border-color: #0d9488; background: #f0fdfa; }
.pay-room-no {
  height: 46px; border-radius: 12px; display: grid; place-content: center; text-align: center;
  background: #04202b; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1;
}
.pay-room-no small { font-size: .5rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; margin-bottom: 3px; }
.pay-room-copy { display: grid; gap: 2px; min-width: 0; }
.pay-room-copy b { font-size: .84rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-room-copy small { font-size: .66rem; font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-room-food { display: grid; text-align: right; font-size: .8rem; font-weight: 800; color: #9a3412; font-variant-numeric: tabular-nums; }
.pay-room-food small { font-size: .55rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a8a29e; }
.pay-room-tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #cbd5e1; color: transparent;
}
button.pay-room.on .pay-room-tick { background: #0d9488; border-color: #0d9488; color: #fff; }
.pay-rooms-empty { margin: 0; padding: 12px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.pay-room-charge {
  margin-top: 10px; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 12px 14px 12px 12px; border: 0; border-radius: 17px; cursor: pointer; font: inherit; text-align: left;
  background: linear-gradient(135deg, #0d9488, #04202b); color: #fff;
  box-shadow: 0 14px 26px -14px rgba(13, 148, 136, .8);
}
.pay-room-charge[hidden] { display: none; }
.pay-room-charge:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pay-room-charge:not(:disabled):active { transform: scale(.985); }
.pay-room-charge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #99f6e4; }
.pay-room-charge-txt { display: grid; gap: 2px; min-width: 0; }
.pay-room-charge-txt b { font-size: .92rem; font-weight: 800; }
.pay-room-charge-txt small { font-size: .68rem; font-weight: 600; color: #ccfbf1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-room-charge-amt { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Room guest: charge to the room, or take payment now with the usual methods */
.pay-or { display: none; }
.pay-card.is-room-bill .pay-or {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 0;
}
.pay-card.is-room-bill .pay-or::before,
.pay-card.is-room-bill .pay-or::after { content: ""; flex: 1 1 0; border-top: 1.5px dashed #cbd5e1; }
.pay-card.is-room-bill .pay-or span {
  flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; background: #f1f5f9; color: #475569;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

/* Bill screen: Bill to (customer or room guest) */
.ticket-billto {
  margin: 8px 0 0; padding: 7px; border-radius: 16px; display: grid; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.ticket-billto[hidden] { display: none !important; }
.ticket-billto.is-room { background: linear-gradient(160deg, #f0fdfa, #fff 72%); border-color: #99f6e4; }
.ticket-billto-row { display: flex; align-items: center; gap: 8px; }
.ticket-billto-lab {
  flex: 0 0 auto; padding-left: 5px;
  font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
}
.ticket-billto.is-room .ticket-billto-lab { color: #0f766e; }
.ticket-billto-seg {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 3px; border-radius: 12px; background: #f6ede2;
}
.ticket-billto.is-room .ticket-billto-seg { background: #ccfbf1; }
.ticket-billto-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  min-height: 34px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent;
  color: var(--mute); font: 700 .78rem Poppins, "Segoe UI", sans-serif; cursor: pointer;
  transition: background .15s, color .15s;
}
.ticket-billto-seg button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-billto-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(28, 20, 15, .12); }
.ticket-billto-seg button[data-bill-to="room"].on { background: #04202b; color: #fff; }
.ticket-rooms { display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ticket-rooms[hidden] { display: none !important; }
.ticket-rooms::-webkit-scrollbar { display: none; }
.ticket-room {
  flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; min-width: 60px; padding: 6px 10px;
  border-radius: 12px; border: 1.5px solid #ccfbf1; background: #fff; color: #0f172a;
  font: inherit; cursor: pointer; transition: transform .1s;
}
.ticket-room:active { transform: scale(.95); }
.ticket-room b { font-size: .96rem; font-weight: 800; line-height: 1.1; }
.ticket-room small { max-width: 76px; font-size: .6rem; font-weight: 700; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-room.on { background: #0d9488; border-color: #0d9488; color: #fff; box-shadow: 0 8px 14px -10px rgba(13, 148, 136, .9); }
.ticket-room.on small { color: #ccfbf1; }
.ticket-rooms-empty { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: .72rem; font-weight: 650; }
.ticket-guest {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 14px; color: #fff;
  background: radial-gradient(120px 60px at 100% 0, rgba(245, 158, 11, .25), transparent 70%), linear-gradient(135deg, #04202b, #0b3b35);
}
.ticket-guest[hidden] { display: none !important; }
.ticket-guest-tag {
  display: grid; place-content: center; text-align: center; min-width: 48px; height: 42px; padding: 0 8px;
  border-radius: 10px; border: 1px dashed rgba(94, 234, 212, .55); background: rgba(255, 255, 255, .08);
  font-size: 1.02rem; font-weight: 800; line-height: 1;
}
.ticket-guest-tag small { margin-bottom: 3px; font-size: .45rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5eead4; }
.ticket-guest-copy { display: grid; gap: 1px; min-width: 0; }
.ticket-guest-copy b { font-size: .86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-guest-copy small { font-size: .64rem; font-weight: 600; color: #99f6e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-guest-tab { display: grid; text-align: right; font-size: .92rem; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; }
.ticket-guest-tab small { font-size: .5rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.ticket-guest-pick { grid-column: 1 / -1; margin: 0; padding: 2px 2px 2px 4px; font-size: .72rem; font-weight: 600; color: #ccfbf1; }
.ticket.is-room-bill #btnPay:not(:disabled) {
  background: linear-gradient(135deg, #0d9488, #04202b); color: #fff;
  box-shadow: 0 12px 22px -12px rgba(13, 148, 136, .9);
}
@media (max-width: 380px) {
  .pay-billto-seg button { padding: 9px 8px; gap: 7px; }
  .pay-billto-ico { flex-basis: 30px; width: 30px; height: 30px; }
  .lodge-money.is-four { grid-template-columns: 1fr 1fr; }
  .lodge-member { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 9px 8px 9px 10px; }
  .lodge-member-ico { width: 34px; height: 34px; font-size: 1.15rem; }
  .lodge-member-copy small { display: none; }
  .lodge-stepper { width: 136px; }
  .lodge-step { flex-basis: 34px; width: 34px; height: 34px; }
  .master-form .lodge-stepper input,
  .lodge-sheet .lodge-stepper input,
  .lodge-stepper input { height: 34px; line-height: 34px; min-width: 48px; }
  .ticket-billto-lab { display: none; }
}
@media (max-width: 720px) {
  /* Phone / mobile app: compact one-row header + single KPI ledger strip */
  .lodge-hero {
    align-items: center; margin: 0 0 8px; padding: 6px 6px 6px 12px; min-height: 48px; gap: 8px;
    border-radius: 14px; box-shadow: 0 6px 16px rgba(4, 32, 43, .2);
    background:
      linear-gradient(90deg, rgba(45, 212, 191, .16), transparent 42%),
      linear-gradient(128deg, #04202b 0%, #07332f 60%, #0b2537 100%);
  }
  .lodge-hero::after { display: none; }
  .lodge-hero::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
    border-radius: 0 3px 3px 0; background: linear-gradient(#5eead4, #f59e0b);
  }
  .lodge-hero-copy {
    min-width: 0; flex: 1 1 auto; display: grid; align-items: center;
    grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px;
    grid-template-areas: "ico ttl" "ico kick";
  }
  .lodge-hero-copy #lodgeHeroSub { display: none; }
  .lodge-hero-ico {
    grid-area: ico; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
    color: #5eead4; background: rgba(94, 234, 212, .13); border: 1px solid rgba(94, 234, 212, .28);
  }
  .lodge-hero-ico svg { width: 20px; height: 20px; }
  .lodge-hero h2 { grid-area: ttl; font-size: 1.12rem; line-height: 1.1; }
  .lodge-hero-copy .lodge-kicker {
    grid-area: kick; margin: 2px 0 0; font-size: .58rem; letter-spacing: .14em; line-height: 1.2; color: #5eead4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  }
  .lodge-hero-copy .lodge-kicker svg { display: none; }
  .lodge-hero-acts { gap: 6px; }
  .lodge-hero .lodge-ghost-btn, .lodge-hero .lodge-primary-btn {
    min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: .8rem; box-shadow: none;
  }
  .lodge-hero .lodge-primary-btn { box-shadow: 0 4px 10px rgba(234, 88, 12, .3); }
  /* "Add room" is icon-only on phones so the title and label have room */
  .lodge-hero #btnAddRoom { font-size: 0; gap: 0; width: 38px; min-width: 38px; padding: 0; }
  .lodge-hero #btnAddRoom svg { width: 18px; height: 18px; }

  .lodge-stats {
    --ls-line: #e6ebf1;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 8px;
    background: var(--ls-line); border: 1px solid var(--ls-line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  }
  .lodge-stat, .lodge-stat.is-hero {
    --ac: #0f766e;
    position: relative; min-width: 0; padding: 6px 10px 7px;
    background: #fff; border: 0; border-radius: 0; box-shadow: none;
    grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; gap: 0 8px;
  }
  .lodge-stat.is-hero { grid-column: 1 / -1; }
  .lodge-stat span, .lodge-stat.is-hero span {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-bottom: 1px;
    font-size: .58rem; font-weight: 800; letter-spacing: .1em; color: #64748b; white-space: nowrap;
  }
  .lodge-stat span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); flex: 0 0 auto; }
  .lodge-stat b, .lodge-stat.is-hero b { font-size: 1.05rem; line-height: 1.2; color: #0f172a; font-variant-numeric: tabular-nums; }
  .lodge-stat small, .lodge-stat.is-hero small {
    min-width: 0; font-size: .62rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .lodge-stat, .lodge-stat.is-hero { --ac-bg: rgba(15, 118, 110, .12); padding-right: 42px; }
  .lodge-stat-ico {
    position: absolute; right: 8px; top: 50%; margin-top: -14px;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    color: var(--ac); background: var(--ac-bg); font-style: normal;
  }
  .lodge-stat-ico svg { width: 17px; height: 17px; display: block; }
  .lodge-stat.is-free { --ac: #10b981; --ac-bg: rgba(16, 185, 129, .14); border: 0; }
  .lodge-stat.is-leaving { --ac: #f59e0b; --ac-bg: rgba(245, 158, 11, .16); border: 0; }
  .lodge-stat.is-due { --ac: #e11d48; --ac-bg: rgba(225, 29, 72, .12); border: 0; }
  .lodge-stat.is-due b { color: #be123c; }
  .lodge-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; margin: 0; border-radius: 0; background: #e6f4f1; }
  .lodge-meter em { border-radius: 0; background: linear-gradient(90deg, #14b8a6, #f59e0b); }
  .lodge-tools { gap: 6px; margin-bottom: 8px; }
  .lodge-grid { grid-template-columns: 1fr 1fr; }
  .lodge-room { padding: 11px; }
  .lodge-room-no { font-size: 1.12rem; }
  .lodge-docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .lodge-grid { grid-template-columns: 1fr; }
}

/* ---- Rooms: compact guest cards, tidy filters, clearer top nav ---- */
.lodge-nav .lodge-nav-btn {
  flex-direction: column; gap: 3px; height: 48px; padding: 6px 2px 5px; border-radius: 13px;
  font-size: .68rem; font-weight: 700; letter-spacing: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.lodge-nav .lodge-nav-btn svg { width: 19px; height: 19px; }
.lodge-nav .lodge-nav-btn.on { background: linear-gradient(160deg, #0f766e, #0b3b35); border-color: #0f766e; box-shadow: 0 8px 16px -8px rgba(15, 118, 110, .75); }
.lodge-nav .lodge-nav-btn .lodge-nav-badge { position: absolute; top: 3px; right: 7px; }
.lodge-fc {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 99px; background: #e2e8f0; color: #334155; font: 800 .64rem/1 Poppins, "Segoe UI", sans-serif; font-style: normal;
}
.lodge-filters button.on .lodge-fc { background: rgba(255, 255, 255, .2); color: #fff; }
.lodge-room-no { min-width: 56px; height: 46px; }
.lodge-room.is-vacant { padding: 12px; gap: 8px; }
.lodge-room-acts { display: flex; }
.lodge-room.is-vacant .lodge-checkin-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; }
.lodge-room.is-occupied { padding: 12px; gap: 10px; border-top-width: 4px; }
.lr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.lr-head .lodge-guest-copy b { font-size: .95rem; line-height: 1.2; }
.lr-head .lodge-guest-copy small { font-size: .72rem; line-height: 1.3; }
.lr-head .lodge-chip { white-space: nowrap; align-self: start; }
.lr-dates {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: #f1f7f6;
}
.lr-d { display: grid; gap: 1px; }
.lr-d i { font-style: normal; font-size: .54rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.lr-d b { font-size: .84rem; font-weight: 800; color: #0f172a; white-space: nowrap; }
.lr-d.is-out { text-align: right; }
.lr-mid { position: relative; display: grid; place-items: center; height: 20px; min-width: 0; }
.lr-mid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #94a3b8; opacity: .6; }
.lr-mid em {
  position: relative; font-style: normal; font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  background: #fff; color: #0f766e; box-shadow: 0 0 0 1px #99f6e4; white-space: nowrap;
}
.lr-sub { margin: 0; font-size: .72rem; font-weight: 650; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lodge-room.is-occupied .lodge-room-foot { padding-top: 9px; border-top: 1px solid #eef2f6; }
.lodge-due-chip, .lodge-paid-chip { padding: 5px 10px; }
.lodge-view { display: inline-flex; align-items: center; gap: 2px; }
.lodge-empty { padding: 22px 16px; gap: 6px; }
@media (max-width: 720px) {
  .lodge-grid, .lodge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lodge-grid { grid-auto-flow: dense; }
  .lodge-room.is-occupied { grid-column: 1 / -1; }
  .lodge-room-wm { font-size: 3.4rem; bottom: -12px; }
  .lodge-room-no { font-size: 1.1rem; }
  .lodge-room.is-vacant .lodge-room-top { align-items: flex-start; }
  .lodge-tools .lodge-search { min-height: 42px; height: 42px; border-radius: 13px; padding: 0 12px; }
  .lodge-tools .lodge-search input { font-size: .86rem; }
  .lodge-tools .lodge-search svg { width: 17px; height: 17px; }
  .lodge-filters { gap: 6px; scrollbar-width: none; }
  .lodge-filters::-webkit-scrollbar { display: none; }
  .lodge-filters button { flex: 1 1 auto; min-height: 34px; padding: 0 10px; font-size: .74rem; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
  .lodge-filters button svg { display: none; }
  .lodge-fc { margin-left: 5px; }
}
@media (max-width: 400px) {
  .lodge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The two hidden file pickers of the check-in sheet: the ID boxes and the camera's Upload button already open them */
#ciCamFile, #ciGalFile {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
  opacity: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; pointer-events: none !important; border: 0 !important;
}

/* Check-in: guest name and mobile each take the full width; the name shows every word capitalised */
#checkinForm .master-grid.ci-one { grid-template-columns: minmax(0, 1fr); }
#checkinForm .master-grid.ci-one input { width: 100%; box-sizing: border-box; }
#ciName { text-transform: capitalize; }
#checkinForm .master-grid.ci-one select { width: 100%; box-sizing: border-box; }

/* Customer name on the pay screen and in the reports (for bills left unpaid at a lodge) */
#payGuestName[hidden] { display: none !important; }
.pay-card .guest-name { margin: 0 0 6px; }
#payGuestName.float-field input {
  height: 52px;
  padding: 18px 12px 6px;
  border-radius: 14px;
}
#payGuestName.float-field > span {
  left: 12px;
  top: 16px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #a8a29e;
}
#payGuestName.float-field input:focus + span,
#payGuestName.float-field input:not(:placeholder-shown) + span {
  top: 6px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
}
#payGuestName.float-field:focus-within > span { color: #c2410c; }
.pay-card .guest-name small { display: block; font-size: .7rem; line-height: 1.35; }
.guest-name .guest-cc svg { width: 16px; height: 16px; }
.guest-name input { letter-spacing: 0; font-size: .95rem; text-transform: capitalize; }
.guest-name.is-lodge .guest-phone-row { border-color: #0d9488; }
.guest-name.is-lodge small { color: #0f766e; font-weight: 700; }
.guest-name.is-need .guest-phone-row { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, .12); }
.guest-name.is-need small { color: #be123c; font-weight: 700; }
#viewReports .rpt-chip.rpt-cust { display: inline-flex; align-items: center; gap: 4px; background: #e0f2fe; color: #075985; font-weight: 800; }
#viewReports .rpt-chip.rpt-cust.is-due { background: #ffe4e6; color: #9f1239; }
#viewReports .rpt-chip.rpt-cust svg { width: 11px; height: 11px; flex: 0 0 auto; }

/* ---- Recent check-outs: history cards + guest detail tabs ---- */
.lodge-hist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lodge-hist-head h3 { display: flex; align-items: center; gap: 7px; }
.lodge-hist-head small { font-size: .72rem; font-weight: 650; color: #64748b; }
.lodge-hist-row {
  position: relative; cursor: pointer; padding: 11px 12px; gap: 11px; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.lodge-hist-row:hover { border-color: #5eead4; box-shadow: 0 4px 14px rgba(13,148,136,.12); }
.lodge-hist-row:active { transform: scale(.992); }
.lodge-hist-row:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.lodge-hist-room {
  display: grid; place-items: center; align-content: center; min-width: 50px; height: 50px; padding: 0 6px;
  border-radius: 13px; font-size: 1rem; line-height: 1.05; background: linear-gradient(160deg, #ccfbf1, #f0fdfa);
}
.lodge-hist-room small { font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0d9488; }
.lodge-hist-copy { gap: 2px; }
.lodge-hist-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.lodge-hist-tags em {
  font-style: normal; font-size: .62rem; font-weight: 800; color: #475569; background: #f1f5f9;
  border-radius: 999px; padding: 2px 8px;
}
.lodge-hist-tags em.is-food { color: #b45309; background: #fffbeb; }
.lodge-hist-amt { gap: 4px; justify-items: end; align-content: center; }
.lodge-hist-go { color: #94a3b8; font-size: 1.5rem; line-height: 1; margin-left: -2px; }
.lodge-hist-row:hover .lodge-hist-go { color: #0d9488; }

.stay-hero {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px;
  background: linear-gradient(135deg, #04202b, #0f4c5c); color: #fff; margin: 2px 0 10px;
}
.stay-hero .lodge-avatar, .stay-hero .lodge-guest-shot { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; }
.stay-hero.is-done { background: linear-gradient(135deg, #1e293b, #475569); }
.stay-hero-copy { display: grid; gap: 2px; min-width: 0; }
.stay-hero-copy b { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay-hero-copy small { font-size: .74rem; font-weight: 600; color: #cbd5e1; }
.stay-state {
  justify-self: start; margin-top: 3px; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(94,234,212,.18); color: #5eead4;
}
.stay-hero.is-done .stay-state { background: rgba(255,255,255,.14); color: #e2e8f0; }

.stay-tabs { display: flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 14px; margin: 12px 0; }
.stay-tabs button {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; background: transparent; border-radius: 11px; padding: 9px 4px; font: inherit; font-size: .76rem;
  font-weight: 800; color: #64748b; cursor: pointer;
}
.stay-tabs button.on { background: #fff; color: #0f766e; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.stay-tabs button em {
  font-style: normal; font-size: .62rem; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: inline-grid; place-items: center; background: #0d9488; color: #fff;
}
.stay-pane[hidden] { display: none; }

.stay-when { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.stay-when-d { flex: 1; min-width: 0; display: grid; gap: 2px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 11px; }
.stay-when-d i { font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #94a3b8; }
.stay-when-d b { font-size: .8rem; color: #0f172a; }
.stay-when-d.is-out { background: #f0fdfa; border-color: #99f6e4; }
.stay-when-mid { display: grid; place-items: center; }
.stay-when-mid em { font-style: normal; font-size: .66rem; font-weight: 800; color: #0f766e; background: #ccfbf1; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.stay-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stay-mem > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 9px 4px; text-align: center; display: grid; gap: 1px; }
.stay-mem b { font-size: 1.1rem; color: #0f172a; }
.stay-mem span { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.stay-mem .is-total { background: #0f766e; border-color: #0f766e; }
.stay-mem .is-total b, .stay-mem .is-total span { color: #fff; }
.lodge-kv .is-wide { grid-column: 1 / -1; }
.lodge-note.is-closed { color: #475569; background: #f1f5f9; text-align: center; margin-top: 12px; }

.stay-foods, .stay-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stay-food { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; }
.stay-food-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: #fffbeb; color: #b45309; }
.stay-food-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.stay-food-copy b { font-size: .84rem; color: #0f172a; }
.stay-food-copy b em { font-style: normal; font-weight: 650; font-size: .7rem; color: #94a3b8; margin-left: 6px; }
.stay-food-copy small { font-size: .72rem; font-weight: 600; color: #64748b; line-height: 1.35; }
.stay-food-amt { font-size: .9rem; color: #0f172a; }
.stay-total { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0; padding: 11px 13px; border-radius: 14px; background: #04202b; color: #fff; font-size: .78rem; font-weight: 700; }
.stay-total b { font-size: 1rem; color: #5eead4; }

.stay-bill { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 6px 13px; }
.stay-bill p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 0; font-size: .82rem; font-weight: 650; color: #475569; border-bottom: 1px dashed #e2e8f0; }
.stay-bill p:last-child { border-bottom: 0; }
.stay-bill p b { color: #0f172a; white-space: nowrap; }
.stay-bill .is-less b { color: #0d9488; }
.stay-bill .is-sum { border-bottom-style: solid; font-weight: 800; color: #0f172a; }
.stay-bill .is-bal b { color: #15803d; font-size: .98rem; }
.stay-bill .is-bal.is-due b { color: #e11d48; }
.stay-sub { margin: 14px 2px 8px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.stay-pay { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; }
.stay-pay-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px #f1f5f9; }
.stay-pay.is-adv .stay-pay-dot { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.stay-pay.is-out .stay-pay-dot { background: #0d9488; box-shadow: 0 0 0 4px #ccfbf1; }
.stay-pay.is-part .stay-pay-dot { background: #6366f1; box-shadow: 0 0 0 4px #e0e7ff; }
.stay-pay-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.stay-pay-copy b { font-size: .84rem; color: #0f172a; }
.stay-pay-copy small { font-size: .7rem; font-weight: 600; color: #94a3b8; }
.stay-pay-amt { display: grid; gap: 4px; justify-items: end; }
.stay-pay-amt > b { font-size: .92rem; color: #0f172a; }
.stay-empty { display: grid; justify-items: center; gap: 8px; margin: 6px 0; padding: 22px 12px; text-align: center; font-size: .8rem; font-weight: 650; color: #94a3b8; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; }
@media (max-width: 720px) {
  .stay-tabs button { gap: 4px; padding: 9px 2px; }
  .stay-tabs button span { font-size: .72rem; }
  .stay-tabs button svg { display: none; }
  .stay-when { flex-wrap: wrap; }
  .stay-when-mid { order: 3; flex: 1 1 100%; }
  .stay-when-mid em { justify-self: center; }
}

/* ---- Guest detail: fluid on any width (no media query needed), dish photos, print ---- */
.stay-hero { flex-wrap: wrap; row-gap: 10px; }
.stay-hero .lodge-avatar, .stay-hero .lodge-guest-shot { width: 48px; height: 48px; flex-basis: 48px; }
.stay-hero-copy { flex: 1 1 120px; }
.stay-hero-copy b { white-space: normal; overflow-wrap: anywhere; }
.stay-hero .lodge-call-acts { margin-left: auto; gap: 6px; flex: 0 0 auto; }
.stay-hero .lodge-call-acts a, .stay-hero .lodge-call-acts button {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0;
  background: rgba(255,255,255,.12); color: #5eead4; cursor: pointer; text-decoration: none;
}
.stay-hero .lodge-call-acts button { background: #5eead4; color: #04202b; }
#stayBody { min-width: 0; }
#stayBody * { min-width: 0; }
.lodge-money.is-four { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.lodge-money.is-four > div { padding: 9px 10px; }
.lodge-money.is-four b { font-size: .84rem; overflow-wrap: anywhere; }
.stay-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.stay-tabs button { position: relative; flex-direction: column; gap: 3px; padding: 8px 2px 7px; font-size: .68rem; }
.stay-tabs button svg { display: block !important; }
.stay-tabs button span { font-size: .68rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay-tabs button em { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; font-size: .56rem; padding: 0 3px; }
.stay-when { flex-wrap: wrap; }
.stay-when-d { flex: 1 1 130px; }
.stay-when-mid { order: 3; flex: 1 1 100%; }
.stay-mem { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.lodge-kv { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.lodge-kv b { overflow-wrap: anywhere; }
.stay-pay { flex-wrap: wrap; row-gap: 6px; }
.stay-pay-copy { flex: 1 1 110px; }
.stay-pay-amt { margin-left: auto; }
.stay-bill p { flex-wrap: wrap; }

.stay-food { display: block; padding: 0; overflow: hidden; }
.stay-food-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fffbeb; }
.stay-food-copy { flex: 1 1 auto; }
.stay-food-txt { margin: 0; padding: 9px 12px; font-size: .74rem; font-weight: 600; color: #64748b; line-height: 1.4; }
.stay-dishes { list-style: none; margin: 0; padding: 4px 12px 8px; display: grid; }
.stay-dishrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; }
.stay-dishrow:last-child { border-bottom: 0; }
.stay-dish { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; }
.stay-dish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stay-dish.has-photo svg { display: none; }
.stay-dish-copy { flex: 1 1 auto; display: grid; gap: 1px; }
.stay-dish-copy b { font-size: .8rem; color: #0f172a; overflow-wrap: anywhere; }
.stay-dish-copy small { font-size: .7rem; font-weight: 650; color: #94a3b8; }
.stay-dish-amt { font-size: .82rem; font-weight: 800; color: #0f172a; white-space: nowrap; }

.stay-print {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  padding: 12px; border: 1.5px solid #0d9488; border-radius: 14px; background: #f0fdfa; color: #0f766e;
  font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer;
}
.stay-print:active { background: #ccfbf1; }
.lodge-stay-acts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stay-food-amt { white-space: nowrap; }
.stay-food-top .stay-food-copy small { overflow-wrap: anywhere; }

/* ---- Reports > Lodge > Room history ---- */
#viewReports.is-roomhist #rptFind, #viewReports.is-roomhist #rptSpan, #viewReports.is-roomhist #rptStaffBar,
#viewReports.is-roomhist #rptExport, #viewReports.is-roomhist #btnExpense, #viewReports.is-roomhist #rptKpis { display: none !important; }
.rh { display: grid; gap: 12px; min-width: 0; }
.rh-panel {
  display: grid; gap: 4px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid #e6efe9;
  box-shadow: 0 8px 20px -14px rgba(11, 59, 53, .45);
}
.rh-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: #f4faf7; border: 1.5px solid #dbe7e1; color: #0f766e; }
.rh-search:focus-within { border-color: #14b8a6; background: #fff; }
.rh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 650; color: #0f1f1c; padding: 11px 0; }
.rh-label { margin: 10px 2px 5px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7d76; }
.rh-label small { font-weight: 650; letter-spacing: 0; text-transform: none; color: #94a3b8; margin-left: 4px; }
.rh-rooms { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; border: 1.5px solid #dbe7e1;
  background: #fff; color: #334155; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, color .15s;
}
.rh-chip:active { transform: scale(.97); }
.rh-chip.on { background: #0f766e; border-color: #0f766e; color: #fff; box-shadow: 0 6px 14px -8px rgba(15, 118, 110, .8); }
.rh-room-chip b { font-size: .84rem; }
.rh-room-chip em { font-style: normal; font-size: .62rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: #ecfdf5; color: #0f766e; }
.rh-room-chip.on em { background: rgba(255,255,255,.22); color: #fff; }
.rh-room-chip.is-gone { opacity: .6; border-style: dashed; }
.rh-custom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rh-custom[hidden] { display: none; }
.rh-custom label { flex: 1 1 130px; display: grid; gap: 3px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b7d76; }
.rh-custom input, .rh-select {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 12px; border: 1.5px solid #dbe7e1; background: #f4faf7;
  font: inherit; font-size: .82rem; font-weight: 700; color: #0f1f1c;
}
.rh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.rh-two > div { min-width: 0; }

.rh-room-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #04202b, #0f4c5c);
}
.rh-room-no { flex: 0 0 auto; min-width: 60px; height: 60px; padding: 0 8px; border-radius: 16px; display: grid; place-items: center; align-content: center; font-size: 1.3rem; font-weight: 800; background: rgba(94,234,212,.16); color: #5eead4; line-height: 1; }
.rh-room-no small { font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #99f6e4; margin-bottom: 3px; }
.rh-room-copy { display: grid; gap: 3px; min-width: 0; }
.rh-room-copy b { font-size: .95rem; }
.rh-room-copy span { font-size: .72rem; font-weight: 650; color: #cbd5e1; overflow-wrap: anywhere; }
.rh-room-now { justify-self: start; padding: 3px 10px; border-radius: 999px; font-weight: 800 !important; }
.rh-room-now.is-busy { background: rgba(251,191,36,.2); color: #fde68a !important; }
.rh-room-now.is-free { background: rgba(94,234,212,.18); color: #99f6e4 !important; }

.rh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 8px; }
.rh-kpis span { display: grid; gap: 2px; padding: 10px 11px; border-radius: 16px; background: #04202b; min-width: 0; }
.rh-kpis i { font-style: normal; font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.rh-kpis b { font-size: .92rem; color: #fff; overflow-wrap: anywhere; }
.rh-kpis .tone-lodge { background: linear-gradient(135deg, #0f766e, #0d9488); }
.rh-kpis .tone-lodge i { color: #ccfbf1; }
.rh-kpis .tone-amber { background: #78350f; } .rh-kpis .tone-amber i { color: #fcd34d; }
.rh-kpis .tone-rose { background: #881337; } .rh-kpis .tone-rose i { color: #fda4af; }
.rh-kpis .tone-teal { background: #134e4a; }
.rh-kpis .tone-stone { background: #334155; } .rh-kpis .tone-stone i { color: #cbd5e1; }
.rh-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 2px 2px 0; font-size: .74rem; font-weight: 650; color: #64748b; }
.rh-count b { color: #0f1f1c; }
.rh-count button, .rh-empty button {
  border: 0; background: #ecfdf5; color: #0f766e; font: inherit; font-size: .74rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.rh-month { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 10px 2px 0; padding-bottom: 6px; border-bottom: 2px solid #d5e7df; }
.rh-month span { font-size: .9rem; font-weight: 800; color: #0f1f1c; }
.rh-month em { font-style: normal; font-size: .7rem; font-weight: 700; color: #6b7d76; }

.rh-card {
  position: relative; display: grid; gap: 10px; overflow: hidden; padding: 12px 12px 11px 16px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid #e6efe9; box-shadow: 0 6px 16px -10px rgba(11, 59, 53, .35); min-width: 0;
  transition: border-color .15s, box-shadow .15s, transform .12s; -webkit-tap-highlight-color: transparent;
}
.rh-card:hover { border-color: #5eead4; box-shadow: 0 10px 22px -12px rgba(13, 148, 136, .45); }
.rh-card:active { transform: scale(.994); }
.rh-card:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.rh-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #94a3b8, #64748b); }
.rh-card.is-in::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.rh-card.has-due::before { background: linear-gradient(180deg, #fb7185, #e11d48); }
.rh-head { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.rh-who { flex: 1 1 120px; min-width: 0; display: grid; gap: 2px; }
.rh-who b { font-size: .92rem; font-weight: 800; color: #0f1f1c; overflow-wrap: anywhere; }
.rh-who span { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 650; color: #64748b; }
.rh-state { padding: 3px 10px; border-radius: 999px; font-size: .6rem; font-weight: 800; white-space: nowrap; }
.rh-state.is-in { background: #fef3c7; color: #92400e; }
.rh-state.is-out { background: #e7e5e4; color: #57534e; }
.rh-trail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #f4faf7; }
.rh-day { flex: 1 1 100px; display: grid; gap: 1px; min-width: 0; }
.rh-day i { font-style: normal; font-size: .5rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8aa098; }
.rh-day b { font-size: .8rem; font-weight: 800; color: #0f1f1c; }
.rh-day small { font-size: .64rem; font-weight: 650; color: #94a3b8; min-height: .8em; }
.rh-day.is-end { text-align: right; }
.rh-mid { flex: 0 0 auto; display: grid; place-items: center; }
.rh-mid em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #0f766e; color: #fff; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.rh-card.is-in .rh-mid em { background: #f59e0b; color: #1c1917; }
.rh-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.rh-money span { display: grid; gap: 1px; padding: 7px 10px; border-radius: 12px; background: #f8faf9; border: 1px solid #edf2ef; min-width: 0; }
.rh-money i { font-style: normal; font-size: .5rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8aa098; }
.rh-money b { font-size: .8rem; font-weight: 800; color: #0f1f1c; overflow-wrap: anywhere; }
.rh-money .is-paid { background: #ecfdf5; border-color: #bbf7d0; } .rh-money .is-paid b { color: #166534; }
.rh-money .is-due { background: #fff1f2; border-color: #fecdd3; } .rh-money .is-due b { color: #be123c; }
.rh-money .is-clear b { color: #0f766e; }
.rh-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding-top: 8px; border-top: 1px dashed #dbe7e1; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; min-width: 0; }
.rh-tags em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: .62rem; font-weight: 800; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }
.rh-tags em.is-room { background: #ccfbf1; color: #0f766e; }
.rh-tags em.is-food { background: #fffbeb; color: #b45309; }
.rh-tags em.is-repeat { background: #ede9fe; color: #6d28d9; }
.rh-pays { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rh-go { margin-left: auto; font-size: .7rem; font-weight: 800; color: #0d9488; white-space: nowrap; }
.rh-more { width: 100%; padding: 12px; border: 1.5px dashed #5eead4; border-radius: 14px; background: #f0fdfa; color: #0f766e; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.rh-note { margin: 0; text-align: center; font-size: .7rem; font-weight: 650; color: #94a3b8; }
.rh-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 14px; border-radius: 20px; background: #fff; border: 1.5px dashed #cbd5e1; color: #94a3b8; }
.rh-empty b { color: #334155; font-size: .95rem; }
.rh-empty span { font-size: .78rem; font-weight: 650; }
.rh-money { grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); }
.rh-money span { padding: 7px 8px; }
.rh-money b { font-size: .76rem; }
.rh-two { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }

/* Food bills on a stay: paid at the counter vs pending on the room */
.stay-food-amt { display: grid; justify-items: end; gap: 3px; }
.stay-food-tag { font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.stay-food-tag.is-paid { background: #dcfce7; color: #166534; }
.stay-food-tag.is-pending { background: #ffedd5; color: #9a3412; }
.stay-foodhead { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; }
.stay-foodhead::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.stay-foodhead.is-paid::before { background: #16a34a; }
.stay-foodhead.is-pending::before { background: #ea580c; }
.stay-foodhead:first-child { margin-top: 2px; }
.stay-total.is-pending { background: #7c2d12; }
.stay-total.is-pending b { color: #fed7aa; }
.stay-total.is-paid { background: #14532d; }
.stay-total.is-paid b { color: #bbf7d0; }
.stay-bill p.is-note { color: #166534; font-size: .76rem; }
.stay-bill p.is-note b { color: #166534; }

/* Guest pass: the stay detail header (fluid, no media queries) */
.sp {
  position: relative; overflow: hidden; margin: 2px 0 12px; padding: 14px 14px 12px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, .34), transparent 58%), linear-gradient(150deg, #04202b 0%, #0b3b35 62%, #0f766e 100%);
  box-shadow: 0 18px 30px -20px rgba(4, 32, 43, .85);
}
.sp.is-done {
  background: radial-gradient(120% 90% at 100% 0%, rgba(148, 163, 184, .32), transparent 58%), linear-gradient(150deg, #111c2b 0%, #1e293b 60%, #3b4a5f 100%);
}
.sp::before {
  content: ""; position: absolute; right: -34px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .04); pointer-events: none;
}
.sp-top { position: relative; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.sp-top .lodge-avatar, .sp-top .lodge-guest-shot {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 16px; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .28); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
}
.sp-who { flex: 1 1 120px; min-width: 0; display: grid; gap: 2px; }
.sp-who b { font-size: 1.05rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.sp-who small { font-size: .72rem; font-weight: 600; color: #b6c8d4; overflow-wrap: anywhere; }
.sp-state {
  justify-self: start; margin-top: 4px; font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(94, 234, 212, .18); color: #5eead4;
}
.sp.has-due .sp-state { background: rgba(251, 191, 36, .2); color: #fcd34d; }
.sp.is-done .sp-state { background: rgba(255, 255, 255, .14); color: #e2e8f0; }
.sp-key {
  flex: 0 0 auto; display: grid; place-items: center; align-content: center; min-width: 54px; height: 54px; padding: 0 8px;
  border-radius: 15px; background: rgba(255, 255, 255, .95); color: #04202b; line-height: 1;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(13, 148, 136, .25);
}
.sp-key small { font-size: .5rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0d9488; margin-bottom: 3px; }
.sp-key b { font-size: 1.25rem; font-weight: 800; }
.sp-route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(54px, auto) minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 14px; }
.sp-stop { display: grid; gap: 2px; min-width: 0; }
.sp-stop i { font-style: normal; font-size: .54rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8fb3c4; }
.sp-stop b { font-size: .76rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.sp-stop.is-out { text-align: right; }
.sp-line { position: relative; display: grid; place-items: center; height: 22px; }
.sp-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted rgba(255, 255, 255, .35); }
.sp-line::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 8px; transform: translateY(-50%);
  background: radial-gradient(circle, #5eead4 0 3.5px, transparent 4px) left center / 8px 8px no-repeat,
              radial-gradient(circle, #5eead4 0 3.5px, transparent 4px) right center / 8px 8px no-repeat;
}
.sp.is-done .sp-line::after {
  background: radial-gradient(circle, #cbd5e1 0 3.5px, transparent 4px) left center / 8px 8px no-repeat,
              radial-gradient(circle, #cbd5e1 0 3.5px, transparent 4px) right center / 8px 8px no-repeat;
}
.sp-line em {
  position: relative; z-index: 1; font-style: normal; font-size: .62rem; font-weight: 800; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: #0b3b35; border: 1px solid rgba(94, 234, 212, .45); color: #99f6e4;
}
.sp.is-done .sp-line em { background: #263447; border-color: rgba(203, 213, 225, .4); color: #e2e8f0; }
.sp-tear { position: relative; height: 0; margin: 14px -14px 12px; border-top: 2px dashed rgba(255, 255, 255, .2); }
.sp-money { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.sp-money > div { display: grid; gap: 3px; padding: 8px 10px; border-radius: 13px; background: rgba(255, 255, 255, .08); min-width: 0; }
.sp-money span { font-size: .54rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fb3c4; }
.sp-money b { font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-money b.is-paid { color: #86efac; }
.sp-bal.is-due { background: rgba(251, 191, 36, .16) !important; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .4); }
.sp-bal.is-due b { color: #fcd34d; }
.sp-bal.is-ok { background: rgba(34, 197, 94, .16) !important; box-shadow: inset 0 0 0 1px rgba(134, 239, 172, .35); }
.sp-bal.is-ok b, .sp-bal.is-ok span { color: #86efac; }
.sp-acts { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sp-acts a, .sp-acts button {
  flex: 1 1 78px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff;
  font: inherit; font-size: .72rem; font-weight: 800; text-decoration: none; cursor: pointer;
}
.sp-acts button { background: #5eead4; border-color: #5eead4; color: #04202b; }
.sp.is-done .sp-acts button { background: #e2e8f0; border-color: #e2e8f0; color: #0f172a; }
.sp-acts a:active, .sp-acts button:active { transform: scale(.97); }

/* Tabs: underline style */
.stay-tabs { background: transparent; padding: 0; border-radius: 0; gap: 0; border-bottom: 1.5px solid #e2e8f0; margin: 4px 0 14px; }
.stay-tabs button { border-radius: 0; background: transparent !important; box-shadow: none !important; color: #94a3b8; padding: 9px 2px 10px; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.stay-tabs button.on { color: #0f766e; border-bottom-color: #0d9488; }
.stay-tabs button em { background: #cbd5e1; color: #334155; }
.stay-tabs button.on em { background: #0d9488; color: #fff; }

/* Stay pane: members and details */
.stay-mem > div { border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.stay-mem .is-total { background: linear-gradient(150deg, #0f766e, #04202b); border-color: transparent; }
.lodge-kv > div { border-radius: 14px; }

/* Food cards: coloured edge shows paid or pending */
.stay-food { position: relative; border-radius: 16px; padding-left: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
.stay-food::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #94a3b8; }
.stay-foods:has(.stay-food-tag.is-paid) .stay-food::before { background: #16a34a; }
.stay-foods:has(.stay-food-tag.is-pending) .stay-food::before { background: #ea580c; }

/* Payment summary: receipt paper with a torn edge */
.stay-bill {
  position: relative; border-radius: 16px 16px 0 0; padding: 8px 15px 14px; border: 1px solid #e2e8f0; border-bottom: 0;
  background: linear-gradient(#fff, #fff);
}
.stay-bill::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 8px;
  background: linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x, linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x;
  filter: drop-shadow(0 1px 0 #e2e8f0);
}
.stay-bill .is-sum { font-weight: 800; color: #0f172a; border-top: 1.5px solid #0f172a; margin-top: 4px; }
.stay-bill .is-bal { margin-top: 2px; font-weight: 800; }
.stay-bill .is-bal b { font-size: 1.05rem; color: #15803d; }
.stay-bill .is-bal.is-due b { color: #b45309; }
.stay-sub { margin-top: 22px; }

/* Lodge reports: same language as the guest pass and Recent check-outs */
#viewReports .rpt-board.is-pass {
  position: relative; overflow: hidden; padding: 14px; gap: 8px; border-radius: 22px; color: #fff;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  background: radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, .32), transparent 58%), linear-gradient(150deg, #04202b 0%, #0b3b35 62%, #0f766e 100%);
  box-shadow: 0 18px 30px -20px rgba(4, 32, 43, .85);
}
#viewReports .rpt-board.is-pass::before {
  content: ""; position: absolute; right: -34px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .04); pointer-events: none;
}
#viewReports .rpt-board.is-pass > span {
  position: relative; background: rgba(255, 255, 255, .08); border: 0; border-radius: 13px; min-height: 52px; padding: 8px 10px;
}
#viewReports .rpt-board.is-pass > span i { color: #8fb3c4; }
#viewReports .rpt-board.is-pass > span b { color: #fff; }
#viewReports .rpt-board.is-pass > span:first-child {
  background: transparent; padding: 0 2px 12px; min-height: 0; border-radius: 0; border-bottom: 2px dashed rgba(255, 255, 255, .22); margin-bottom: 4px;
}
#viewReports .rpt-board.is-pass > span:first-child i { color: #5eead4; font-size: .6rem; letter-spacing: .14em; }
#viewReports .rpt-board.is-pass > span:first-child b { font-size: 1.7rem; letter-spacing: -.02em; }
#viewReports .rpt-board.is-pass > .tone-amber b { color: #fcd34d; }
#viewReports .rpt-board.is-pass > .tone-rose { background: rgba(251, 191, 36, .14); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); }
#viewReports .rpt-board.is-pass > .tone-rose b { color: #fcd34d; }
#viewReports .rpt-board.is-pass > .tone-teal b { color: #99f6e4; }
.rpt-lodge-total {
  margin: 12px 2px 10px; padding: 9px 14px; border-radius: 14px; border: 0; color: #cbd5e1;
  background: linear-gradient(150deg, #04202b, #0b3b35); box-shadow: 0 10px 20px -14px rgba(4, 32, 43, .8);
}
.rpt-lodge-total span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rpt-lodge-total b { color: #5eead4; font-size: .95rem; }

/* Pay and food rows reuse the Recent check-outs row */
.lg-row { margin: 0 0 8px; }
.lg-row.is-cash { box-shadow: inset 4px 0 0 #16a34a, 0 1px 2px rgba(15, 23, 42, .04); }
.lg-row.is-upi { box-shadow: inset 4px 0 0 #ea580c, 0 1px 2px rgba(15, 23, 42, .04); }
.lg-row.is-card { box-shadow: inset 4px 0 0 #4f46e5, 0 1px 2px rgba(15, 23, 42, .04); }
.lg-row.is-room { box-shadow: inset 4px 0 0 #f59e0b, 0 1px 2px rgba(15, 23, 42, .04); }
.lg-row[data-lg-open] { cursor: pointer; }

/* Stay cards: dark pass band with the guest and room key, light body below */
.lg-card.lg-stay { padding: 0; gap: 0; border-radius: 22px; cursor: pointer; border: 1px solid #dbe7e1; transition: box-shadow .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.lg-card.lg-stay:hover { box-shadow: 0 14px 26px -14px rgba(13, 148, 136, .5); }
.lg-card.lg-stay:active { transform: scale(.992); }
.lg-card.lg-stay:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.lg-card.lg-stay::before { content: none; }
.lg-band {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 14px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(45, 212, 191, .3), transparent 60%), linear-gradient(150deg, #04202b, #0b3b35 70%, #0f766e);
}
.lg-stay.is-out .lg-band { background: radial-gradient(120% 120% at 100% 0%, rgba(148, 163, 184, .3), transparent 60%), linear-gradient(150deg, #111c2b, #1e293b 70%, #3b4a5f); }
.lg-stay.has-due.is-in .lg-band { background: radial-gradient(120% 120% at 100% 0%, rgba(251, 191, 36, .28), transparent 60%), linear-gradient(150deg, #04202b, #0b3b35 70%, #0f766e); }
.lg-band .lg-av { width: 44px; height: 44px; border-radius: 15px; border: 2px solid rgba(255, 255, 255, .28); }
.lg-bwho { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.lg-bwho b { font-size: .96rem; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-bwho small { font-size: .68rem; font-weight: 600; color: #b6c8d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-state {
  justify-self: start; margin-top: 3px; font-style: normal; font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(94, 234, 212, .18); color: #5eead4; white-space: nowrap;
}
.lg-stay.has-due.is-in .lg-state { background: rgba(251, 191, 36, .2); color: #fcd34d; }
.lg-stay.is-out .lg-state { background: rgba(255, 255, 255, .14); color: #e2e8f0; }
.lg-key {
  flex: 0 0 auto; display: grid; place-items: center; align-content: center; min-width: 50px; height: 50px; padding: 0 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: #04202b; line-height: 1; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(13, 148, 136, .25);
}
.lg-key small { font-size: .48rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0d9488; margin-bottom: 3px; }
.lg-key b { font-size: 1.15rem; font-weight: 800; }
.lg-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px; border-top: 2px dashed #cfe0d8; background: #fff; }
.lg-stay .lg-money { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 5px; }
.lg-stay .lg-money span { flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 7px; }
.lg-stay .lg-money b { font-size: .72rem; }
.lg-go { font-size: .72rem; font-weight: 800; color: #0f766e; }
.lg-stay .lg-foot { border-top: 0; padding-top: 0; }

/* Guest pass: tidy dates, night pill and buttons */
.sp-route { display: block; margin-top: 14px; }
.sp-stops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sp-stop { display: grid; gap: 1px; min-width: 0; }
.sp-stop b { font-size: .92rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.sp-stop small { font-size: .66rem; font-weight: 650; color: #b6c8d4; white-space: nowrap; min-height: 1em; }
.sp-stop.is-out { text-align: right; }
.sp-line { display: flex; align-items: center; gap: 6px; height: auto; margin-top: 10px; place-items: initial; }
.sp-line::before, .sp-line::after { content: none; }
.sp-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #5eead4; }
.sp.is-done .sp-dot { background: #cbd5e1; }
.sp-rule { flex: 1 1 0; min-width: 8px; border-top: 2px dotted rgba(255, 255, 255, .35); }
.sp-line em { flex: 0 0 auto; padding: 3px 11px; font-size: .66rem; line-height: 1.2; }
.sp-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-acts a, .sp-acts button { min-width: 0; flex: initial; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.sp-acts a span, .sp-acts button span { overflow: hidden; text-overflow: ellipsis; }
.sp-acts button { grid-column: 1 / -1; }

.sp-money { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
.sp-money > div { padding: 8px 9px; }
.sp-money b { font-size: .82rem; }
@media (max-width: 340px) { .sp-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lodge reports: no double bottom gap (the dock room is already reserved), and a neat end of list */
#viewReports.seg-lodge.on { padding-bottom: calc(var(--safe-b, 0px) + 14px); }
#viewReports.seg-lodge .rpt-body { padding-bottom: 4px; }
#viewReports.seg-lodge .lg-card:last-of-type, #viewReports.seg-lodge .lg-row:last-of-type { margin-bottom: 8px; }
.lg-end {
  display: flex; align-items: center; gap: 10px; margin: 8px 6px 0; padding: 0;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; white-space: nowrap;
}
.lg-end::before, .lg-end::after { content: ""; flex: 1 1 0; border-top: 1.5px dashed #cbd5e1; }

/* Stand-in guest picture */
.lodge-doc.is-empty { cursor: default; }
.lodge-doc.is-empty img { opacity: .95; }

/* Undo a wrong check-out */
.stay-reopen { display: grid; gap: 8px; margin-top: 12px; }
.stay-reopen .lodge-note { margin-top: 0; }
.stay-reopen-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: #9a3412; background: #fff7ed; border: 1.5px dashed #fdba74;
}
.stay-reopen-btn svg { flex: 0 0 auto; }
.stay-reopen-btn span { display: grid; gap: 2px; min-width: 0; }
.stay-reopen-btn b { font-size: .84rem; font-weight: 800; }
.stay-reopen-btn small { font-size: .7rem; font-weight: 650; color: #b45309; line-height: 1.35; }
.stay-reopen-btn:active { transform: scale(.985); }
.stay-reopen-btn:disabled { opacity: .55; cursor: wait; }

/* Add payment: paid before, payable, refund */
.lodge-inv-row.is-sum { border-top: 1.5px solid rgba(94, 234, 212, .4); font-weight: 800; }
.lodge-inv-row.is-sum span { color: #fff; }
.lodge-inv-row.is-head { border-top-style: solid; }
.lodge-inv-row.is-refund span { color: #fcd34d; }
.lodge-inv-row.is-refund b { color: #fcd34d; }
.lodge-inv-pays { list-style: none; margin: 0 0 4px; padding: 2px 0 4px 10px; display: grid; gap: 5px; border-left: 2px solid rgba(94, 234, 212, .3); }
.lodge-inv-pays li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lodge-inv-pays li > span { display: grid; gap: 1px; min-width: 0; }
.lodge-inv-pays li > span b { font-size: .74rem; font-weight: 800; color: #fff; }
.lodge-inv-pays em { font-style: normal; font-size: .64rem; font-weight: 600; color: #5eead4; }
.lodge-inv-pays li > b { font-size: .78rem; color: #86efac; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-calc { display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid #e2e8f0; background: #f8fafc; }
.lp-calc[hidden] { display: none; }
.lp-calc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-calc-row span { display: grid; gap: 2px; min-width: 0; }
.lp-calc-row i { font-style: normal; font-size: .54rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.lp-calc-row b { font-size: .98rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-calc-res { text-align: right; }
.lp-calc p { margin: 0; font-size: .72rem; font-weight: 650; color: #475569; line-height: 1.4; }
.lp-calc.is-refund { background: #fffbeb; border-color: #fcd34d; }
.lp-calc.is-refund .lp-calc-res b, .lp-calc.is-refund .lp-calc-res i { color: #b45309; }
.lp-calc.is-exact { background: #f0fdf4; border-color: #86efac; }
.lp-calc.is-exact .lp-calc-res b, .lp-calc.is-exact .lp-calc-res i { color: #15803d; }
.lp-calc.is-left { background: #fff7ed; border-color: #fdba74; }
.lp-calc.is-left .lp-calc-res b, .lp-calc.is-left .lp-calc-res i { color: #c2410c; }
.lp-calc.is-short { background: #fff1f2; border-color: #fda4af; }
.lp-calc.is-short .lp-calc-res b, .lp-calc.is-short .lp-calc-res i { color: #be123c; }

/* Edit stay: leave early or stay longer */
.stay-edit-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: #0f766e; background: linear-gradient(135deg, #f0fdfa, #ecfeff); border: 1.5px solid #99f6e4;
}
.stay-edit-btn > svg { flex: 0 0 auto; }
.stay-edit-btn span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.stay-edit-btn b { font-size: .84rem; font-weight: 800; color: #134e4a; }
.stay-edit-btn small { font-size: .7rem; font-weight: 650; color: #0f766e; line-height: 1.35; }
.stay-edit-btn .se-go { opacity: .6; }
.stay-edit-btn:active { transform: scale(.985); }
.stay-edit-btn + .lodge-stay-acts { margin-top: 10px; }
.se-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.se-info span { display: grid; gap: 2px; padding: 9px 11px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; min-width: 0; }
.se-info i { font-style: normal; font-size: .54rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.se-info b { font-size: .84rem; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.se-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.se-chips button {
  min-height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer; font: 700 .76rem Poppins, "Segoe UI", sans-serif;
  color: #134e4a; background: #fff; border: 1.5px solid #99f6e4;
}
.se-chips button:active { transform: scale(.96); background: #f0fdfa; }
.se-calc { display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; border: 1.5px solid #e2e8f0; background: #f8fafc; }
.se-head { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #0f172a; }
.se-head b { font-weight: 800; }
.se-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.se-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; font-weight: 650; color: #475569; }
.se-rows li b { font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; text-align: right; }
.se-rows s { color: #94a3b8; font-weight: 600; }
.se-rows li.is-key { margin-top: 2px; padding-top: 8px; border-top: 1.5px dashed #cbd5e1; font-size: .9rem; }
.se-rows li.is-key b { font-size: 1.05rem; }
.se-rows li.is-refund b, .se-rows li.is-refund span { color: #b45309; }
.se-hint { margin: 0; font-size: .72rem; font-weight: 650; color: #64748b; }
.se-calc.is-longer { background: #fff7ed; border-color: #fdba74; }
.se-calc.is-longer .se-head { color: #c2410c; }
.se-calc.is-shorter { background: #f0fdf4; border-color: #86efac; }
.se-calc.is-shorter .se-head { color: #15803d; }

/* Lodge without a restaurant: only Rooms, Check in, Check-outs and lodge Reports */
.dock-item.dock-rooms { display: none; }
body.is-lodge-only .dock-item.dock-rooms { display: flex; }
body.is-lodge-only .dock-item[data-tab="menu"],
body.is-lodge-only .dock-item[data-tab="tables"],
body.is-lodge-only .dock-item[data-tab="bill"],
body.is-lodge-only .dock-charge,
body.is-lodge-only #btnKotDesk,
body.is-lodge-only #btnFloor,
body.is-lodge-only #viewMenu,
body.is-lodge-only #viewTables,
body.is-lodge-only [data-mtab="food"],
body.is-lodge-only [data-mtab="cats"],
body.is-lodge-only [data-stay-tab="food"],
body.is-lodge-only [data-stay-pane="food"],
body.is-lodge-only .rh-food { display: none !important; }
body.is-lodge-only .dock-shell { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 360px; }
body.is-lodge-only .stay-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#rRestaurantWrap[hidden] { display: none !important; }

/* Lodge reports: KPI ledger (hero + tiles) */
#viewReports .rpt-board.is-ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 16px; padding: 0; }
.lk-hero {
  position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 24px; color: #fff; display: grid; gap: 10px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(45, 212, 191, .34), transparent 58%), linear-gradient(150deg, #04202b 0%, #0b3b35 60%, #0f766e 100%);
  box-shadow: 0 20px 32px -22px rgba(4, 32, 43, .9);
}
.lk-hero::before {
  content: ""; position: absolute; right: -40px; top: -52px; width: 170px; height: 170px; border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .045); pointer-events: none;
}
.lk-hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #5eead4, #fcd34d, #fb923c);
}
.lk-cap { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; }
.lk-cap em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: #8fb3c4; }
.lk-hero .lk-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: rgba(94, 234, 212, .16); color: #5eead4; flex: 0 0 auto; }
.lk-big { position: relative; font-size: 2.1rem; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lk-split { position: relative; display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.lk-split i { display: block; height: 100%; min-width: 0; }
.lk-split i + i { margin-left: 2px; }
.lk-split .is-cash, .lk-legend .is-cash u { background: #4ade80; }
.lk-split .is-upi, .lk-legend .is-upi u { background: #fb923c; }
.lk-split .is-card, .lk-legend .is-card u { background: #818cf8; }
.lk-legend { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lk-legend li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; row-gap: 1px; min-width: 0; padding: 7px 9px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.lk-legend u { width: 8px; height: 8px; border-radius: 50%; grid-row: 1; }
.lk-legend span { font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fb3c4; }
.lk-legend b { grid-column: 1 / -1; font-size: .86rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lk-tile {
  position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .35);
}
.lk-tile .lk-ico { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: #f0fdfa; color: #0f766e; }
.lk-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lk-txt i { font-style: normal; font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-txt b { font-size: 1.12rem; font-weight: 800; color: #0f172a; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-txt b small { font-size: .74rem; font-weight: 700; color: #94a3b8; }
.lk-tile.is-in .lk-ico { background: #ecfdf5; color: #15803d; }
.lk-tile.is-out .lk-ico { background: #eef2ff; color: #4f46e5; }
.lk-tile.is-nights .lk-ico { background: #f1f5f9; color: #475569; }
.lk-tile.is-house .lk-ico { background: #f0fdfa; color: #0f766e; }
.lk-tile.is-food .lk-ico { background: #fffbeb; color: #b45309; }
.lk-tile.is-due { background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: #fcd34d; }
.lk-tile.is-due .lk-ico { background: #fef3c7; color: #b45309; }
.lk-tile.is-due .lk-txt b { color: #b45309; }
.lk-tile.is-wide { grid-column: 1 / -1; }
.lk-occ { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 4px; border-radius: 999px; background: #e2f5f1; overflow: hidden; }
.lk-occ i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #14b8a6, #0f766e); }
.lk-tile.is-house { padding-bottom: 18px; }
@keyframes lkRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#viewReports .rpt-board.is-ledger.is-enter .lk-hero, #viewReports .rpt-board.is-ledger.is-enter .lk-tile { animation: lkRise .5s cubic-bezier(.16, .84, .32, 1) both; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(1) { animation-delay: .05s; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(2) { animation-delay: .09s; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(3) { animation-delay: .13s; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(4) { animation-delay: .17s; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(5) { animation-delay: .21s; }
#viewReports .rpt-board.is-ledger.is-enter .lk-tile:nth-child(6) { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) { #viewReports .rpt-board.is-ledger.is-enter .lk-hero, #viewReports .rpt-board.is-ledger.is-enter .lk-tile { animation: none; } }
@media (max-width: 360px) { .lk-big { font-size: 1.8rem; } .lk-tile { padding: 10px; gap: 9px; } .lk-tile .lk-ico { width: 32px; height: 32px; } }
@media (min-width: 720px) { .lk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lk-tile.is-wide { grid-column: span 3; } }
body.is-pharma-only .dock-item[data-tab="menu"],
body.is-pharma-only .dock-item[data-tab="tables"],
body.is-pharma-only .dock-item[data-tab="bill"],
body.is-pharma-only .dock-charge,
body.is-pharma-only #btnKotDesk,
body.is-pharma-only .modes,
body.is-pharma-only #orderModes { display: none !important; }
body.is-pharma-only .dock-shell { grid-template-columns: 1fr; max-width: 220px; }
body.tab-pharma .ticket { display: none !important; }
body.tab-pharma .shell { grid-template-columns: 1fr !important; }

#viewMenu.is-keypad .menu-tools,
#viewMenu.is-keypad .menu-split,
#viewMenu.is-keypad .pick-cats,
#viewMenu.is-keypad .pick-bar,
#viewMenu.is-keypad .order-modes,
#viewMenu.is-keypad #orderModes,
#viewMenu.is-keypad .cats,
#viewMenu.is-keypad .kp-cats,
body.is-keypad .topbar .modes,
body.is-keypad header .modes { display: none !important; }
.keypad-bill {
  display: none;
  flex: 1;
  min-height: 0;
  margin-top: 0;
}
#viewMenu.is-keypad .keypad-bill { display: flex; }
.kp-machine {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4f6fa 0%, #e6ebf3 100%);
  border: 1px solid #d5dce8;
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(28, 36, 56, .08);
}
.kp-slot { display: none; }
.kp-type-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #0d2758;
  border: 2px solid #0a1f46;
}
.kp-type-lab {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #9fd0ff;
}
#kpType {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #e8f3ff;
  background: #163e86;
  outline: none;
}
#kpType::placeholder { color: #8fb6e8; font-weight: 700; font-size: .82rem; }
.kp-abc {
  flex: 0 0 auto;
  height: 36px;
  min-width: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, #8eb8ea 0%, #3d7ec4 100%);
  box-shadow: 0 2px 0 #245a94;
}
.kp-abc.is-on {
  background: linear-gradient(180deg, #ffe08a 0%, #f0b429 100%);
  color: #1c2438;
  box-shadow: 0 2px 0 #a16207;
}
.kp-lcd {
  flex: 1 1 auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  color: #e8f3ff;
  background: linear-gradient(180deg, #2458b0 0%, #163e86 55%, #12367a 100%);
  border: 3px solid #0d2758;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 10px 18px rgba(0, 0, 0, .2);
}
.kp-lcd-top {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.kp-lcd-kicker {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #9fd0ff;
}
.kp-lcd-code {
  flex: 1;
  min-width: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kp-lcd-code.is-qty { color: #ffe08a; }
.kp-lcd-code::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .85em;
  margin-left: 3px;
  background: #b9dcff;
  vertical-align: -1px;
  animation: kp-blink 1s steps(1) infinite;
}
@keyframes kp-blink { 50% { opacity: 0; } }
.kp-lcd-qty {
  font-size: .95rem;
  font-weight: 800;
  color: #b7f7c8;
}
.kp-note,
.kp-empty {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 10px 0;
  font-size: .75rem;
  font-weight: 700;
  color: #d5e8ff;
}
.kp-list {
  flex: 1 1 auto;
  min-height: 148px;
  overflow: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}
.kp-hit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #e8f3ff !important;
  text-align: left;
  font: inherit;
}
.kp-hit.on { background: rgba(255, 255, 255, .16); }
.kp-pic {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 24, 64, .45);
  display: grid;
  place-items: center;
}
.kp-hit.on .kp-pic { width: 72px; height: 72px; flex-basis: 72px; }
.kp-hit.on .kp-meta b { font-size: 1rem; white-space: normal; }
.kp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-ph { font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.kp-meta { flex: 1; min-width: 0; }
.kp-meta b {
  display: block;
  font-size: .86rem;
  font-weight: 800;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-meta small {
  display: block;
  margin-top: 1px;
  color: #b9d4f5;
  font-size: .68rem;
  font-weight: 700;
}
.kp-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: 0 0 auto;
}
.kp-side em { font-style: normal; font-weight: 800; font-size: .78rem; color: #fff; }
.kp-side i {
  font-style: normal;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #16a34a;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}
.kp-pad {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.kp-pad button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  color: #1c2438;
  background: linear-gradient(180deg, #fff6c2 0%, #efe08a 100%);
  box-shadow: 0 2px 0 #c9b85a, inset 0 1px 0 #fff;
}
.kp-pad button:active { transform: translateY(1px); box-shadow: 0 1px 0 #c9b85a; }
.kp-pad .kp-fn {
  background: linear-gradient(180deg, #8eb8ea 0%, #3d7ec4 100%);
  color: #fff;
  box-shadow: 0 2px 0 #245a94, inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: .7rem;
  letter-spacing: 0;
}
.kp-pad .kp-fn.is-on {
  background: linear-gradient(180deg, #ffe08a 0%, #f0b429 100%);
  color: #1c2438;
  box-shadow: 0 2px 0 #a16207, inset 0 1px 0 #fff;
}
.kp-pad .kp-del {
  background: linear-gradient(180deg, #6aa4e4 0%, #2f6eb8 100%);
  color: #fff;
  box-shadow: 0 2px 0 #1e4e86;
  font-size: .78rem;
}
.kp-pad .kp-cash {
  background: linear-gradient(180deg, #f07171 0%, #d62828 100%);
  color: #fff;
  box-shadow: 0 2px 0 #8e1515, inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: .72rem;
  letter-spacing: .04em;
}
.kp-pad .kp-enter {
  background: linear-gradient(180deg, #7ad67f 0%, #22a33a 100%);
  color: #fff;
  box-shadow: 0 2px 0 #146b24, inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: .78rem;
  letter-spacing: .06em;
}
.kp-pad .kp-wide { grid-column: span 2; }
.kp-pad .kp-void {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 2px 0 #9a3412, inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: .68rem;
  letter-spacing: 0;
}
.kp-pad .kp-upi {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 2px 0 #075985, inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: .72rem;
  letter-spacing: .04em;
}
.kp-pad .kp-feed,
.kp-pad .kp-del {
  font-size: .7rem;
  letter-spacing: 0;
}
.kp-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 6px 8px 2px;
  overflow-x: auto;
}
.kp-chip {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 99px;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  color: #d5e8ff;
  background: rgba(255, 255, 255, .12);
}
.kp-chip.on { background: #fff; color: #12367a; }
.kp-home { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.kp-home-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.kp-home-row em {
  font-style: normal;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #ffe08a;
  color: #1c2438;
  font-size: .78rem;
}
.kp-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  color: inherit;
  font: inherit;
  font-weight: 800;
}
.kp-step {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kp-step button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  color: #12367a;
  background: #fff;
}
.kp-step i { font-style: normal; min-width: 18px; text-align: center; font-weight: 800; }
.kp-pic { background: #fff8ee; }
@media (max-height: 720px) {
  .kp-lcd { min-height: 108px; }
  .kp-pad button { height: 42px; }
  .kp-pic { width: 40px; height: 40px; flex-basis: 40px; }
  .kp-hit.on .kp-pic { width: 56px; height: 56px; flex-basis: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-lcd-code::after { animation: none; }
}
#viewMenu .dish .dish-photo {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  background-color: #e4e6eb !important;
  background-image: linear-gradient(90deg, #e4e6eb 0%, #e4e6eb 35%, #f7f8fa 50%, #e4e6eb 65%, #e4e6eb 100%) !important;
  background-size: 240% 100% !important;
  animation: bb-shimmer 1.2s linear infinite;
}
#viewMenu .dish .dish-photo.is-ready {
  animation: none !important;
  background-image: none !important;
  background-color: #f0f2f5 !important;
}
#viewMenu .dish .dish-photo > img {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center 62% !important;
  transform: scale(1.16) !important;
  transform-origin: center center !important;
}

.desk-split { display: none; }
#viewMenu.is-desk-split .desk-split:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  flex: 0 0 111px;
  height: 111px;
  min-height: 111px;
  max-height: 111px;
  order: 1;
  margin: 0 0 6px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    flex-basis .42s cubic-bezier(.22, 1, .36, 1),
    height .42s cubic-bezier(.22, 1, .36, 1),
    min-height .42s cubic-bezier(.22, 1, .36, 1),
    max-height .42s cubic-bezier(.22, 1, .36, 1),
    margin .42s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    transform .42s cubic-bezier(.22, 1, .36, 1);
}
#viewMenu.is-desk-split .desk-split.is-closing {
  flex-basis: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
#viewMenu.is-desk-split {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#viewMenu.is-desk-split .menu-split,
#viewMenu.is-desk-split.cat-horiz .menu-split,
#viewMenu.is-desk-split.cat-vert .menu-split {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: start;
}
#viewMenu.is-desk-split .grid-wrap,
#viewMenu.is-desk-split .grid,
#viewMenu.is-desk-split.cat-vert .grid,
#viewMenu.is-desk-split.cat-horiz .grid,
#viewMenu.is-desk-split.cat-vert .cats {
  overflow: visible;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  min-height: 0;
}
#viewMenu.is-desk-split.cat-vert .cats {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 6;
  background: #fff7ed;
}
#viewMenu.is-desk-split #orderModes,
#viewMenu.is-desk-split.is-keypad #orderModes,
body.is-desk-split #viewMenu #orderModes {
  display: none !important;
}
#viewMenu.is-desk-split > .delivery-pick {
  order: 4;
  margin: 0 0 6px !important;
  flex: 0 0 auto;
}
#viewMenu.is-desk-split .menu-tools { order: 2; }
html.is-kb .app {
  position: fixed;
  top: var(--vv-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1280px;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
  margin-left: auto;
  margin-right: auto;
}
html.is-kb .dock {
  display: flex !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #050216;
}
#viewMenu.is-desk-split.is-kb {
  overflow: hidden;
}
#viewMenu.is-desk-split.is-kb .desk-split:not([hidden]) {
  display: none !important;
}
#viewMenu.is-desk-split.is-kb .menu-split,
#viewMenu.is-desk-split.is-kb.cat-horiz .menu-split,
#viewMenu.is-desk-split.is-kb.cat-vert .menu-split {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  align-items: stretch;
}
#viewMenu.is-desk-split.is-kb .grid-wrap {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  flex: 1 1 auto;
}
#viewMenu.is-desk-split.is-kb .grid,
#viewMenu.is-desk-split.is-kb.cat-vert .grid,
#viewMenu.is-desk-split.is-kb.cat-horiz .grid {
  overflow: auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  flex: 1 1 auto;
}
#viewMenu.is-desk-split.is-kb.cat-vert .cats {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  max-height: none;
}
#viewMenu.is-desk-split .live-filter { order: 3; }
#viewMenu.is-desk-split .desk-split { order: 1; }
.desk-day { display: none; }
#viewMenu.is-desk-split .desk-day:not([hidden]) {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  margin: 0 0 6px;
  padding: 3px;
  border-radius: 999px;
  background: #fff1e0;
  border: 1px solid #fcd9b0;
  animation: deskDayIn .32s cubic-bezier(.22, 1, .36, 1);
}
#viewMenu.is-desk-split.is-kb .desk-day { display: none !important; }
.desk-day button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #9a3412;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.desk-day button.on {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, .32);
}
.desk-day em {
  font-style: normal;
  font-size: 11px;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
}
.desk-day button.on em { background: #fff; color: #ea580c; }
@keyframes deskDayIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
#viewMenu.is-desk-split .menu-split,
#viewMenu.is-desk-split .keypad-bill { order: 5; }
#viewMenu.is-desk-split .pick-cats,
#viewMenu.is-desk-split .pick-bar { order: 6; }
body.is-desk-split .app-head .modes,
body.is-pay-open #viewMenu #orderModes,
body.is-pay-open #viewMenu.is-desk-split #orderModes,
body.is-pay-open #viewMenu.is-desk-split.is-keypad #orderModes { display: none !important; }
body.is-desk-split #sheetPay #payModes,
body.is-pay-open #sheetPay #payModes {
  display: flex !important;
}
body.is-pharma-only #viewMenu.is-desk-split #orderModes { display: none !important; }
.desk-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fffaf6;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.desk-pane > header {
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #f0e2d2;
}
.desk-pane > header b {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desk-pane > header span { display: none; }
.desk-split .desk-pane:first-of-type > header {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 4px;
  min-width: 0;
  background: #1c1917;
  border-bottom: 0;
  color: #fff;
}
.desk-sum {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  height: 22px;
  margin-left: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.desk-sum.is-tight { gap: 1px; }
.desk-sum.is-tight .desk-sum-chip {
  min-width: 14px;
  padding: 0 3px;
}
.desk-sum-all { flex: 0 0 auto; z-index: 1; }
.desk-sum-slide {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.desk-sum-roll {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
}
.desk-sum.is-tight .desk-sum-roll { gap: 1px; }
.desk-sum-roll.is-run {
  animation: deskSumSlide var(--desk-sum-time, 6s) ease-in-out infinite;
}
.desk-sum-roll.is-hold { animation-play-state: paused; }
@keyframes deskSumSlide {
  0%, 16% { transform: translateX(0); }
  46%, 62% { transform: translateX(var(--desk-sum-shift, 0px)); }
  100% { transform: translateX(0); }
}
.desk-sum-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 16px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d6d3d1;
  font-family: Poppins, "Noto Sans Devanagari", "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
  font-size: .52rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}
.desk-sum-chip.on {
  background: linear-gradient(180deg, #ff5a3c 0%, #e11d2e 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(225, 29, 46, .38);
}
.desk-split .desk-pane:first-of-type > header b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  margin: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}
.desk-pane-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 4px;
}
.desk-pane-body .empty-bill { margin: auto; text-align: center; }
#deskLast {
  display: block;
  flex: 1 1 0px;
  height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#deskLast.is-finger {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#deskLast::-webkit-scrollbar { display: none; }
.desk-last-roll { display: block; width: 100%; }
.desk-last-roll.is-run {
  animation: deskKotYoyo var(--desk-time, 8s) ease-in-out infinite;
}
#deskLast.is-finger .desk-last-roll { animation: none; transform: none; }
#deskLast .desk-page {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}
#deskLast .desk-page .desk-item {
  flex: 0 0 20px;
  height: 20px;
  max-height: 20px;
}
.desk-item,
.desk-food {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.desk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
  height: 20px;
  overflow: hidden;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.desk-item.is-in { animation: deskItemIn .22s ease; }
.desk-item.is-out { animation: deskItemOut .2s ease forwards; pointer-events: none; }
@keyframes deskItemIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes deskItemOut {
  to { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; }
}
.desk-item b {
  flex: 1;
  min-width: 0;
  font-size: .74rem;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-item em {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.desk-item.in b { color: #b91c1c; }
.desk-slip {
  display: flex;
  align-items: stretch;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid #f0e2d2;
}
.desk-slip-token {
  flex: 0 0 46px;
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  background:
    radial-gradient(circle at right center, #fffdf9 4px, transparent 4.5px) right center / 10px 14px repeat-y,
    linear-gradient(165deg, #1d4ed8 0%, #1e3a8a 48%, #172554 100%);
}
.desk-slip-token span {
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bfdbfe;
}
.desk-slip-token b {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
}
.desk-slip-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 4px 6px 8px;
}
.desk-slip-who {
  margin: 0 8px 2px;
  font-size: .68rem;
  font-weight: 800;
  color: #9a3412;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-slip-foods { display: flex; flex-direction: column; }
.desk-food {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 0;
  height: 18px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}
.desk-food .veg { flex: 0 0 auto; width: 8px; height: 8px; margin: 0; }
.desk-food b {
  flex: 1;
  min-width: 0;
  font-size: .68rem;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-food em {
  flex: 0 0 auto;
  min-width: 28px;
  font-style: normal;
  font-weight: 800;
  font-size: .78rem;
  color: #9a3412;
  text-align: right;
}
@media (max-width: 900px) {
  .desk-slip-token { flex-basis: 42px; width: 42px; }
  .desk-slip-token b { font-size: .88rem; }
}
.desk-split .desk-pane:last-child > header { display: none; }
.desk-split .desk-pane:last-child .desk-pane-body {
  position: relative;
  padding: 0;
  overflow: hidden;
  touch-action: pan-y;
  background: #1c1917;
}
.desk-kot-paper {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  background: #fffdf8;
  color: #1c1917;
  font-weight: 800;
  border-radius: 8px;
}
.desk-kot-head {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0 3px;
  background: #1c1917;
  color: #fff;
}
.desk-kot-paper.is-ready .desk-kot-head { background: #14532d; }
.desk-kot-token {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 46%;
  height: 18px;
  margin: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-kot-paper.is-ready .desk-kot-token { color: #166534; }
.desk-kot-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 4px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #fffdf8;
}
.desk-kot-main::-webkit-scrollbar { display: none; }
.desk-kot-main.is-marquee { justify-content: flex-start; }
.desk-kot-roll {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
}
.desk-kot-roll.is-run {
  animation: deskKotYoyo var(--desk-time, 8s) ease-in-out infinite;
}
@keyframes deskKotYoyo {
  0%, 16% { transform: translateY(0); }
  46%, 62% { transform: translateY(var(--desk-shift, 0px)); }
  100% { transform: translateY(0); }
}
.desk-kot-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 18px;
  height: 18px;
  overflow: hidden;
  gap: 4px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.desk-kot-line b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.desk-kot-line em {
  flex: 0 0 auto;
  min-width: 18px;
  height: 16px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-style: normal;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.desk-kot-paper.is-ready .desk-kot-line em {
  background: #dcfce7;
  color: #166534;
}
.desk-kot-line.is-done b,
.desk-kot-line.is-done .desk-kot-ico { color: #15803d; }
.desk-kot-line.is-done em {
  background: #dcfce7;
  color: #166534;
}
.desk-kot-empty {
  margin: 2px 0 0;
  text-align: center;
  font-size: .62rem;
}
.desk-item .desk-ord-no {
  flex: 0 0 auto;
  min-width: 38px;
  font-variant-numeric: tabular-nums;
}
.desk-item > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  line-height: 20px;
}
.desk-split .desk-pane:last-child .desk-pane-body { overflow: hidden; touch-action: pan-y; }
.desk-kot-state {
  flex: 0 0 auto;
  min-width: max-content;
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-style: normal;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #fdba74;
}
.desk-kot-state svg,
.desk-kot-acts svg,
.desk-kot-ico svg { display: block; width: 12px; height: 12px; flex: 0 0 auto; }
.desk-kot-ico { display: inline-flex; color: #c2410c; }
.desk-kot-paper.is-ready .desk-kot-ico { color: #166534; }
.desk-kot-state.is-ready { color: #bbf7d0; }
.desk-kot-paper.is-snap { transition: transform .18s ease; }
.desk-kot-acts {
  position: static;
  flex: 0 0 auto;
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.desk-kot-ready,
.desk-kot-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}
.desk-kot-ready svg,
.desk-kot-edit svg { width: 14px; height: 14px; }
.desk-kot-ready { background: #ea580c; color: #fff; }
.desk-kot-paper.is-ready .desk-kot-ready,
.desk-kot-ready.is-on { background: #22c55e; color: #052e16; }
.desk-kot-edit { background: #fff; color: #1c1917; }
.desk-kot-paper.is-from-right { transform: translateX(100%); }
.desk-kot-paper.is-from-left { transform: translateX(-100%); }
.desk-kot-paper.is-from-right.is-arrive { animation: deskKotInRight .34s cubic-bezier(.22, .8, .28, 1) forwards; }
.desk-kot-paper.is-from-left.is-arrive { animation: deskKotInLeft .34s cubic-bezier(.22, .8, .28, 1) forwards; }
.desk-kot-paper.is-leave-left { animation: deskKotOutLeft .34s cubic-bezier(.4, 0, .2, 1) forwards; }
.desk-kot-paper.is-leave-right { animation: deskKotOutRight .34s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes deskKotOutLeft { to { transform: translateX(-100%); } }
@keyframes deskKotOutRight { to { transform: translateX(100%); } }
@keyframes deskKotInRight {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes deskKotInLeft {
  from { transform: translateX(-100%); }
  to { transform: none; }
}
#deskLast.is-fresh .desk-item em,
.desk-item em.is-up,
.desk-item em.is-down { animation: deskQtySoft .28s ease; }
@keyframes deskQtyPop {
  from { opacity: .35; }
  to { opacity: 1; }
}
@keyframes deskQtyDrop {
  from { opacity: .35; }
  to { opacity: 1; }
}
@keyframes deskQtySoft {
  from { opacity: .35; }
  to { opacity: 1; }
}
.desk-kot-paper.is-done-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, .45);
  animation: deskReadyWash .5s ease forwards;
  pointer-events: none;
  z-index: 4;
}
@keyframes deskReadyWash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-kot-paper.is-arrive,
  .desk-kot-paper.is-leave-left,
  .desk-kot-paper.is-leave-right,
  .desk-kot-paper.is-done-flash::after,
  .desk-item.is-in,
  .desk-item.is-out,
  .desk-item em.is-up,
  .desk-item em.is-down,
  #deskLast.is-fresh .desk-item em,
  .desk-kot-main.is-marquee .desk-kot-roll { animation: none; }
}
