﻿
html.admin-boot .topbar,
html.admin-boot main > section:not(#panel),
html.admin-boot .site-footer {
  display: none !important;
}

html.admin-boot body {
  background: #eef0f3;
}

:root {
  --black: #070707;
  --ink: #111111;
  --panel: #151515;
  --panel-2: #202020;
  --white: #ffffff;
  --soft: #f7f1ea;
  --muted: #b7b1aa;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e50914;
  --red-2: #ff2934;
  --yellow: #ffc43d;
  --green: #24c46b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(229, 9, 20, 0.18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(255, 196, 61, 0.10), transparent 26%),
    var(--black);
  color: var(--white);
  max-width: 100%;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  overflow: hidden;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-weight: 950; font-size: 1.08rem; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }


.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.hero-photo.logo-hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(145deg, rgba(0,0,0,.48), rgba(0,0,0,.84)),
    url("https://sfo3.digitaloceanspaces.com/foodeo-space/media/xequebo/settings/2144089463.png") center / 78% auto no-repeat,
    #090909;
}

.hero-photo.logo-hero::after {
  content: "XE QUE BO";
}
.nav-links {
  justify-self: center;
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}
.nav-links a:hover { background: var(--white); color: var(--black); }

.cart-pill,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
}
.cart-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 12px 24px rgba(255,255,255,.08);
}
.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: min(560px, calc(100svh - 78px));
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 56px) clamp(44px, 6vw, 78px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, .88) 0%, rgba(4, 5, 8, .66) 58%, rgba(4, 5, 8, .44) 100%),
    linear-gradient(0deg, rgba(4, 5, 8, .68), rgba(4, 5, 8, .18) 52%, rgba(4, 5, 8, .42)),
    url("https://sfo3.digitaloceanspaces.com/foodeo-space/media/xequebo/products/2113425986.webp") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(7, 7, 7, .86), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  text-transform: uppercase;
  font-weight: 950;
  font-size: 0.78rem;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  margin-inline: auto;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions,
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions {
  justify-content: center;
}
.order-entry-actions .btn {
  min-width: min(260px, 100%);
  justify-content: center;
  font-size: 1.12rem;
}
.order-entry-hero h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: .94;
}
.order-entry-hero {
  min-height: clamp(190px, 34svh, 330px);
  padding-top: clamp(42px, 8vw, 76px);
  padding-bottom: clamp(34px, 7vw, 64px);
}
.order-entry-hero .hero-content {
  display: grid;
  place-items: center;
}
.order-entry-hero .order-entry-actions {
  margin-top: 0;
}
body:not(.has-active-cart):not(.has-submitted-order):not(.customer-auth-open) #pedido {
  display: none;
}
.admin-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 22px;
  padding: 14px;
  border: 1px solid rgba(255, 196, 61, .34);
  border-radius: 18px;
  background: rgba(255, 196, 61, .12);
}
.admin-fallback-actions p {
  flex: 1 1 260px;
  margin: 0;
  color: #6d6558;
  font-weight: 850;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.hero-badges span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid var(--line);
  color: var(--soft);
  backdrop-filter: blur(14px);
  font-weight: 800;
  font-size: .88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--panel-2);
  color: var(--white);
  border: 1px solid var(--line);
}
.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(229, 9, 20, 0.35);
}
.btn.ghost:hover,
.btn.small:hover { border-color: var(--red); }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: .9rem; }
.btn.wide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.btn.danger { color: #ff9aa0; }
.btn:focus-visible,
.tpv-text-keyboard button:focus-visible,
.tpv-time-actions button:focus-visible,
.tpv-notes-button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.hero-visual { display: none; }
.hero-photo {
  position: relative;
  width: min(82vw, 560px);
  aspect-ratio: 1 / 1.08;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.52)),
    url("https://sfo3.digitaloceanspaces.com/foodeo-space/media/xequebo/products/2113425986.webp") center / cover no-repeat,
    var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  pointer-events: none;
}
.hero-photo::after {
  content: "+ menu 2,90";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(229, 9, 20, 0.34);
}
.hero-photo span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  font-weight: 950;
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  line-height: .92;
  text-transform: uppercase;
}

.offers-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px clamp(16px, 4vw, 56px);
  background: var(--soft);
  color: var(--black);
}
.offers-strip article {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.offers-strip strong { font-size: 1.1rem; }
.offers-strip span { color: #5f5650; font-weight: 750; }

.ai-host-section {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(229,9,20,.12)),
    #080808;
}

.ai-host-stage {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

.ai-host-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 4px solid #262626;
  border-radius: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 18%, rgba(255,196,61,.18), transparent 26%),
    linear-gradient(180deg, #1f1f1f, #050505);
}

.ai-host-screen::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,196,61,.34);
  border-radius: 12px;
  pointer-events: none;
}

.ai-host-screen::after {
  content: "ONLINE";
  position: absolute;
  right: 18px;
  top: 16px;
  color: var(--yellow);
  font-size: .76rem;
  font-weight: 950;
}

.ai-host-face {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  width: 210px;
  height: 180px;
  padding-top: 56px;
}

.ai-eye {
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 0 28px rgba(255,255,255,.48);
}

.ai-mouth {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 28px rgba(229,9,20,.58);
}

.ai-host-screen strong,
.ai-host-screen small {
  position: absolute;
  left: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.ai-host-screen strong {
  bottom: 42px;
  font-size: 3.1rem;
  font-weight: 950;
}

.ai-host-screen small {
  bottom: 22px;
  color: var(--yellow);
  font-weight: 950;
}

.ai-host-copy h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 5.4rem);
  line-height: .92;
  font-weight: 950;
}

.ai-host-copy > p:not(.eyebrow):not(.ai-host-note) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.55;
  font-weight: 760;
}

.ai-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ai-host-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 750;
}

.section { padding: clamp(44px, 7vw, 82px) clamp(16px, 4vw, 56px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-heading.compact { display: block; }
.section-heading h2,
.cart-header h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 0.95; font-weight: 950; }
.section-subtitle { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.5; font-weight: 700; }

.category-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 18px; }
.category-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}
.category-tabs button.active { background: var(--white); color: var(--black); border-color: var(--white); }
.category-back-sticky {
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}
.category-current {
  max-width: min(46vw, 240px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.menu-grid.category-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.public-category-card {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(229,9,20,.78), rgba(0,0,0,.86)),
    #151515;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.public-category-card.has-photo {
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.64)),
    var(--tile-image) center / cover no-repeat,
    #151515;
}

.public-category-card span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 138px;
  padding: 14px;
  background: rgba(0,0,0,.22);
  font-size: 1.2rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.public-category-card:hover,
.public-category-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.menu-card,
.checkout-panel,
.cart-panel,
.order-card,
.editor-panel,
.management-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.menu-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 292px; overflow: hidden; }
.menu-card.product-highlight { outline: 3px solid var(--yellow); box-shadow: 0 0 0 6px rgba(255,201,71,.22), var(--shadow); transform: translateY(-3px); }
.food-art { height: 142px; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent), var(--art-bg); background-size: cover; background-position: center; position: relative; }
.food-art.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.28)); }
.food-art.has-photo::after { content: ""; }
.food-art::after { content: attr(data-icon); position: absolute; right: 18px; bottom: -10px; font-size: 4.4rem; font-weight: 950; color: rgba(255,255,255,.9); }
.menu-card-body { padding: 18px; }
.menu-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.menu-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.allergen-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.allergen-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid rgba(250, 198, 35, .55);
  border-radius: 999px;
  background: rgba(250, 198, 35, .14);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 950;
}
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 18px; }
.product-actions { display: flex; align-items: center; gap: 8px; }
.share-btn { width: 38px; height: 38px; font-size: 1rem; }
.price { font-size: 1.24rem; font-weight: 950; }


.menu-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 2px;
  padding: 14px 2px 8px;
  border-bottom: 1px solid var(--line);
}
.menu-group-title span {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: .95;
}
.menu-group-title strong {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .06em;
}
.premium-group {
  border-bottom-color: rgba(255, 196, 61, .42);
}
.premium-card {
  border-color: rgba(255, 196, 61, .48);
  background: linear-gradient(180deg, rgba(255,196,61,.14), rgba(229,9,20,.06));
  box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,196,61,.12);
}
.premium-card .food-art {
  height: 164px;
}
.premium-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .66fr); gap: 18px; background: #101010; }
body:not(.has-active-cart):not(.has-submitted-order) .cart-panel {
  display: none;
}
body.customer-ready [data-account-step],
body:not(.customer-ready) [data-confirm-step],
body:not(.customer-ready):not(.customer-auth-open) [data-account-step] {
  display: none !important;
}

body:not(.customer-ready):not(.customer-auth-open) .checkout-form {
  display: none !important;
}

body.customer-auth-open .checkout-step:has(input[name="fulfillment"]) {
  display: none !important;
}

body.customer-auth-login .checkout-step:has(input[name="customerName"]) {
  grid-template-columns: 1fr;
}

body.customer-auth-login label:has(input[name="customerName"]),
body.customer-auth-login label:has(input[name="phone"]),
body.customer-auth-login [data-delivery-fields],
body.customer-auth-login .legal-consent {
  display: none !important;
}

body.customer-auth-login [data-start-order] {
  width: min(280px, 100%);
  justify-self: start;
}

body.customer-ready .order-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .78fr);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  align-items: start;
  align-content: start;
  scroll-margin-top: 86px;
}

body.customer-ready .cart-panel {
  order: 1;
}

body.customer-ready .checkout-panel {
  order: 2;
}

body.customer-ready .checkout-panel,
body.customer-ready .cart-panel {
  padding: 18px;
  border-radius: 22px;
}

body.customer-ready .cart-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

body.customer-ready .checkout-form,
body.customer-ready .checkout-step,
body.customer-ready .cart-extra-panel {
  gap: 10px;
}

body.customer-ready .checkout-step,
body.customer-ready .cart-extra-panel {
  padding: 12px;
  border-radius: 16px;
}

body.customer-ready .cart-items {
  max-height: 34vh;
  overflow: auto;
  padding-right: 4px;
}

body.customer-ready .checkout-confirm {
  position: sticky;
  top: 88px;
}

body.checkout-focus main > section:not(#pedido),
body.checkout-focus .site-footer {
  display: none !important;
}

body.checkout-focus #pedido {
  min-height: calc(100vh - 72px);
  padding-top: 14px;
  padding-bottom: 14px;
}

body.checkout-focus .order-layout {
  border-top: 1px solid rgba(255,255,255,.08);
}

body.checkout-focus .cart-panel,
body.checkout-focus .checkout-panel {
  max-height: calc(100vh - 118px);
  overflow: auto;
}

body.checkout-focus .cart-extra-panel textarea {
  min-height: 70px;
}

body.checkout-focus .totals {
  margin-top: 12px;
}

.checkout-panel,
.cart-panel,
.order-card,
.editor-panel,
.management-card { padding: clamp(18px, 3vw, 28px); }
.checkout-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.checkout-form { display: grid; gap: 14px; }
.checkout-step,
.cart-extra-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.checkout-step > strong {
  color: var(--white);
  font-size: 1.05rem;
}
.checkout-confirm {
  border-color: rgba(255, 196, 61, .34);
  background: rgba(255, 196, 61, .08);
}
.checkout-confirm-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.checkout-confirm-grid span {
  color: var(--muted);
  font-weight: 850;
}
.checkout-confirm-grid strong {
  text-align: right;
}
label { display: grid; gap: 7px; color: var(--muted); font-weight: 850; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #0b0b0b; color: var(--white); padding: 12px 13px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--red); }
.fulfillment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fulfillment label { cursor: pointer; }
.fulfillment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fulfillment span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: #0b0b0b; color: var(--white); }
.fulfillment input:checked + span { background: var(--red); border-color: var(--red); }
.delivery-fields, .discount-row { display: grid; gap: 14px; }
.discount-row { grid-template-columns: 1fr auto; }
.checkout-extra-options {
  display: grid;
  gap: 10px;
}
.cart-option-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.cart-option-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  color: var(--white);
  font-weight: 950;
}
.cart-option-panel summary::-webkit-details-marker {
  display: none;
}
.cart-option-panel summary strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: .8rem;
}
.cart-option-panel label,
.cart-option-panel .discount-row,
.cart-option-panel .form-note {
  margin: 0 10px 10px;
}
.form-note { margin: -4px 0 0; color: var(--muted); font-size: .92rem; }
.legal-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
  color: var(--soft);
  line-height: 1.35;
}
.legal-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.legal-consent a { color: var(--yellow); font-weight: 950; }
.legal-consent.optional { color: var(--muted); }

