/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); line-height: var(--leading-tight); font-family: var(--font-display); }
h1 { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: -0.025em; }
h2 { font-size: var(--text-2xl); font-weight: var(--weight-bold); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); font-style: italic; }

/* ── Layout ── */
.topbar {
  background: var(--maroon-grad);
  border-bottom: 2px solid var(--brand-gold);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}
.topbar::-webkit-scrollbar { display: none; }
.topbar-left { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: var(--space-3); color: rgba(255, 255, 255, 0.85); flex-shrink: 0; margin-left: var(--space-4); padding-left: var(--space-4); border-left: 1px solid rgba(255, 255, 255, 0.15); }
.topbar-right .text-sm { color: rgba(255, 255, 255, 0.85); }
.topbar-right .btn-ghost { color: rgba(255, 255, 255, 0.85); }
.topbar-right .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.brand {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  font-size: var(--text-lg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.main { max-width: var(--max-width); margin: var(--space-8) auto; padding: 0 var(--space-6); }
.nav { display: flex; gap: var(--space-1); flex-shrink: 0; }
.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav a.active {
  background: rgba(255, 147, 48, 0.18);
  color: var(--brand-gold-light);
  font-weight: var(--weight-semibold);
}

/* ── Grid ── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ── Card ── */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-border);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.card-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }

/* ── Stat Card ── */
.stat {
  text-align: center;
  padding: var(--space-6);
}
.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
}
.stat-label {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-ring);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--brand-maroon);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--brand-maroon-light); color: var(--text-inverse); box-shadow: var(--shadow-maroon); }
.btn-primary:active { background: var(--brand-wine-2); }
.btn-gold {
  background: var(--gold-grad);
  color: var(--brand-maroon-dark);
}
.btn-gold:hover { filter: brightness(1.08); color: var(--brand-maroon-dark); box-shadow: var(--shadow-gold); }
.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}
.btn-secondary:hover { background: var(--surface-active); color: var(--text-primary); }
.btn-danger { background: var(--color-danger-light); color: var(--color-danger-dark); }
.btn-danger:hover { background: #fecaca; color: var(--color-danger-dark); }
.btn-success { background: var(--color-success); color: var(--text-inverse); }
.btn-success:hover { background: #059669; color: var(--text-inverse); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }

/* ── Forms ── */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-card);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-ring);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-tertiary); }
.form-check { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.form-check label { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: 0; }
.form-hint { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-success { background: var(--color-success-light); color: var(--color-success-dark); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning-dark); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger-dark); }
.badge-info { background: var(--color-info-light); color: var(--color-info-dark); }
.badge-neutral { background: var(--surface-hover); color: var(--text-secondary); }

/* ── Role Badges ── */
.badge-owner { background: var(--color-role-owner-bg); color: var(--color-role-owner); }
.badge-manager { background: var(--color-role-manager-bg); color: var(--color-role-manager); }
.badge-chef { background: var(--color-role-chef-bg); color: var(--color-role-chef); }
.badge-waiter { background: var(--color-role-waiter-bg); color: var(--color-role-waiter); }
.badge-viewer { background: var(--color-role-viewer-bg); color: var(--color-role-viewer); }

/* ── Order Status Badges ── */
.badge-pending { background: #FFF1E4; color: #A84400; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; }
.badge-preparing { background: #ede9fe; color: #7c3aed; }
.badge-ready { background: #d1fae5; color: #059669; }
.badge-completed { background: #d1fae5; color: #047857; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ── AI badges (gold gradient, sparkle) ── */
.badge-ai {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}
.badge-ai-sparkle {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  margin-right: 5px;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}
.badge-ai-sparkle::before, .badge-ai-sparkle::after {
  content: '';
  position: absolute;
  background: #fff;
}
.badge-ai-sparkle::before { top: 3px; left: 5px; width: 2px; height: 6px; }
.badge-ai-sparkle::after { top: 6px; left: 3px; width: 6px; height: 2px; }

/* ── AI tooltip ── */
.ai-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-tip {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(92, 26, 26, 0.92);
  border: 1px solid rgba(255, 147, 48, 0.45);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  min-width: 150px;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ai-tooltip:hover .ai-tip { display: block; }
.ai-tip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(92, 26, 26, 0.92) transparent;
}

/* ── AI shimmer skeleton (loading) ── */
.ai-skeleton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--surface-hover);
  overflow: hidden;
  position: relative;
  min-width: 110px;
}
.ai-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 1.5s infinite;
}

/* ── AI alert banner (maroon-tinted) ── */
.ai-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(92, 26, 26, 0.06);
  border: 1px solid rgba(92, 26, 26, 0.14);
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: var(--space-6);
}
.ai-banner .ai-bn-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #C45C1E;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}
.ai-banner strong { color: #C45C1E; }
.ai-banner .ai-bn-act {
  margin-left: auto;
  margin-top: -2px;
}

/* ── AI description generator (menu item form) ── */
.ai-desc-wrap { position: relative; }
.ai-desc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.ai-desc-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maroon, #C45C1E);
  min-height: 1.2em;
}
.ai-desc-preview {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: rgba(92, 26, 26, 0.05);
  border: 1px dashed rgba(255, 147, 48, 0.45);
}
.ai-desc-preview #aiDescPreviewText { font-size: 0.86rem; color: var(--ink-2); white-space: pre-wrap; }
.ai-desc-preview .ai-use-desc { margin-top: 8px; }

/* ── AI upsell recommendations (POS checkout) ── */
.ai-upsell {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(92, 26, 26, 0.05);
  border: 1px dashed rgba(255, 147, 48, 0.45);
}
.ai-upsell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ai-upsell-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-upsell-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ai-upsell-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 150px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--line);
}
.ai-upsell-name { flex: 1; min-width: 0; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.ai-upsell-price { font-size: 0.82rem; font-weight: 800; color: var(--maroon, #C45C1E); white-space: nowrap; }
.ai-upsell-row .btn { min-height: unset; padding: 4px 9px; font-size: 0.68rem; }

/* ── UPI QR preview (settings) ── */
.upi-qr-preview {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  text-align: center;
  display: inline-block;
}
.upi-qr-preview img {
  max-width: 220px;
  max-height: 220px;
  border: 3px solid #d4a34a;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ── Alerts ── */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.alert-success { background: var(--color-success-light); color: var(--color-success-dark); }
.alert-danger { background: var(--color-danger-light); color: var(--color-danger-dark); }
.alert-warning { background: var(--color-warning-light); color: var(--color-warning-dark); }
.alert-info { background: var(--color-info-light); color: var(--color-info-dark); }
.alert-demo { background: var(--color-warning-light, #FFF4E0); color: var(--color-warning-dark, #8A5A00); border: 1px solid rgba(180, 130, 20, 0.3); }

/* ── Tables ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--surface-border);
  font-size: var(--text-sm);
}
th {
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-bg);
  position: sticky;
  top: 0;
}
tbody tr:hover td { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ── Header Row ── */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.header-row h2 { margin: 0; }
.actions { display: flex; gap: var(--space-2); }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--space-6);
}
.filter-bar .form-group { margin-bottom: 0; min-width: 150px; }

/* ── Pager ── */
.pager {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-5);
}
.pager span[aria-disabled] { opacity: 0.5; }
.pager a, .pager span {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
}
.pager a:hover { background: var(--surface-hover); color: var(--text-primary); }
.pager .active { background: var(--color-primary); color: var(--text-inverse); font-weight: var(--weight-medium); }

/* ── Empty State ── */
.empty {
  color: var(--text-tertiary);
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.empty-icon { font-size: var(--text-4xl); margin-bottom: var(--space-4); opacity: 0.5; }
.empty-title { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--text-secondary); margin-bottom: var(--space-2); }
.empty-desc { font-size: var(--text-sm); margin-bottom: var(--space-4); }

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-hover) 25%, var(--surface-active) 50%, var(--surface-hover) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 1rem; margin-bottom: var(--space-2); }
.skeleton-title { height: 1.5rem; width: 40%; margin-bottom: var(--space-4); }
.skeleton-card { height: 120px; margin-bottom: var(--space-4); }

/* ── Veg/Non-Veg Dot ── */
.veg-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  margin-right: var(--space-1);
  vertical-align: middle;
}
.veg-dot.veg { border-color: #16a34a; background: radial-gradient(circle, #16a34a 40%, white 40%); }
.veg-dot.nonveg { border-color: #dc2626; background: radial-gradient(circle, #dc2626 40%, white 40%); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gray-800);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  z-index: var(--z-toast);
  max-width: 90vw;
}
.toast.show { opacity: 1; }
.toast.err { background: var(--color-danger-dark); color: var(--color-danger-light); }

/* ── Animations ── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade-in { animation: fade-in var(--duration-normal) var(--ease-out); }
.animate-scale-in { animation: scale-in var(--duration-fast) var(--ease-out); }
.animate-slide-up { animation: slide-up var(--duration-slow) var(--ease-out); }
.animate-slide-in-right { animation: slide-in-right var(--duration-normal) var(--ease-out); }

/* ── Staggered Children ── */
.stagger > * {
  animation: fade-in var(--duration-normal) var(--ease-out) both;
}
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(6) { animation-delay: 250ms; }
.stagger > *:nth-child(7) { animation-delay: 300ms; }
.stagger > *:nth-child(8) { animation-delay: 350ms; }
.stagger > *:nth-child(9) { animation-delay: 400ms; }
.stagger > *:nth-child(10) { animation-delay: 450ms; }

/* ── Component Utilities ── */
.w-full { width: 100%; }
.disabled { opacity: 0.5; pointer-events: none; }
.card-flush { padding: 0; }
.card-sm { padding: var(--space-4); }
.form-input { width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--surface-border-strong); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-primary); background: var(--surface-card); transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-ring); }
.input-error { border-color: var(--color-danger) !important; }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important; }
.alert-dismiss { margin-left: auto; }

