/* =========================================================================
   DINEFLOW 2.0 — ENTERPRISE HOSPITALITY OPERATING SYSTEM & REAL-TIME KDS
   Design Language: Modern Obsidian & Warm Brass Luxury Hospitality
   ========================================================================= */

:root {
  --bg-root: #0d0e12;
  --bg-surface: #131419;
  --bg-card: #181a21;
  --bg-card-hover: #1f222c;
  --bg-input: #0f1015;

  --border-subtle: #242632;
  --border-card: #2a2d3a;
  --border-gold: rgba(212, 175, 55, 0.25);

  --accent-gold: #d4af37;
  --accent-gold-hover: #e5be42;
  --accent-gold-glow: rgba(212, 175, 55, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  --text-primary: #f5f3ef;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c4052;
}

/* Base App Wrapper */
.df-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================================================
   TOP NAVBAR
   ========================================================================= */
.df-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
}

.df-nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.df-back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.df-back-link:hover {
  color: var(--text-primary);
}

.df-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.df-brand-crest {
  font-size: 20px;
  color: var(--accent-gold);
}

.df-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.df-brand-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  background: linear-gradient(180deg, #ffffff 40%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.df-brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Center Workspace Switcher */
.df-view-switcher {
  display: flex;
  background: var(--bg-root);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.df-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.df-tab-btn:hover {
  color: var(--text-primary);
}
.df-tab-btn.active {
  color: #0d0e12;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c59b27 100%);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.ticket-pulse-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: #0d0e12;
  color: var(--accent-gold);
  padding: 1px 6px;
  border-radius: 999px;
}
.df-tab-btn.active .ticket-pulse-badge {
  background: #ffffff;
  color: #0d0e12;
}

/* Nav Actions Right */
.df-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.df-table-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  cursor: pointer;
  position: relative;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}
.hidden-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.df-btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.df-btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.df-btn-tray {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.df-btn-tray:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}
.tray-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-gold);
  color: #0d0e12;
  padding: 2px 7px;
  border-radius: 999px;
}

/* =========================================================================
   WORKSPACE 1: GUEST DIGITAL DINING
   ========================================================================= */
.df-workspace {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Atmosphere Hero */
.df-guest-hero {
  background: linear-gradient(135deg, #181a22 0%, #111217 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.guest-hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guest-hero-telemetry {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.telemetry-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tele-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
}
.tele-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-call-waiter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-call-waiter:hover {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
}

/* Sticky Category Navigation */
.df-categories-bar {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: rgba(13, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.category-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
}
.category-tab-btn.active {
  color: #0d0e12;
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Search & Dietary Filter Row */
.df-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.df-search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.df-search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 16px 10px 40px;
  transition: border-color 0.15s ease;
}
.df-search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.df-dietary-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diet-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.diet-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
}
.diet-pill.active {
  color: var(--accent-gold);
  border-color: var(--border-gold);
  background: var(--accent-gold-glow);
}

/* Menu Grid */
.df-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.dish-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.dish-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.dish-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dish-card:hover .dish-img {
  transform: scale(1.04);
}

.dish-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
}

.dish-badges-float {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.dish-badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dish-prep-float {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dish-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.dish-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.dish-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.dish-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-dish-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-dish-add:hover {
  background: var(--accent-gold);
  color: #0d0e12;
}

/* Out of stock card */
.dish-card.out-of-stock {
  opacity: 0.55;
  filter: grayscale(40%);
}
.dish-card.out-of-stock .btn-dish-add {
  pointer-events: none;
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* =========================================================================
   WORKSPACE 2: KITCHEN DISPLAY SYSTEM (KDS)
   ========================================================================= */
.df-view-kds {
  max-width: 1600px;
}

.kds-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 20px;
}

.kds-stations-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.kds-station-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.kds-station-btn:hover {
  color: var(--text-primary);
}
.kds-station-btn.active {
  background: var(--accent-gold);
  color: #0d0e12;
  border-color: var(--accent-gold);
}

.kds-meta-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kds-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.kds-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}
.kds-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}
.highlight-amber { color: var(--accent-amber); }

.kds-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.kds-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
}
.btn-simulate-rush {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c59b27 100%);
  color: #0d0e12;
  border: none;
}
.btn-simulate-rush:hover {
  filter: brightness(1.1);
}

/* 4-Stage Kanban Board */
.kds-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.kds-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 640px;
  overflow: hidden;
}

.col-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.col-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-incoming { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dot-prep { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.dot-ready { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }
.dot-completed { background: var(--text-muted); }

.col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.col-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--text-secondary);
}

.col-tickets-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  max-height: 700px;
}

