:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-warm: #fff1df;
  --ink: #191513;
  --muted: #766b63;
  --line: rgba(25, 21, 19, 0.12);
  --tomato: #8f1f2a;
  --tomato-dark: #64151d;
  --basil: #347a4c;
  --gold: #f0b64f;
  --charcoal: #231b1d;
  --shadow: 0 18px 54px rgba(83, 45, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

body.dialog-open .mobile-tabbar {
  display: none;
}

body.admin-reports-route .hero,
body.admin-reports-route .delivery-engine,
body.admin-reports-route .checkout-section,
body.admin-reports-route .status-section,
body.admin-reports-route .legal-section,
body.admin-reports-route .promo-band,
body.admin-reports-route .booking-lab,
body.admin-reports-route .service-strip,
body.admin-reports-route .site-footer {
  display: none !important;
}

body.admin-reports-route {
  background: #eef1ed;
}

body.admin-reports-route .topbar {
  min-height: 30px;
  padding-block: 5px;
  background: #ffffff;
  font-size: 13px;
}

body.admin-reports-route .site-header {
  min-height: 64px;
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

body.admin-reports-route .brand-mark {
  width: 40px;
  height: 40px;
}

body.admin-reports-route .header-nav {
  gap: 18px;
}

body.admin-reports-route .ops-grid {
  grid-template-columns: 1fr;
  background: #eef1ed;
  gap: 14px;
  padding: 18px clamp(16px, 3vw, 40px) 34px;
}

body.admin-reports-route .operator-panel,
body.admin-reports-route .catalog-panel,
body.admin-reports-route .kitchen-panel,
body.admin-reports-route .analytics-panel {
  display: none !important;
}

body.admin-reports-route .reports-panel {
  width: min(100%, 1480px);
  margin-inline: auto;
}

body.admin-reports-route .admin-panel {
  box-shadow: none;
}

body.admin-reports-route .admin-login-panel {
  display: none !important;
}

body.admin-reports-route .reports-panel {
  gap: 16px;
  padding: 22px;
  border-color: rgba(25, 21, 19, 0.1);
  background: #f9faf7;
  scroll-margin-top: 82px;
}

body.admin-reports-route .reports-panel .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding-bottom: 2px;
}

body.admin-reports-route .reports-panel .section-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
}

body.admin-authed .admin-login-panel .section-heading {
  display: none;
}

[data-admin-reports-link][hidden],
[data-admin-login-link][hidden],
[data-admin-cabinet][hidden],
#admin-login-form[hidden],
#admin-login-note[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  min-height: 38px;
  padding: 8px clamp(16px, 5vw, 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.topbar-phone {
  color: var(--tomato-dark);
  font-weight: 850;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(255, 248, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  max-width: 100vw;
}

.brand,
.header-nav,
.hero-actions,
.service-strip,
.mode-switch,
.cart-trigger,
.button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--tomato);
  color: white;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
  min-width: 0;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small {
  color: var(--muted);
}

.header-nav {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.storefront-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.storefront-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.storefront-switch button.is-active {
  background: var(--charcoal);
  color: #fff;
}

.cart-trigger {
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  cursor: pointer;
}

.cart-trigger strong {
  color: var(--gold);
}

.cart-trigger.is-updated,
.mobile-tabbar button.is-updated {
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(143, 31, 42, 0.12);
}

.install-trigger {
  min-height: 44px;
  border: 1px solid var(--tomato);
  border-radius: 999px;
  background: #fff0ec;
  color: var(--tomato-dark);
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
}

.install-trigger[hidden],
[data-install-app][hidden],
.pwa-install-hint[hidden],
body.checkout-active .pwa-install-hint {
  display: none !important;
}

.pwa-install-hint {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.booking-lab {
  padding: 42px clamp(16px, 5vw, 64px);
  background: #fffaf2;
  border-block: 1px solid var(--line);
}

.booking-lab .section-heading {
  max-width: 940px;
  margin: 0 auto 22px;
}

.booking-lab .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-weight: 650;
}

.booking-lab-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.booking-form,
.booking-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.booking-form-grid input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 750;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-actions button,
.booking-table-card button {
  min-height: 42px;
  border: 1px solid var(--tomato);
  border-radius: 8px;
  background: #fff6f1;
  color: var(--tomato-dark);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.booking-actions button[type="submit"] {
  background: var(--tomato);
  color: #fff;
}

.booking-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.booking-results {
  min-height: 220px;
  padding: 18px;
}

.booking-status-card,
.booking-calendar-day,
.booking-table-card,
.booking-created-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.booking-status-card strong,
.booking-created-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--tomato-dark);
  font-size: 20px;
}

.booking-calendar-grid,
.booking-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.booking-calendar-day strong,
.booking-table-card strong {
  display: block;
  margin-bottom: 6px;
}

.booking-intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-intervals span,
.booking-table-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f2ece4;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.booking-table-card.is-selected {
  border-color: var(--basil);
  box-shadow: inset 5px 0 0 var(--basil);
}

.booking-table-card.is-locked,
.booking-table-card.is-busy {
  opacity: 0.62;
}

.booking-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.table-status {
  padding: 42px clamp(16px, 5vw, 64px);
  background: #fffaf2;
  border-block: 1px solid var(--line);
}

.table-status .section-heading {
  max-width: 940px;
  margin: 0 auto 22px;
}

.table-status .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
}

.table-status-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.table-status-actions,
.table-status-results,
.table-status-card,
.table-map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.table-status-results {
  display: grid;
  gap: 14px;
  min-height: 220px;
}

.table-status-actions {
  display: grid;
  align-content: start;
  gap: 12px;
}

.table-status-card strong,
.table-map-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--tomato-dark);
  font-size: 20px;
}

.table-status-card p {
  margin: 0;
  color: var(--muted);
}

.table-status-warning {
  box-shadow: inset 5px 0 0 var(--gold);
}

.table-map-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-map-card header span {
  color: var(--muted);
  font-weight: 850;
}

.table-map {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px dashed rgba(25, 21, 19, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 21, 19, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 21, 19, 0.06) 1px, transparent 1px),
    #fffdf8;
  background-size: 10% 10%;
}