.cart-header, .order-card header, .modal-header, .modal-footer, .options-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--white); cursor: pointer; font-weight: 950; }
.cart-close-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}
.cart-items { display: grid; gap: 10px; min-height: 92px; margin-bottom: 14px; }
.floating-cart-link {
  position: sticky;
  top: 92px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 12px auto;
  padding: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
}
.floating-cart-link[hidden] {
  display: none;
}
.floating-cart-icon {
  font-size: 1.34rem;
  line-height: 1;
}
.floating-cart-link [data-floating-cart-count] {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  border: 2px solid #101010;
  font-size: .78rem;
  line-height: 1;
}
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; padding: 18px; text-align: center; }
.cart-pending-warning {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 2px solid rgba(255, 196, 61, .72);
  border-radius: 18px;
  background: rgba(255, 196, 61, .14);
  color: var(--white);
}
.cart-pending-warning strong {
  color: var(--yellow);
  font-size: 1.08rem;
}
.cart-pending-warning small {
  color: var(--soft);
  line-height: 1.42;
}
.cart-pending-warning .btn {
  justify-self: start;
}
.checkout-confirm.confirm-attention {
  animation: confirmPulse 1.6s ease;
}
@keyframes confirmPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 196, 61, 0); }
  35% { box-shadow: 0 0 0 5px rgba(255, 196, 61, .24), 0 0 34px rgba(255, 196, 61, .32); }
}
.order-confirmation {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 196, 61, .42);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 196, 61, .10);
  color: var(--white);
}
.order-receipt-number {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}
.order-receipt-number span {
  color: var(--soft);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.order-receipt-number strong {
  color: var(--yellow);
  font-size: clamp(1.45rem, 6vw, 2.05rem);
  line-height: 1;
}
.order-confirmation strong {
  font-size: 1.08rem;
}
.order-confirmation span {
  color: var(--yellow);
  font-weight: 950;
}
.confirmation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.confirmation-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 196, 61, .34);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}
.order-confirmation small {
  color: var(--soft);
  line-height: 1.45;
}
.order-confirmation details {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 8px;
}
.order-confirmation-note {
  margin: 0;
  color: var(--white);
  font-weight: 850;
  line-height: 1.45;
}
.order-confirmation summary {
  cursor: pointer;
  color: var(--yellow);
  font-weight: 950;
}
.order-receipt-items {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.order-receipt-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}
.order-receipt-items small {
  grid-column: 1 / -1;
}
.order-receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.order-confirmation .btn {
  justify-self: start;
  margin-top: 2px;
}
.order-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-item strong, .cart-item small { display: block; }
.cart-item small { color: var(--muted); margin-top: 4px; }
.cart-options { color: #f0c7c9; max-width: 320px; }
.qty { display: grid; grid-template-columns: 34px 30px 34px; align-items: center; justify-items: center; }
.qty button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; background: #0b0b0b; color: var(--white); cursor: pointer; }
.cart-remove { min-height: 32px; padding: 6px 10px; }
.continue-order-link {
  justify-self: start;
  margin: 0 0 12px;
}
.totals { display: grid; gap: 9px; margin-top: 22px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.totals strong { color: var(--white); }
.grand-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.22rem; }
.orders-list { display: grid; gap: 14px; }
.order-card h3 { margin: 0; }
.order-meta, .order-lines { color: var(--muted); line-height: 1.55; }
.status { border-radius: 999px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.orders-workspace {
  display: grid;
  gap: 14px;
}
.orders-toolbar,
.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.orders-toolbar h3,
.order-detail-header h3 {
  margin: 0;
}
.order-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-filter-tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
}
.order-filter-tabs button.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.orders-columns {
  display: grid;
  grid-template-columns: minmax(280px, .44fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.orders-workspace.detail-on-demand .orders-columns {
  grid-template-columns: 1fr;
}
.orders-workspace.detail-on-demand.detail-open .orders-column {
  display: none;
}
.orders-workspace.detail-on-demand.detail-open .order-detail-panel {
  min-height: 420px;
}
.detail-back {
  flex: 0 0 auto;
  background: #fff;
  color: #202020;
  border-color: #dfe3e8;
}
.orders-column,
.order-detail-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.orders-column h4 {
  margin: 0;
  color: var(--yellow);
}
.order-row-list {
  display: grid;
  gap: 8px;
}
.order-row-button {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.order-row-button.active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(229,9,20,.35);
}
.order-row-button small {
  grid-column: 2 / 4;
  color: var(--muted);
}
.order-row-button em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
}
.pickup-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.order-row-button.pickup-card {
  grid-template-columns: 1fr;
  min-height: 124px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.order-row-button.pickup-card strong {
  font-size: 1.15rem;
}
.order-row-button.pickup-card span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--yellow);
  color: #111;
  font-size: 1.25rem;
  font-weight: 950;
}
.order-row-button.pickup-card.is-urgent span,
.order-row-button.pickup-card.is-late span {
  background: #ef3944;
  color: #fff;
}
.order-row-button.pickup-card.is-soon span {
  background: #ffcf58;
  color: #111;
}
.order-row-button.pickup-card.is-future span {
  background: #dfe7f5;
  color: #202020;
}
.order-row-button.pickup-card small {
  grid-column: auto;
  max-width: 100%;
  color: #626973;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timing-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7edf5;
  color: #202020;
  font-size: .9rem;
}
.timing-badge.is-late,
.timing-badge.is-urgent {
  background: #ef3944;
  color: #fff;
}
.timing-badge.is-soon {
  background: #ffcf58;
  color: #111;
}
.timing-badge.is-normal {
  background: #dff5e7;
  color: #16663b;
}
.order-detail-header span,
.order-time-grid span,
.order-detail-line span,
.order-notes span {
  color: var(--muted);
}
.order-detail-header > strong {
  font-size: 1.45rem;
  color: var(--yellow);
}
.order-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}
.order-time-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.12);
}
.order-detail-lines {
  display: grid;
  gap: 8px;
}
.order-detail-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.order-detail-line em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
}
.order-detail-line.editable {
  border: 1px solid rgba(255,176,0,.24);
  border-radius: 12px;
  background: rgba(255,176,0,.06);
}
.order-line-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding-top: 6px;
}
.order-line-controls label {
  display: grid;
  gap: 4px;
  max-width: 160px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}
.order-line-controls input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 950;
}
.order-edit-panel,
.tpv-editing-order-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,176,0,.35);
  border-radius: 14px;
  background: rgba(255,176,0,.1);
}
.order-edit-panel div,
.tpv-editing-order-banner div {
  display: grid;
  gap: 3px;
}
.order-edit-panel strong,
.tpv-editing-order-banner strong {
  color: var(--yellow);
}
.order-edit-panel span,
.tpv-editing-order-banner span {
  color: var(--muted);
  font-weight: 850;
}
.order-basic-edit-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,176,0,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.order-basic-edit-panel label {
  display: grid;
  gap: 4px;
  min-width: 120px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}
.order-basic-edit-panel input,
.order-basic-edit-panel select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 950;
  background: #fff;
  color: var(--ink);
}
.order-fiscal-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.order-fiscal-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-fiscal-box span {
  color: var(--muted);
}
.order-fiscal-box small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.order-fiscal-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}
.order-notes {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.pickup-payment-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 180px) auto auto minmax(120px, auto);
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--yellow);
  border-radius: 14px;
  background: rgba(247, 178, 26, .12);
}
.pickup-payment-panel strong,
.pickup-payment-panel span {
  display: block;
}
.pickup-payment-panel strong {
  color: var(--yellow);
}
.pickup-payment-panel span {
  color: var(--muted);
  font-weight: 900;
}
.pickup-payment-panel label {
  gap: 4px;
}
.pickup-paid-panel,
.order-invalidation,
.invalidated-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.pickup-paid-panel {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-color: rgba(26, 154, 91, .55);
  background: rgba(26, 154, 91, .12);
}
.pickup-paid-panel strong {
  color: #39c985;
}
.pickup-paid-panel span {
  color: var(--muted);
  font-weight: 850;
}
.order-invalidation {
  padding: 10px 12px;
}
.order-invalidation summary {
  cursor: pointer;
  color: var(--red);
  font-weight: 900;
}
.invalidation-submit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.invalidation-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.invalidation-reasons button {
  border: 1px solid rgba(255, 184, 77, .45);
  border-radius: 999px;
  background: rgba(255, 184, 77, .14);
  color: #ffd89a;
  font-weight: 900;
  padding: 8px 10px;
  cursor: pointer;
}
.pending-invalidation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 184, 77, .65);
  border-radius: 14px;
  background: rgba(255, 184, 77, .14);
}
.pending-invalidation-panel strong {
  color: #ffd89a;
}
.pending-invalidation-panel span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}
.order-row-button.pending-invalidation,
.pickup-card.pending-invalidation {
  border-color: rgba(255, 184, 77, .75);
  background: rgba(255, 184, 77, .14);
  box-shadow: 0 0 0 2px rgba(255, 184, 77, .08);
}
.order-row-button.pending-invalidation small,
.pickup-card.pending-invalidation small {
  color: #ffd89a;
}
.invalidated-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.invalidated-list-title {
  display: block;
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.invalidated-card.pending {
  border-color: rgba(255, 184, 77, .78);
  background: rgba(255, 184, 77, .13);
}
.invalidated-card.pending small {
  color: #b46500;
}
.pending-admin-actions {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
}
.empty.compact {
  min-height: auto;
  padding: 10px;
}
.invalidated-panel header,
.invalidated-panel.locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.invalidated-panel h4,
.invalidated-panel h5 {
  margin: 0;
}
.invalidated-panel span,
.invalidated-detail p,
.invalidated-card small {
  color: var(--muted);
}
.invalidated-panel.locked label {
  max-width: 220px;
}
.invalidated-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
}
.invalidated-list {
  display: grid;
  gap: 8px;
}
.invalidated-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}
.invalidated-card.active {
  border-color: var(--red);
  background: rgba(250, 6, 6, .1);
}
.invalidated-detail {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}
.expense-entry-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(130px, .85fr) minmax(100px, .5fr) minmax(115px, .62fr) minmax(115px, .62fr) minmax(140px, .9fr) minmax(150px, .9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.expense-entry-panel label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: var(--muted);
}
.expense-table > div {
  grid-template-columns: minmax(70px, .45fr) minmax(190px, 1.2fr) minmax(140px, .85fr) minmax(110px, .65fr) minmax(100px, .55fr) minmax(90px, .5fr) minmax(90px, .55fr) auto;
}
.report-sales-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(320px, .75fr);
  gap: 12px;
  align-items: start;
}
.report-sale-row {
  display: grid;
  grid-template-columns: 1fr .7fr .9fr .8fr .7fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.report-sale-row.active {
  background: rgba(250, 6, 6, .08);
}
.report-sale-row strong {
  color: var(--yellow);
  text-align: right;
}
.report-order-detail {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.report-order-detail h4 {
  margin: 0;
}
.report-detail-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 7px 10px;
}
.report-detail-grid span,
.report-detail-line span {
  color: var(--muted);
}
.report-detail-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.report-detail-line span {
  grid-column: 1;
}
.report-detail-line em {
  grid-row: 1 / 3;
  grid-column: 2;
  font-style: normal;
  font-weight: 950;
  color: var(--yellow);
}
.report-filter-grid.reports-wide {
  grid-template-columns: minmax(210px, 1fr) minmax(190px, .8fr) minmax(160px, .7fr) auto;
}
.report-date-range,
.report-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.report-date-range label {
  max-width: 170px;
}
.report-date-range > span,
.report-kpis span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 900;
}
.report-kpis strong {
  color: var(--yellow);
}
.report-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.report-summary-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.report-summary-card h4 {
  margin: 0;
}
.report-summary-card header strong {
  color: var(--yellow);
  font-size: 1.4rem;
}
.report-bars {
  display: grid;
  gap: 8px;
}
.report-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.4fr) minmax(86px, auto);
  gap: 10px;
  align-items: center;
}
.report-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.report-bar-row div {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.report-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}
.report-bar-row strong,
.report-total-table strong {
  color: var(--yellow);
  text-align: right;
}
.report-ai-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 6, 6, .12), rgba(247, 178, 26, .1));
}
.report-ai-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.report-ai-panel h4,
.report-ai-panel h5 {
  margin: 0;
}
.report-ai-panel > header > span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--yellow);
  font-weight: 950;
}
.report-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
}
.report-ai-grid section {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.ai-mini-list,
.ai-prediction-list {
  display: grid;
  gap: 8px;
}
.ai-mini-list > div,
.ai-prediction-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.ai-mini-list span,
.ai-prediction-list span {
  color: var(--muted);
  font-weight: 850;
}
.ai-mini-list strong,
.ai-prediction-list strong {
  min-width: 0;
}
.kitchen-board,
.delivery-board {
  display: grid;
  grid-template-columns: minmax(360px, 1fr);
  gap: 12px;
}
.delivery-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 12px;
  align-items: start;
}
.delivery-workspace-main,
.delivery-workspace-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.delivery-workspace-side {
  position: sticky;
  top: 12px;
  padding-right: 2px;
}
.delivery-tool-stack {
  display: grid;
  gap: 10px;
}
.delivery-tool-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.delivery-tool-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.delivery-tool-section > summary::-webkit-details-marker {
  display: none;
}
.delivery-tool-section > summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.delivery-tool-section > summary strong {
  color: var(--yellow);
  font-size: 1.05rem;
}
.delivery-tool-section > summary small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.2;
}
.delivery-tool-section > summary em {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-style: normal;
  font-weight: 950;
}
.delivery-tool-section[open] > summary {
  border-bottom: 1px solid var(--line);
}
.delivery-tool-section[open] > summary em {
  background: var(--yellow);
  color: #111;
}
.delivery-tool-body {
  display: grid;
  gap: 10px;
  padding: 10px;
}
.delivery-board > section,
.kitchen-zone {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.delivery-board h4,
.kitchen-zone h4 {
  margin: 0;
  color: var(--yellow);
}
.delivery-label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.kitchen-screen-list {
  display: grid;
  gap: 12px;
}
.kitchen-screen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kitchen-screen-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 850;
}
.kitchen-ticket,
.delivery-ticket {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
  color: var(--white);
}
.delivery-ticket.selected-for-route {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--yellow);
}
.route-select {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-weight: 950;
  padding: 8px 12px;
}
.route-select.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}
.kitchen-ticket header,
.delivery-ticket header,
.kitchen-ticket-meta,
.delivery-ticket-meta,
.kitchen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kitchen-ticket header strong,
.delivery-ticket header strong {
  display: block;
  font-size: 1.18rem;
}
.kitchen-ticket header span,
.delivery-ticket header span,
.kitchen-ticket-meta,
.delivery-ticket-meta {
  color: var(--muted);
}
.kitchen-ticket em,
.delivery-ticket em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
}
.delivery-priority {
  display: grid;
  justify-items: start;
  gap: 2px;
}
.delivery-priority small {
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.delivery-priority em {
  font-size: 1.85rem;
  line-height: .95;
}
.delivery-compact {
  min-height: 156px;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  align-content: space-between;
}
.delivery-compact header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
}
.delivery-address {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.delivery-address strong {
  font-size: .98rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.delivery-address span,
.delivery-compact-meta {
  color: var(--muted);
  font-size: .86rem;
}
.delivery-compact-meta {
  display: grid;
  align-content: start;
  min-height: 28px;
  gap: 2px;
}
.delivery-compact .kitchen-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.delivery-compact .kitchen-actions .btn {
  padding: 8px 9px;
  font-size: .78rem;
}
.delivery-secondary .delivery-compact {
  opacity: .82;
  padding: 8px;
}
.delivery-secondary .delivery-priority em {
  font-size: 1.12rem;
}
.delivery-secondary .delivery-address strong {
  font-size: .9rem;
}
.delivery-secondary .delivery-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.delivery-secondary .kitchen-actions .btn {
  padding: 7px 9px;
  font-size: .78rem;
}
.driver-code {
  display: grid;
  grid-template-columns: auto 58px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}
.driver-code input {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}
.driver-settlement {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.driver-settlement h4 {
  margin: 0;
  color: var(--yellow);
}
.driver-settlement-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.driver-settlement-head span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}
.driver-settlement-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.driver-settlement-flow > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(250, 166, 6, .24);
  border-radius: 12px;
  background: rgba(250, 166, 6, .08);
}
.driver-settlement-flow strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: #171717;
  font-weight: 950;
}
.driver-settlement-flow span {
  color: var(--soft);
  font-size: .84rem;
  line-height: 1.2;
  font-weight: 900;
}
.driver-settlement-note {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(250,166,6,.12);
  color: var(--soft);
  font-size: .9rem;
  font-weight: 850;
}
.driver-settlement-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(5, minmax(118px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.driver-settlement-row > div {
  display: grid;
  gap: 2px;
}
.driver-settlement span {
  color: var(--muted);
  font-size: .88rem;
}
.driver-settlement em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
  text-align: right;
}
.driver-settlement-row > div em,
.driver-settlement-row > div strong {
  text-align: left;
}
.driver-settlement-row .driver-return strong {
  color: var(--yellow);
  font-size: 1.08rem;
}
.driver-settlement-card {
  display: grid;
  gap: 6px;
}
.driver-settle-button {
  justify-self: start;
}
.driver-payment-corrections {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}
.driver-payment-correction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.driver-payment-correction strong {
  font-size: .92rem;
}
.driver-payment-correction span {
  font-size: .82rem;
}
.driver-settlement-history {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.driver-settlement-history h5 {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.driver-settlement-history-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.12);
}
.driver-settlement-history-row em {
  text-align: right;
}
.payment-correction-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.payment-correction-panel h4 {
  margin: 0;
  color: var(--yellow);
}
.payment-correction-panel > div:first-child span {
  color: var(--muted);
  font-weight: 850;
}
.pickup-payment-correction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.14);
}
.pickup-payment-correction span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}
.delivery-close-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.delivery-close-panel h4 {
  margin: 0;
  color: var(--yellow);
}
.delivery-close-panel span {
  color: var(--muted);
  font-weight: 850;
}
.delivery-close-panel input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 950;
}
.driver-close-orders {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  padding-top: 6px;
}
.driver-close-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.driver-close-order {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.driver-close-order.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(237, 14, 29, .12);
}
.driver-close-order span,
.driver-close-order small {
  color: var(--muted);
  font-weight: 850;
}
.delivery-code-entry {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  gap: 6px;
  align-items: center;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}
