*,
*:before,
*:after {
  box-sizing: border-box;
}
.hidden-option {
  display: none !important;
}
[hidden] {
  display: none !important;
}
:root {
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-surface-elevated: #f1f4f9;
  --color-border: #e3e7ee;
  --color-text: #101828;
  --color-text-muted: #667085;
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e3a8a;
  --color-primary-soft: rgba(29, 78, 216, 0.1);
  --color-accent: #0f9d78;
  --color-danger: #dc2626;
  --color-warning: #b45309;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
  --shadow-soft: 0 4px 16px rgba(16, 24, 40, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/*
 * Admin console re-skin: scoped to body.admin-shell-active (logged-in
 * /admin/* routes, toggled by admin-nav.js, also adds the sidebar layout)
 * and body.admin-theme-active (any /admin or /superadmin route, including
 * the pre-login screens, palette only - no sidebar layout) so the
 * customer-facing ordering UI keeps its own palette untouched.
 */
body.admin-shell-active,
body.admin-theme-active {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-elevated: #f3f4f6;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --color-accent: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #d97706;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
}
body.admin-shell-active,
body.admin-shell-active input,
body.admin-shell-active textarea,
body.admin-shell-active select,
body.admin-shell-active button,
body.admin-theme-active,
body.admin-theme-active input,
body.admin-theme-active textarea,
body.admin-theme-active select,
body.admin-theme-active button {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
body.admin-shell-active ::-webkit-scrollbar,
body.admin-theme-active ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
body.admin-shell-active ::-webkit-scrollbar-track,
body.admin-theme-active ::-webkit-scrollbar-track {
  background: transparent;
}
body.admin-shell-active ::-webkit-scrollbar-thumb,
body.admin-theme-active ::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
body.admin-shell-active .crud-modal-backdrop,
body.admin-shell-active .admin-nav-backdrop,
body.admin-theme-active .crud-modal-backdrop,
body.admin-theme-active .admin-nav-backdrop {
  backdrop-filter: none;
}
body.admin-shell-active .primary-btn,
body.admin-shell-active .ghost-btn,
body.admin-theme-active .primary-btn,
body.admin-theme-active .ghost-btn {
  min-height: auto;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}
body.admin-shell-active .crud-row-actions .ghost-btn,
body.admin-theme-active .crud-row-actions .ghost-btn {
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 5px;
}
body.admin-shell-active .crud-table,
body.admin-theme-active .crud-table {
  font-size: 0.82rem;
}
body.admin-shell-active .crud-table th,
body.admin-theme-active .crud-table th {
  font-size: 0.7rem;
}
body.admin-shell-active .admin-crud-header,
body.admin-shell-active .dashboard-header,
body.admin-theme-active .admin-crud-header,
body.admin-theme-active .dashboard-header {
  box-shadow: none;
}
body.admin-shell-active .admin-toast,
body.admin-theme-active .admin-toast {
  background: #1e293b;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    DM Sans,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  padding-bottom: var(--safe-bottom);
}
button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
input,
textarea,
select,
button {
  border: none;
  outline: none;
  font: inherit;
}
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  box-shadow: 0 0 0 1000px var(--color-surface) inset;
  transition: background-color 9999s ease-out 0s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--color-text-muted);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
a {
  color: var(--color-primary);
}
img {
  max-width: 100%;
  height: auto;
}

/*
 * Force the app-order-page cart into the icon + badge + slide-up drawer
 * pattern at every viewport width, instead of only below 767px (where it
 * would otherwise fall back to an always-visible desktop sidebar column).
 * !important is used because these override the component's own scoped
 * styles, which win on source order/specificity otherwise.
 * Scoped under `app-order-page` so this never leaks into other components
 * that happen to reuse class names like .cart-column (e.g. the checkout
 * page's own cart sidebar).
 */
app-order-page .order-main {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
}
app-order-page .header-cart-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  touch-action: manipulation;
}
app-order-page .header-cart-icon {
  font-size: 1rem;
  line-height: 1;
}
app-order-page .header-cart-count {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
app-order-page .category-column {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  height: auto !important;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
app-order-page .product-column {
  flex: 1;
  min-height: 0;
  padding-bottom: calc(6rem + var(--safe-bottom));
}
app-order-page .cart-column {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  height: min(88vh, 720px);
  max-height: min(88vh, 720px);
  overflow: hidden;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-left: none !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.16);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
app-order-page .order-layout.cart-open .cart-column {
  transform: translateY(0);
  pointer-events: auto;
}
app-order-page .cart-drawer-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.35rem;
  flex-shrink: 0;
}
app-order-page .cart-drawer-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0.15rem;
}
app-order-page .cart-drawer-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--color-border);
  margin-bottom: 0.35rem;
}
app-order-page .cart-drawer-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
app-order-page .cart-drawer-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
app-order-page .cart-close-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
app-order-page .cart-panel-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
app-order-page .cart-fab {
  display: flex !important;
  align-items: center;
  gap: 0.85rem;
  position: fixed;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(0.85rem + var(--safe-bottom));
  z-index: 120;
  min-height: 58px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
  box-shadow: 0 10px 32px rgba(29, 78, 216, 0.38);
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.2s;
}
app-order-page .cart-fab--bounce {
  animation: fab-bounce 0.42s ease;
}
app-order-page .cart-fab-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
app-order-page .cart-fab-icon {
  font-size: 1.35rem;
  line-height: 1;
}
app-order-page .cart-fab-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.55rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
app-order-page .cart-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
app-order-page .cart-fab-label {
  font-size: 1rem;
  line-height: 1.2;
}
app-order-page .cart-fab-meta {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.92;
}
app-order-page .cart-fab-chevron {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}
app-order-page .cart-backdrop {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 250;
  border: none;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
}
@media (min-width: 640px) {
  app-order-page .cart-column {
    left: auto !important;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 420px !important;
    height: min(80vh, 640px);
    max-height: min(80vh, 640px);
    border-radius: var(--radius-xl) !important;
    border-top: 1px solid var(--color-border);
    transform: translateY(24px) scale(0.98);
    transform-origin: bottom right;
    opacity: 0;
    transition:
      transform 0.22s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.22s ease;
  }
  app-order-page .order-layout.cart-open .cart-column {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  app-order-page .cart-drawer-handle {
    display: none;
  }
  app-order-page .cart-fab {
    left: auto;
    width: 360px;
  }
}
@keyframes fab-bounce {
  0%,
  to {
    transform: scale(1);
  }
  35% {
    transform: scale(1.04);
  }
  65% {
    transform: scale(0.98);
  }
}

/* Admin CRUD screens (Order Types / Categories / Products) */
.admin-crud-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
}
.admin-crud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.admin-crud-header h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.admin-crud-header .eyebrow,
.admin-crud-header .welcome,
.settings-header .eyebrow,
.settings-header .welcome {
  display: none;
}
.admin-crud-header .ghost-btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.admin-crud-body {
  padding: 1.25rem 1.5rem 2rem;
}
.admin-crud {
  max-width: 1100px;
}
.crud-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.crud-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.crud-status--ok {
  color: var(--color-accent);
}
.crud-status--error {
  color: var(--color-danger);
}
.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.admin-status-badge--ok {
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-accent);
}
.admin-status-badge--danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
}
.crud-inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.crud-inline-filter input {
  width: auto;
  min-height: 38px;
  padding: 0.4rem 0.6rem;
}
.crud-select-compact {
  width: auto;
  min-height: 38px;
  padding: 0.4rem 0.75rem;
}
.book-report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.book-report-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.book-report-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.book-report-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}
.book-hours-days {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.book-hours-day {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
}
.book-hours-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.book-hours-day-head h3 {
  margin: 0;
  font-size: 0.98rem;
}
.book-hours-windows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.book-hours-window-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.book-hours-window-row .crud-price-input {
  width: auto;
  flex: 1;
  max-width: 160px;
}
.book-hours-remove {
  width: 2.1rem;
  height: 2.1rem;
  min-height: auto;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.book-hours-active-toggle {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}
.book-hours-active-toggle input {
  width: auto;
  min-height: auto;
  accent-color: var(--color-primary);
}
@media (max-width: 480px) {
  .book-hours-window-row {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .book-hours-window-row .crud-price-input {
    max-width: 120px;
  }
}
.book-hours-window-row.is-inactive {
  opacity: 0.55;
}
.additional-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.4rem 0 0.75rem;
}
.additional-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.additional-item-name {
  flex: 2;
  min-width: 0;
}
.additional-item-amount,
.additional-item-order {
  flex: 1;
  min-width: 0;
  max-width: 110px;
}
.additional-item-active {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}
.additional-item-active input {
  width: auto;
  min-height: auto;
  accent-color: var(--color-primary);
}
.additional-item-remove {
  width: 2.1rem;
  height: 2.1rem;
  min-height: auto;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.category-item-row .additional-item-name {
  flex: 1.2;
}
.category-item-row .additional-item-order {
  max-width: 70px;
}
.step-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.step-pill {
  flex-shrink: 0;
  white-space: nowrap;
}
.report-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.report-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.report-filters-status {
  display: block;
  margin: 0 0 1rem;
}
@media (max-width: 900px) {
  .report-filters {
    grid-template-columns: 1fr 1fr;
  }
  .report-filters .primary-btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .report-filters {
    grid-template-columns: 1fr;
  }
}
.crud-field.product-bulk-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-end;
}
.product-bulk-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.product-bulk-meta-item select {
  width: 150px;
  min-height: 34px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}
.product-bulk-meta-item .ghost-btn {
  min-height: 34px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}
.crud-table-wrap,
.table-wrap,
.items-table-wrap {
  -webkit-overflow-scrolling: touch;
}
.crud-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.crud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.crud-table th,
.crud-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.crud-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-elevated);
}
.crud-table tbody tr:last-child td {
  border-bottom: none;
}
.crud-table tbody tr:hover {
  background: var(--color-surface-elevated);
  cursor: pointer;
}
.crud-row-actions {
  cursor: default;
}
.crud-search {
  width: auto;
  min-width: 220px;
  min-height: 38px;
  padding: 0.4rem 0.75rem;
}
.crud-filter-dropdown {
  position: relative;
}
.crud-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
}
.crud-filter-toggle::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.crud-filter-toggle.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.crud-filter-panel[hidden] {
  display: none !important;
}
.crud-filter-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 60;
  min-width: 320px;
  width: max-content;
  max-width: min(90vw, 480px);
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.crud-filter-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  cursor: pointer;
}
.crud-filter-option:hover {
  background: var(--color-surface-elevated);
}
.crud-filter-option input {
  width: auto;
  min-height: auto;
  accent-color: var(--color-primary);
}
.crud-th-sortable {
  cursor: pointer;
  user-select: none;
}
.crud-th-sortable:hover {
  color: var(--color-text);
}
.crud-th-sortable[data-sort-dir="asc"]::after {
  content: " \25B2";
  font-size: 0.7em;
}
.crud-th-sortable[data-sort-dir="desc"]::after {
  content: " \25BC";
  font-size: 0.7em;
}
.crud-empty {
  color: var(--color-text-muted);
  text-align: center;
  white-space: normal;
}
.crud-row-actions {
  display: flex;
  gap: 0.5rem;
}
.crud-row-actions .ghost-btn {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.crud-row-actions .crud-danger {
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--color-danger);
}
.primary-btn {
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.ghost-btn {
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.crud-modal-backdrop[hidden] {
  display: none !important;
}
.crud-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}
.crud-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.crud-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
}
.crud-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.crud-modal--narrow {
  max-width: 420px;
}
.crud-modal--wide {
  max-width: 960px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  padding: 0.55rem;
}
.crud-toggle-box {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.crud-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
}
.crud-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.crud-toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-border);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 0.15s;
}
.crud-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.3);
  transition: transform 0.15s;
}
.crud-toggle input:checked + .crud-toggle-track {
  background: var(--color-primary);
}
.crud-toggle input:checked + .crud-toggle-track .crud-toggle-thumb {
  transform: translateX(18px);
}
.store-timing-top-panels {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.store-timing-top-panels .order-type-status-panel {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.delivery-available-panel {
  flex: 0 0 320px;
}
.delivery-available-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin: 0.75rem 0 1rem;
}
@media (max-width: 900px) {
  .store-timing-top-panels {
    flex-direction: column;
  }
  .delivery-available-panel {
    flex-basis: auto;
  }
}
.order-type-status-panel {
  margin-bottom: 1.25rem;
}
.order-type-status-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}
.order-type-status-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}
.order-type-status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.order-type-status-label {
  min-width: 140px;
  font-weight: 600;
  font-size: 0.9rem;
}
.order-type-status-message {
  flex: 1;
}
.order-type-status-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .order-type-status-row {
    flex-wrap: wrap;
  }
  .order-type-status-message {
    flex-basis: 100%;
  }
}
.crud-modal-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.crud-form--single {
  grid-template-columns: 1fr;
}
.crud-pin-input {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.6rem;
  font-variant-numeric: tabular-nums;
  padding-left: 1.4rem;
}
.crud-pin-input::placeholder {
  letter-spacing: 0.6rem;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.5;
}
.crud-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s;
}
.crud-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}
.crud-form {
  padding: 1.25rem 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.crud-field-wide {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .crud-form {
    grid-template-columns: 1fr;
  }
}
.crud-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.crud-field input,
.crud-field select,
.crud-field textarea {
  color: var(--color-text);
}
.crud-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-text);
}
.crud-field--checkbox input {
  width: auto;
  min-height: auto;
  accent-color: var(--color-primary);
}
.crud-checkbox-item input {
  accent-color: var(--color-primary);
}
.crud-field textarea {
  min-height: 72px;
  resize: vertical;
}
.crud-field--group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  margin: 0;
}
.crud-category-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.crud-category-toggle input {
  width: auto;
  min-height: auto;
}
.crud-field--group legend {
  padding: 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.crud-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.crud-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.crud-checkbox-item input {
  width: auto;
  min-height: auto;
}
.crud-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.crud-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.76rem;
  font-weight: 600;
  min-height: auto;
  width: auto;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.crud-choice-btn:hover {
  border-color: var(--color-primary);
}
.crud-choice-btn .crud-choice-check {
  display: none;
  font-size: 0.8em;
}
.crud-choice-btn.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}
.crud-choice-btn.is-selected .crud-choice-check {
  display: inline;
}
.crud-field--custom > span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.crud-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.crud-price-row:last-child {
  border-bottom: none;
}
.crud-price-label {
  font-size: 0.88rem;
  font-weight: 500;
}
.crud-price-input {
  width: 110px;
  min-height: 38px;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.crud-price-input:disabled {
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.crud-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.simple-auth-host {
  display: block;
  height: 100%;
}
.simple-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-bg);
}
.simple-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.simple-auth-card--wide {
  max-width: 720px;
}
.simple-auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.simple-auth-card .brand-logo {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto 1.25rem;
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.signup-grid .field-error {
  grid-column: 1 / -1;
}
.signup-grid .crud-form-actions {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }
}
.signup-success {
  text-align: center;
  padding: 1rem 0 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.turnstile-widget {
  margin: 0.15rem 0;
}
.field-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-danger);
}
.crud-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
}
.crud-btn-loader {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.5rem;
  vertical-align: -0.15rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: crud-btn-spin 0.7s linear infinite;
}
.ghost-btn .crud-btn-loader {
  border-color: rgba(15, 23, 42, 0.25);
  border-top-color: var(--color-text);
}
@keyframes crud-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}
.admin-toast {
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-text);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.admin-toast--in {
  opacity: 1;
  transform: translateY(0);
}
.admin-toast--ok {
  background: var(--color-accent);
}
.admin-toast--error {
  background: var(--color-danger);
}
.admin-dashboard {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  --dash-surface: var(--color-surface);
  --dash-grid: var(--color-border);
  --dash-muted: var(--color-text-muted);
  --dash-series: var(--color-primary);
  --dash-series-area: var(--color-primary-soft);
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.dashboard-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.dashboard-header .welcome {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.sign-out-btn {
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.dashboard-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 960px;
}
.dash-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dash-filter-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
}
.dash-filter-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.dash-kpis {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.dash-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.dash-tile-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dash-tile-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}
.dash-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.dash-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}
.dash-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-card-header h2 {
  margin: 0;
}
.dash-card-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 0.85rem;
}
.dash-card-link:hover {
  text-decoration: underline;
}
.dash-chart-wrap {
  position: relative;
}
.dash-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.dash-axis-label {
  font-size: 9px;
  fill: var(--color-text-muted);
}
.dash-end-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--color-text);
}
.dash-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--color-text);
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  z-index: 5;
}
.dash-tooltip-date {
  color: rgba(255, 255, 255, 0.75);
}
.dash-tooltip-value {
  font-weight: 700;
}
.dash-bar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-sm);
}
.dash-bar-row:hover,
.dash-bar-row:focus-visible {
  background: var(--color-surface-elevated);
  outline: none;
}
.dash-bar-label {
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-bar-track {
  height: 20px;
  border-radius: 4px;
  background: var(--color-surface-elevated);
  overflow: hidden;
}
.dash-bar-fill {
  display: block;
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
}
.dash-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 2ch;
  text-align: right;
  white-space: nowrap;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.brand-icon {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
}
.brand-text h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.store-address {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.return-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.return-link:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .top-bar {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.65rem 0.85rem;
    padding-top: calc(0.65rem + var(--safe-top));
    gap: 0.65rem;
  }
  .brand {
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  .brand-icon {
    display: none;
  }
  .brand-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .store-address {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.1rem;
  }
}
.book-table-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 60vh;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
}
.book-table-boot--error h1 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-text);
}
.book-table-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .book-table-page {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem 1rem 2rem;
    gap: 1rem;
  }
}
.book-table-card {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
@media (max-width: 600px) {
  .book-table-card {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
  }
}
.book-table-summary {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .book-table-summary {
    position: static;
    order: -1;
  }
}
.book-table-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.book-table-header h1 {
  margin: 0 0 0.15rem;
  font-size: 1.4rem;
}
.book-table-header h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.book-table-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  font-size: 1.3rem;
}
@media (max-width: 480px) {
  .book-table-header {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  .book-table-icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
  }
  .book-table-header h1 {
    font-size: 1.15rem;
  }
  .book-table-steps {
    gap: 0.5rem 0.9rem;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
  }
  .book-table-step {
    font-size: 0.78rem;
  }
}
.book-table-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.book-table-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.book-table-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  font-size: 0.78rem;
}
.book-table-step.active {
  color: var(--color-text);
}
.book-table-step.active .book-table-step-num {
  background: var(--color-primary);
  color: #fff;
}
.book-table-step.done .book-table-step-num {
  background: var(--color-accent);
  color: #fff;
}
.book-table-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin: 1.5rem 0 0.85rem;
}
.book-table-section-title:first-child {
  margin-top: 0;
}
.book-table-day-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.book-table-day {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 4.4rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.book-table-day:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.book-table-day.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.book-table-day-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.75;
}
.book-table-day-num {
  font-size: 1.15rem;
  font-weight: 700;
}
.book-table-day-month {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}
@media (max-width: 480px) {
  .book-table-day {
    width: 3.6rem;
    padding: 0.5rem 0.3rem;
  }
  .book-table-day-num {
    font-size: 1rem;
  }
}
.book-table-selected-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
}
.book-table-guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.book-table-stepper-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 700;
}
.book-table-stepper-btn:hover {
  background: var(--color-border);
}
.book-table-guest-count {
  min-width: 1.5ch;
  text-align: center;
  font-weight: 700;
}
.book-table-time-placeholder {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  text-align: center;
  font-size: 0.9rem;
}
.book-table-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  padding: 0.15rem;
}
.book-table-time-group-label {
  margin: 0.9rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}