.table-map-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(25, 21, 19, 0.14);
  border-radius: 8px;
  background: #f6f1eb;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(83, 45, 22, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.table-map-node small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.table-map-node.is-free {
  border-color: rgba(52, 122, 76, 0.7);
  background: #eaf7ee;
}

.table-map-node.is-busy {
  border-color: rgba(143, 31, 42, 0.62);
  background: #fbe8e7;
}

.table-map-node.is-locked {
  opacity: 0.58;
}

.pwa-install-hint strong {
  color: var(--tomato-dark);
}

.pwa-install-hint span {
  color: var(--muted);
  font-size: 14px;
}

.pwa-install-hint button {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3eee8;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: center;
  overflow: hidden;
  max-width: 100vw;
  padding: 64px clamp(18px, 7vw, 92px) 52px;
}

.hero,
.service-strip,
.promo-band {
  display: none;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.94) 0%, rgba(20, 17, 15, 0.76) 36%, rgba(20, 17, 15, 0.12) 78%),
    linear-gradient(0deg, rgba(20, 17, 15, 0.86) 0%, rgba(20, 17, 15, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  min-width: 0;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-facts span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.button {
  min-height: 46px;
  max-width: 100%;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--tomato);
  color: white;
}

.button.primary:hover {
  background: var(--tomato-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.service-strip {
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(16px, 6vw, 80px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-strip span {
  display: block;
  color: var(--basil);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
}

.service-strip p {
  margin: 4px 0 0;
  color: var(--muted);
}

.service-phone span {
  font-size: clamp(18px, 2.8vw, 26px);
}

.service-phone a {
  color: var(--tomato-dark);
}

.delivery-engine,
.checkout-section,
.promo-band,
.status-section,
.ops-grid,
.legal-section {
  padding: 42px clamp(16px, 6vw, 80px) 64px;
}

.delivery-engine {
  background: #fffaf4;
  padding-top: 22px;
}

.engine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

.menu-shell {
  min-width: 0;
}

.promo-strip {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.promo-card {
  display: grid;
  min-height: 92px;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 28px rgba(83, 45, 22, 0.08);
  cursor: pointer;
}

.promo-card-title {
  color: var(--tomato-dark);
  font-size: 17px;
  font-weight: 900;
}

.promo-card small {
  color: var(--muted);
  line-height: 1.35;
}

.menu-head,
.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 420px);
  align-items: end;
  gap: 24px;
}

.menu-head {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  margin-bottom: 8px;
}

.menu-head > div {
  display: none;
}

.menu-head .search-field {
  grid-column: 2;
}

.search-field input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.promo-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
}

.checkout-form textarea {
  min-height: 92px;
  padding-block: 12px;
  resize: vertical;
}

.address-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.category-tabs {
  position: sticky;
  z-index: 30;
  top: 73px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
  background: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(12px);
}

.category-tabs button,
.mode-switch button,
.option-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 16px;
  cursor: pointer;
}

.category-tabs button,
.mode-switch button {
  white-space: nowrap;
}

.option-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding-block: 10px;
  height: auto;
  min-width: min(100%, 220px);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.option-group .option-pill {
  width: 100%;
  justify-content: flex-start;
  word-break: normal;
}

.category-tabs button.is-active,
.mode-switch button.is-active,
.option-pill.is-active {
  border-color: var(--tomato);
  background: #fff0ec;
  color: var(--tomato-dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
}

.catalog-grid.menu-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.catalog-pane {
  display: contents;
}

.menu-category-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 154px;
}

.category-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.category-section-title h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.category-section-title span {
  color: var(--muted);
  font-weight: 850;
}

.menu-category-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
}

.product-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(143, 31, 42, 0.26);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(83, 45, 22, 0.12);
  outline: none;
}

.product-card:hover .add-button,
.product-card:focus-visible .add-button {
  background: var(--charcoal);
  color: white;
}

.product-media {
  position: relative;
  height: 190px;
  background: transparent;
  overflow: hidden;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  filter: drop-shadow(0 12px 10px rgba(25, 21, 19, 0.16));
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.product-body {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 10px 10px 12px;
}

.product-body h3 {
  margin: 0;
  min-height: 2.24em;
  font-size: 24px;
  line-height: 1.12;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-body small {
  display: none;
  color: var(--muted);
  font-weight: 700;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 21px;
  font-weight: 900;
}

.add-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #f0f1f4;
  color: var(--ink);
  padding: 0 24px;
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.checkout-section {
  align-items: start;
  background: var(--charcoal);
  color: white;
}

.checkout-copy p:not(.eyebrow),
.form-note {
  color: rgba(255, 255, 255, 0.72);
}

.checkout-form {
  display: grid;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.delivery-availability-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(239, 203, 121, 0.68);
  border-radius: 8px;
  background: rgba(239, 203, 121, 0.16);
  color: #fff4d3;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.cart-delivery-availability {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(161, 99, 13, 0.34);
  border-radius: 8px;
  background: rgba(239, 203, 121, 0.26);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.customer-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.customer-auth.is-confirmed {
  border-color: rgba(77, 214, 146, 0.56);
  background: rgba(77, 214, 146, 0.11);
}

.customer-auth.is-pending {
  border-color: rgba(239, 203, 121, 0.58);
}

.customer-auth strong {
  display: block;
  font-size: 15px;
}

.customer-auth p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.customer-auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-auth-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.customer-auth-actions button:disabled,
.checkout-form input:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.checkout-form label,
.promo-field,
.policy-line {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
}

.policy-line {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.policy-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.mode-switch {
  gap: 8px;
}

.cart-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}

.cart-panel-inline {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 118px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-panel-inline .cart-items {
  max-height: min(34vh, 330px);
}

.cart-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f2eee9;
}

.cart-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.cart-mode-tabs button.is-active {
  background: var(--surface);
  color: var(--tomato-dark);
  box-shadow: 0 5px 14px rgba(83, 45, 22, 0.12);
}

.cart-mode-tabs button:disabled,
.mode-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cart-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 21, 19, 0.42);
}

.cart-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  max-width: 100vw;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  box-shadow: -18px 0 54px rgba(25, 21, 19, 0.22);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-panel.is-open .cart-sheet {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.cart-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.95;
}

.cart-style-switch {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.72);
}