/* ── Dashboard Hero ── */
.dash-hero {
  background: var(--maroon-grad);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8) var(--space-6);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 147, 48, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 147, 48, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero-greet {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 1;
}
.dash-hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}
.dash-hero-role {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--brand-gold-light);
  margin-top: var(--space-3);
  position: relative;
  z-index: 1;
}
.dash-hero-meta {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-5);
  position: relative;
  z-index: 1;
}
.dash-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-hero-meta-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
}
.dash-hero-meta-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

/* ── Premium Stat Cards ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.dash-stat {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
  min-width: 0;
  overflow: hidden;
}
.dash-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--surface-border-strong);
}
.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dash-stat-icon.maroon { background: rgba(196, 92, 30, 0.10); }
.dash-stat-icon.gold { background: rgba(255, 147, 48, 0.12); }
.dash-stat-icon.green { background: rgba(16, 185, 129, 0.1); }
.dash-stat-icon.blue { background: rgba(59, 130, 246, 0.1); }
.dash-stat-icon.red { background: rgba(220, 38, 38, 0.08); }
.dash-stat-icon.purple { background: rgba(139, 92, 246, 0.1); }
.dash-stat-body { flex: 1; min-width: 0; }
.dash-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Section Header ── */
.dash-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}
.dash-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.dash-section-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.dash-section-link:hover { color: var(--brand-maroon-light); }

/* ── Quick Action Tiles ── */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.dash-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  text-align: center;
}
.dash-action:hover {
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.dash-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.dash-action:hover .dash-action-icon { background: var(--gold-grad); }
.dash-action-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

/* ── Recent Orders Mini ── */
.dash-recent {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.dash-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--surface-border);
}
.dash-recent-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}
.dash-order-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--duration-fast) var(--ease-out);
  text-decoration: none;
  color: var(--text-primary);
}
.dash-order-row:last-child { border-bottom: none; }
.dash-order-row:hover { background: var(--surface-hover); }
.dash-order-num {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  min-width: 110px;
}
.dash-order-type {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--surface-hover);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-medium);
}
.dash-order-total {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  margin-left: auto;
}
.dash-order-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  min-width: 70px;
  text-align: right;
}

/* ── Low Stock Banner ── */
.dash-alert-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, #FFF1E4, #FFE3CC);
  border: 1px solid rgba(255, 147, 48, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: #A84400;
}
.dash-alert-banner strong { color: #78350f; }
.dash-alert-banner a {
  margin-left: auto;
  font-weight: var(--weight-semibold);
  color: #A84400;
  text-decoration: underline;
  white-space: nowrap;
}

/* ── Two Column Layout ── */
.dash-cols {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.dash-side-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.dash-side-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}
.dash-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: var(--text-sm);
}
.dash-kv:last-child { border-bottom: none; }
.dash-kv-label { color: var(--text-secondary); }
.dash-kv-value { font-weight: var(--weight-semibold); color: var(--text-primary); }

/* Responsive */
@media (max-width: 1024px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash-hero { padding: var(--space-5) var(--space-4) var(--space-4); border-radius: var(--radius-lg); }
  .dash-hero-greet { font-size: 1.2rem; }
  .dash-hero-meta { flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }
  .dash-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-2); margin-bottom: var(--space-5); }
  .dash-stat { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-lg); }
  .dash-stat-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: var(--radius-md); }
  .dash-stat-icon svg { width: 18px; height: 18px; }
  .dash-stat-value { font-size: 1.35rem; }
  .dash-stat-label { font-size: 0.72rem; letter-spacing: 0.05em; }
  .dash-stat-sub { font-size: 0.68rem; -webkit-line-clamp: 2; }
  .dash-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-2); }
  .dash-action { padding: var(--space-3) var(--space-2); border-radius: var(--radius-md); gap: 6px; }
  .dash-action-icon { width: 36px; height: 36px; font-size: 1rem; }
  .dash-action-icon svg { width: 18px; height: 18px; }
  .dash-action-label { font-size: 0.7rem; }
  .dash-cols { grid-template-columns: 1fr; gap: var(--space-4); }
  .dash-order-row { flex-wrap: wrap; row-gap: 4px; }
  .dash-side-card { padding: var(--space-4); }
}

/* ── Premium Admin List Pages ── */
.adm-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4);
  margin-bottom: var(--space-6); flex-wrap: wrap;
}
.adm-hero-left { min-width: 0; }
.adm-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-gold); margin-bottom: 4px;
}
.adm-hero h1 { font-family: var(--font-display); font-size: 1.75rem; margin: 0 0 4px; }
.adm-hero-sub { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.adm-hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.adm-stat {
  background: var(--surface-card); border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl); padding: var(--space-4) var(--space-5);
  position: relative; overflow: hidden;
}
.adm-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold));
}
.adm-stat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 6px; }
.adm-stat-value { font-size: 1.75rem; font-weight: 700; font-family: var(--font-display); line-height: 1.1; }
.adm-stat-sub { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 4px; }
.adm-filter-bar {
  display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center;
  background: var(--surface-card); border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl); padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.adm-chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--surface-border);
  background: var(--surface-card); font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: all var(--duration-fast);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.adm-chip:hover { border-color: var(--brand-gold); color: var(--brand-maroon); }