.delivery-code-entry input {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 950;
}
.delivery-archive {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.delivery-archive h4 {
  margin: 0;
  color: var(--yellow);
}
.delivered-by-driver {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.delivery-archive-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.delivery-archive-head h4 {
  margin: 0;
  color: var(--yellow);
}
.delivery-archive-head span {
  color: var(--muted);
  font-weight: 850;
}
.delivered-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.delivered-driver {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.delivered-driver.active,
.delivered-driver:hover {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--yellow);
}
.delivered-driver strong {
  color: var(--yellow);
  font-size: 1.05rem;
}
.delivered-driver span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}
.delivery-route-planner {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.delivery-route-planner h4 {
  margin: 0;
  color: var(--yellow);
}
.delivery-route-planner > div:first-child span {
  color: var(--muted);
  font-weight: 850;
}
.route-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.route-group {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}
.route-group span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}
.route-map-link {
  justify-self: start;
  text-decoration: none;
}
.delivery-route-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.route-groups-details {
  min-width: min(260px, 100%);
}
.route-groups-details summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--soft);
  font-weight: 950;
  cursor: pointer;
}
.route-groups-details[open] summary {
  margin-bottom: 8px;
  background: rgba(250,166,6,.12);
  color: var(--yellow);
}
.delivery-route-actions,
.route-share-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.delivery-route-actions {
  grid-template-columns: minmax(190px, 1fr) auto minmax(180px, auto);
  gap: 12px;
  align-items: center;
}
.delivery-route-actions h4,
.route-share-box h4 {
  margin: 0;
  color: var(--yellow);
}
.delivery-route-actions > div:first-child span,
.route-share-box > div:first-child span,
.route-share-content span {
  color: var(--muted);
  font-weight: 850;
}
.delivery-route-actions > div:first-child small,
.route-share-box > div:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-weight: 900;
}
.route-stop-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.route-stop-list span {
  display: block;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(0,0,0,.14);
  color: var(--text) !important;
  font-size: .86rem;
  line-height: 1.25;
}
.route-stop-list strong {
  color: var(--yellow);
}
.route-time-plan {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.route-time-plan span {
  display: block;
  padding: 6px 8px;
  border: 1px solid rgba(250,166,6,.25);
  border-radius: 10px;
  background: rgba(250,166,6,.08);
  color: var(--text) !important;
  font-size: .86rem;
  line-height: 1.25;
}
.route-time-plan strong {
  color: var(--yellow);
}
.delivery-route-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.delivery-route-action-row input {
  min-height: 44px;
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 950;
}
.selected-route-preview,
.route-share-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.selected-route-preview a {
  color: var(--yellow);
  font-weight: 950;
}
.route-qr-link {
  display: inline-flex;
  border-radius: 12px;
}
.route-share-content img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.route-share-content > div {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.delivery-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.delivery-mini-wrap {
  display: grid;
  gap: 6px;
  align-content: start;
}
.delivery-mini {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 3px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.16);
  cursor: pointer;
}
.delivery-mini.active,
.delivery-mini:hover {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--yellow);
}
.delivery-mini strong {
  color: var(--yellow);
  font-size: 1.1rem;
}
.delivery-mini span {
  color: var(--white);
  font-size: .84rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.delivery-mini small {
  color: var(--muted);
  font-weight: 850;
}
.delivery-close-help {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(247, 178, 26, .12);
  color: var(--soft);
  font-size: .88rem;
  font-weight: 850;
}
.cash-close-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cash-close-checklist > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}
.cash-close-checklist strong {
  font-size: .92rem;
}
.cash-close-checklist span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}
.cash-close-checklist .ok {
  border-color: rgba(72,164,79,.45);
}
.cash-close-checklist .warn {
  border-color: rgba(239,35,48,.55);
  background: rgba(239,35,48,.08);
}
.delivery-inline-close {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background: rgba(247, 178, 26, .13);
}
.delivery-inline-close strong,
.delivery-inline-close span {
  display: block;
}
.delivery-inline-close strong {
  color: var(--yellow);
  font-size: .92rem;
}
.delivery-inline-close span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}
.delivery-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.delivery-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 20, .62);
}
.delivery-detail-pop {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.delivery-edit-pop {
  width: min(1120px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.delivery-edit-pop .orders-workspace {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 150px);
  margin-top: 6px;
  overflow: auto;
  padding-right: 4px;
}
.delivery-edit-pop .order-detail-panel {
  background: rgba(255,255,255,.08);
}
.delivery-detail-pop > header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 8px;
  background: inherit;
}
.delivery-detail header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.delivery-detail h4,
.delivery-detail p {
  margin: 0;
}
.delivery-detail header > strong {
  color: var(--yellow);
}
.delivery-detail-header-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.delivery-detail-header-actions strong {
  color: var(--yellow);
  font-size: 1.25rem;
  line-height: 1;
}
.delivery-detail span,
.delivery-detail-line span,
.delivery-detail-note {
  color: var(--muted);
}
.delivery-detail-lines {
  display: grid;
  gap: 6px;
}
.delivery-detail-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.delivery-detail-times div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}
.delivery-detail-times span {
  font-size: .78rem;
}
.delivery-detail-times strong {
  font-size: 1.05rem;
}
.delivery-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.delivery-detail-line {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.16);
}
.kitchen-groups {
  display: grid;
  gap: 8px;
}
.kitchen-groups section {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.kitchen-groups h4 {
  margin: 0;
  color: var(--yellow);
  font-size: .92rem;
  text-transform: uppercase;
}
.kitchen-groups p,
.delivery-ticket p,
.kitchen-note {
  margin: 0;
}
.delivery-wsir-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.delivery-wsir-fields div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(247,181,27,.12);
}
.delivery-wsir-fields span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.delivery-wsir-fields strong {
  color: var(--white);
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.kitchen-groups p span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}
.kitchen-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(247,181,27,.15);
  color: var(--white);
  font-weight: 850;
}
.status-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 950;
}