.cart-style-switch span,
.cart-table-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cart-style-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.cart-style-switch button.is-active {
  background: var(--charcoal);
  color: white;
}

.cart-table-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(143, 31, 42, 0.22);
  border-radius: 12px;
  background: #fff5ee;
}

.cart-table-control small {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 900;
}

.cart-table-control input {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-row {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row.is-editable {
  cursor: pointer;
}

.cart-row.is-editable:hover {
  border-color: rgba(143, 31, 42, 0.28);
  background: #fffaf3;
}

.cart-row-head,
.cart-row-actions,
.cart-summary div,
.promo-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cart-row-head strong,
.cart-summary span,
.cart-summary strong {
  overflow-wrap: anywhere;
}

.cart-row small {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
}

.upsell-box {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-warm);
  color: var(--ink);
}

.upsell-box:empty {
  display: none;
}

.upsell-box p {
  margin: 0;
  color: var(--muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-control button,
.promo-field button {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.promo-field button {
  min-width: 52px;
  background: var(--charcoal);
  color: white;
}

.cart-summary {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-total {
  font-size: 18px;
}

body[data-cart-style="compact"] .cart-panel-inline,
body[data-cart-style="compact"] .cart-sheet {
  background: #fffdf9;
}

body[data-cart-style="compact"] .upsell-box {
  display: none;
}

body[data-cart-style="register"] .cart-panel-inline,
body[data-cart-style="register"] .cart-sheet {
  border-color: #241c1e;
  background: #fbfaf6;
  box-shadow: 0 16px 44px rgba(25, 21, 19, 0.16);
}

body[data-cart-style="register"] .cart-row,
body[data-cart-style="register"] .cart-summary,
body[data-cart-style="register"] .promo-field input {
  border-style: dashed;
}

body[data-cart-style="register"] .cart-row {
  background: white;
}

body[data-cart-style="register"] .cart-style-switch button.is-active {
  background: #1c1917;
}

body[data-cart-style="soft"] .cart-panel-inline,
body[data-cart-style="soft"] .cart-sheet {
  border-color: #ead9c1;
  background: #fff9ef;
  box-shadow: 0 18px 48px rgba(110, 72, 35, 0.16);
}

body[data-cart-style="soft"] .cart-row,
body[data-cart-style="soft"] .cart-mode-tabs,
body[data-cart-style="soft"] .cart-style-switch {
  background: #fffefa;
}

body[data-cart-style="soft"] .cart-style-switch button.is-active {
  background: var(--tomato);
}

.product-dialog {
  width: min(940px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(25, 21, 19, 0.34);
}

.product-dialog::backdrop {
  background: rgba(25, 21, 19, 0.46);
}

.dialog-card {
  position: relative;
  margin: 0;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
}

.dialog-visual {
  min-height: 560px;
  background: var(--surface-warm);
}

.dialog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
  max-height: min(760px, calc(100vh - 80px));
  overflow: auto;
}

.dialog-content p {
  margin: 0;
  color: var(--muted);
}

.dialog-content small {
  color: var(--muted);
}

.option-group,
.addon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-group[hidden],
.addon-grid[hidden] {
  display: none !important;
}

.kit-builder {
  display: grid;
  gap: 14px;
}

.kit-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.kit-steps button,
.kit-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 0 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.kit-steps button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kit-steps span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f0f1f4;
  color: var(--ink);
  font-size: 12px;
}

.kit-steps button.is-active {
  border-color: var(--tomato);
  background: #fff0ec;
  color: var(--tomato-dark);
}

.kit-steps button.is-done span {
  background: var(--basil);
  color: white;
}

.kit-stage {
  display: grid;
  gap: 12px;
}

.kit-stage > div:first-child {
  display: grid;
  gap: 2px;
}

.kit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kit-option {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.kit-option span {
  font-weight: 800;
  white-space: normal;
  line-height: 1.22;
}

.kit-option strong {
  color: var(--tomato-dark);
}

.kit-option.is-active {
  border-color: var(--tomato);
  background: #fff0ec;
  box-shadow: inset 0 0 0 1px rgba(143, 31, 42, 0.18);
}

.kit-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.kit-controls button:disabled,
.dialog-add:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.addon-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
}

.dialog-buy-row {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 38%);
  box-shadow: 0 -10px 22px rgba(255, 255, 255, 0.92);
}

.dialog-qty {
  display: inline-grid;
  grid-template-columns: 42px 42px 42px;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f7f9;
  overflow: hidden;
}

.dialog-qty[hidden] {
  display: none;
}

.dialog-qty button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  cursor: pointer;
}

.dialog-qty strong {
  text-align: center;
  font-size: 17px;
}

.dialog-add {
  width: 100%;
}

.product-dialog.is-business-lunch .dialog-buy-row {
  grid-template-columns: minmax(0, 1fr);
}

.product-dialog.is-pizza-product .option-group:not(.kit-builder) {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #faf7f2;
}

.product-dialog.is-pizza-product .option-pill {
  flex: 1 1 120px;
  justify-content: center;
}

.product-dialog.is-pizza-product #size-options {
  order: 3;
}

.product-dialog.is-pizza-product #dough-options {
  order: 4;
}

.product-dialog.is-pizza-product #addon-options {
  order: 5;
}

.product-dialog.is-pizza-product .dialog-buy-row {
  order: 6;
}

.product-dialog.is-pizza-product #dialog-description {
  order: 7;
}

.product-dialog.is-pizza-product #dialog-composition {
  order: 8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.section-heading {
  max-width: 760px;
}