.adm-chip.on { background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff; }
.adm-empty {
  text-align: center; padding: var(--space-8) var(--space-4); color: var(--text-tertiary);
}
.adm-empty-icon { font-size: 2.5rem; margin-bottom: var(--space-3); opacity: 0.4; }
.adm-empty-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.adm-empty-sub { font-size: 0.85rem; }
.adm-bar-track {
  height: 8px; border-radius: 999px; background: var(--surface-hover);
  overflow: hidden; min-width: 80px;
}
.adm-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold));
}
.adm-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
  background: var(--surface-hover); color: var(--text-secondary);
}
.adm-rank.top { background: linear-gradient(135deg, var(--brand-maroon), var(--brand-gold)); color: #fff; }

/* ── Reports Analytics ── */
.rep-quick { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.rep-quick a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--surface-border);
  background: var(--surface-card); font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); text-decoration: none; transition: all var(--duration-fast);
}
.rep-quick a:hover { border-color: var(--brand-gold); color: var(--brand-maroon); }
.rep-quick a.on { background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff; }
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }
.rep-card {
  background: var(--surface-card); border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl); padding: var(--space-5);
}
.rep-card-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: var(--space-4); display: flex; justify-content: space-between; align-items: center;
}
.rep-card-title span { font-size: 0.7rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.rep-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: var(--space-2); }
.rep-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.rep-bar {
  width: 100%; max-width: 36px; border-radius: 6px 6px 0 0; min-height: 4px;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-maroon));
  transition: all var(--duration-fast); position: relative;
}
.rep-bar:hover { opacity: 0.85; }
.rep-bar-label { font-size: 0.72rem; color: var(--text-tertiary); white-space: nowrap; }
.rep-bar-val { font-size: 0.72rem; font-weight: 700; color: var(--brand-maroon); }
.rep-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--surface-border);
}
.rep-row:last-child { border-bottom: none; }
.rep-row-name { flex: 1; font-size: 0.85rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-row-meta { font-size: 0.75rem; color: var(--text-tertiary); min-width: 40px; text-align: right; }
.rep-row-val { font-size: 0.85rem; font-weight: 700; min-width: 70px; text-align: right; font-family: var(--font-mono); }
.rep-pie-wrap { display: flex; align-items: center; gap: var(--space-5); }
.rep-pie-legend { flex: 1; }
.rep-pie-svg { width: 120px; height: 120px; flex-shrink: 0; }
.rep-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.rep-status-cell {
  text-align: center; padding: var(--space-3); border-radius: var(--radius-md);
  background: var(--surface-hover); border: 1px solid var(--surface-border);
}
.rep-status-num { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); }
.rep-status-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.rep-peak {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--surface-border); font-size: 0.85rem;
}
.rep-peak:last-child { border-bottom: none; }
.rep-peak-label { color: var(--text-secondary); }
.rep-peak-val { font-weight: 700; }
@media (max-width: 1024px) {
  .rep-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rep-grid { grid-template-columns: 1fr 1fr; }
  .adm-hero { flex-direction: column; align-items: flex-start; }
  .adm-hero-actions { width: 100%; }
  .adm-hero h1, .adm-hero h2 { font-size: 1.4rem; word-break: break-word; }
  .adm-hero-sub { font-size: 0.8rem; }
}