.management-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  align-items: start;
}
.admin-nav {
  grid-column: 1;
  grid-row: 1 / span 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #172334;
  position: sticky;
  top: 82px;
}
.admin-tab {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  padding: 10px 14px;
}
.admin-tab strong,
.admin-tab span { display: block; }
.admin-tab strong { font-size: 1rem; }
.admin-tab span { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.admin-tab.active {
  border-color: #f7b51b;
  background: #f7b51b;
  color: #101010;
}
.admin-tab.active span { color: rgba(0,0,0,.62); }
.admin-view { grid-column: 2; }
.management-grid .admin-view { display: none; }
.management-grid[data-admin-view="tpv"] .admin-view-tpv,
.management-grid[data-admin-view="pedidos"] .admin-view-pedidos,
.management-grid[data-admin-view="anulaciones"] .admin-view-anulaciones,
.management-grid[data-admin-view="freidora"] .admin-view-freidora,
.management-grid[data-admin-view="plancha"] .admin-view-plancha,
.management-grid[data-admin-view="pizza"] .admin-view-pizza,
.management-grid[data-admin-view="reparto"] .admin-view-reparto,
.management-grid[data-admin-view="carta"] .admin-view-carta,
.management-grid[data-admin-view="distribucion"] .admin-view-distribucion,
.management-grid[data-admin-view="fidelizacion"] .admin-view-fidelizacion,
.management-grid[data-admin-view="clientes"] .admin-view-clientes,
.management-grid[data-admin-view="web-online"] .admin-view-web-online,
.management-grid[data-admin-view="usuarios"] .admin-view-usuarios,
.management-grid[data-admin-view="impresoras"] .admin-view-impresoras,
.management-grid[data-admin-view="whatsapp-bot"] .admin-view-whatsapp-bot,
.management-grid[data-admin-view="caja"] .admin-view-caja,
.management-grid[data-admin-view="reportes"] .admin-view-reportes,
.management-grid[data-admin-view="configuracion"] .admin-view-configuracion,
.management-grid[data-admin-view="almacenes"] .admin-view-almacenes { display: grid; }
.action-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.action-pills button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  background: #f3f5f8;
  color: #172334;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.action-pills button.active {
  background: #172334;
  color: #fff;
}
.stock-placeholder {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f8fa;
}
.stock-placeholder strong { font-size: 1.3rem; }
.stock-placeholder span,
.stock-placeholder p { color: var(--muted); margin: 0; }
.scandallo-layout {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(480px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.scandallo-layout.recipe-only {
  grid-template-columns: 1fr;
}
.scandallo-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #111;
}
.scandallo-block.full { grid-column: 1 / -1; }
.scandallo-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.scandallo-block-head strong,
.scandallo-block-head span {
  display: block;
}
.scandallo-block-head strong { font-size: 1.1rem; }
.scandallo-block-head span {
  margin-top: 3px;
  color: #617084;
  font-size: .9rem;
}
.scandallo-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.scandallo-table,
.scandallo-recipe-lines {
  display: grid;
  gap: 8px;
}
.scandallo-table-head,
.scandallo-table-row,
.scandallo-line-head,
.scandallo-line-row {
  display: grid;
  gap: 8px;
  align-items: center;
}
.ingredients-table .scandallo-table-head,
.ingredients-table .scandallo-table-row {
  grid-template-columns: minmax(120px, 1.25fr) minmax(105px, .95fr) 84px 68px 84px 82px 72px minmax(86px, .75fr) 40px;
}
.purchase-table .scandallo-table-head,
.purchase-table .scandallo-table-row {
  grid-template-columns: minmax(150px, 1fr) minmax(165px, 1.1fr) 66px 98px 74px 92px 70px 100px minmax(116px, .85fr) 104px;
}
.purchase-provider-fields,
.purchase-ingredient-fields,
.purchase-actions {
  display: grid;
  gap: 6px;
}
.purchase-actions {
  grid-template-columns: 1fr 34px;
  align-items: center;
}
.purchase-table small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: .74rem;
}
.invoice-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #713f12;
}
.invoice-helper strong {
  color: #111;
}
.scandallo-line-head,
.scandallo-line-row {
  grid-template-columns: minmax(180px, 1.4fr) 120px 80px 110px 40px;
}
.scandallo-table-head,
.scandallo-line-head {
  color: #617084;
  font-weight: 900;
  font-size: .82rem;
}
.scandallo-table-row,
.scandallo-line-row {
  padding: 8px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  background: #f8fafc;
}
.scandallo-table-row input,
.scandallo-table-row select,
.scandallo-line-row input,
.scandallo-line-row select,
.scandallo-recipe-toolbar input,
.scandallo-recipe-toolbar select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 8px 10px;
  font-weight: 850;
}
.scandallo-table-row strong,
.scandallo-line-row strong {
  font-size: .92rem;
}
.icon-btn.danger {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
}
.scandallo-recipe-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 150px;
  gap: 10px;
  align-items: end;
}
.scandallo-recipe-toolbar label {
  display: grid;
  gap: 5px;
  color: #4b5563;
  font-weight: 900;
}
.scandallo-status {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}
.scandallo-status.good,
.scandallo-product-row.good { background: #dcfce7; color: #14532d; border-color: #86efac; }
.scandallo-status.medium,
.scandallo-product-row.medium { background: #fef3c7; color: #78350f; border-color: #fbbf24; }
.scandallo-status.low,
.scandallo-product-row.low { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.scandallo-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}
.scandallo-summary-grid div {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  background: #f8fafc;
}
.scandallo-summary-grid span { color: #617084; font-weight: 850; }
.scandallo-summary-grid strong { font-size: 1.25rem; }
.scandallo-issues {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
}
.scandallo-products-list {
  display: grid;
  gap: 7px;
  max-height: 330px;
  overflow: auto;
}
.scandallo-product-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(110px, .7fr));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}
.scandallo-product-row.active {
  outline: 3px solid rgba(250, 166, 6, .55);
}
.scandallo-product-row span {
  color: inherit;
  font-weight: 800;
}
.scandallo-empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
}
@media (max-width: 1120px) {
  .scandallo-layout { grid-template-columns: 1fr; }
  .ingredients-table .scandallo-table-head,
  .ingredients-table .scandallo-table-row,
  .purchase-table .scandallo-table-head,
  .purchase-table .scandallo-table-row,
  .scandallo-line-head,
  .scandallo-line-row,
  .scandallo-product-row,
  .scandallo-recipe-toolbar {
    grid-template-columns: 1fr;
  }
}
.admin-section:not([data-admin-view]) [data-admin-panel],
.admin-section[data-admin-view] [data-admin-panel],
.admin-section[data-admin-view] [data-admin-fallback] { display: none; }
.admin-section[data-admin-view="pedidos"] .admin-tools[data-admin-panel="pedidos"] { display: none; }
.admin-section[data-admin-view="pedidos"] .orders-list[data-admin-panel="pedidos"] { display: none; }
.admin-section[data-admin-view="carta"] .editor-panel[data-admin-panel="carta"] { display: grid; }
.admin-section[data-admin-view="configuracion"] .whatsapp-config[data-admin-panel="ajustes"] { display: grid; }
.admin-section[data-admin-view="configuracion"] .form-note[data-admin-panel="ajustes"] { display: block; }
.management-card {
  display: grid;
  gap: 16px;
  align-content: start;
}
.management-card.wide { grid-column: 2; }
.management-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.management-header h3 { margin: 0; font-size: 1.45rem; line-height: 1; }
.management-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}
.metric-grid.compact { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.metric-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0b;
}
.metric-card span,
.switch-row small,
.compact-orders span,
.compact-orders em { color: var(--muted); }
.metric-card strong { font-size: 1.28rem; }
.metric-card.big {
  min-height: 130px;
  background: #fff;
  color: #111;
}
.metric-card.big span { color: #333; font-size: 1.25rem; }
.metric-card.big strong { font-size: 2rem; color: #000; }
.report-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.cash-action-grid {
  display: grid;
  gap: 12px;
}
.cash-action-grid > .cash-section:not([open]) {
  display: none;
}
.cash-legacy-card {
  display: none !important;
}
.cash-manager-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.cash-manager-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.3;
}
.cash-manager-toolbar p strong {
  color: var(--soft);
}
.cash-manager-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.cash-manager-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cash-manager-alerts button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(250,166,6,.8);
  border-radius: 999px;
  background: #fff4d2;
  color: #3f2600;
  font-weight: 900;
  cursor: pointer;
}
.cash-manager-alerts button:hover {
  background: var(--yellow);
  color: #111;
}
.cash-manager-action {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #202020;
  color: var(--white);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.cash-manager-action strong,
.cash-manager-action span {
  display: block;
}
.cash-manager-action strong {
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
}
.cash-manager-action span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}
.cash-manager-action.primary,
.cash-manager-action.danger {
  background: var(--red);
  border-color: transparent;
}
.cash-manager-action.accent {
  background: var(--yellow);
  color: #111;
  border-color: transparent;
}
.cash-manager-action.accent span {
  color: rgba(0,0,0,.62);
}
.cash-manager-action.active {
  outline: 3px solid rgba(250, 166, 6, .28);
  transform: translateY(-1px);
}
.cash-focused-screen {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.cash-focused-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cash-focused-header h3 {
  margin: 0;
}
.cash-focused-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}
.cash-focused-header .management-actions span {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-weight: 950;
}
.cash-focused-body {
  padding: 0;
}
.cash-workflow-panel {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(320px, 1.35fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(250, 166, 6, .28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(250, 166, 6, .16), rgba(255,255,255,.04));
}
.cash-workflow-status {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 112px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,.2);
}
.cash-workflow-status span,
.cash-workflow-blockers > strong {
  color: var(--yellow);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 950;
}
.cash-workflow-status strong {
  color: var(--white);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.05;
}
.cash-workflow-status small {
  color: var(--soft);
  font-weight: 850;
  line-height: 1.35;
}
.cash-workflow-actions,
.cash-workflow-blockers {
  display: grid;
  gap: 10px;
}
.cash-workflow-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cash-flow-action,
.cash-blocker {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #202020;
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.cash-flow-action.primary {
  grid-column: span 2;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(239,35,48,.24);
}
.cash-flow-action:hover,
.cash-blocker:hover {
  transform: translateY(-1px);
}
.cash-workflow-blockers {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.cash-workflow-blockers > strong {
  grid-column: 1 / -1;
}
.cash-blocker {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 14px;
  text-align: left;
}
.cash-blocker span {
  color: var(--white);
}
.cash-blocker em {
  grid-row: span 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-style: normal;
  font-weight: 950;
}
.cash-blocker small {
  color: var(--muted);
  font-weight: 850;
}
.cash-blocker.warn {
  border-color: rgba(239,35,48,.4);
  background: rgba(239,35,48,.12);
}
.cash-blocker.info {
  border-color: rgba(250,166,6,.42);
  background: rgba(250,166,6,.12);
}
.cash-blocker.ok {
  border-color: rgba(72,164,79,.45);
  background: rgba(72,164,79,.12);
  cursor: default;
}
.cash-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.cash-section[open] {
  background: rgba(255,255,255,.08);
}
.cash-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.cash-section summary::-webkit-details-marker { display: none; }
.cash-section summary strong {
  display: block;
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.1;
}
.cash-section summary small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.25;
}
.cash-section summary em {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}
.cash-section-private summary em,
.shift-cash-section summary em {
  background: var(--red);
  color: var(--white);
}
.cash-section-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}
.cash-section-actions {
  justify-content: flex-start;
}
.switch-list,
.settings-list,
.compact-orders {
  display: grid;
  gap: 10px;
}
.google-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.google-key-row label {
  min-width: 0;
}
.google-key-row .btn {
  min-height: 44px;
  white-space: nowrap;
}
.whatsapp-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: 12px;
}
.whatsapp-bridge-grid label {
  min-width: 0;
}
.whatsapp-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.whatsapp-bridge-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}
.whatsapp-bridge-result.ok {
  border-color: rgba(58, 174, 96, .55);
  background: rgba(58, 174, 96, .10);
}
.whatsapp-bridge-result.error {
  border-color: rgba(229, 9, 20, .65);
  background: rgba(229, 9, 20, .12);
}
.whatsapp-bridge-result strong {
  color: var(--white);
}
.whatsapp-bridge-result span,
.whatsapp-bridge-result p {
  color: var(--muted);
}
.whatsapp-bridge-result p {
  margin: 0;
  line-height: 1.35;
}
.whatsapp-bridge-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}
.whatsapp-bridge-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.whatsapp-bridge-stats b {
  color: var(--white);
  font-size: 1.25rem;
}
@media (max-width: 900px) {
  .whatsapp-bridge-grid,
  .whatsapp-bridge-stats {
    grid-template-columns: 1fr;
  }
}
.toggle-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: var(--soft);
}
.toggle-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}
.toggle-field small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}
.delivery-global-settings {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.admin-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
}
.admin-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, .8fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.admin-table > div:last-child { border-bottom: 0; }
.admin-table strong { color: var(--white); }
.admin-table span { color: var(--muted); }
.local-screen-table > div {
  grid-template-columns: minmax(120px, .9fr) minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(180px, 1.2fr);
}
.local-screen-table span:first-child {
  color: var(--white);
  font-weight: 950;
}
.wintouch-reference {
  display: grid;
  gap: 10px;
}
.reference-note {
  padding: 12px 14px;
  border: 1px dashed rgba(255, 196, 61, .45);
  border-radius: 16px;
  background: rgba(255, 196, 61, .08);
  color: var(--soft);
  font-weight: 850;
}
.wintouch-module-row {
  display: grid;
  grid-template-columns: minmax(140px, .9fr) minmax(120px, .75fr) minmax(260px, 2fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}
.wintouch-module-row strong {
  color: var(--white);
  font-size: 1rem;
}
.wintouch-module-row span {
  color: var(--brand-yellow);
  font-weight: 900;
}
.wintouch-module-row p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}
.business-hours-editor {
  display: grid;
  gap: 9px;
}
.business-day-row {
  display: grid;
  grid-template-columns: minmax(140px, .75fr) minmax(220px, 1.6fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.business-day-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-weight: 900;
}
.digital-card-preview {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250,6,6,.18), rgba(255,255,255,.05));
}
.digital-card-preview span {
  color: var(--brand-yellow);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 950;
}
.digital-card-preview strong {
  color: var(--white);
  font-size: 1.4rem;
}
.digital-card-preview em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}
.digital-card-preview p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}
.printer-table > div { grid-template-columns: minmax(0, 1fr) 160px; }
.schedule-table > div { grid-template-columns: 140px 120px minmax(260px, 1fr); }
.stock-table > div { grid-template-columns: 120px 120px minmax(150px, 1fr) minmax(150px, 1fr) 120px 100px; }
.closure-table { overflow-x: auto; }
.closure-table > div {
  grid-template-columns: 90px 130px 150px repeat(5, minmax(100px, 1fr));
  min-width: 930px;
}
.closure-day-list {
  display: grid;
  gap: 10px;
}
.closure-day-card,
.closure-day-empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0b;
  overflow: hidden;
}
.closure-day-empty {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: var(--white);
}
.closure-day-empty span {
  color: var(--muted);
  font-weight: 900;
}
.closure-day-empty em {
  justify-self: end;
  font-style: normal;
  font-weight: 1000;
  color: var(--yellow);
}
.closure-day-card summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(95px, .7fr)) minmax(110px, .7fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.closure-day-card summary::-webkit-details-marker {
  display: none;
}
.closure-day-title {
  display: grid;
  gap: 3px;
}
.closure-day-title strong,
.closure-day-card summary span strong {
  color: var(--white);
}
.closure-day-title small,
.closure-day-card summary span {
  color: var(--muted);
  font-weight: 900;
}
.closure-day-card summary em {
  justify-self: end;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-style: normal;
  font-weight: 1000;
}
.closure-day-card[open] summary {
  border-bottom: 1px solid var(--line);
}
.closure-day-detail {
  display: grid;
  gap: 0;
  padding: 0 12px 12px;
  overflow-x: auto;
}
.closure-turn-head,
.closure-turn-row {
  display: grid;
  grid-template-columns: 105px minmax(160px, 1.1fr) minmax(120px, .85fr) minmax(120px, .85fr) repeat(3, minmax(90px, .65fr));
  gap: 10px;
  align-items: center;
  min-width: 900px;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}
.closure-turn-head {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.closure-turn-row span {
  color: var(--muted);
  font-weight: 850;
}
.closure-turn-row strong {
  color: var(--white);
}
.closure-turn-row.day-summary {
  background: rgba(250, 166, 6, .12);
  border-radius: 12px;
  margin-top: 8px;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #48a44f;
  color: #fff;
  font-style: normal;
}
.filter-bar,
.closure-footer,
.admin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-bar span,
.closure-footer span,
.closure-footer strong,
.admin-pills button,
.admin-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.admin-pills button.active,
.admin-pills span.active {
  background: #172334;
  color: #fff;
  border-color: #172334;
}
.admin-pills.action-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
}
.admin-pills.action-pills button {
  white-space: nowrap;
}
.closure-footer {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: #101010;
}
.shift-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}
.shift-panel.open {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(46,204,113,.4);
  background: rgba(46,204,113,.12);
}
.shift-panel.day-open {
  border-color: rgba(250,166,6,.45);
  background: rgba(250,166,6,.1);
}
.shift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.front-shift-panel {
  margin-bottom: 14px;
}
.shift-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: #101923;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}
.shift-panel.warning {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(250,166,6,.55);
  background: rgba(250,166,6,.14);
}
.shift-panel.outside-hours {
  border-color: rgba(255, 86, 86, .36);
  background: rgba(250, 6, 6, .08);
}
.shift-panel span,
.shift-panel small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.shift-panel strong {
  display: block;
  margin: 2px 0;
  font-size: 1.1rem;
}
.shift-panel select {
  min-height: 42px;
}
.closure-footer span,
.closure-footer strong {
  border-radius: 0;
  background: transparent;
  color: var(--soft);
}
.admin-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #0b0b0b;
}
.admin-details summary {
  cursor: pointer;
  font-weight: 950;
  color: var(--yellow);
  margin-bottom: 12px;
}
.printer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.printer-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #0b0b0b;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
}
.printer-card span,
.printer-card small {
  display: block;
}
.printer-card span {
  font-weight: 950;
  font-size: 1.02rem;
}
.printer-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}
.printer-card.active {
  border-color: var(--yellow);
  background: #171108;
}
.printer-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--yellow);
  border-radius: 18px;
  background: #0b0b0b;
}
.printer-editor header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.printer-editor header h4 {
  margin: 0;
  font-size: 1.22rem;
}
.printer-editor header span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 950;
  white-space: nowrap;
}
.printer-fields {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr);
  gap: 10px;
}
.printer-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.printer-category-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  font-weight: 900;
}
.printer-category-check input {
  width: 21px;
  height: 21px;
  accent-color: var(--red);
}
.printer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.config-panels {
  display: grid;
  gap: 16px;
}
.config-panels section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0b;
}
.config-panels h4 {
  margin: 0;
  font-size: 1.1rem;
}
.config-card .management-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}
.config-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.config-home-button {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #0b0b0b;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
}
.config-home-button:hover {
  border-color: var(--yellow);
  background: #171108;
}
.config-home-button strong,
.config-home-button span {
  display: block;
}
.config-home-button strong {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 950;
}
.config-home-button span {
  color: var(--muted);
  line-height: 1.3;
  font-weight: 800;
}
.config-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.config-subnav button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.config-subnav button.active {
  background: #172334;
  color: #fff;
  border-color: #172334;
}
.config-screen,
.config-stack {
  display: grid;
  gap: 14px;
}
.config-section-fields {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.config-empty-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.config-empty-panel strong {
  color: var(--white);
  font-size: 1.12rem;
}
.config-empty-panel span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.config-empty-panel .btn {
  justify-self: start;
}
.switch-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}
.switch-row span,
.switch-row strong,
.switch-row small { display: block; }
.switch-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--red); }
.category-order-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  cursor: grab;
}
.category-order-block {
  display: grid;
  gap: 8px;
}
.category-order-block.open .category-order-row {
  border-color: var(--yellow);
  background: #171108;
}
.category-order-row.dragging {
  opacity: .58;
}
.category-order-row span,
.category-order-row strong,
.category-order-row small {
  display: block;
}
.category-order-row small {
  color: var(--muted);
}
.category-order-position {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 950;
}
.category-order-actions {
  display: flex;
  gap: 6px;
}
.category-order-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #172334;
  font-weight: 950;
  cursor: pointer;
}
.category-order-actions button:disabled {
  opacity: .35;
  cursor: default;
}
.category-order-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}
.category-product-list {
  display: grid;
  gap: 8px;
  padding: 10px 10px 12px 54px;
  border-left: 2px solid var(--yellow);
  margin-left: 16px;
}
.category-add-product {
  justify-self: start;
  margin-bottom: 4px;
}
.category-product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: #151515;
}
.category-product-row.archived {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  opacity: .82;
  background: #111;
  border-style: dashed;
}
.category-product-row span,
.category-product-row strong,
.category-product-row small {
  display: block;
}
.category-product-row small {
  color: #d9d9d9;
  font-weight: 800;
}
.category-product-row strong {
  color: #fff;
  font-size: 1rem;
}
.category-product-row em {
  font-style: normal;
  font-weight: 950;
  color: var(--yellow);
}
.product-channel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}
.product-channel-toggle input,
.product-channel-editor input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}
.product-channel-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}
.product-channel-editor label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  font-weight: 950;
}
.product-code-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.035);
}
.product-code-editor label {
  display: grid;
  gap: 6px;
  font-weight: 950;
}
.product-code-editor input {
  color: #5b6470;
  background: #f5f7fa;
}
.archived-products {
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.035);
}
.archived-products summary {
  cursor: pointer;
  color: var(--yellow);
  font-weight: 950;
  margin-bottom: 8px;
}
.settings-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(92px, .7fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}
.settings-row.printer-row { grid-template-columns: minmax(130px, .8fr) minmax(130px, .7fr) minmax(220px, 1.2fr); }
.settings-row > strong { padding-bottom: 13px; }
.settings-row > strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
}
.compact-orders > div:not(.empty) {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}
.compact-orders em {
  font-style: normal;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.legal-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.legal-checklist span {
  padding: 12px;
  border: 1px solid rgba(255, 196, 61, .34);
  border-radius: 16px;
  background: rgba(255, 196, 61, .08);
  color: var(--soft);
  font-weight: 850;
}

.legal-checklist span.ok {
  border-color: rgba(62, 182, 92, .35);
  background: rgba(62, 182, 92, .12);
  color: #95f0a6;
}

.legal-checklist span.warn {
  border-color: rgba(250, 6, 6, .38);
  background: rgba(250, 6, 6, .12);
  color: #ffb7bb;
}

.publication-status {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}

.publication-status strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.05rem;
}

.publication-status small {
  color: var(--muted);
}

.sync-overview-card {
  border-left: 5px solid var(--red);
}

.sync-status {
  gap: 12px;
}