.promo-band {
  display: grid;
  gap: 22px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promo-grid button,
.admin-toolbar button,
.report-toolbar button,
.report-planned-form button,
.report-fill-flow button,
.report-table button,
.admin-logout,
.order-card select,
.order-card button,
.order-card a {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.status-section {
  background: #fffdf8;
}

.status-card,
.admin-panel,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.status-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.status-top h3 {
  margin: 0;
  font-size: 28px;
}

.button.dark,
.button.secondary.dark {
  border-color: var(--line);
  background: var(--charcoal);
  color: white;
}

.status-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-steps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.status-steps span.is-current {
  border-color: var(--tomato);
  background: #fff0ec;
  color: var(--tomato-dark);
  font-weight: 850;
}

.status-update,
.status-notification-control {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(155, 97, 38, 0.38);
  border-radius: 8px;
  background: #fff8ed;
}

.status-update {
  color: var(--tomato-dark);
  font-weight: 800;
}

.status-update.is-error {
  border-color: rgba(165, 45, 33, 0.42);
  background: #fff1ee;
  color: #8d251b;
}

.status-notification-control {
  display: grid;
  gap: 8px;
}

.status-notification-control p,
.status-notification-copy {
  margin: 0;
  color: var(--muted);
}

.status-notification-control .button {
  justify-self: start;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  background: var(--charcoal);
}

.admin-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.admin-panel[hidden],
[data-admin-protected][hidden] {
  display: none;
}

.admin-toolbar,
.admin-orders,
.kitchen-board,
.catalog-admin-list,
.analytics-grid,
.report-toolbar,
.report-health,
.report-sync-status,
.report-fill-flow,
.report-planned-form,
.report-planned-list,
.report-forecast,
.report-step,
.report-expense-grid,
.report-manual-row,
.report-day,
.report-history,
.report-ledger,
.mini-admin-form {
  display: grid;
  gap: 12px;
}

.admin-cabinet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-cabinet-actions div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-cabinet-actions span {
  color: var(--muted);
  font-size: 14px;
}

.admin-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-card,
.kitchen-ticket,
.metric-card,
.admin-list-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.mini-admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.mini-admin-form input,
.mini-admin-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.mini-admin-form button,
.admin-logout,
.admin-list-row button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--tomato);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.admin-list-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
}

.analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reports-panel {
  grid-column: 1 / -1;
}

.reports-panel.is-loading .report-metrics,
.reports-panel.is-loading .report-day,
.reports-panel.is-loading .report-history,
.reports-panel.is-loading .report-forecast,
.reports-panel.is-loading .report-planned-list,
.reports-panel.is-loading .report-ledger {
  opacity: 0.58;
}

.report-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 99, 64, 0.18);
  border-radius: 8px;
  background: #f4fbf3;
  color: var(--ink);
}

.report-sync-status {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 31, 42, 0.18);
  border-radius: 8px;
  background: #fff7f0;
}

.report-sync-status[hidden] {
  display: none;
}

.report-health[hidden] {
  display: none;
}

.report-sync-status div {
  display: grid;
  grid-column: 1 / -1;
  gap: 2px;
}

.report-sync-status .report-spinner + div {
  grid-column: auto;
}

.report-sync-status span {
  color: var(--muted);
}

.report-loading[hidden] {
  display: none;
}

.report-loading div {
  display: grid;
  gap: 2px;
}

.report-loading span {
  color: var(--muted);
}

.report-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid rgba(46, 99, 64, 0.18);
  border-top-color: var(--basil);
  border-radius: 999px;
  animation: report-spin 0.8s linear infinite;
}

@keyframes report-spin {
  to {
    transform: rotate(360deg);
  }
}

.report-health {
  padding: 10px 12px;
  border: 1px solid rgba(52, 122, 76, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf5 100%);
  font-size: 13px;
}