/* ── Mobile Friendliness (390px+) ── */
@media (max-width: 760px) {
  .header-row { flex-direction: column; align-items: stretch; }
  .header-row .actions, .header-row > div { width: 100%; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-bar .form-group { min-width: 130px; flex-shrink: 0; }
  .adm-filter-bar { overflow-x: auto; flex-wrap: nowrap; }
  .adm-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .adm-hero-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  .adm-hero-actions form { display: flex; gap: var(--space-2); flex: 1; min-width: 0; }
  .adm-hero-actions .form-input { min-width: 0; flex: 1; }
  .btn { min-height: 42px; padding-top: 10px; padding-bottom: 10px; }
  .btn-sm { min-height: 36px; }
  input, select, textarea { font-size: 16px; }
  .card { padding: var(--space-4); border-radius: var(--radius-lg); }
  .adm-stat { padding: var(--space-3) var(--space-4); }
  .adm-stat-value { font-size: 1.4rem; }
  .rep-card { padding: var(--space-4); }
  .rep-pie-wrap { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .rep-bars { height: 110px; overflow-x: auto; }
  .rep-bar-col { min-width: 26px; }
  .table-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  table { min-width: 560px; }
  .grid.grid-4, .grid.grid-3, .grid.grid-2 { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  dialog { width: calc(100vw - 24px) !important; max-width: none !important; padding: var(--space-4) !important; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .grid.grid-4 { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .grid.grid-3, .grid.grid-2 { grid-template-columns: 1fr; }
  .adm-hero-actions .btn { width: 100%; flex: 1 0 100%; }
  .adm-stat-value { font-size: 1.3rem; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
}

/* Responsive */
@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: var(--space-2) var(--space-4);
    gap: var(--space-1);
  }
  .topbar-left { flex-wrap: wrap; gap: var(--space-2) var(--space-3); width: 100%; }
  .nav { flex-wrap: wrap; }
  .nav a { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); }
  .topbar-right { flex-wrap: wrap; gap: var(--space-3); width: 100%; justify-content: flex-start; }
  .main { margin-top: var(--space-5); padding: 0 var(--space-4); }
  .card { padding: var(--space-4); }
  .header-row { flex-wrap: wrap; gap: var(--space-2); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar .form-group { min-width: 120px; }
  .dash-hero-plan { align-self: flex-start; }
}

/* Plans & pricing */
.plan-notice {
  background: rgba(255, 147, 48, 0.12);
  border: 1px solid rgba(255, 147, 48, 0.45);
  color: var(--color-gold, #FF9330);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e7e0d5);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(36, 6, 9, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(196, 92, 30, 0.10);
  border-color: rgba(255, 147, 48, 0.45);
}
.plan-card.plan-popular {
  border-color: rgba(255, 147, 48, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 147, 48, 0.07) 0%, rgba(255, 147, 48, 0) 120px),
    var(--color-surface, #fff);
  box-shadow: 0 16px 40px rgba(196, 92, 30, 0.12);
}
.plan-card.plan-popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;
  background: linear-gradient(90deg, #C45C1E, #FF9330 55%, #FFE3CC);
}
.plan-card.plan-current {
  outline: 2px solid var(--color-gold, #FF9330);
  outline-offset: -2px;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: var(--space-4);
  background: linear-gradient(135deg, #FF9330, #C45C1E);
  color: #FFE3CC;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(196, 92, 30, 0.25);
  z-index: 1;
}
.plan-badge-current {
  left: auto;
  right: var(--space-4);
  background: linear-gradient(135deg, #FF9330, #FFA94F);
  color: #241B14;
  box-shadow: 0 4px 12px rgba(255, 147, 48, 0.3);
}
.plan-head {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border, #e7e0d5);
  margin-bottom: var(--space-3);
}
.plan-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
  margin-bottom: var(--space-2);
}
.plan-card.plan-popular .plan-kicker { color: var(--ink-brand, #C45C1E); }
.plan-name {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #241410);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.plan-card.plan-popular .plan-name {
  font-size: 1.15rem;
  color: var(--ink-brand, #C45C1E);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-1);
  min-width: 0;
}
.plan-amount {
  font-family: var(--font-serif, 'Poppins', Georgia, serif);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 500;
  color: rgba(196, 92, 30, 0.82);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.plan-card.plan-popular .plan-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: linear-gradient(135deg, #FF9330, #C45C1E);
  color: #FFE3CC;
  border-radius: 12px;
  padding: 8px 14px 9px;
  margin: 2px 0 var(--space-2);
  box-shadow: 0 6px 18px rgba(196, 92, 30, 0.22);
}
.plan-card.plan-popular .plan-amount {
  font-size: 2.1rem;
  color: #FFE3CC;
}
.plan-card.plan-popular .plan-suffix {
  color: rgba(255, 169, 79, 0.78);
}
.plan-card:not(.plan-popular) .plan-desc,
.plan-card:not(.plan-popular) .plan-extras,
.plan-card:not(.plan-popular) .plan-features li {
  color: var(--text-secondary, #5c554d);
}
.plan-card.plan-popular .plan-features li,
.plan-card.plan-popular .plan-extras,
.plan-card.plan-popular .plan-desc {
  color: var(--color-text, #241410);
}
.plan-card.plan-popular .plan-features li {
  font-weight: 500;
}
.plan-suffix {
  color: var(--text-tertiary, #8a8178);
  font-size: var(--text-sm, 0.875rem);
  white-space: nowrap;
}
.plan-meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-tertiary, #8a8178);
  margin-bottom: var(--space-2);
}
.plan-desc {
  color: var(--text-secondary, #5c554d);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.55;
  margin: 0;
  min-width: 0;
}
.plan-features-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
  margin-bottom: var(--space-2);
}
.plan-features {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0 0 var(--space-3);
  align-content: start;
}
.plan-features li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.8125rem;
  color: var(--color-text, #241410);
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: break-word;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: rgba(255, 147, 48, 0.14);
  border: 1px solid rgba(255, 147, 48, 0.45);
  box-sizing: border-box;
}
.plan-features li::after {
  content: "";
  position: absolute;
  left: 0.34em;
  top: 0.4em;
  width: 0.5em;
  height: 0.26em;
  border-left: 2px solid #C45C1E;
  border-bottom: 2px solid #C45C1E;
  transform: rotate(-45deg);
}
.plan-more {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  color: #C45C1E;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-more::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 147, 48, 0.55), transparent);
}
.plan-extras {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary, #5c554d);
  margin: 0 0 var(--space-3);
  min-width: 0;
  overflow-wrap: break-word;
}
.plan-note {
  color: var(--text-tertiary, #8a8178);
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
  min-width: 0;
}
.plan-cta {
  width: 100%;
  display: block;
  text-align: center;
  border: none;
  min-height: 40px;
}
.plan-cta-current {
  background: rgba(255, 147, 48, 0.14);
  border: 1px dashed rgba(255, 147, 48, 0.6);
  color: var(--ink-brand, #C45C1E);
  font-weight: 700;
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-sm, 0.875rem);
}
.plan-cta-muted {
  background: var(--color-bg, #FFF6EE);
  color: var(--text-tertiary, #8a8178);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-sm, 0.875rem);
}
.co-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.co-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e7e0d5);
  border-radius: 999px;
  padding: 5px 11px;
}
.co-step i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: rgba(255, 147, 48, 0.16);
  border: 1px solid rgba(255, 147, 48, 0.5);
  color: var(--ink-brand, #C45C1E);
  font-size: 0.72em;
}
.co-step.is-on {
  color: var(--ink-brand, #C45C1E);
  border-color: rgba(255, 147, 48, 0.65);
  background: rgba(255, 147, 48, 0.08);
}
.co-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.co-band {
  position: relative;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
  padding: var(--space-5);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 147, 48, 0.22) 0%, rgba(255, 147, 48, 0) 55%),
    linear-gradient(135deg, #C45C1E 0%, #C45C1E 60%, #330a12 100%);
  color: #f7efe2;
  overflow: hidden;
}
.co-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9330, #FFE3CC 50%, #FF9330);
}
.co-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFA94F;
  margin-bottom: var(--space-2);
}
.co-band .plan-name {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}
.co-band .plan-price { margin-bottom: var(--space-2); }
.co-band .plan-amount {
  color: #FFE3CC;
  font-size: 1.95rem;
}
.co-band .plan-suffix { color: rgba(247, 239, 226, 0.72); }
.co-band .co-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-xs, 0.75rem);
  color: rgba(247, 239, 226, 0.78);
}
.co-band .co-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #FF9330;
}
.co-rows {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-secondary, #FFF6EE);
  border: 1px solid var(--color-border, #e7e0d5);
  border-radius: var(--radius-md, 12px);
}
.co-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm, 0.875rem);
}
.co-row span:first-child { color: var(--text-secondary, #5c554d); }
.co-row span:last-child { font-weight: var(--weight-semibold, 600); text-align: right; min-width: 0; overflow-wrap: break-word; }
.co-row.is-total {
  padding-top: var(--space-2);
  border-top: 1px dashed rgba(255, 147, 48, 0.55);
  font-size: var(--text-base, 0.95rem);
}
.co-row.is-total span:last-child { color: var(--ink-brand, #C45C1E); font-weight: 800; }
.co-alert {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(180, 40, 40, 0.06);
  border: 1px solid rgba(180, 40, 40, 0.2);
  border-radius: var(--radius-md, 12px);
  color: var(--color-danger, #b42828);
  font-size: var(--text-sm, 0.875rem);
}
.co-pay {
  width: 100%;
  margin-top: var(--space-4);
  min-height: 46px;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.co-pay:disabled { opacity: 0.55; cursor: not-allowed; }
.co-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
}
.co-methods span {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  color: var(--text-secondary, #5c554d);
  background: var(--bg-secondary, #FFF6EE);
  border: 1px solid var(--color-border, #e7e0d5);
  border-radius: 999px;
  padding: 3px 10px;
}
.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-tertiary, #8a8178);
}
.co-secure svg { flex-shrink: 0; }
.co-side h3 {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border, #e7e0d5);
}
.co-side .plan-features { margin-bottom: var(--space-5); }
.co-trust {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.co-trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #5c554d);
  line-height: 1.5;
}
.co-trust-item b {
  display: block;
  color: var(--color-text, #241410);
  font-weight: 700;
}
.co-trust-item::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.3em;
  width: 0.7em;
  height: 0.42em;
  border-left: 2px solid #FF9330;
  border-bottom: 2px solid #FF9330;
  transform: rotate(-45deg);
}
@media (max-width: 980px) {
  .co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card:hover { transform: none; }
}
.sidebar-plan-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9a8b72;
  border: 1px solid rgba(154, 139, 114, 0.55);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.5;
  flex-shrink: 0;
}
.sidebar-plan-current {
  color: #FFE3CC;
  border-color: rgba(255, 169, 79, 0.55);
  background: rgba(255, 147, 48, 0.12);
}
.dash-hero-plan {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 169, 79, 0.55);
  background: rgba(255, 147, 48, 0.14);
  color: #FFE3CC;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-decoration: none;
}
.dash-hero-plan:hover { background: rgba(255, 147, 48, 0.26); }

/* ============================================================
   LIST SCREEN POLISH (2026-10-28)
   Every other screen is a list of rows. These few rules are what
   stops a page of data from reading like a spreadsheet: a calmer
   header band, real row rhythm, numbers that line up, and a card
   that sits on the page instead of floating.
   ============================================================ */

table { font-variant-numeric: tabular-nums; }
th {
  background: linear-gradient(180deg, #FBF7F0 0%, #F5EEE2 100%);
  color: #7C736A;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(196, 92, 30, 0.12);
}
td {
  padding: 11px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(196, 92, 30, 0.07);
}
td b, td strong { color: var(--text-primary); font-weight: 600; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr { transition: background var(--duration-fast) var(--ease-out); }
tbody tr:hover td { background: rgba(255, 147, 48, 0.07); }
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--brand-gold); }

/* Numbers and codes should line up under headings. */
td.num, td.amount, th.num, th.amount, .money, .tabular { font-variant-numeric: tabular-nums; }

/* Titles of list screens: display face, one notch bigger, so the eye
   reads "screen" and not "the first row of a table". */
.header-row h2, .header-row h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.header-row p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-tertiary); }

/* A filter bar is a tool strip, not a form: give it a surface. */
.filter-bar {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}
.filter-bar .form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Empty states should feel like an invitation, not an error. */
.empty { text-align: center; padding: var(--space-10) var(--space-6); }
.empty-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.45;
}
.empty-title { font-weight: 600; color: var(--text-primary); }

/* Badges: one consistent pill across every screen. */
.badge {
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  padding: 2px 9px;
}

/* Big single numbers in stat cards line up too. */
.stat-value, .dash-stat-value { font-variant-numeric: tabular-nums; }

/* ============================================================
   MENU BOARD (2026-10-28)
   A menu is photos and prices, not eight columns of text. The card
   grid is the same information as the old table, but a cook or an
   owner can find a dish by looking instead of reading.
   ============================================================ */

.mn-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.mn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  min-width: 260px;
  flex: 0 1 320px;
  color: var(--text-tertiary);
}
.mn-search:focus-within { border-color: rgba(255, 147, 48, 0.7); box-shadow: 0 0 0 3px rgba(255, 147, 48, 0.12); }
.mn-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
}
.mn-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.mn-chip {
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-out);
}
.mn-chip:hover { border-color: rgba(255, 147, 48, 0.6); color: var(--text-primary); }
.mn-chip.on { background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff; }
.mn-count { font-size: 0.76rem; color: var(--text-tertiary); white-space: nowrap; }

.mn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: var(--space-4);
}
.mn-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.mn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mn-card a, .mn-card button { cursor: pointer; }
.mn-card.off { opacity: 0.72; }
.mn-card[hidden] { display: none; }
.mn-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #F7F1E6, #EFE4D3);
  overflow: hidden;
}
.mn-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; transition: transform 0.45s var(--ease-out); }
.mn-card:hover .mn-photo img { transform: scale(1.045); }
/* Badges always ride above the photo, and the plate icon sits underneath it. */
.mn-veg, .mn-flag, .mn-photos { z-index: 2; }
.mn-photo-none {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  opacity: 0.7;
}
.mn-veg {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  border: 1.5px solid #16a34a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
.mn-veg.veg::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #16a34a;
}
.mn-veg.nonveg { border-color: #b91c1c; }
.mn-veg.nonveg::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #b91c1c;
}
.mn-flag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(36, 27, 20, 0.72);
  color: #FFE3CC;
  backdrop-filter: blur(4px);
}
.mn-flag.off { background: rgba(185, 28, 28, 0.9); color: #fff; top: 8px; bottom: auto; left: auto; right: 8px; }
.mn-photos {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}
.mn-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mn-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mn-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mn-price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-maroon);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mn-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.mn-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); opacity: 0.6; }
.mn-sched { color: var(--text-secondary); font-size: 0.72rem; }

.serving-box {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
}
.serving-box legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 4px;
}
.serving-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.serving-modes {
  display: flex;
  gap: var(--space-3);
  font-size: 0.85rem;
}
.serving-modes label,
.serving-copy,
.serving-days label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.serving-rows {
  display: grid;
  gap: var(--space-2);
}
.serving-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-md);
}
.serving-time {
  display: grid;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.serving-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.serving-add {
  justify-self: start;
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface-card, #fff);
  cursor: pointer;
}
.serving-add:disabled { opacity: 0.5; cursor: not-allowed; }
.serving-remove {
  font-size: 0.75rem;
  padding: 3px 8px;
  border: none;
  background: none;
  color: var(--color-danger);
  cursor: pointer;
}
.serving-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.mn-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.mn-actions form { margin: 0; }
.mn-del { color: var(--color-danger); }
.mn-del:hover { background: var(--color-danger-light); color: var(--color-danger-dark); }
.mn-empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}
.mn-empty b { display: block; color: var(--text-primary); margin-bottom: 4px; }