.audit-table > div {
  grid-template-columns: minmax(120px, .7fr) minmax(160px, .9fr) minmax(240px, 1.6fr);
}
.database-path {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}
.database-path span,
.database-path small { color: var(--muted); }
.database-path strong {
  color: var(--white);
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.tpv-card {
  border-color: rgba(229, 9, 20, .45);
  background: linear-gradient(180deg, rgba(229,9,20,.12), rgba(255,255,255,.035));
}
.tpv-total {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
}
.manager-access-dot {
  width: 26px;
  height: 26px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16,25,35,.22);
  box-shadow: none;
  cursor: pointer;
  opacity: .35;
}
.manager-access-dot.active {
  opacity: .9;
  background: #101923;
  outline: 2px solid rgba(250,6,6,.35);
  outline-offset: 2px;
}
.manager-access-dot:hover,
.manager-access-dot:focus-visible {
  opacity: .9;
  background: #101923;
  outline: 2px solid rgba(250,6,6,.35);
  outline-offset: 2px;
}
.manager-access-panel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(16,25,35,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}
.manager-access-panel input {
  width: 88px;
  min-height: 34px;
  border: 1px solid rgba(16,25,35,.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #101923;
  font-weight: 900;
}
.manager-access-panel .btn {
  min-height: 34px;
  padding: 7px 12px;
}
.manager-login-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(16,25,35,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(16,25,35,.08);
}
.manager-login-strip.connected {
  border-color: rgba(19,142,74,.25);
  background: rgba(245,255,249,.94);
}
.manager-login-copy {
  display: grid;
  gap: 3px;
}
.manager-login-copy span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
}
.manager-login-copy strong {
  color: #101923;
  font-size: 1.02rem;
}
.manager-login-copy small {
  color: var(--muted);
  font-weight: 800;
}
.manager-login-error {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}
.manager-login-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.manager-login-controls input {
  width: 170px;
  min-height: 42px;
  border: 1px solid rgba(16,25,35,.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #101923;
  font-weight: 900;
}
.manager-login-controls .btn {
  min-height: 42px;
  padding: 9px 16px;
}
.manager-exit {
  background: #101923;
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.tpv-intake {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.tpv-intake-head,
.tpv-order-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.tpv-intake-head strong,
.tpv-order-strip strong {
  color: #fff;
  font-size: 1.05rem;
}
.tpv-intake-head span {
  color: var(--muted);
  font-weight: 800;
}
.tpv-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.tpv-form > * { min-width: 0; }
.tpv-form .wide,
.tpv-form .wide-field { grid-column: 1 / -1; }
.tpv-guided-form {
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
}
.tpv-flow-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
}
.tpv-flow-tabs button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}
.tpv-flow-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .78rem;
}
.tpv-flow-tabs button.active {
  border-color: var(--yellow);
  background: rgba(255,176,0,.18);
  color: #fff;
}
.tpv-flow-tabs button.active span,
.tpv-flow-tabs button.done span {
  background: var(--yellow);
  color: #111;
}
.tpv-step-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.tpv-step-card .eyebrow {
  margin: 0;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tpv-step-card h4 {
  margin: -4px 0 0;
  color: #fff;
  font-size: 1.12rem;
}
.tpv-step-card label {
  margin: 0;
}
.tpv-mode-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tpv-mode-choice button {
  min-height: 74px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: #fff;
  color: #172334;
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}
.tpv-mode-choice button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #111;
  box-shadow: 0 12px 28px rgba(255,176,0,.16);
}
.tpv-address-step-grid {
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(220px, 1fr) minmax(170px, .72fr);
  gap: 8px;
  align-items: end;
}
.tpv-guided-form .address-suggestions {
  max-height: 126px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
}
.tpv-guided-form .address-suggestions.is-reserved {
  min-height: 74px;
  height: 74px;
  max-height: 74px;
  overflow-y: auto;
}
.tpv-guided-form .address-suggestion {
  min-height: 42px;
  padding: 6px 8px;
}
.tpv-guided-form .address-suggestion strong {
  font-size: .82rem;
  line-height: 1.06;
}
.tpv-guided-form .address-suggestion span,
.tpv-guided-form .address-suggestion em,
.tpv-guided-form .address-suggestion-status {
  font-size: .68rem;
  line-height: 1.08;
}
.tpv-guided-form .tpv-text-keyboard {
  margin-top: 0;
}
.tpv-flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tpv-flow-nav .btn {
  min-width: min(180px, 48%);
}
.tpv-customer-preview {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 800;
}
.tpv-customer-preview.found {
  border-color: rgba(34,197,94,.42);
  background: rgba(34,197,94,.12);
  color: #baf7cf;
}
.tpv-customer-preview.new {
  border-color: rgba(255,176,0,.35);
  background: rgba(255,176,0,.1);
  color: #ffd978;
}
.tpv-address-field {
  position: relative;
  z-index: 2;
}
.address-suggestions {
  grid-column: 1 / -1;
  position: static;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
  margin-top: 0;
  max-height: 178px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 176, 0, .35);
  border-radius: 12px;
  background: rgba(17, 24, 39, .98);
  box-shadow: none;
}
.address-suggestions.is-empty {
  display: none;
}
.address-suggestions.is-reserved.is-empty {
  display: grid;
  visibility: hidden;
}
.address-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 176, 0, .45);
  border-radius: 8px;
  background: rgba(255, 176, 0, .1);
  color: var(--white);
  text-align: left;
}
.address-suggestion strong {
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-suggestion span,
.address-suggestion-status {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
}
.address-suggestion-status {
  grid-column: 1 / -1;
}
.address-suggestion span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-suggestion em {
  color: var(--yellow);
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
}
.address-suggestion:hover {
  border-color: var(--yellow);
  background: rgba(255, 176, 0, .18);
}
.address-suggestion.quick-use {
  order: 30;
  border-color: rgba(255, 31, 42, .45);
  background: rgba(255, 31, 42, .09);
}
.address-suggestion.verified {
  order: 0;
  border-color: rgba(0, 150, 92, .55);
  background: rgba(0, 150, 92, .1);
}
.address-suggestion.quick-use em {
  color: #ff8b8b;
}
.address-suggestion-status.warning {
  color: var(--yellow);
}
.tpv-time-field {
  align-content: start;
}
.tpv-time-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.tpv-time-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #172334;
  font-weight: 950;
  cursor: pointer;
}
.tpv-time-actions button:first-child {
  background: var(--yellow);
}
.tpv-phone-pad {
  display: grid;
  align-self: start;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
}
.tpv-phone-pad span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 900;
}
.tpv-phone-pad button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #172334;
  font-size: 1.08rem;
  font-weight: 950;
  cursor: pointer;
}
.tpv-phone-pad button[data-phone-key="OK"] {
  background: var(--yellow);
}
.tpv-text-keyboard {
  grid-column: 1 / -1;
  display: grid;
  align-self: start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(16,25,35,.74);
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.tpv-text-keyboard.phone-mode {
  justify-self: start;
  width: min(100%, 430px);
}
.tpv-keyboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: #fff;
}
.tpv-keyboard-head span {
  min-height: 28px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.76);
  font-weight: 900;
  font-size: .78rem;
}
.tpv-keyboard-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.tpv-keyboard-tabs button {
  min-height: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.tpv-keyboard-tabs button.active {
  background: var(--yellow);
  color: #111;
}
.tpv-keyboard-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}
.tpv-keyboard-row.row-letters-3 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 74%;
  justify-self: center;
}
.tpv-keyboard-row.numbers {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 520px);
  justify-self: start;
}
.tpv-keyboard-row.phone-digits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 360px);
  justify-self: center;
  gap: 6px;
}
.tpv-keyboard-row.phone-clear {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 360px);
  justify-self: center;
}
.tpv-keyboard-row button {
  min-height: 29px;
  border-radius: 7px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(16,25,35,.16);
  font-weight: 950;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.tpv-keyboard-row.phone-digits button {
  min-height: 44px;
  font-size: 1.22rem;
}
.tpv-keyboard-row.phone-actions button:first-child,
.tpv-keyboard-row.phone-clear button {
  background: var(--yellow);
}
.tpv-keyboard-row.phone-actions button:last-child {
  background: var(--red);
  color: #fff;
}
.tpv-keyboard-row.actions {
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, .8fr);
}
.tpv-keyboard-row.actions button {
  background: var(--yellow);
}
.tpv-keyboard-row.actions button:last-child {
  background: var(--red);
  color: #fff;
}
.tpv-notes-cell {
  display: grid;
  position: relative;
  align-self: start;
  gap: 8px;
}
.tpv-notes-cell.open {
  z-index: 24;
}
.tpv-notes-button {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: #fff;
  color: #172334;
  font-weight: 950;
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.tpv-notes-button span {
  display: block;
  color: #6b7280;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tpv-notes-button strong {
  color: #111827;
  font-size: 1rem;
}
.tpv-notes-button.has-note {
  border-color: var(--yellow);
  background: rgba(255, 176, 0, .16);
}
.tpv-notes-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 26;
  width: min(430px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 176, 0, .45);
  border-radius: 12px;
  background: rgba(16,25,35,.95);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.tpv-notes-popover > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}
.tpv-notes-popover textarea {
  min-height: 76px;
  resize: vertical;
}
.tpv-sale-screen {
  display: grid;
  gap: 14px;
}
.tpv-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}
.tpv-product-head-sticky {
  position: sticky;
  top: 10px;
  z-index: 8;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(10,10,10,.98), rgba(10,10,10,.9));
  backdrop-filter: blur(10px);
}
.tpv-product-head strong {
  color: #fff;
  font-size: 1.35rem;
}
.tpv-back {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(229,9,20,.22);
}
.tpv-sale-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .34fr);
  gap: 14px;
  align-items: start;
}
.tpv-category-calculator {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.tpv-category-calculator button {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151515;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tpv-category-calculator button.has-photo {
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.48)),
    var(--tile-image) center / cover no-repeat;
}
.tpv-category-calculator span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
}
.tpv-category-calculator button:hover,
.tpv-back:hover {
  transform: translateY(-1px);
}
.tpv-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tpv-shortcuts button {
  min-width: 98px;
  min-height: 78px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: #f7f7f7;
  color: #172334;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  cursor: pointer;
  font-size: .98rem;
}
.tpv-shortcuts button:hover { border-color: var(--yellow); }
.tpv-layout,
.tpv-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
}
.tpv-workspace {
  grid-template-columns: minmax(220px, .62fr) minmax(520px, 1.45fr) minmax(320px, .82fr);
  align-items: start;
}
.cash-close-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tpv-catalog,
.tpv-cart-box {
  display: grid;
  gap: 12px;
  align-content: start;
}
.tpv-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}
.tpv-category-tabs button {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0b;
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 12px;
  text-align: center;
}
.tpv-category-tabs button.has-photo {
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42)),
    var(--tile-image) center / cover no-repeat;
}
.tpv-category-tabs button span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.tpv-category-tabs button.active {
  border-color: #ffb000;
  box-shadow: inset 0 0 0 2px #ffb000;
}
.tpv-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 4px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}
.tpv-product {
  display: grid;
  align-content: end;
  min-height: 104px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: #151515;
  color: var(--white);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.tpv-product.has-photo {
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.34)),
    var(--tile-image) center / cover no-repeat;
}
.tpv-product strong,
.tpv-product span { display: block; }
.tpv-product strong {
  align-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 34px;
  padding: 7px 5px;
  background: rgba(0,0,0,.62);
  font-size: .9rem;
  line-height: 1.05;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.tpv-product span { display: none; }
.tpv-product:hover { border-color: var(--red); }
.tpv-cart-box h4 { margin: 0; color: var(--yellow); }
.tpv-cart-lines { display: grid; gap: 8px; }
.tpv-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b0b;
}
.tpv-cart-line span { color: var(--muted); font-size: .86rem; }
.tpv-cart-line em { color: var(--yellow); font-style: normal; font-weight: 950; }
.tpv-cart-breakdown {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 192, 43, .25);
  border-radius: 12px;
  background: rgba(255, 192, 43, .08);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.tpv-cart-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tpv-cart-breakdown strong { color: var(--white); }