.report-health div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-health p,
.report-health span {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.report-health strong {
  color: #1f6d42;
}

.report-toolbar {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(25, 21, 19, 0.08);
  backdrop-filter: blur(12px);
}

.report-toolbar-group {
  display: grid;
  gap: 10px;
  align-items: end;
}

.report-toolbar-period {
  grid-template-columns: minmax(160px, 1.1fr) repeat(2, minmax(142px, 0.82fr)) minmax(128px, 0.75fr) minmax(220px, 1.2fr);
}

.report-toolbar-actions {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.report-toolbar label,
.report-planned-form label,
.report-fill-flow label,
.report-extra-row {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.report-toolbar input,
.report-toolbar select,
.report-planned-form input,
.report-planned-form select,
.report-planned-form textarea,
.report-fill-flow input,
.report-fill-flow select,
.report-fill-flow textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(25, 21, 19, 0.14);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 780;
}

.report-fill-flow textarea,
.report-planned-form textarea {
  min-height: 72px;
  padding-block: 10px;
  resize: vertical;
}

.report-toolbar button,
.report-planned-form button,
.report-fill-flow button {
  background: var(--charcoal);
  color: white;
}

.report-toolbar button {
  min-height: 42px;
  padding-inline: 12px;
  line-height: 1.12;
}

.report-toolbar button[data-report-month-shift] {
  background: #ffffff;
  color: var(--charcoal);
}

.report-toolbar button[data-report-sync-saby] {
  background: var(--tomato);
}

.report-toolbar button[data-report-fill] {
  background: var(--basil);
}

.report-toolbar button[data-report-planned] {
  background: #6d2840;
}

.report-toolbar button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.report-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.report-sidebar {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.report-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.report-sidebar a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d8d2c8;
  flex: 0 0 auto;
}

.report-sidebar a:hover,
.report-sidebar a:focus-visible {
  background: #f0f5f1;
  color: var(--basil);
  outline: none;
}

.report-sidebar a:hover::before,
.report-sidebar a:focus-visible::before {
  background: var(--basil);
}

.report-sidebar-summary {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(25, 21, 19, 0.1);
}

.report-sidebar-card,
.report-sidebar-kpis {
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #fbfcfa;
}

.report-sidebar-card {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.report-sidebar-card-muted {
  background: #fffdf8;
}

.report-sidebar-card span,
.report-sidebar-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-sidebar-card strong,
.report-sidebar-kpis strong {
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.12;
}

.report-sidebar-card small {
  color: var(--muted);
  line-height: 1.35;
}

.report-sidebar-kpis {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.report-sidebar-kpis div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(25, 21, 19, 0.08);
}

.report-sidebar-kpis div:last-child {
  border-bottom: 0;
}

.report-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.report-metrics {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
  scroll-margin-top: 180px;
}

.report-forecast,
.report-ledger,
.report-day,
.report-history {
  scroll-margin-top: 180px;
}

.report-metrics:target,
.report-forecast:target,
.report-ledger:target,
.report-day:target,
.report-history:target {
  box-shadow: inset 4px 0 0 var(--basil);
}

.report-section-head,
.report-subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.report-section-head h3,
.report-subsection-head h4 {
  margin: 0;
}

.report-section-head h3 {
  font-size: 26px;
  line-height: 1.08;
}

.report-section-head small,
.report-subsection-head small {
  max-width: 520px;
  color: var(--muted);
  text-align: right;
}

.report-focus-grid,
.report-secondary-grid {
  display: grid;
  gap: 10px;
}

.report-focus-grid {
  grid-template-columns: 1.25fr 1.05fr 1fr 1fr;
}

.report-secondary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-subsection {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.report-metrics .metric-card {
  min-height: 104px;
  align-content: start;
  background: #ffffff;
}

.report-focus-grid .metric-card {
  min-height: 118px;
}

.report-focus-grid .metric-card:first-child,
.report-focus-grid .metric-card:nth-child(2) {
  background: #f7fff8;
  border-color: rgba(52, 122, 76, 0.22);
}

.report-focus-grid .metric-card:nth-child(3) {
  background: #fff8fb;
  border-color: rgba(143, 31, 42, 0.18);
}

.report-focus-grid .metric-card:nth-child(4) {
  background: #fff9f4;
}

.report-subsection:nth-of-type(3) .metric-card {
  background: #fffdfa;
}

.report-disclosure {
  display: block;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.report-disclosure summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.report-disclosure summary::-webkit-details-marker {
  display: none;
}

.report-disclosure summary::before {
  content: "+";
  width: 22px;
  height: 22px;
  border: 1px solid rgba(25, 21, 19, 0.16);
  border-radius: 999px;
  color: var(--muted);
  display: inline-grid;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-items: center;
  font-weight: 900;
}

.report-disclosure[open] summary::before {
  content: "-";
}

.report-disclosure summary span {
  display: grid;
  gap: 3px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.report-disclosure summary strong {
  color: var(--charcoal);
  font-size: 17px;
}

.report-disclosure summary small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-disclosure summary em {
  grid-column: 3;
  grid-row: 1;
  color: var(--charcoal);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.report-disclosure .report-secondary-grid {
  padding: 0 14px 14px;
}

.metric-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.report-forecast {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
  scroll-margin-top: 82px;
}

.report-forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-forecast-card,
.report-planned-form,
.report-planned-row,
.report-ledger-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.report-forecast-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #ffffff;
}

.report-forecast-card span,
.report-forecast-card small,
.report-planned-row small,
.report-ledger-head small,
.report-table-row small {
  color: var(--muted);
}

.report-forecast-card strong {
  font-size: 23px;
}

.is-positive {
  color: #287a45 !important;
}

.is-negative {
  color: var(--tomato-dark) !important;
}

.report-fill-flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.report-fill-flow[hidden],
.report-planned-form[hidden] {
  display: none;
}

.report-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 28px 90px rgba(25, 21, 19, 0.28);
  overflow: auto;
}

.report-modal::backdrop {
  background: rgba(25, 21, 19, 0.48);
}

.report-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
}

.report-modal-head h3 {
  margin: 0;
  font-size: 26px;
}

.report-modal-head button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--tomato-dark);
  font-weight: 850;
  cursor: pointer;
}

.report-modal .report-planned-form {
  border-width: 0 0 1px;
  border-radius: 0;
}

.report-modal .report-planned-list {
  padding: 16px;
}

.report-planned-form {
  padding: 16px;
}

.report-planned-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-planned-row,
.report-ledger-head {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.report-planned-table {
  display: grid;
  gap: 10px;
}

.report-planned-row {
  grid-template-columns: minmax(0, 1fr) 170px 130px auto;
}

.report-planned-form input:disabled {
  opacity: 0.55;
  background: #f6f3ed;
}

.report-planned-row div,
.report-table-row span,
.report-table-row > strong {
  display: grid;
  gap: 4px;
}

.report-planned-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--tomato-dark);
  font-weight: 850;
  cursor: pointer;
}

.report-planned-actions,
.report-planned-row .report-planned-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.report-planned-actions button,
.report-planned-row-actions button {
  flex: 1 1 150px;
}

.report-ledger-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.report-ledger-head small {
  max-width: 100%;
}

.report-history-list {
  display: grid;
  gap: 8px;
}

.report-history-row {
  display: grid;
  grid-template-columns: 128px minmax(150px, 0.6fr) minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.report-history-row span,
.report-history-row small,
.report-history-row em {
  color: var(--muted);
}

.report-history-row em {
  font-style: normal;
  text-align: right;
}

.report-flow-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.report-flow-head h3,
.report-step h4 {
  margin: 0;
}

.report-step-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.report-inline-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-step {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.report-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-imports,
.report-formula {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-warm);
}

.report-imports span,
.report-formula p {
  margin: 0;
  color: var(--muted);
}

.report-layout-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(56, 73, 64, 0.14);
  border-radius: 8px;
  background: #f7f7f1;
}

.report-layout-select {
  min-width: min(240px, 100%);
}

.report-layout-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.report-layout-control span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.report-layout-control button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 850;
}

.report-layout-control button.is-active {
  border-color: var(--tomato-dark);
  background: var(--tomato-dark);
  color: white;
}

.report-layout-control button:focus-visible,
.report-layout-select select:focus-visible {
  outline: 3px solid rgba(143, 31, 42, 0.28);
  outline-offset: 2px;
}

.report-expense-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.report-expense-grid[data-expense-columns="1"],
.report-manual-row[data-expense-columns="1"] {
  grid-template-columns: 1fr;
}