.book-table-time-group-label:first-of-type {
  margin-top: 0;
}
.book-table-time-divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.1rem 0 0;
}
@media (max-width: 480px) {
  .book-table-time-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.4rem;
  }
  .book-table-time {
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
  }
}
.book-table-time {
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.book-table-time.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.book-table-cta {
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.book-table-phone-row {
  display: flex;
  gap: 0.5rem;
}
.book-table-phone-row select {
  width: 7.5rem;
  flex-shrink: 0;
}
.book-table-summary-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: var(--color-text-muted);
}
.book-table-summary-empty span {
  font-size: 1.8rem;
  opacity: 0.5;
}
.book-table-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.book-table-summary-row:last-child {
  border-bottom: none;
}
.book-table-summary-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
}
.book-table-summary-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.book-table-trust {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}
.book-table-trust p {
  margin: 0;
}
.book-table-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}
.book-table-done-icon {
  font-size: 2.5rem;
}
.dash-empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.about-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.about-btn:hover {
  background: var(--color-border);
}
.about-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  padding: 2rem 1rem;
}
.about-modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 720px;
  padding: 1.5rem;
  margin: auto;
}
.about-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.about-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.about-modal-subtitle {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.about-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.about-modal-close:hover {
  background: var(--color-border);
}
.about-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-loading {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  padding: 1rem 0;
}
.about-card {
  min-width: 0;
}
.about-card--wide {
  grid-column: 1 / -1;
}
.about-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.about-icon {
  font-size: 1rem;
  line-height: 1;
}
.about-hours-table-wrap {
  overflow-x: auto;
}
.about-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}
.about-hours-table th {
  text-align: left;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.3rem 0.85rem 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.about-hours-table td {
  padding: 0.4rem 0.85rem 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}
.about-hours-day {
  font-weight: 500;
  color: var(--color-text-muted);
}
.about-day-closed {
  color: var(--color-text-muted);
  font-weight: 500;
}
.about-simple {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}
.about-simple a {
  color: var(--color-primary);
  text-decoration: none;
}
.about-simple a:hover {
  text-decoration: underline;
}
.about-zones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.about-zones-table th {
  text-align: left;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.about-zones-table td {
  padding: 0.4rem 0.5rem 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 640px) {
  .about-modal-body {
    grid-template-columns: 1fr;
  }
  .about-modal-card {
    padding: 1.1rem;
  }
}