/* KDS Ticket Card */
.kds-ticket {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.kds-ticket:hover {
  border-color: var(--border-gold);
}

.tkt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.tkt-table {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.tkt-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.timer-normal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.timer-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.timer-urgent {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
  animation: pulseWarning 1s infinite alternate;
}
@keyframes pulseWarning {
  from { opacity: 0.8; }
  to { opacity: 1; transform: scale(1.02); }
}

.tkt-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tkt-item-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.tkt-item-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.tkt-qty {
  color: var(--accent-gold);
  margin-right: 4px;
}

.tkt-modifiers {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 14px;
}

.tkt-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.btn-bump {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-bump:hover {
  background: var(--accent-gold);
  color: #0d0e12;
}

/* =========================================================================
   WORKSPACE 3: FLOORPLAN & 80MM THERMAL POS
   ========================================================================= */
.floor-layout-container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.floor-tables-panel,
.floor-pos-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}
.section-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.table-legend {
  display: flex;
  gap: 12px;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}
.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-vacant { background: var(--text-muted); }
.dot-dining { background: var(--accent-emerald); }
.dot-billed { background: var(--accent-gold); }

.floor-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.floor-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.floor-table-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.floor-table-card.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-glow);
}

.ft-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-id {
  font-weight: 700;
  font-size: 14px;
}
.ft-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-vacant { background: var(--text-muted); }
.status-occupied { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.status-billed { background: var(--accent-gold); box-shadow: 0 0 6px var(--accent-gold); }

.ft-zone {
  font-size: 11px;
  color: var(--text-muted);
}
.ft-orders {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Authentic 80mm Thermal Receipt Preview */
.btn-thermal-print {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-thermal-print:hover {
  background: var(--accent-gold);
  color: #0d0e12;
}

.thermal-receipt-paper {
  background: #fbfbf9;
  color: #111111;
  border: 1px dashed #d1d5db;
  border-radius: 4px;
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rcpt-brand {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.rcpt-line {
  text-align: center;
  font-size: 9px;
  color: #4b5563;
}
.rcpt-divider {
  text-align: center;
  color: #9ca3af;
  margin: 4px 0;
}
.rcpt-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.rcpt-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rcpt-item-row {
  display: flex;
  justify-content: space-between;
}
.rcpt-totals {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rcpt-t-row {
  display: flex;
  justify-content: space-between;
}
.rcpt-grand-total {
  font-size: 13px;
  font-weight: 700;
}
.rcpt-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rcpt-center {
  text-align: center;
}
.rcpt-barcode {
  font-size: 18px;
  text-align: center;
  letter-spacing: 2px;
  margin: 4px 0;
}
.rcpt-tiny {
  font-size: 9px;
  color: #6b7280;
}

.pos-actions-footer {
  display: flex;
}
.btn-pos-settle {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-pos-settle:hover {
  filter: brightness(1.1);
}

/* =========================================================================
   MODAL: DISH CUSTOMIZER SHEET
   ========================================================================= */
.df-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.df-modal-backdrop.show {
  display: flex;
}

.df-modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.2s ease-out;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 14, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero-img-wrap {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
}
.modal-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 60%);
}
.modal-badge-group {
  position: absolute;
  bottom: 12px;
  left: 20px;
  display: flex;
  gap: 8px;
}
.diet-tag, .prep-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 14, 18, 0.85);
  border: 1px solid var(--border-subtle);
}

.modal-body-scroll {
  padding: 16px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.modal-dish-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}
.modal-dish-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
}
.modal-dish-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modifier-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mod-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}
.mod-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
}
.mod-opt-input {
  accent-color: var(--accent-gold);
  margin-right: 8px;
}
.mod-opt-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.chef-note-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chef-note-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.chef-note-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.modal-footer-bar {
  padding: 14px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-counter {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}
.qty-btn:hover {
  background: var(--bg-card);
}
.qty-number {
  font-family: var(--font-mono);
  font-weight: 700;
  width: 24px;
  text-align: center;
}

.btn-add-to-tray {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c59b27 100%);
  border: none;
  color: #0d0e12;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-add-to-tray:hover {
  filter: brightness(1.1);
}

/* =========================================================================
   CART SLIDE-OUT DRAWER
   ========================================================================= */
.df-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}
.df-cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.cart-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}
.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}
.cart-close-btn:hover {
  color: var(--text-primary);
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  text-align: center;
  color: var(--text-muted);
  gap: 8px;
}
.empty-icon {
  font-size: 32px;
}

.cart-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ci-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.ci-modifiers {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.ci-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.ci-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
}

.cart-footer {
  padding: 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bill-summary-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.bill-row {
  display: flex;
  justify-content: space-between;
}
.bill-grand-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 6px;
  margin-top: 4px;
}

.btn-dispatch-order {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c59b27 100%);
  border: none;
  color: #0d0e12;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.btn-dispatch-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Toast */
.df-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181a22;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: none;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.df-toast.show {
  display: block;
}

/* 86 drawer sheet */
.sheet-86 {
  max-height: 80vh;
  padding: 24px;
  gap: 16px;
}
.list-86-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.item-86-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Print Stylesheet for 80mm Receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #thermalReceiptBox, #thermalReceiptBox * {
    visibility: visible;
  }
  #thermalReceiptBox {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 2mm;
    border: none;
    box-shadow: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .kds-kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .floor-layout-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .df-navbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .df-view-switcher {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .kds-kanban-board {
    grid-template-columns: 1fr;
  }
  .df-menu-grid {
    grid-template-columns: 1fr;
  }
}