.report-expense-grid[data-expense-columns="2"],
.report-manual-row[data-expense-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-expense-grid[data-expense-columns="3"],
.report-manual-row[data-expense-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-expense-grid[data-expense-view="ledger"],
.report-manual-row[data-expense-view="ledger"] {
  grid-template-columns: 1fr;
}

.report-expense-grid label {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.report-expense-grid[data-expense-view="compact"] label,
.report-expense-grid[data-expense-view="ledger"] label {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.5fr);
  align-items: center;
  min-height: auto;
}

.report-expense-grid[data-expense-view="ledger"] label {
  border-style: dashed;
  background: #fffdf8;
}

.report-expense-grid[data-expense-density="tight"] label {
  min-height: 58px;
  padding: 8px;
  gap: 4px;
}

.report-expense-grid[data-expense-density="wide"] label {
  min-height: 92px;
  padding: 14px;
}

.report-manual-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-extra-row {
  grid-template-columns: repeat(2, minmax(120px, 0.7fr)) repeat(2, minmax(130px, 0.8fr)) repeat(3, minmax(145px, 1fr)) minmax(120px, 0.6fr);
  align-items: end;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.report-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-day,
.report-history,
.report-ledger {
  scroll-margin-top: 82px;
}

.report-day:not(:empty),
.report-history:not(:empty),
.report-ledger:not(:empty) {
  padding: 16px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.report-day:not(:empty) {
  gap: 12px;
}

.report-day-grid div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.report-day-grid span {
  color: var(--muted);
  font-weight: 800;
}

.report-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.report-table-head,
.report-table-row {
  display: grid;
  grid-template-columns: 112px minmax(132px, 0.82fr) minmax(116px, 0.62fr) minmax(116px, 0.62fr) minmax(220px, 1.15fr) minmax(132px, 0.72fr) 64px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 980px;
  padding: 11px 12px;
}

.report-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #26272a;
  color: #ffffff;
  font-weight: 850;
}

.report-table-row:nth-child(odd) {
  background: #fbfcfa;
}

.report-table-row:nth-child(even) {
  background: #ffffff;
}

.report-table-row.is-selected {
  box-shadow: inset 5px 0 0 var(--basil);
  background: #f2fbf4;
}

.report-shift-row[data-report-open-day] {
  cursor: pointer;
}

.report-shift-row[data-report-open-day]:hover {
  background: #f8f5ed;
}

.report-shift-row[data-report-open-day]:focus-visible,
.report-date-link:focus-visible,
.report-day-detail:focus-visible {
  outline: 3px solid rgba(38, 122, 69, 0.35);
  outline-offset: 2px;
}

.report-table-total {
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 2px solid var(--charcoal);
  background: #eff4ef !important;
}

.report-table-total span,
.report-table-total strong {
  font-weight: 900;
}

.report-table-row strong {
  color: var(--tomato-dark);
}

.report-table-row > strong,
.report-table-row > span {
  min-width: 0;
}

.report-table-row > span,
.report-table-row > strong {
  font-size: 14px;
}

.report-table-row small {
  overflow-wrap: anywhere;
  line-height: 1.32;
}

.report-date-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 38px;
  border: 1px solid rgba(25, 21, 19, 0.12);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.report-date-link:hover {
  border-color: var(--basil);
  color: var(--basil);
}

.report-date-link strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.1;
}

.report-shift-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef2f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-shift-status.is-filled {
  background: #eef8ef;
  color: #287a45;
}

.report-shift-status.is-partial {
  background: #fff7e2;
  color: #8a5a00;
}

.report-day-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 8px;
  background: #ffffff;
  margin-top: 14px;
}

.report-day-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.report-day-detail-head h3 {
  margin: 0;
}

.report-day-detail-head small,
.report-day-detail-summary button,
.report-operation-row small,
.report-detail-filter-note,
.report-day-history-inline span {
  color: var(--muted);
}

.report-day-detail-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.report-day-detail-summary button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.report-day-detail-summary button:hover,
.report-day-detail-summary button.is-active {
  border-color: var(--tomato);
  background: #fff7f0;
}

.report-day-detail-summary button.is-active {
  box-shadow: inset 4px 0 0 var(--tomato);
}

.report-day-detail-summary button span {
  color: var(--muted);
}

.report-day-detail-summary button strong {
  color: var(--tomato-dark);
  font-size: 20px;
}

.report-day-detail-summary button small {
  color: var(--muted);
}

.report-detail-filter-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f0e8;
  font-weight: 800;
}

.report-personal-analytics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-personal-analytics div,
.report-personal-analytics button {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(110, 31, 38, 0.18);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--ink);
  text-align: left;
}

.report-personal-analytics button {
  cursor: pointer;
}

.report-personal-analytics button:hover {
  border-color: var(--tomato-dark);
}

.report-personal-analytics span,
.report-personal-analytics small {
  color: var(--muted);
  font-weight: 800;
}

.report-personal-analytics strong {
  color: var(--tomato-dark);
}

.report-operation-list {
  display: grid;
  gap: 8px;
}

.report-operation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px 112px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: inset 5px 0 0 #d8d1c7;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.report-operation-row[role="button"] {
  cursor: pointer;
}