.tpv-cart-actions {
  display: grid;
  grid-template-columns: 30px 30px auto;
  gap: 6px;
  align-items: center;
}
.tpv-cart-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #151515;
  color: var(--white);
  cursor: pointer;
  font-weight: 950;
  padding: 4px 10px;
}
.tpv-cart-actions button:hover { border-color: var(--red); }
.tpv-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 950;
}
.tpv-orders {
  display: grid;
  gap: 10px;
  align-content: start;
}
.tpv-orders h4 {
  margin: 0;
  color: var(--yellow);
}
.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quick-product {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151515;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.quick-product strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-product span { color: var(--yellow); font-weight: 950; }
.quick-product:hover { border-color: var(--red); }
.tpv-orders > div {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b0b;
}
.tpv-orders span,
.tpv-orders em { color: var(--muted); }
.tpv-orders em { font-style: normal; }
.cash-close-grid { grid-template-columns: repeat(6, minmax(120px, 1fr)); }

body.admin-mode {
  background: #eef0f3;
  color: #202020;
  overflow-x: hidden;
}
body.admin-mode .topbar,
body.admin-mode main > section:not(#panel),
body.admin-mode .site-footer {
  display: none !important;
}
body.admin-mode #panel {
  min-height: 100vh;
  padding: 0;
  background: #eef0f3;
  color: #202020;
  max-width: 100%;
  overflow-x: hidden;
}
body.admin-mode #panel > .section-heading {
  display: none;
}
body.admin-mode .management-grid {
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 10px;
}
body.admin-mode .admin-nav {
  position: static;
  top: 0;
  grid-row: 1;
  height: auto;
  overflow-y: auto;
  border: 0;
  border-radius: 14px;
  background: #1d2938;
  padding: 8px;
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}
body.admin-mode .admin-tab {
  border-radius: 999px;
  min-height: 46px;
  padding: 7px 12px;
}
body.admin-mode .admin-tab strong {
  font-size: .92rem;
}
body.admin-mode .admin-tab span {
  font-size: .74rem;
  margin-top: 2px;
}
body.admin-mode .admin-view {
  grid-column: 1;
  grid-row: auto;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body.admin-mode .management-card {
  color: #202020;
  background: #fff;
  border: 1px solid #dfe3e8;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 14px;
  gap: 12px;
}
body.admin-mode .management-card.wide {
  grid-column: 1;
}
body.admin-mode .eyebrow {
  color: #7a7a7a;
}
body.admin-mode .management-header h3,
body.admin-mode .management-header h4,
body.admin-mode .management-card h3,
body.admin-mode .management-card h4 {
  color: #202020;
}
body.admin-mode input,
body.admin-mode select,
body.admin-mode textarea {
  background: #fff;
  color: #202020;
  border-color: #bfc5cc;
  border-radius: 11px;
  padding: 9px 11px;
}
body.admin-mode label,
body.admin-mode .form-note {
  color: #565656;
}
body.admin-mode .metric-card,
body.admin-mode .switch-row,
body.admin-mode .category-order-row,
body.admin-mode .settings-row,
body.admin-mode .compact-orders > div:not(.empty),
body.admin-mode .database-path,
body.admin-mode .admin-details,
body.admin-mode .orders-column,
body.admin-mode .order-detail-panel,
body.admin-mode .order-row-button,
body.admin-mode .order-time-grid > div,
body.admin-mode .order-notes,
body.admin-mode .delivery-board > section,
body.admin-mode .delivery-close-panel,
body.admin-mode .delivery-archive,
body.admin-mode .delivered-by-driver,
body.admin-mode .delivered-driver,
body.admin-mode .delivery-route-planner,
body.admin-mode .delivery-route-actions,
body.admin-mode .delivery-tool-section,
body.admin-mode .route-share-box,
body.admin-mode .route-groups-details summary,
body.admin-mode .delivery-mini,
body.admin-mode .delivery-detail,
body.admin-mode .delivery-detail-line,
body.admin-mode .driver-settlement,
body.admin-mode .driver-settlement-row,
body.admin-mode .driver-payment-corrections,
body.admin-mode .driver-payment-correction,
body.admin-mode .driver-settlement-history-row,
body.admin-mode .payment-correction-panel,
body.admin-mode .pickup-payment-correction,
body.admin-mode .cash-close-checklist > div,
body.admin-mode .kitchen-ticket,
body.admin-mode .delivery-ticket,
body.admin-mode .route-group,
body.admin-mode .kitchen-groups section,
body.admin-mode .config-panels section {
  background: #f8f9fb;
  border-color: #dfe3e8;
  color: #202020;
}
body.admin-mode .driver-settlement-note {
  background: #fff7df;
  color: #5f4b17;
}
body.admin-mode .metric-card span,
body.admin-mode .switch-row small,
body.admin-mode .category-order-row small,
body.admin-mode .compact-orders span,
body.admin-mode .compact-orders em,
body.admin-mode .database-path span,
body.admin-mode .database-path small,
body.admin-mode .order-row-button small,
body.admin-mode .order-detail-header span,
body.admin-mode .order-time-grid span,
body.admin-mode .order-detail-line span,
body.admin-mode .order-edit-panel span,
body.admin-mode .tpv-editing-order-banner span,
body.admin-mode .order-notes span,
body.admin-mode .kitchen-ticket header span,
body.admin-mode .delivery-ticket header span,
body.admin-mode .delivery-address span,
body.admin-mode .delivery-compact-meta,
body.admin-mode .delivery-close-panel span,
body.admin-mode .delivery-archive-head span,
body.admin-mode .delivered-driver span,
body.admin-mode .delivery-route-planner > div:first-child span,
body.admin-mode .delivery-route-actions > div:first-child span,
body.admin-mode .delivery-tool-section > summary small,
body.admin-mode .route-share-box > div:first-child span,
body.admin-mode .route-share-content span,
body.admin-mode .route-group span,
body.admin-mode .delivery-mini small,
body.admin-mode .delivery-detail span,
body.admin-mode .delivery-detail-line span,
body.admin-mode .delivery-detail-note,
body.admin-mode .driver-settlement span,
body.admin-mode .driver-settlement-head span,
body.admin-mode .cash-close-checklist span,
body.admin-mode .kitchen-ticket-meta,
body.admin-mode .delivery-ticket-meta,
body.admin-mode .kitchen-groups p span,
body.admin-mode .delivery-wsir-fields span,
body.admin-mode .admin-table span {
  color: #626973;
}
body.admin-mode .metric-card strong,
body.admin-mode .database-path strong,
body.admin-mode .admin-table strong {
  color: #202020;
}
body.admin-mode .cash-workflow-panel {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .cash-workflow-status {
  background: #172334;
}
body.admin-mode .cash-workflow-status span,
body.admin-mode .cash-workflow-blockers > strong {
  color: #b77800;
}
body.admin-mode .cash-workflow-status small {
  color: #d8dee7;
}
body.admin-mode .cash-flow-action,
body.admin-mode .cash-blocker,
body.admin-mode .cash-manager-action {
  background: #f8f9fb;
  border-color: #dfe3e8;
  color: #202020;
}
body.admin-mode .cash-flow-action.primary,
body.admin-mode .cash-manager-action.primary,
body.admin-mode .cash-manager-action.danger {
  background: var(--red);
  color: #fff;
  border-color: transparent;
}
body.admin-mode .closure-day-card,
body.admin-mode .closure-day-empty {
  background: #fff;
  border-color: #dfe3e8;
  color: #202020;
}
body.admin-mode .closure-day-card[open] summary,
body.admin-mode .closure-turn-row {
  border-color: #e5e8ec;
}
body.admin-mode .closure-day-title strong,
body.admin-mode .closure-day-card summary span strong,
body.admin-mode .closure-turn-row strong,
body.admin-mode .closure-day-empty strong {
  color: #202020;
}
body.admin-mode .closure-day-title small,
body.admin-mode .closure-day-card summary span,
body.admin-mode .closure-turn-head,
body.admin-mode .closure-turn-row span,
body.admin-mode .closure-day-empty span {
  color: #626973;
}
body.admin-mode .closure-turn-row.day-summary {
  background: #fff7df;
}
body.admin-mode .cash-manager-action.accent {
  background: var(--yellow);
  color: #111;
  border-color: transparent;
}
body.admin-mode .cash-manager-action span {
  color: #626973;
}
body.admin-mode .cash-manager-action.primary span,
body.admin-mode .cash-manager-action.danger span {
  color: rgba(255,255,255,.78);
}
body.admin-mode .cash-manager-action.accent span {
  color: rgba(0,0,0,.62);
}
body.admin-mode .cash-blocker span {
  color: #202020;
}
body.admin-mode .cash-blocker small {
  color: #626973;
}
body.admin-mode .cash-blocker.warn {
  background: #fff5f5;
  border-color: #f1b9bd;
}
body.admin-mode .cash-blocker.info {
  background: #fff7de;
  border-color: #f4cf79;
}
body.admin-mode .cash-blocker.ok {
  background: #eef8ef;
  border-color: #bfe3c4;
}
body.admin-mode .local-screen-table span:first-child,
body.admin-mode .wintouch-module-row strong {
  color: #202020;
}
body.admin-mode .wintouch-module-row {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .wintouch-module-row span {
  color: #b77800;
}
body.admin-mode .wintouch-module-row p {
  color: #626973;
}
body.admin-mode .business-day-row,
body.admin-mode .digital-card-preview {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .digital-card-preview strong,
body.admin-mode .business-day-toggle span {
  color: #202020;
}
body.admin-mode .digital-card-preview span {
  color: #b77800;
}
body.admin-mode .digital-card-preview em,
body.admin-mode .digital-card-preview p {
  color: #626973;
}
body.admin-mode .order-filter-tabs button {
  background: #fff;
  color: #202020;
  border-color: #dfe3e8;
}
body.admin-mode .order-filter-tabs button.active {
  background: #f7b21a;
  border-color: #f7b21a;
}
body.admin-mode .route-select {
  background: #fff;
  color: #202020;
  border-color: #cfd5dc;
}
body.admin-mode .route-select.active {
  background: #f7b21a;
  border-color: #f7b21a;
  color: #202020;
}
body.admin-mode .route-groups-details summary {
  color: #202020;
}
body.admin-mode .route-groups-details[open] summary {
  background: #fff8e6;
  border-color: #f7b21a;
  color: #b77800;
}
body.admin-mode .delivered-driver {
  background: #fff;
  color: #202020;
  border-color: #dfe3e8;
}
body.admin-mode .delivered-driver.active {
  background: #fff8e6;
  border-color: #f7b21a;
}
body.admin-mode .orders-column h4,
body.admin-mode .order-row-button em,
body.admin-mode .order-detail-header > strong,
body.admin-mode .order-detail-line em,
body.admin-mode .pickup-payment-panel strong,
body.admin-mode .pickup-paid-panel strong,
body.admin-mode .order-invalidation summary,
body.admin-mode .invalidated-card.active strong,
body.admin-mode .delivery-board h4,
body.admin-mode .kitchen-ticket em,
body.admin-mode .delivery-ticket em,
body.admin-mode .delivery-compact-meta strong,
body.admin-mode .delivery-close-panel h4,
body.admin-mode .delivery-archive h4,
body.admin-mode .delivery-archive-head h4,
body.admin-mode .delivered-driver strong,
body.admin-mode .delivery-route-planner h4,
body.admin-mode .delivery-route-actions h4,
body.admin-mode .delivery-tool-section > summary strong,
body.admin-mode .route-share-box h4,
body.admin-mode .delivery-mini strong,
body.admin-mode .delivery-detail header > strong,
body.admin-mode .driver-settlement h4,
body.admin-mode .payment-correction-panel h4,
body.admin-mode .driver-settlement em,
body.admin-mode .cash-close-checklist .warn strong,
body.admin-mode .kitchen-groups h4 {
  color: #b77800;
}
body.admin-mode .cash-close-checklist .ok strong {
  color: #1b7f32;
}
body.admin-mode .delivery-close-help {
  background: #fff7de;
  color: #202020;
}
body.admin-mode .delivery-tool-section > summary em {
  background: #fff;
  border: 1px solid #dfe3e8;
  color: #202020;
}
body.admin-mode .delivery-tool-section[open] > summary {
  border-color: #dfe3e8;
}
body.admin-mode .delivery-tool-section[open] > summary em {
  background: #f7b21a;
  border-color: #f7b21a;
  color: #202020;
}
body.admin-mode .kitchen-note {
  background: #fff7de;
  color: #202020;
}
body.admin-mode .delivery-wsir-fields div {
  background: #fff7de;
}
body.admin-mode .delivery-wsir-fields strong {
  color: #202020;
}
body.admin-mode .delivery-mini span {
  color: #202020;
}
body.admin-mode .pickup-payment-panel {
  background: #fff8e6;
  border-color: #f7b21a;
}
body.admin-mode .order-fiscal-box {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .order-fiscal-box span {
  color: #626973;
}
body.admin-mode .order-fiscal-box strong {
  color: #202020;
}
body.admin-mode .pickup-payment-panel span {
  color: #626973;
}
body.admin-mode .pickup-paid-panel,
body.admin-mode .order-invalidation,
body.admin-mode .invalidated-panel,
body.admin-mode .invalidated-detail,
body.admin-mode .invalidated-card {
  background: #ffffff;
  border-color: #dfe3e8;
}
body.admin-mode .pickup-paid-panel {
  background: #eaf8f1;
  border-color: #58b77f;
}
body.admin-mode .pickup-paid-panel span,
body.admin-mode .invalidated-panel span,
body.admin-mode .invalidated-detail p,
body.admin-mode .invalidated-card small {
  color: #626973;
}
body.admin-mode .invalidated-card {
  color: #202020;
}
.loyalty-grid {
  display: grid;
  gap: 16px;
}
.loyalty-grid section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #f8f9fb;
}
.loyalty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.loyalty-head h4 {
  margin: 0;
  color: #202020;
}
.loyalty-head span {
  color: #626973;
}
.loyalty-list {
  display: grid;
  gap: 10px;
}
.marketing-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.marketing-presets button {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  color: #202020;
  text-align: left;
  cursor: pointer;
}
.marketing-presets button:hover {
  border-color: #fa0606;
  box-shadow: 0 10px 24px rgba(250, 6, 6, .12);
}
.marketing-presets strong {
  font-size: .98rem;
}
.marketing-presets small {
  color: #626973;
}
.loyalty-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}
.loyalty-card-main {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.loyalty-card-main small {
  display: block;
  margin-top: 4px;
  color: #626973;
}
.loyalty-title-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dfe3e8;
  padding: 6px 0;
  font-size: 1.05rem;
  font-weight: 900;
}
.loyalty-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #101923;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.loyalty-quick-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  align-items: end;
}
.loyalty-quick-fields label:first-child {
  grid-column: span 2;
}
.points-rule {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px dashed #c7ced6;
  border-radius: 14px;
  background: #fff;
}
.points-rule label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #626973;
}
.points-rule span {
  color: #626973;
}
.loyalty-row {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
}
.loyalty-row.offer-row {
  grid-template-columns: 72px minmax(150px, 1fr) 130px 130px 90px 90px 120px 140px 110px 110px auto;
}
.loyalty-row.reward-row {
  grid-template-columns: 72px minmax(220px, 1fr) 120px auto;
}
.loyalty-row label,
.loyalty-quick-fields label {
  display: grid;
  gap: 5px;
  font-size: .78rem;
  font-weight: 900;
  color: #626973;
}
.loyalty-row input,
.loyalty-row select,
.loyalty-quick-fields input,
.loyalty-quick-fields select {
  min-width: 0;
}
.switch-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.switch-line input {
  width: 18px;
  height: 18px;
}
.customer-loyalty-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
}
.customer-loyalty-card[hidden] {
  display: none;
}
.customer-loyalty-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.customer-loyalty-head h3 {
  margin: 0;
  font-size: 1.25rem;
}
.customer-loyalty-head strong {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffc928;
  color: #111;
  white-space: nowrap;
}
.customer-loyalty-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-loyalty-actions .btn {
  min-height: 36px;
  padding: 9px 12px;
}
.customer-loyalty-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.customer-loyalty-metrics span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}
.customer-loyalty-metrics strong {
  color: #fff;
  font-size: 1rem;
}
.customer-reward-list {
  display: grid;
  gap: 8px;
}
.customer-reward-list button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: #111;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.customer-reward-list button.active {
  border-color: #ffc928;
  box-shadow: 0 0 0 2px rgba(255,201,40,.18);
}
.customer-reward-list button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.customer-reward-list small {
  color: rgba(255,255,255,.66);
  font-weight: 800;
}
.claimed-reward {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,201,40,.12);
  color: #fff;
}
.customer-account-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-account-chip {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.2);
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 800;
}
.customer-account-chip.wide {
  flex: 1 1 260px;
}
.customer-account-chip strong {
  color: #fff;
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.customer-web-history {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.customer-web-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.customer-web-history-head h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}
.customer-web-history-head span {
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  font-weight: 800;
}
.customer-web-order {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.customer-web-order summary {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.customer-web-order summary::-webkit-details-marker {
  display: none;
}
.customer-web-order div {
  display: grid;
  gap: 2px;
}
.customer-web-order-lines {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.customer-web-order-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}
.customer-web-order-lines small {
  grid-column: 1 / -1;
}
.customer-web-order-total {
  display: flex !important;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.customer-web-order strong {
  color: #fff;
}
.customer-web-order span,
.customer-web-order small,
.customer-web-empty {
  color: rgba(255,255,255,.68);
  font-weight: 800;
}
.customer-web-empty {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.customer-rewards-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.customer-rewards-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-weight: 950;
}
.customer-rewards-panel summary::-webkit-details-marker {
  display: none;
}
.customer-rewards-panel summary strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffc928;
  color: #111;
  font-size: .8rem;
}
.customer-rewards-panel .customer-reward-list {
  padding: 0 10px 10px;
}
.customer-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 14px;
}
.customer-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .7fr)) auto;
  gap: 10px;
  align-items: end;
}
.customer-filter-bar label {
  display: grid;
  gap: 6px;
}
input[type="date"] {
  cursor: pointer;
}
.date-picker-trigger {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ccd5df;
  border-radius: 12px;
  background: #fff;
  color: #07121f;
  font: inherit;
  font-size: .95rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.date-picker-trigger.compact {
  min-height: 40px;
  padding: 8px 10px;
}
.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  border-color: #ffbd19;
  box-shadow: 0 0 0 3px rgba(255, 189, 25, .18);
  outline: none;
}
.date-picker-field {
  position: relative;
  overflow: visible;
}
.mini-calendar-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  width: 218px;
  margin: 0;
  padding: 7px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 24, 40, .16);
}
.mini-calendar-floating {
  position: fixed;
  top: var(--date-picker-top, 10px);
  left: var(--date-picker-left, 10px);
  z-index: 1000;
  width: 232px;
  max-height: calc(100vh - 20px);
  overflow: auto;
}
.mini-calendar-dateTo {
  left: auto;
  right: 0;
}
.mini-calendar-floating.mini-calendar-dateTo {
  left: var(--date-picker-left, 10px);
  right: auto;
}
.report-date-range .mini-calendar-panel {
  top: calc(100% + 6px);
  bottom: auto;
}
.report-date-range .mini-calendar-floating {
  top: var(--date-picker-top, 10px);
  bottom: auto;
}
.mini-calendar-head,
.mini-calendar-nav,
.mini-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mini-calendar-head strong {
  font-size: .78rem;
}
.mini-calendar-nav {
  margin: 6px 0;
}
.mini-calendar-nav button,
.mini-calendar-actions button {
  border: 0;
  border-radius: 999px;
  padding: 5px 7px;
  background: #f1f4f8;
  color: #07121f;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}
.mini-calendar-weekdays,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.mini-calendar-weekdays {
  margin-bottom: 4px;
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}
.mini-calendar-grid button {
  aspect-ratio: 1;
  min-height: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #07121f;
  font-size: .74rem;
  font-weight: 900;
  cursor: pointer;
}
.mini-calendar-grid button.muted {
  color: #98a2b3;
  background: #f8fafc;
}
.mini-calendar-grid button.today {
  border-color: #ffbd19;
}
.mini-calendar-grid button.active {
  background: #ff1d2e;
  border-color: #ff1d2e;
  color: #fff;
}
.customer-admin-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.customer-admin-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  color: #202020;
  text-align: left;
  cursor: pointer;
}
.customer-admin-list button.active {
  border-color: #fa0606;
  box-shadow: 0 0 0 2px rgba(250,6,6,.12);
}
.customer-admin-list span,
.customer-admin-list em {
  color: #626973;
  font-style: normal;
}
.web-online-list h4 {
  margin: 0 0 8px;
}
.web-online-customers {
  margin-top: 10px;
}
.web-online-order-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}
.web-online-order-card h4,
.web-online-order-card p {
  margin: 0;
}
.web-online-order-card p {
  color: #626973;
}
.customer-detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #f8f9fb;
}
.customer-detail-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.customer-detail-card h4 {
  margin: 0 0 4px;
}
.customer-detail-card header span,
.customer-order-history span,
.customer-order-history em {
  color: #626973;
}
.customer-detail-card header strong {
  padding: 9px 11px;
  border-radius: 999px;
  background: #101923;
  color: #fff;
  white-space: nowrap;
}
.customer-detail-main {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(300px, 1fr);
  gap: 10px;
  align-items: start;
}
.customer-detail-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
}
.customer-detail-section h5 {
  margin: 0;
  color: #b77800;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.customer-history-section {
  grid-column: 1 / -1;
}
.customer-badge-list,
.customer-address-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-badge-list span,
.customer-address-list span {
  padding: 8px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #f8f9fb;
  color: #202020;
  font-weight: 850;
}
.customer-address-list span {
  display: grid;
  gap: 3px;
  flex: 1 1 220px;
}
.customer-address-list em {
  color: #626973;
  font-style: normal;
  font-size: .84rem;
}
.staff-session-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #f8f9fb;
  margin-bottom: 14px;
}
.staff-session-card h4 {
  margin: 0 0 4px;
}
.staff-session-card span,
.staff-user-card small {
  color: #626973;
}
.staff-session-card strong {
  padding: 9px 11px;
  border-radius: 999px;
  color: #101923;
  background: #fff8df;
  border: 1px solid #f1d073;
}
.staff-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.staff-user-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #f8f9fb;
}
.staff-user-card > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .6fr);
  gap: 10px;
}
.customer-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.customer-detail-metrics span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e7eb;
  color: #626973;
}
.reward-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reward-chip-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfe3e8;
  color: #626973;
  font-weight: 900;
}
.reward-chip-list span.ok {
  border-color: #188a42;
  color: #188a42;
}
.customer-order-history {
  display: grid;
  gap: 8px;
}
.customer-order-history > div:not(.empty) {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  background: #fff;
}
body.admin-mode .report-order-detail {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .report-summary-card {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .report-ai-panel,
body.admin-mode .report-ai-grid section {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .report-ai-panel > header > span {
  background: #fff8e6;
  color: #b77800;
}
body.admin-mode .ai-mini-list span,
body.admin-mode .ai-prediction-list span {
  color: #626973;
}
body.admin-mode .report-summary-card header strong,
body.admin-mode .report-bar-row strong,
body.admin-mode .report-total-table strong,
body.admin-mode .report-kpis strong,
body.admin-mode .ai-prediction-list strong {
  color: #b77800;
}
body.admin-mode .report-bar-row span,
body.admin-mode .report-date-range > span,
body.admin-mode .report-kpis span {
  color: #626973;
}
body.admin-mode .report-date-range > span,
body.admin-mode .report-kpis span {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .report-bar-row div {
  background: #edf0f4;
}
body.admin-mode .report-sale-row {
  color: #202020;
}
body.admin-mode .report-sale-row.active {
  background: #fff1f1;
}
body.admin-mode .report-sale-row strong,
body.admin-mode .report-detail-line em {
  color: #b77800;
}
body.admin-mode .report-detail-grid span,
body.admin-mode .report-detail-line span {
  color: #626973;
}
body.admin-mode .invalidated-card.active {
  background: #fff1f1;
  border-color: #fa0606;
}
body.admin-mode .delivery-inline-close {
  background: #fff8e6;
  border-color: #f7b21a;
}
body.admin-mode .delivery-inline-close strong {
  color: #b77800;
}
body.admin-mode .delivery-inline-close span {
  color: #626973;
}
body.admin-mode .delivery-detail p {
  color: #202020;
}
body.admin-mode .tpv-phone-pad {
  background: #f8f9fb;
  border-color: #dfe3e8;
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: repeat(3, 46px);
  justify-content: start;
  width: max-content;
  max-width: 100%;
  padding: 8px;
  gap: 6px;
}
body.admin-mode .tpv-phone-pad span {
  font-size: .82rem;
}
body.admin-mode .tpv-phone-pad button {
  width: 46px;
  min-height: 42px;
  border-radius: 7px;
}
body.admin-mode .admin-table {
  background: #fff;
  border-color: #dfe3e8;
  overflow-x: auto;
}
body.admin-mode .admin-table > div {
  border-color: #e5e8ec;
}
body.admin-mode .legal-checklist span {
  background: #fff7de;
  color: #202020;
  border-color: #f2d172;
}
body.admin-mode .toggle-field {
  background: #fff;
  color: #202020;
  border-color: #dfe3e8;
}
body.admin-mode .toggle-field small,
body.admin-mode .reference-note {
  color: #565656;
}
body.admin-mode .reference-note {
  background: #fff8df;
  border-color: #f2d172;
}
body.admin-mode .publication-status {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .publication-status strong {
  color: #202020;
}
body.admin-mode .publication-status small {
  color: #565656;
}
body.admin-mode .sync-overview-card {
  border-left-color: #fa0606;
}
body.admin-mode .closure-footer {
  background: #fff;
  border-color: #dfe3e8;
}

body.delivery-wall-mode {
  background: #f0f2f5;
}

body.delivery-wall-mode .topbar,
body.delivery-wall-mode .hero,
body.delivery-wall-mode .offers-strip,
body.delivery-wall-mode .order-layout,
body.delivery-wall-mode .menu-section,
body.delivery-wall-mode .legal-section,
body.delivery-wall-mode .site-footer,
body.delivery-wall-mode .admin-section > .section-heading,
body.delivery-wall-mode .whatsapp-config,
body.delivery-wall-mode .admin-tools,
body.delivery-wall-mode .editor-panel,
body.delivery-wall-mode .orders-list {
  display: none !important;
}

body.delivery-wall-mode main,
body.delivery-wall-mode .admin-section {
  display: block;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

body.delivery-wall-mode .management-grid {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.delivery-wall-screen {
  min-height: 100vh;
  padding: 18px;
  color: #202020;
}

.delivery-wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  color: #fff;
  background: #1b2635;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.delivery-wall-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: .95;
  letter-spacing: 0;
}

.delivery-wall-clock {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.delivery-wall-clock strong {
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1;
}

.delivery-wall-clock span {
  color: #dfe6ef;
  font-weight: 800;
}

.delivery-wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
  gap: 16px;
  align-items: start;
}

.delivery-wall-main,
.delivery-wall-side {
  display: grid;
  gap: 14px;
}

.delivery-wall-main,
body.delivery-wall-mode .delivery-route-actions,
body.delivery-wall-mode .delivery-archive,
body.delivery-wall-mode .delivered-by-driver,
body.delivery-wall-mode .delivery-tool-section,
body.delivery-wall-mode .delivery-detail,
body.delivery-wall-mode .route-share-box {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.wall-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

body.delivery-wall-mode .delivery-ticket {
  min-height: 168px;
  border-radius: 16px;
  background: #fffdf7;
  border: 2px solid #f2d172;
  box-shadow: none;
}

body.delivery-wall-mode .delivery-priority em {
  font-size: 1.8rem;
}

body.delivery-wall-mode .delivery-address strong {
  font-size: 1.25rem;
  color: #202020;
}

body.delivery-wall-mode .delivery-address span,
body.delivery-wall-mode .delivery-compact-meta {
  color: #565656;
}

body.delivery-wall-mode .route-select.active {
  background: #1b2635;
  color: #fff;
}
body.admin-mode .shift-panel {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .shift-panel.open {
  background: #eefbf2;
  border-color: #a7dfb8;
}
body.admin-mode .shift-panel.day-open {
  background: #fffaf0;
  border-color: #f4ca64;
}
body.admin-mode .shift-panel.warning {
  background: #fff7df;
  border-color: #f4ca64;
}
body.admin-mode .shift-panel.outside-hours {
  background: #fff3f3;
  border-color: #f0b4b4;
}
body.admin-mode .shift-panel span,
body.admin-mode .shift-panel small {
  color: #6b7280;
}
body.admin-mode .closure-footer span,
body.admin-mode .closure-footer strong {
  color: #202020;
}
body.admin-mode .tpv-card {
  background: #fff;
  border-color: #dfe3e8;
}
body.admin-mode .tpv-intake-head,
body.admin-mode .tpv-order-strip,
body.admin-mode .tpv-cart-box {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .tpv-intake-head strong,
body.admin-mode .tpv-order-strip strong {
  color: #202020;
}
body.admin-mode .tpv-intake-head span {
  color: #626973;
}
body.admin-mode .tpv-product-head strong {
  color: #202020;
}
body.admin-mode .tpv-product-head-sticky {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
}
body.admin-mode .address-suggestion {
  background: #fffaf0;
  border-color: #f0c36a;
  color: #202020;
}
body.admin-mode .address-suggestions {
  background: #111827;
  border-color: #ffbf40;
}
body.admin-mode .address-suggestion.verified {
  background: #f0fff8;
  border-color: #20b76a;
}
body.admin-mode .address-suggestion span,
body.admin-mode .address-suggestion-status {
  color: #626973;
}
body.admin-mode .address-suggestion em,
body.admin-mode .address-suggestion-status.warning {
  color: #b77800;
}
body.admin-mode .tpv-sale-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .36fr);
}
body.admin-mode .tpv-category-calculator button {
  border-color: #dfe3e8;
  background-color: #172334;
}
body.admin-mode .editor-products-panel,
body.admin-mode .editor-product-form {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .editor-panel-head strong {
  color: #202020;
}
body.admin-mode .editor-panel-head span {
  color: #626973;
}
body.admin-mode .tpv-workspace {
  grid-template-columns: 1fr;
}
body.admin-mode .tpv-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(120px, .6fr) minmax(160px, .75fr) minmax(150px, .7fr) minmax(240px, 1.15fr);
  align-items: start;
  gap: 10px;
}
body.admin-mode .tpv-guided-form {
  grid-template-columns: 1fr;
}
body.admin-mode .tpv-flow-tabs button {
  border-color: #dfe3e8;
  background: #f8f9fb;
  color: #56606b;
}
body.admin-mode .tpv-flow-tabs button.active {
  border-color: var(--yellow);
  background: rgba(255,176,0,.24);
  color: #101928;
}
body.admin-mode .tpv-step-card {
  background: #fff;
  border-color: #dfe3e8;
  padding: 10px;
}
body.admin-mode .tpv-step-card h4 {
  color: #101928;
  font-size: 1.05rem;
}
body.admin-mode .tpv-mode-choice button {
  border-color: #dfe3e8;
  min-height: 64px;
}
body.admin-mode .tpv-address-step-grid {
  grid-template-columns: minmax(138px, .62fr) minmax(210px, 1fr) minmax(164px, .72fr);
}
body.admin-mode .tpv-guided-form .address-suggestions {
  max-height: 110px;
}
body.admin-mode .tpv-guided-form .address-suggestions.is-reserved {
  min-height: 76px;
  height: 76px;
  max-height: 76px;
}
body.admin-mode .tpv-guided-form .address-suggestion {
  min-height: 36px;
  padding: 5px 7px;
}
body.admin-mode .tpv-form label {
  gap: 5px;
  font-size: .88rem;
}
body.admin-mode .tpv-address-field,
body.admin-mode .tpv-address-detail-field { grid-column: auto; }
body.admin-mode .tpv-form .address-suggestions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 190px;
}
body.admin-mode .tpv-form .address-suggestions.is-reserved {
  min-height: 124px;
  height: 124px;
  max-height: 124px;
  overflow-y: auto;
  align-content: start;
  overscroll-behavior: contain;
}
body.admin-mode .tpv-form .address-suggestion {
  min-height: 52px;
  align-content: center;
  padding: 6px 8px;
}
body.admin-mode .tpv-form .address-suggestion strong {
  font-size: .8rem;
  line-height: 1.05;
}
body.admin-mode .tpv-form .address-suggestion span {
  font-size: .68rem;
  line-height: 1.15;
}
body.admin-mode .tpv-form .address-suggestion em {
  font-size: .68rem;
  line-height: 1.1;
}
body.admin-mode .tpv-form .address-suggestion-status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.admin-mode .tpv-intake {
  gap: 10px;
}
body.admin-mode .tpv-intake-head,
body.admin-mode .tpv-order-strip {
  padding: 10px 12px;
  border-radius: 12px;
}
body.admin-mode .tpv-intake-head strong,
body.admin-mode .tpv-order-strip strong {
  font-size: .98rem;
}
body.admin-mode .tpv-time-actions button {
  min-height: 32px;
  border-radius: 7px;
}
body.admin-mode .tpv-catalog,
body.admin-mode .tpv-cart-box,
body.admin-mode .tpv-orders {
  min-width: 0;
}
body.admin-mode .tpv-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
body.admin-mode .tpv-category-tabs button {
  flex: 0 0 150px;
  min-height: 72px;
  border-radius: 10px;
}
body.admin-mode .tpv-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  max-height: none;
}
body.admin-mode .tpv-cart-box,
body.admin-mode .tpv-orders,
body.admin-mode .tpv-cart-line,
body.admin-mode .quick-product {
  background: #f8f9fb;
  border-color: #dfe3e8;
  color: #202020;
}
body.admin-mode .tpv-orders > div {
  background: #f8f9fb;
  border-color: #dfe3e8;
}
body.admin-mode .quick-product {
  color: #202020;
}
body.admin-mode .tpv-cart-box h4,
body.admin-mode .tpv-orders h4,
body.admin-mode .quick-product span,
body.admin-mode .tpv-cart-line em {
  color: #b77800;
}
body.admin-mode .tpv-cart-line span,
body.admin-mode .tpv-orders span,
body.admin-mode .tpv-orders em {
  color: #626973;
}
body.admin-mode .cash-close-grid,
body.admin-mode .metric-grid,
body.admin-mode .report-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

body.admin-mode .tpv-orders {
  display: none;
}

.legal-section {
  display: none;
  background: #0f0f0f;
  border-top: 1px solid var(--line);
}
.legal-section:target {
  display: block;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}
.legal-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.legal-grid h3 { margin: 0 0 8px; }
.legal-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  background: #050505;
}
.site-footer a { color: var(--muted); font-weight: 850; }
.site-footer a:hover { color: var(--white); }

.whatsapp-config { display: grid; grid-template-columns: minmax(220px, 420px) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.editor-lock, .editor-toolbar { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.editor-toolbar { margin-bottom: 12px; }
.editor-toolbar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-editor-list { display: grid; gap: 10px; max-height: 620px; overflow: auto; padding-right: 4px; }
.editor-row { display: grid; grid-template-columns: 86px minmax(130px,.8fr) minmax(180px,1fr) 110px; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.editor-row .wide-field { grid-column: 1 / -1; }
.editor-row input[type="checkbox"] { width: 22px; height: 22px; }
.editor-row textarea[data-edit-field="removeOptions"], .editor-row textarea[data-edit-field="extraOptions"] { min-height: 76px; }
.menu-editor-calculator {
  display: grid;
  gap: 14px;
}
.editor-category-picker,
.editor-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.editor-category-picker.compact {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.editor-category-picker button,
.editor-product-grid button {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151515;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.editor-category-picker button.has-photo,
.editor-product-grid button.has-photo {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    var(--tile-image) center / cover no-repeat;
}
.editor-category-picker button.active,
.editor-product-grid button.active {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--yellow);
}
.editor-product-grid button.pending-review {
  border-color: #ffbf2e;
}
.editor-product-grid button.pending-review em {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffbf2e;
  color: #151515;
  font-size: .75rem;
  font-style: normal;
  font-weight: 950;
}
.editor-category-picker span,
.editor-product-grid strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.76);
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.editor-product-grid span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: .8rem;
  font-weight: 950;
}
.editor-products-panel,
.editor-product-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.editor-panel-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.editor-panel-head strong,
.editor-panel-head span {
  display: block;
}
.editor-panel-head span {
  color: var(--muted);
}
.editor-product-form {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  border-top: 0;
}
.option-editor-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.option-editor-block > strong {
  color: var(--white);
  font-size: 1rem;
}
.option-editor-block > span {
  color: var(--muted);
  font-size: .9rem;
}
.option-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.option-editor-grid label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  color: var(--white);
  font-weight: 850;
}
.option-editor-grid.extras label {
  grid-template-columns: 20px 1fr minmax(72px, 92px);
}
.option-editor-grid label.active {
  border-color: var(--yellow);
  background: rgba(250, 198, 35, .16);
}
.option-editor-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}
.option-editor-grid em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
}
.extra-price-input,
.custom-extra-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(0,0,0,.38);
  color: var(--white);
  font-weight: 900;
}
.custom-extra-editor {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.custom-extra-editor > strong {
  color: var(--white);
}
.custom-extra-list {
  display: grid;
  gap: 8px;
}
.custom-extra-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(80px, 120px) auto;
  gap: 8px;
  align-items: center;
}
.new-extra-row {
  padding-top: 4px;
}
.admin-mode .option-editor-block {
  background: #f8fafc;
  border-color: #d8dee8;
}
.admin-mode .option-editor-block > strong,
.admin-mode .custom-extra-editor > strong {
  color: #111827;
}
.admin-mode .option-editor-block > span {
  color: #5d6675;
}
.admin-mode .option-editor-grid label {
  background: #ffffff;
  border-color: #d8dee8;
  color: #111827;
}
.admin-mode .option-editor-grid label.active {
  border-color: var(--yellow);
  background: #fff7dd;
}
.admin-mode .option-editor-grid em {
  color: #a66b00;
}
.admin-mode .extra-price-input,
.admin-mode .custom-extra-row input {
  background: #ffffff;
  border-color: #c7cfdb;
  color: #111827;
}
.editor-active {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-modal[hidden] { display: none; }
.product-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 14px; overflow: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.74); }
.modal-card { position: relative; width: min(900px,100%); max-height: min(82vh,720px); overflow: visible; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; padding-bottom: 82px; box-shadow: var(--shadow); color: var(--white); }
.modal-header h2 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); }
.modal-description { color: #f2f2f2; line-height: 1.25; margin: 5px 0 7px; font-weight: 750; font-size: .96rem; }
.options-summary { padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 7px 0; }
.options-block { margin-top: 12px; }
.options-block h3 {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 1.08rem;
  font-weight: 950;
}
.option-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 8px; }
.option-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  margin-top: 8px;
}
.option-action-grid-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 6;
}
.option-collapsible {
  position: relative;
  display: block;
  min-width: 0;
  margin-top: 0;
}
.option-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  width: 100%;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: #101010;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.option-section-body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  width: min(560px, calc(100vw - 54px));
  max-height: min(48vh, 360px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--yellow);
  border-radius: 18px;
  background: rgba(12, 12, 12, .98);
  box-shadow: 0 22px 48px rgba(0,0,0,.46);
}
.option-action-grid .option-collapsible:nth-child(3) .option-section-body,
.option-action-grid .option-collapsible:nth-child(4) .option-section-body {
  right: 0;
  left: auto;
}
.option-action-grid.single-option-section {
  grid-template-columns: 1fr;
}
.option-action-grid.single-option-section .option-section-body {
  right: auto;
  left: 0;
}
.option-section-body .option-list {
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
}
.option-section-toggle span {
  font-size: .98rem;
  font-weight: 950;
}
.option-section-toggle strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 176, 0, .16);
  color: var(--yellow);
  font-size: .82rem;
  font-weight: 950;
}
.option-collapsible.has-selection .option-section-toggle {
  border-color: var(--yellow);
}
.option-collapsible.collapsed .option-section-body {
  display: none;
}
.option-collapsible:not(.collapsed) .option-section-toggle {
  background: rgba(255, 176, 0, .12);
  border-color: var(--yellow);
}
.option-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 13px;
  padding: 9px 10px;
  background: #101010;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  overflow: hidden;
}
.option-choice input { width: 18px; height: 18px; accent-color: var(--yellow); }
.option-choice > span {
  min-width: 0;
  width: 100%;
}
.option-choice-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.12;
}
.option-choice-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.option-choice-price {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--yellow);
  white-space: nowrap;
}
.option-choice strong { color: var(--yellow); }
.menu-choice span {
  display: grid;
  gap: 3px;
}
.menu-choice em {
  color: #f5f5f5;
  font-style: normal;
  font-size: .9rem;
}
.menu-drink-field {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: #fff;
  font-weight: 950;
}
.menu-drink-field select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: #fff;
  color: #111;
  font-weight: 950;
  padding: 0 12px;
}
.option-section-body-note {
  width: min(420px, calc(100vw - 54px));
}
.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 12px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(16, 16, 16, .96);
  box-shadow: 0 -14px 26px rgba(0,0,0,.22);
}
.product-note-field {
  display: grid;
  gap: 6px;
  margin-top: 0;
  color: #fff;
  font-weight: 900;
}
.product-note-field textarea {
  min-height: 78px;
  border-radius: 14px;
  padding: 12px;
  font-weight: 850;
}

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%,140%); max-width: calc(100vw - 36px); padding: 13px 16px; background: var(--white); color: var(--black); border-radius: 999px; font-weight: 950; transition: transform .24s ease; z-index: 60; }
.toast.show { transform: translate(-50%,0); }
.menu-upgrade[hidden], .options-block[hidden] { display: none !important; }