@media (max-width: 640px) {
  .mn-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
  .mn-photo { aspect-ratio: 1 / 1; }
  .mn-search { min-width: 0; flex: 1 1 100%; }
  .mn-count { display: none; }
  .mn-body { padding: 10px 11px 12px; gap: 6px; }
  .mn-name { font-size: 0.82rem; }
  .mn-price { font-size: 0.85rem; }
}

/* ============================================================
   FLOOR PLAN (2026-10-28)
   Tables are places in a room, not rows in a list. A tile carries
   one colour the staff can read from across the kitchen door:
   green free, amber seated, red called, gold bill to settle.
   ============================================================ */

.tb-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tb-sum {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  min-width: 0;
}
.tb-sum-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-sum-lbl {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-tertiary);
}
.tb-sum.free { border-left-color: #16a34a; }
.tb-sum.free .tb-sum-num { color: #15803d; }
.tb-sum.busy { border-left-color: var(--brand-gold); }
.tb-sum.busy .tb-sum-num { color: var(--brand-gold-dark); }
.tb-sum.call { border-left-color: #dc2626; }
.tb-sum.call .tb-sum-num { color: #b91c1c; }
.tb-sum.money { border-left-color: var(--brand-maroon); }
.tb-sum.money .tb-sum-num { color: var(--brand-maroon); }

.tb-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.tb-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.tb-key::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
}
.tb-key.free::before { background: #dcfce7; border-color: #16a34a; }
.tb-key.busy::before { background: #FFF1E4; border-color: var(--brand-gold); }
.tb-key.due::before { background: #FFF1E4; border-color: #C45C1E; }
.tb-key.call::before { background: #FEE2E2; border-color: #dc2626; }
.tb-key.off::before { background: #EFEDE9; border-color: #C7C1B6; }
.tb-key-link {
  margin-left: auto;
  font-weight: 700;
  color: var(--brand-maroon);
  text-decoration: none;
}
.tb-key-link:hover { color: var(--brand-maroon-light); }

.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: var(--space-3);
}

.tb-tile {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 12px 13px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.tb-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tb-tile.free { border-top-color: #16a34a; background: linear-gradient(180deg, rgba(22, 163, 74, 0.05), transparent 55%); }
.tb-tile.busy { border-top-color: var(--brand-gold); background: linear-gradient(180deg, rgba(255, 147, 48, 0.1), transparent 55%); }
.tb-tile.due { border-top-color: #C45C1E; background: linear-gradient(180deg, rgba(196, 92, 30, 0.11), transparent 55%); }
.tb-tile.call { border-top-color: #dc2626; background: linear-gradient(180deg, rgba(220, 38, 38, 0.11), transparent 55%); box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25); }
.tb-tile.off { border-top-color: #C7C1B6; opacity: 0.62; }

.tb-tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tb-no {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-seats { font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary); white-space: nowrap; }

.tb-state {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.tb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); flex: 0 0 auto; }
.tb-tile.free .tb-dot { background: #16a34a; }
.tb-tile.busy .tb-dot { background: var(--brand-gold); }
.tb-tile.due .tb-dot { background: #C45C1E; }
.tb-tile.call .tb-dot { background: #dc2626; animation: tbPulse 1.4s ease-in-out infinite; }
@keyframes tbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}
.tb-shared {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(196, 92, 30, 0.10);
  color: var(--brand-maroon);
}

.tb-money {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-maroon);
  line-height: 1.1;
}
.tb-money.quiet { color: var(--text-tertiary); opacity: 0.6; }
.tb-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  min-height: 14px;
}
.tb-dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.tb-calls { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tb-call {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.tb-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--surface-border);
  flex-wrap: wrap;
}
.tb-acts form { margin: 0; }
.tb-share {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tb-act {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
}
.tb-act:hover { border-color: rgba(255, 147, 48, 0.7); color: var(--text-primary); }
.tb-act.primary {
  background: var(--brand-maroon);
  border-color: var(--brand-maroon);
  color: #fff;
}
.tb-act.primary:hover { background: var(--brand-maroon-light); color: #fff; }
.tb-act.danger { color: var(--text-tertiary); padding: 4px 8px; }
.tb-act.danger:hover { background: var(--color-danger-light); border-color: #fca5a5; color: var(--color-danger-dark); }

.tb-foot {
  margin: var(--space-4) 0 0;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .tb-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tb-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .tb-no { font-size: 1.25rem; }
  .tb-money { font-size: 1rem; }
  .tb-key-link { margin-left: 0; width: 100%; }
}

/* ============================================================
   REPORTS (2026-10-28 refresh)
   Money answer first, trend second, detail third. The old page
   opened with nine equal numbers; this one leads with the window,
   then the sales curve, then the split.
   ============================================================ */

.rp-vs { color: var(--text-tertiary); }

.rp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin-bottom: var(--space-4);
}
.rp-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-quick a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--surface-card);
}
.rp-quick a:hover { border-color: rgba(255, 147, 48, 0.7); color: var(--text-primary); }
.rp-quick a.on { background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff; }
.rp-dates { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.rp-date { display: flex; flex-direction: column; gap: 3px; }
.rp-date label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.rp-date input {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-primary);
}

.rp-kpis {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.rp-kpi {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rp-kpi.lead { background: var(--maroon-grad); border-color: transparent; box-shadow: var(--shadow-maroon); }
.rp-kpi-lab {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.rp-kpi.lead .rp-kpi-lab { color: rgba(255, 255, 255, 0.62); }
.rp-kpi-num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.rp-kpi.lead .rp-kpi-num { color: #fff; font-size: clamp(1.55rem, 2.5vw, 2rem); }
.rp-delta {
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  color: var(--text-tertiary);
}
.rp-delta.up { background: rgba(16, 185, 129, 0.16); color: #15803d; }
.rp-delta.down { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.rp-kpi.lead .rp-delta.up { background: rgba(16, 185, 129, 0.25); color: #bbf7d0; }
.rp-kpi.lead .rp-delta.down { background: rgba(248, 113, 113, 0.25); color: #fecaca; }
.rp-kpi.lead .rp-delta.flat { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8); }

.rp-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5) var(--space-5);
  margin-bottom: var(--space-4);
  min-width: 0;
}
.rp-chart { padding-bottom: var(--space-4); }
.rp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.rp-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.rp-card-sub { font-size: 0.75rem; color: var(--text-tertiary); margin: 3px 0 0; }
.rp-card-link { font-size: 0.75rem; font-weight: 700; color: var(--brand-maroon); text-decoration: none; white-space: nowrap; }
.rp-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 147, 48, 0.14);
  color: var(--brand-gold-dark);
  white-space: nowrap;
}
.rp-empty { font-size: 0.82rem; color: var(--text-tertiary); margin: var(--space-3) 0 0; }

.rp-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 190px;
  padding-top: 6px;
  border-bottom: 1px solid var(--surface-border);
}
.rp-chart-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.rp-chart-bar {
  width: 100%;
  max-width: 46px;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(45deg, rgba(196, 92, 30, 0.05), rgba(196, 92, 30, 0.05) 3px, transparent 3px, transparent 6px);
  transition: height var(--duration-slow) var(--ease-out);
}
.rp-chart-col.has .rp-chart-bar { background: linear-gradient(180deg, rgba(255, 147, 48, 0.85), rgba(255, 147, 48, 0.35)); }
.rp-chart-col.now .rp-chart-bar { background: var(--maroon-grad); }
.rp-chart-col:hover .rp-chart-bar { filter: brightness(1.06); }
.rp-chart-lab {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.rp-chart-col.now .rp-chart-lab { color: var(--brand-maroon); font-weight: 800; }
.rp-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.rp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.rp-cols > .rp-card { margin-bottom: 0; }

.rp-mix { display: flex; flex-direction: column; gap: 9px; }
.rp-mix-row {
  display: grid;
  grid-template-columns: 74px 1fr auto 40px;
  gap: 9px;
  align-items: center;
  font-size: 0.78rem;
}
.rp-mix-name { color: var(--text-secondary); font-weight: 600; text-transform: capitalize; }
.rp-mix-track { height: 8px; border-radius: var(--radius-full); background: var(--surface-hover); overflow: hidden; }
.rp-mix-bar { display: block; height: 100%; border-radius: var(--radius-full); }
.rp-mix-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.rp-mix-pct { text-align: right; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.rp-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--surface-border);
}
.rp-mini-cell {
  background: var(--surface-hover);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  min-width: 0;
}
.rp-mini-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-mini-lbl { display: block; font-size: 0.72rem; color: var(--text-tertiary); margin-top: 1px; }

.rp-hours {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  border-bottom: 1px solid var(--surface-border);
}
.rp-hour { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.rp-hour-count { font-size: 0.7rem; font-weight: 700; color: var(--text-tertiary); }
.rp-hour-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.rp-hour-bar { width: 100%; border-radius: 3px 3px 0 0; background: rgba(196, 92, 30, 0.22); }
.rp-hour.peak .rp-hour-bar { background: var(--brand-gold); }
.rp-hour.peak .rp-hour-count { color: var(--brand-gold-dark); }
.rp-hour-lab { font-size: 0.7rem; color: var(--text-tertiary); }

.rp-dish { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--surface-border); }
.rp-dish:last-child { border-bottom: none; }
.rp-dish-rank {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 147, 48, 0.16);
  color: var(--brand-gold-dark);
  font-size: 0.66rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-dish-rank.top { background: var(--gold-grad); color: #fff; }
.rp-dish-body { flex: 1; min-width: 0; display: block; }
.rp-dish-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rp-dish-name { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-dish-money { font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-maroon); }
.rp-dish-track { display: block; height: 4px; border-radius: var(--radius-full); background: var(--surface-hover); margin: 5px 0 4px; overflow: hidden; }
.rp-dish-bar { display: block; height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold)); }
.rp-dish-sub { font-size: 0.7rem; color: var(--text-tertiary); }

.rp-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-status-cell {
  background: var(--surface-hover);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  text-align: center;
  min-width: 0;
}
.rp-status-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.rp-status-num.st-pending { color: var(--brand-gold); }
.rp-status-num.st-confirmed { color: #2563eb; }
.rp-status-num.st-preparing { color: var(--brand-maroon); }
.rp-status-num.st-ready,
.rp-status-num.st-completed { color: #16a34a; }
.rp-status-num.st-cancelled { color: var(--color-danger); }
.rp-status-lbl { display: block; font-size: 0.72rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.rp-facts { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.rp-fact { display: flex; flex-direction: column; gap: 2px; min-width: 92px; }
.rp-fact-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); font-weight: 700; }
.rp-fact-val { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

.rp-split { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--surface-border); }
.rp-split-title {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.rp-note {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.rp-note h3 { margin: 0 0 var(--space-2); font-size: 0.9rem; font-family: var(--font-display); color: var(--text-primary); }
.rp-note ul { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); font-size: 0.82rem; line-height: 1.75; }

@media (max-width: 1100px) {
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .rp-cols { grid-template-columns: 1fr; }
  .rp-cols > .rp-card { margin-bottom: var(--space-4); }
}
@media (max-width: 720px) {
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .rp-chart-bars { height: 140px; gap: 2px; }
  .rp-chart-lab { font-size: 0.7rem; }
  .rp-mix-row { grid-template-columns: 64px 1fr auto; }
  .rp-mix-pct { display: none; }
  .rp-toolbar { padding: 8px 10px; }
  .rp-dates { width: 100%; }
  .rp-hours { height: 120px; }
  .rp-hour-lab { font-size: 0.7rem; }
  .rp-hour-count { display: none; }
}
@media (max-width: 460px) {
  .rp-kpis { grid-template-columns: 1fr; }
  .rp-mini { grid-template-columns: 1fr; }
  .rp-status { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PREMIUM PASS 2026-10-30 (list screens)
   Reports: the window picker reads as one control, the daily chart
   gets gridlines and a best-day pin, and the top dishes list fills
   two columns so the page stops leaning left.
   Menu: cards get a proper action footer, and a dish with no cost
   price says so instead of silently dropping the margin line.
   Tables: tile actions share one height and one shape.
   ============================================================ */

/* Reports window picker */
.rp-toolbar {
  padding: 10px 12px 10px 14px;
}
.rp-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}
.rp-quick a.on { box-shadow: 0 6px 14px -10px rgba(196, 92, 30, 0.9); }
.rp-date input {
  height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rp-date input:focus {
  outline: none;
  border-color: rgba(255, 147, 48, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 147, 48, 0.16);
}
.rp-date input::-webkit-calendar-picker-indicator { opacity: 0.5; cursor: pointer; }
.rp-date input::-webkit-calendar-picker-indicator:hover { opacity: 0.9; }

/* Reports daily chart */
.rp-chart-bars {
  position: relative;
  padding-top: 10px;
  background-image: repeating-linear-gradient(to top, var(--surface-border) 0 1px, transparent 1px 25%);
  background-position: bottom;
}
.rp-chart-bar { transition: height 0.5s var(--ease-out), filter 0.15s ease; }
.rp-chart-col.best .rp-chart-bar {
  background: linear-gradient(180deg, #EFCF85, #FF9330 55%, #C45C1E);
  box-shadow: 0 10px 20px -12px rgba(196, 92, 30, 0.85);
}
.rp-chart-col.best.now .rp-chart-bar { background: var(--maroon-grad); }
.rp-chart-col.best .rp-chart-lab { color: var(--brand-gold-dark); font-weight: 800; }

/* Reports order health: a coloured hairline per status */
.rp-status-cell {
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
.rp-status-cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--surface-border);
}
.rp-status-cell:has(.st-pending)::before { background: var(--brand-gold); }
.rp-status-cell:has(.st-confirmed)::before { background: #2563eb; }
.rp-status-cell:has(.st-preparing)::before { background: var(--brand-maroon); }
.rp-status-cell:has(.st-ready)::before,
.rp-status-cell:has(.st-completed)::before { background: #16a34a; }
.rp-status-cell:has(.st-cancelled)::before { background: var(--color-danger); }

/* Reports top dishes: two columns of five */
.rp-dishes {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 28px;
}
.rp-dishes .rp-dish:nth-last-child(-n+2) { border-bottom: none; }

/* Menu cards */
.mn-actions {
  padding-top: 10px;
  border-top: 1px solid var(--surface-border);
}
.mn-actions .btn { min-height: 30px; }
.mn-muted { color: var(--text-tertiary); font-style: italic; }

/* Table tiles */
.tb-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tb-act.danger {
  width: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
}
.tb-act.primary { box-shadow: 0 6px 14px -10px rgba(196, 92, 30, 0.9); }

@media (max-width: 1100px) {
  .rp-dishes {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr);
  }
  .rp-dishes .rp-dish { border-bottom: 1px solid var(--surface-border); }
  .rp-dishes .rp-dish:last-child { border-bottom: none; }
}


/* ============ PLAN CUSTOM (white-label, no price) 2026-11-03 ============ */
.plan-custom {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 147, 48, 0.08) 0%, rgba(255, 147, 48, 0) 140px),
    var(--color-surface, #fff);
  border: 1px solid rgba(255, 147, 48, 0.55);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-5);
  box-shadow: 0 12px 32px rgba(196, 92, 30, 0.07);
}
.plan-custom .pc-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-brand, #C45C1E);
  margin-bottom: 6px;
}
.plan-custom .pc-name {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-brand, #C45C1E);
  letter-spacing: -0.01em;
}
.plan-custom .pc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
  font-family: var(--font-serif, 'Poppins', Georgia, serif);
  font-size: 1.7rem;
  line-height: 1.1;
  color: rgba(196, 92, 30, 0.85);
}
.plan-custom .pc-price span {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
}
.plan-custom .pc-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary, #5b4c47);
  max-width: 48ch;
}
.plan-custom .pc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
}
.plan-custom .pc-btns .btn {
  min-width: 160px;
  justify-content: center;
}
.plan-custom .pc-side {
  border-left: 1px solid var(--color-border, #e7e0d5);
  padding-left: var(--space-5);
  min-width: 0;
}
.plan-custom .pc-note {
  margin-top: var(--space-3);
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-tertiary, #8a8178);
}
@media (max-width: 1040px) {
  .plan-custom { grid-template-columns: minmax(0, 1fr); }
  .plan-custom .pc-side {
    border-left: none;
    border-top: 1px solid var(--color-border, #e7e0d5);
    padding-left: 0;
    padding-top: var(--space-4);
  }
}


/* ============ PLANS PREMIUM 2026-11-03 ============ */
/* The plans page reads as: state strip, the three monthly cards, the Custom
   (white-label) panel, a side by side comparison, then four help cards.
   Everything here is scoped to .pl-page so no other screen inherits it. */

.pl-page {
  display: grid;
  gap: 20px;
}
.pl-page > .pg-head { margin: 0; }
.pl-page .plan-notice { margin: 0; }

/* --- where the restaurant stands right now ---------------------------- */
.pl-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding: 16px 18px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(255, 147, 48, 0.42);
  background:
    linear-gradient(120deg, rgba(196, 92, 30, 0.055), rgba(255, 147, 48, 0.11) 72%),
    var(--color-surface, #fff);
}
.pl-state-plan {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 146px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 147, 48, 0.4);
}
.pl-state-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
}
.pl-state-plan strong {
  font-family: var(--font-serif, 'Poppins', Georgia, serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-brand, #C45C1E);
  letter-spacing: -0.01em;
}
.pl-state-price {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-tertiary, #8a8178);
}
.pl-state-price em {
  font-style: normal;
}
.pl-state-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.pl-state-facts > div { min-width: 0; }
.pl-state-facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
  margin-bottom: 3px;
}
.pl-state-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #241410);
}
.pl-state-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.pl-state-status.is-active {
  background: rgba(31, 107, 58, 0.1);
  border-color: rgba(31, 107, 58, 0.35);
  color: #1e6b3b;
}
.pl-state-status.is-grace {
  background: rgba(255, 147, 48, 0.16);
  border-color: rgba(255, 147, 48, 0.55);
  color: #7d5a12;
}
.pl-state-status.is-expired {
  background: rgba(150, 24, 36, 0.09);
  border-color: rgba(150, 24, 36, 0.35);
  color: #C45C1E;
}
.pl-state-status.is-free {
  background: rgba(196, 92, 30, 0.055);
  border-color: rgba(196, 92, 30, 0.2);
  color: var(--ink-brand, #C45C1E);
}
.pl-state-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-brand, #C45C1E);
  background: rgba(196, 92, 30, 0.06);
  border: 1px solid rgba(196, 92, 30, 0.14);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-state-link:hover {
  background: rgba(255, 147, 48, 0.16);
  border-color: rgba(255, 147, 48, 0.55);
}

/* --- the three monthly cards ------------------------------------------ */
.pl-page .plan-grid { gap: 18px; }
.pl-page .plan-card { padding: 28px 24px 24px; }
.pl-page .plan-head {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 14px;
}
.pl-page .plan-desc {
  margin-bottom: 12px;
  min-height: 3.1em;
}
.pl-page .plan-price {
  margin: 2px 0 8px;
  min-height: 52px;
}
.pl-page .plan-card:not(.plan-popular) .plan-price { align-items: center; }
.pl-page .plan-popular { box-shadow: 0 18px 44px rgba(196, 92, 30, 0.13); }

/* the action sits under the price and above the list, with one hairline
   under it, so the card reads price, act, then what you get */
.pl-page .plan-act {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(196, 92, 30, 0.12);
}
.pl-page .plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.pl-page .plan-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pl-page .plan-features-label {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

/* the three cards share their row heights, so every price, every button
   and every list start on the same line across the grid */
@media (min-width: 901px) {
  .pl-page .plan-grid { grid-template-rows: auto auto 1fr; }
  @supports (grid-template-rows: subgrid) {
    .pl-page .plan-card {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      align-content: start;
    }
  }
}

/* the check list: a thin gold tick, a bold lead, then the plain fact */
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.plan-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--text-secondary, #5c554d);
  min-width: 0;
  overflow-wrap: break-word;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid #a7832f;
  border-bottom: 1.5px solid #a7832f;
  transform: rotate(-45deg);
}
.plan-list b {
  font-weight: 700;
  color: var(--color-text, #241410);
}
.plan-card.plan-popular .plan-list li { color: rgba(36, 20, 16, 0.74); }
.plan-card.plan-popular .plan-list b { color: var(--ink-brand, #C45C1E); }

/* the small print lives once under the grid, not inside every card */
.plan-footnotes {
  display: grid;
  gap: 4px;
  margin: 14px 2px 0;
  font-size: 0.73rem;
  line-height: 1.55;
  color: var(--text-tertiary, #8a8178);
}

/* --- Custom panel: the three steps of a white-label job --------------- */
.plan-custom .pc-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 147, 48, 0.5);
}
.pc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text, #241410);
  min-width: 0;
}
.pc-step span {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FF9330, #C45C1E);
  color: #FFE3CC;
  font-size: 0.72rem;
  font-weight: 800;
}

/* --- comparison table -------------------------------------------------- */
.pl-cmp {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e7e0d5);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 6, 9, 0.04);
}
.pl-cmp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--color-border, #e7e0d5);
}
.pl-cmp-title {
  margin: 2px 0 0;
  font-family: var(--font-serif, 'Poppins', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-brand, #C45C1E);
}
.pl-cmp-sub {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary, #5c554d);
}
.pl-cmp-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-cmp-pick {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e7e0d5);
  background: var(--color-bg, #FFF6EE);
}
.pl-cmp-pick span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
}
.pl-cmp-pick b {
  font-family: var(--font-serif, 'Poppins', Georgia, serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-brand, #C45C1E);
  white-space: nowrap;
}
.pl-cmp-pick.is-pop {
  border-color: rgba(255, 147, 48, 0.75);
  background: linear-gradient(135deg, #FF9330, #C45C1E);
  box-shadow: 0 6px 16px rgba(196, 92, 30, 0.18);
}
.pl-cmp-pick.is-pop span { color: rgba(255, 169, 79, 0.82); }
.pl-cmp-pick.is-pop b { color: #FFE3CC; }
.pl-cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pl-cmp-hint {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary, #8a8178);
  background: rgba(255, 147, 48, 0.07);
  border-bottom: 1px solid var(--color-border, #e7e0d5);
}
.pl-cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.pl-cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8178);
  background: var(--color-bg, #FFF6EE);
  border-bottom: 1px solid var(--color-border, #e7e0d5);
}
.pl-cmp-table thead th:first-child {
  left: 0;
  text-align: left;
  z-index: 3;
}
.pl-cmp-table tbody th,
.pl-cmp-table tbody td {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(231, 224, 213, 0.75);
  vertical-align: middle;
}
.pl-cmp-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  font-weight: 600;
  color: var(--color-text, #241410);
  background: var(--color-surface, #fff);
}
.pl-cmp-table tbody td {
  width: 21%;
  text-align: center;
}
.pl-cmp-group th {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-brand, #C45C1E);
  background: var(--color-bg, #FFF6EE);
  border-bottom: 1px solid var(--color-border, #e7e0d5);
  border-top: 1px solid var(--color-border, #e7e0d5);
}
.pl-cmp-table tbody tr:hover th,
.pl-cmp-table tbody tr:hover td {
  background: rgba(255, 147, 48, 0.06);
}
.pl-cmp-table tbody tr:last-child th,
.pl-cmp-table tbody tr:last-child td {
  border-bottom: none;
}
.pl-yes {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 107, 58, 0.11);
  border: 1px solid rgba(31, 107, 58, 0.3);
  color: #1e6b3b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}
.pl-no {
  display: inline-block;
  color: var(--text-tertiary, #b9b0a5);
  font-weight: 700;
}

/* --- help cards -------------------------------------------------------- */
.pl-help {
  display: grid;
  gap: 12px;
}
.pl-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.pl-help-card {
  padding: 16px 18px 14px;
  border: 1px solid var(--color-border, #e7e0d5);
  border-left: 3px solid rgba(255, 147, 48, 0.65);
  border-radius: var(--radius-lg, 12px);
  background: var(--color-surface, #fff);
  box-shadow: 0 1px 2px rgba(36, 6, 9, 0.04);
  min-width: 0;
}
.pl-help-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-brand, #C45C1E);
}
.pl-help-card p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary, #5c554d);
}
.pl-help-card p:last-child { margin-bottom: 0; }

@media (max-width: 1040px) {
  .pl-state-plan {
    border-right: none;
    padding-right: 0;
  }
  .pl-help-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pl-page { gap: 16px; }
  .pl-state { padding: 14px; }
  .pl-state-facts { gap: 10px 20px; }
  .pl-state-link { margin-left: 0; }
  .pl-cmp-head { padding: 18px 16px 14px; }
  .pl-cmp-picks { width: 100%; }
  .pl-cmp-pick {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 10px;
  }
  .pl-cmp-table { min-width: 500px; }
  .pl-cmp-table tbody th { max-width: 158px; }
  .pl-cmp-hint { display: flex; }
  .pl-cmp-table tbody th,
  .pl-cmp-table tbody td { padding: 8px 10px; font-size: 0.79rem; }
  .plan-custom { padding: 18px; }
  .plan-custom .pc-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .pl-state-facts { width: 100%; }
  .pl-state-facts > div { flex: 1 1 40%; }
     @media (max-width: 420px) { .pl-state-facts > div { flex: 1 1 100%; } }
  .pl-cmp-table thead th { font-size: 0.7rem; padding: 8px; }
}

/* HELP PAGE 2026-11-15: owner help centre Q&A list. */
.help-list { display: grid; gap: 10px; margin-top: 4px; }
.help-qa { border: 1px solid var(--line, #e7e2da); border-radius: 12px; background: var(--card, #fff); overflow: hidden; }
.help-qa summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.help-qa summary::-webkit-details-marker { display: none; }
.help-qa summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--text-tertiary, #9a938a); border-bottom: 2px solid var(--text-tertiary, #9a938a); transform: rotate(-45deg); transition: transform 0.15s ease; flex: 0 0 auto; }
.help-qa[open] summary::before { transform: rotate(45deg); }
.help-qa summary:hover { background: var(--bg-secondary, #faf8f5); }
.help-a { padding: 0 16px 14px 34px; color: var(--text-secondary); line-height: 1.6; font-size: 0.92rem; }
.help-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #e7e2da); flex-wrap: wrap; }
.help-foot span { color: var(--text-secondary); font-size: 0.9rem; }
@media (max-width: 560px) {
  .help-a { padding-left: 16px; }
  .help-foot { flex-direction: column; align-items: stretch; }
}

/* VISUAL AUDIT WAVE 2: reports date parts never clip */
body.dash-app .rp-dates .dfield-d { min-width: 52px; flex-basis: 52px; }
body.dash-app .rp-dates .dfield-y { min-width: 58px; flex-basis: 58px; }