.report-operation-row[role="button"]:hover,
.report-operation-row[role="button"]:focus-visible {
  border-color: rgba(110, 31, 37, 0.34);
  box-shadow: inset 5px 0 0 var(--tomato), 0 10px 28px rgba(35, 24, 20, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.report-operation-row.is-type-expense {
  background: #fffaf4;
  box-shadow: inset 5px 0 0 #e9b650;
}

.report-operation-row.is-type-income,
.report-operation-row.is-type-adjustment {
  background: #f7fff8;
  box-shadow: inset 5px 0 0 #4b9458;
}

.report-operation-row.is-type-transfer {
  background: #f7fbff;
  box-shadow: inset 5px 0 0 #4e7faa;
}

.report-operation-row.is-location-personal {
  background: #fff7fb;
  box-shadow: inset 5px 0 0 #b66a9d;
}

.report-operation-row.is-deleted {
  background: #f3f1ee;
  border-style: dashed;
  color: rgba(25, 21, 19, 0.68);
  box-shadow: inset 5px 0 0 #8b8177;
}

.report-operation-row.is-deleted > strong {
  color: #8b8177;
}

.report-operation-row.is-pay-cash > strong {
  color: #7b5a16;
}

.report-operation-row.is-pay-bank > strong {
  color: #285c8f;
}

.report-operation-row.is-pay-transfer > strong {
  color: #6e1f25;
}

.report-operation-row div {
  display: grid;
  gap: 4px;
}

.report-operation-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.report-operation-title-line strong {
  min-width: 0;
}

.report-operation-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
}

.report-operation-chips span {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid rgba(25, 21, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-operation-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--tomato-dark);
  font-weight: 850;
  cursor: pointer;
}

.report-operation-row .report-operation-edit-button {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(52, 122, 76, 0.25);
  background: #f6fff7;
  color: var(--basil);
  font-size: 13px;
}

.report-operation-row .report-operation-edit-button:hover,
.report-operation-row .report-operation-edit-button:focus-visible {
  border-color: var(--basil);
  outline: none;
}

.report-operation-row.is-deleted button {
  background: #ffffff;
  color: var(--basil);
  border-color: rgba(52, 122, 76, 0.28);
}

.report-operation-edit-form {
  display: grid;
  gap: 0;
}

.report-operation-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.report-operation-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.report-operation-edit-grid label.wide {
  grid-column: 1 / -1;
}

.report-operation-edit-grid input,
.report-operation-edit-grid select,
.report-operation-edit-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
}

.report-operation-edit-grid textarea {
  resize: vertical;
}

.report-operation-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.report-operation-edit-help {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 122, 76, 0.18);
  border-radius: 8px;
  background: #f6fff7;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.report-operation-edit-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--tomato-dark);
  font-weight: 850;
  cursor: pointer;
}

.report-operation-edit-actions button[type="submit"] {
  background: var(--tomato-dark);
  border-color: var(--tomato-dark);
  color: white;
}

.report-operation-edit-dialog.is-restore-mode .report-operation-edit-actions button[type="submit"] {
  background: var(--basil);
  border-color: var(--basil);
}

.report-operation-edit-note {
  min-height: 22px;
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-weight: 800;
}