@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .cart-pill { grid-column: 2; grid-row: 1; width: auto; }
  .nav-links { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; overflow-x: auto; }
  .hero, .order-layout { grid-template-columns: 1fr; }
  .order-layout,
  body.customer-ready .order-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 14px;
  }
  body.customer-ready .cart-panel,
  body.customer-ready .checkout-panel {
    min-width: 0;
    width: 100%;
  }
  body.checkout-focus .cart-panel,
  body.checkout-focus .checkout-panel {
    max-height: none;
    overflow: visible;
  }
  body.customer-ready .checkout-confirm {
    position: static;
  }
  .checkout-confirm-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .checkout-confirm-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .hero {
    min-height: min(680px, calc(100svh - 124px));
    padding-top: 56px;
  }
  .hero-visual { display: none; }
  .section-heading { display: block; }
  .category-tabs:not(:empty) {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 84px);
    left: 0;
    right: 0;
    z-index: 58;
    align-items: center;
    padding: 8px 14px 10px;
    margin: 0;
    background: linear-gradient(180deg, rgba(8,8,8,.98), rgba(8,8,8,.9));
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 26px rgba(0,0,0,.18);
  }
  .category-tabs .category-back-sticky {
    min-height: 42px;
    padding: 9px 14px;
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
  }
  .category-tabs:not(:empty) ~ .menu-grid {
    padding-top: 76px;
  }
  .floating-cart-link:not([hidden]) {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 104px);
    right: 10px;
    z-index: 59;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
  }
  .category-tabs .category-current {
    max-width: calc(100vw - 190px);
    background: rgba(255,255,255,.1);
    color: var(--white);
    border-color: rgba(255,255,255,.18);
  }
  .offers-strip { grid-template-columns: 1fr; }
  .ai-host-stage { grid-template-columns: 1fr; border-radius: 20px; }
  .ai-host-screen { min-height: 250px; }
  .ai-host-face { width: 170px; height: 140px; gap: 28px; padding-top: 42px; }
  .ai-host-copy h2 { font-size: clamp(2rem, 12vw, 3.6rem); }
  .management-grid { grid-template-columns: 1fr; }
  .admin-nav { grid-column: auto; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
  .admin-view,
  .management-card.wide { grid-column: auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpv-layout,
  .tpv-workspace,
  .tpv-form,
  .cash-close-grid { grid-template-columns: 1fr; }
  .tpv-text-keyboard {
    grid-column: 1 / -1;
  }
  .tpv-keyboard-head {
    grid-template-columns: 1fr;
  }
  .tpv-keyboard-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpv-keyboard-row.row-letters-3 {
    width: 100%;
  }
  .shift-panel,
  .shift-panel.open { grid-template-columns: 1fr; }
  .settings-row,
  .settings-row.printer-row { grid-template-columns: 1fr; }
  .loyalty-row.offer-row,
  .loyalty-row.reward-row,
  .loyalty-card-main,
  .loyalty-quick-fields,
  .customer-filter-bar,
  .customer-admin-layout,
  .customer-loyalty-metrics,
  .staff-user-card > div:first-child,
  .points-rule { grid-template-columns: 1fr; }
.loyalty-quick-fields label:first-child { grid-column: auto; }
  .loyalty-head { align-items: stretch; flex-direction: column; }
  .settings-row > strong { padding-bottom: 0; }
  .category-order-row {
    grid-template-columns: 36px 1fr auto;
  }
  .category-order-row .btn {
    grid-column: 2 / 4;
    justify-self: start;
  }
  .category-order-actions {
    grid-column: 2 / 4;
  }
  .category-order-row input[type="checkbox"] {
    grid-column: 2 / 4;
    justify-self: start;
  }
  .category-product-list {
    padding-left: 12px;
    margin-left: 0;
  }
  .category-product-row,
  .product-channel-editor {
    grid-template-columns: 1fr;
  }
  .product-channel-toggle {
    justify-content: space-between;
  }
}

@media (max-width: 1180px) {
  body.admin-mode .management-grid {
    grid-template-columns: 1fr;
  }
  body.admin-mode .admin-nav {
    position: static;
    height: auto;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  body.admin-mode .admin-view,
  body.admin-mode .management-card.wide {
    grid-column: 1;
    margin: 14px;
  }
  body.admin-mode .tpv-workspace,
  body.admin-mode .tpv-sale-body,
  .google-key-row,
  .delivery-board,
  .delivery-workspace,
  .delivery-route-actions,
  .cash-workflow-panel,
  .cash-workflow-actions,
  .delivery-label-grid,
  .delivery-mini-grid,
  .cash-close-checklist,
  .delivery-close-panel,
  .delivery-inline-close,
  .pickup-payment-panel,
  .order-invalidation > div,
  .invalidated-grid,
  .report-filter-grid,
  .report-filter-grid.reports-wide,
  .expense-entry-panel,
  .expense-table > div,
  .report-sales-layout,
  .report-bar-row,
  .report-date-range,
  .report-kpis,
  .report-ai-grid,
  .driver-settlement-row,
  .driver-settlement-history-row,
  .driver-payment-correction,
  .pickup-payment-correction,
  .driver-settlement-flow,
  .orders-columns,
  .order-time-grid {
    grid-template-columns: 1fr;
  }
  .delivery-workspace-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .cash-manager-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cash-flow-action.primary {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .cart-pill { padding: 10px; min-width: 52px; justify-content: center; }
  .cart-pill span { display: none; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tab { min-height: 66px; }
  .tpv-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpv-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discount-row, .fulfillment, .whatsapp-config, .editor-row, .editor-product-form, .order-row-button, .order-detail-line { grid-template-columns: 1fr; }
  .custom-extra-row { grid-template-columns: 1fr; }
  .order-row-button small { grid-column: auto; }
  body.admin-mode .tpv-form,
  body.admin-mode .tpv-sale-body,
  body.admin-mode .tpv-phone-pad,
  body.admin-mode .tpv-address-field,
  body.admin-mode .tpv-address-detail-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .tpv-flow-tabs,
  .tpv-address-step-grid,
  body.admin-mode .tpv-address-step-grid {
    grid-template-columns: 1fr;
  }
  .tpv-flow-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tpv-flow-nav .btn {
    width: 100%;
    min-width: 0;
  }
  .order-actions { justify-content: flex-start; }
  .management-header,
  .compact-orders > div:not(.empty) { grid-template-columns: 1fr; display: grid; }
  .metric-grid { grid-template-columns: 1fr; }
  .option-action-grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-action-grid .option-collapsible .option-section-body {
    right: auto;
    left: 0;
    width: min(460px, calc(100vw - 54px));
  }
  h1 { font-size: clamp(3.2rem, 18vw, 5.8rem); }
}


.menu-upgrade {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(230px, 1fr);
  align-items: end;
  gap: 10px;
  margin: 12px 0 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.38);
}
.menu-upgrade label[data-menu-drink-field] {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-weight: 950;
}
.menu-upgrade label[data-menu-drink-field][hidden] {
  display: none;
}
.menu-upgrade select {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 950;
}

.menu-choice span {
  display: grid;
  gap: 2px;
}

.menu-choice em {
  color: var(--yellow);
  font-style: normal;
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .menu-upgrade,
  .option-action-grid {
    grid-template-columns: 1fr;
  }
  .option-section-body {
    width: calc(100vw - 54px);
  }
  .option-action-grid .option-collapsible:nth-child(2) .option-section-body {
    right: auto;
    left: 0;
  }
  .customer-web-history-head {
    align-items: stretch;
    flex-direction: column;
  }
  .customer-web-order {
    grid-template-columns: 1fr;
  }
}

.product-modal {
  overflow: hidden;
}

.product-modal .modal-card {
  width: min(780px, calc(100vw - 28px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 18px;
  scrollbar-gutter: stable;
}

.product-modal .modal-footer {
  position: static;
  z-index: 1;
  margin: 12px -18px -18px;
}

.product-modal [data-confirm-options] {
  touch-action: manipulation;
}

@media (max-height: 760px) {
  .product-modal {
    place-items: start center;
    padding: 8px 12px;
  }

  .product-modal .modal-card {
    max-height: calc(100dvh - 16px);
    padding-top: 12px;
  }

  .product-modal .modal-header,
  .product-modal .options-summary {
    gap: 8px;
  }

  .product-modal .modal-description {
    margin: 3px 0 5px;
  }

  .product-modal .option-action-grid-main {
    gap: 6px;
  }

  .product-modal .option-section-toggle {
    min-height: 44px;
  }

  body.admin-mode .tpv-form .address-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 150px;
    padding: 4px;
  }

  body.admin-mode .tpv-form .address-suggestions.is-reserved {
    min-height: 118px;
    height: 118px;
    max-height: 118px;
  }

  body.admin-mode .tpv-form .address-suggestion {
    min-height: 50px;
    padding: 5px 7px;
  }
}

.product-modal .option-collapsible:not(.collapsed) {
  grid-column: 1 / -1;
}

.product-modal .option-section-body {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  z-index: auto;
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: min(34vh, 280px);
  overflow: auto;
  margin-top: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(12, 12, 12, .98);
  box-shadow: none;
}

.product-modal .option-section-body-menu {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 100%;
  max-height: none;
  margin-top: 10px;
  box-shadow: none;
}

.product-modal .option-section-body-menu .option-section-pop-head {
  position: static;
}

.product-modal .option-collapsible.collapsed .option-section-body {
  display: none;
}

.option-section-pop-head {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -12px -12px 2px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(12, 12, 12, .99);
}

.option-section-pop-head strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 950;
}

.option-section-pop-head .btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
}

.product-modal .option-section-body .option-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-modal .option-section-body .option-choice {
  min-height: 52px;
}

.product-modal .option-section-body-note {
  width: 100%;
  max-height: none;
}

.product-modal .option-section-body-note textarea {
  min-height: 96px;
}

@media (max-width: 720px) {
  .product-modal .modal-card {
    max-height: min(82vh, 660px);
  }

  .product-modal .option-section-body {
    width: 100%;
    max-height: min(38vh, 300px);
  }
}