.report-day-history-inline {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.metric-card strong {
  font-size: clamp(24px, 2vw, 30px);
  color: var(--charcoal);
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-card small,
.kitchen-ticket small {
  color: var(--muted);
}

.order-card p {
  margin: 0;
  color: var(--muted);
}

.kitchen-ticket.is-new {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}

.kitchen-ticket ul,
.status-card ul {
  margin: 0;
  padding-left: 18px;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.legal-grid h3 {
  margin: 0;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .header-nav {
    display: none;
  }

  .engine-layout,
  .booking-lab-layout,
  .table-status-layout,
  .menu-head,
  .checkout-section,
  .dialog-layout,
  .ops-grid,
  .report-toolbar,
  .report-metrics,
  .report-forecast,
  .report-planned-grid,
  .report-expense-grid,
  .report-inline-controls,
  .report-day-grid,
  .legal-section {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .report-extra-row {
    grid-template-columns: 1fr 1fr;
  }

  .report-expense-grid[data-expense-columns="2"],
  .report-expense-grid[data-expense-columns="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-expense-grid[data-expense-view="ledger"] {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel-inline {
    display: none;
  }

  .promo-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-visual {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .topbar {
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

	  .delivery-engine,
	  .booking-lab,
	  .table-status,
	  .checkout-section,
  .promo-band,
  .status-section,
  .ops-grid,
  .legal-section {
    padding-inline: 16px;
  }

	  .booking-lab {
	    padding-top: 28px;
	    padding-bottom: 34px;
	  }

	  .table-status {
	    padding-top: 28px;
	    padding-bottom: 34px;
	  }

  .booking-form-grid,
  .booking-actions {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    display: grid;
  }

  .booking-actions button {
    width: 100%;
  }

  .delivery-engine {
    padding-top: 14px;
    padding-bottom: 34px;
  }

	  .site-header {
	    display: flex;
	    justify-content: space-between;
	    gap: 10px;
	    padding-inline: 12px;
	  }

	  .storefront-switch--header {
	    flex: 1 1 auto;
	    justify-content: center;
	    max-width: 180px;
	  }

	  .storefront-switch button {
	    min-width: 0;
	    padding-inline: 9px;
	    font-size: 13px;
	  }

  .brand-copy small,
  .cart-trigger span {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .cart-trigger {
    display: none;
  }

  .site-header .install-trigger {
    display: none !important;
  }

  .checkout-section {
    overflow: hidden;
  }

  .promo-card {
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .promo-card-title {
    font-size: 20px;
  }

  .promo-card small {
    font-size: 15px;
  }

  .checkout-form {
    width: 100%;
    max-width: calc(100vw - 32px);
    padding: 16px;
  }

  .report-flow-head,
  .report-step-head,
  .report-extra-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .report-toolbar,
  .report-metrics,
  .report-forecast,
  .report-planned-grid,
  .report-expense-grid,
  .report-manual-row,
  .report-inline-controls,
  .report-day-grid,
  .report-day-detail-summary {
    grid-template-columns: 1fr;
  }

  body.admin-reports-route {
    background: #f4f1ec;
  }

  body.admin-reports-route .topbar {
    display: none;
  }

  body.admin-reports-route .ops-grid {
    padding: 10px;
    gap: 10px;
  }

  body.admin-reports-route .admin-panel {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface);
  }

  body.admin-reports-route .reports-panel {
    gap: 12px;
  }

  body.admin-reports-route .reports-panel .section-heading h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
  }

  .admin-cabinet-actions {
    grid-template-columns: 1fr;
  }

  .admin-cabinet-actions .button {
    justify-content: center;
  }

  .report-toolbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .report-toolbar label,
  .report-toolbar button {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }

  .report-toolbar label:first-child {
    flex-basis: 190px;
  }

  .report-toolbar button {
    min-height: 54px;
  }

  .report-health {
    padding: 10px;
    font-size: 14px;
  }

  .report-metrics,
  .report-forecast,
  .report-day-detail-summary {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .report-metrics .metric-card {
    flex: 0 0 224px;
    scroll-snap-align: start;
  }

  .report-forecast > * {
    flex: 0 0 252px;
    scroll-snap-align: start;
  }

  .report-day-detail-summary button {
    flex: 0 0 148px;
    min-height: 52px;
    scroll-snap-align: start;
  }

  .report-personal-analytics {
    grid-template-columns: 1fr;
  }

  .report-ledger,
  .report-history {
    overflow-x: auto;
  }

  .report-ledger-head,
  .report-ledger-row {
    min-width: 720px;
  }

  .report-planned-row,
  .report-ledger-head,
  .report-history-row,
  .report-operation-row {
    grid-template-columns: 1fr;
  }

  .report-operation-edit-grid {
    grid-template-columns: 1fr;
  }

  .report-history-row em {
    text-align: left;
  }

  .report-expense-grid[data-expense-columns="2"],
  .report-expense-grid[data-expense-columns="3"],
  .report-manual-row[data-expense-columns="2"],
  .report-manual-row[data-expense-columns="3"] {
    grid-template-columns: 1fr;
  }

  .customer-auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-auth-actions {
    justify-content: stretch;
  }

  .customer-auth-actions button {
    flex: 1 1 120px;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    overflow: hidden;
    gap: 8px;
  }

  .mode-switch button {
    min-width: 0;
    padding-inline: 6px;
    font-size: 14px;
  }

  .hero {
    min-height: 78vh;
    padding: 74px 32px 58px;
  }

  .hero-content,
  .lead {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    min-width: 0;
  }

  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-image {
    object-position: 72% center;
  }

  .lead {
    font-size: 17px;
    max-width: 280px;
  }

  .hero-facts {
    max-width: 280px;
  }

  .hero-actions {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .service-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .catalog-grid.menu-sections {
    gap: 32px;
  }

  .menu-category-section {
    gap: 14px;
    scroll-margin-top: 138px;
  }

  .category-section-title h3 {
    font-size: 22px;
  }

  .menu-category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .product-media {
    height: 120px;
  }

  .product-media img {
    padding: 0;
  }

  .product-card {
    min-height: 0;
    border-radius: 8px;
  }

  .product-body {
    gap: 10px;
    padding: 8px 8px 10px;
  }

  .product-body h3 {
    min-height: 2.28em;
    font-size: 15px;
    line-height: 1.13;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-body p {
    display: none;
  }

  .badge {
    top: 4px;
    left: 4px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .add-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 15px;
  }

  .category-tabs {
    padding: 12px 0;
  }

  .category-tabs button {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 17px;
  }

  .search-field input {
    min-height: 50px;
    font-size: 17px;
  }

  .menu-head {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 6px;
  }

  .menu-head .search-field {
    grid-column: 1;
  }

  .option-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kit-options {
    grid-template-columns: 1fr;
  }

  .option-pill {
    width: 100%;
    min-width: 0;
  }

  .product-dialog.is-pizza-product #size-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-add {
    min-height: 48px;
    padding: 0 12px;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
  }

  .category-tabs {
    top: 72px;
  }

  .cart-sheet {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    padding-inline: 16px;
    padding-bottom: 84px;
  }

  .product-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 18px 18px 0 0;
  }

  .dialog-visual {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    overflow: hidden;
  }

  .dialog-content {
    gap: 12px;
    max-height: none;
    padding: 20px 16px 22px;
  }

  .dialog-content h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .dialog-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
  }

  .dialog-content small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dialog-buy-row {
    bottom: 0;
  }

  .dialog-qty {
    grid-template-columns: 38px 38px 38px;
  }

  .cart-row-head,
  .cart-row-actions {
    align-items: flex-start;
  }

  .cart-row-head strong:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cart-row-head span,
  .cart-summary strong {
    flex: 0 0 auto;
    text-align: right;
  }

  .promo-field span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .promo-field input {
    min-width: 0;
    width: 100%;
  }

  .promo-field button {
    min-width: 48px;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    gap: 1px;
    border-top: 1px solid var(--line);
    background: var(--line);
  }

	  .mobile-tabbar a,
	  .mobile-tabbar button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 58px;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    display: grid;
    place-items: center;
	    text-align: center;
	  }

	  .mobile-tabbar a[aria-disabled="true"],
	  .mobile-tabbar button:disabled,
	  .mobile-tabbar button[aria-disabled="true"] {
	    background: #d6d2cc;
	    color: #746c64;
	    cursor: not-allowed;
	    opacity: 0.88;
	  }

	  .mobile-tabbar button[data-open-table-status]:not(:disabled) {
	    background: #eef7ef;
	    color: var(--basil);
	  }

  .mobile-tabbar a[href="#promos"] {
    display: none;
  }

  .pwa-install-hint {
    right: 12px;
    bottom: 74px;
    left: 12px;
    max-width: none;
  }

  body {
    padding-bottom: 58px;
  }
}

body .hero,
body .service-strip,
body .promo-band {
  display: none;
}

.project-doc-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(114, 29, 36, 0.22);
  border-radius: 999px;
  background: #721d24;
  color: #fff;
  box-shadow: 0 14px 34px rgba(38, 24, 20, 0.22);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.project-doc-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.project-doc-dialog::backdrop {
  background: rgba(25, 17, 18, 0.48);
}

.project-doc-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(780px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(34, 21, 18, 0.24);
}

.project-doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.project-doc-head h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.02;
}

.project-doc-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  overflow: auto;
  padding: 24px 26px 30px;
}

.project-doc-toc {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 8px;
}

.project-doc-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.project-doc-body section {
  grid-column: 2;
  margin: 0 0 22px;
}

.project-doc-body section:first-of-type {
  margin-top: 0;
}

.project-doc-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.12;
}

.project-doc-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.project-doc-body .button {
  margin-top: 14px;
  width: fit-content;
}

@media (max-width: 760px) {
  .project-doc-button {
    right: 12px;
    bottom: 72px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .project-doc-head {
    padding: 20px 18px 14px;
  }

  .project-doc-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .project-doc-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-doc-body section {
    grid-column: 1;
  }
}
