/* ===== PREMIUM DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-card: #131317;
  --bg-card-hover: #1a1a1f;
  --bg-sidebar: linear-gradient(180deg, #0e0e11 0%, #0a0a0c 100%);
  --bg-input: #16161a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.10);
  --text: #ededee;
  --text-dim: #a8a8ad;
  --text-muted: #6b6b73;
  /* Gold tonal scale — single accent */
  --amber: #f5b90a;
  --amber-soft: rgba(245,185,10,0.10);
  --gold-50: #fef3c7;
  --gold-100: #fde68a;
  --gold-200: #fbd24c;
  --gold-400: #d99a00;
  --gold-500: #a07000;
  --gold-600: #6e4c00;
  --gold-700: #3d2900;
  /* Functional ONLY — used sparingly */
  --green: #6dbf86;
  --green-soft: rgba(109,191,134,0.10);
  --red: #d96b6b;
  --red-soft: rgba(217,107,107,0.10);
  /* Remap old colors to gold scale for compatibility */
  --purple: #d99a00;
  --purple-soft: rgba(217,154,0,0.10);
  --teal: #a07000;
  --teal-soft: rgba(160,112,0,0.10);
  --blue: #6e4c00;
  --blue-soft: rgba(110,76,0,0.10);
  --orange: #d99a00;
  --orange-soft: rgba(217,154,0,0.10);
  --gold-glow: rgba(245,185,10,0.35);
  --sidebar-w: 232px;
  --sidebar-collapsed: 72px;
  --topbar-h: 64px;
  --radius: 18px;
  --radius-sm: 8px;
  --glass-blur: 18px;
  --transition: .35s cubic-bezier(.2,.7,.2,1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-num: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f5f3ef;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-hover: rgba(255,255,255,0.95);
  --bg-sidebar: #faf8f4;
  --bg-input: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --text: #1a1a1f;
  --text-dim: #6b6b73;
  --text-muted: #a8a8ad;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
/* Ambient gold glow, breathing */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(245,185,10,0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(217,154,0,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
/* Subtle film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  padding: 22px 14px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.logo-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f5b90a 40%, #a07000 100%);
  border-radius: 9px;
  color: #1a0e00;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 18px var(--gold-glow);
  position: relative;
}
.logo-icon::after {
  content:''; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 40%);
  mix-blend-mode: overlay;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; opacity: .75; }
.nav-item:hover { background: rgba(255,255,255,.025); color: var(--text); }
.nav-item.active {
  color: #fbd24c;
  background: linear-gradient(90deg, rgba(245,185,10,0.10), rgba(245,185,10,0) 80%);
}
.nav-item.active::before {
  content:''; position:absolute; left:-14px; top:8px; bottom:8px; width:2px;
  background: var(--amber); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--gold-glow);
}
.nav-item.active svg { opacity: 1; }
.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #a07000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .7rem;
  color: #1a0e00;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name { font-size: .85rem; font-weight: 600; }
.user-plan { font-size: .7rem; color: var(--text-muted); }

/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(18px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 50;
}
[data-theme="light"] .topbar { background: rgba(245,243,239,0.8); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
.page-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }
.page-date { font-size: .8rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: #d99a00; box-shadow: 0 0 0 3px rgba(245,185,10,.10); }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  width: 160px;
}
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.theme-btn, .notif-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.theme-btn:hover, .notif-btn:hover { border-color: var(--border-hover); color: var(--text); }
.notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--amber);
  color: #1a0e00;
  font-size: .6rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.avatar-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #a07000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: #1a0e00;
}
.avatar-name { font-size: .85rem; font-weight: 600; }

/* ===== PAGES ===== */
.page { display: none; padding: 26px 28px 60px; max-width: 1600px; }
.page.active { display: block; }
.page.active > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.page.active > *:nth-child(1) { animation-delay: .02s; }
.page.active > *:nth-child(2) { animation-delay: .08s; }
.page.active > *:nth-child(3) { animation-delay: .14s; }
.page.active > *:nth-child(4) { animation-delay: .20s; }
.page.active > *:nth-child(5) { animation-delay: .26s; }
.page.active > *:nth-child(6) { animation-delay: .32s; }
.page.active > *:nth-child(7) { animation-delay: .38s; }
.page.active > *:nth-child(8) { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.stat-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.stat-card::after { content:''; position:absolute; left:0; top:0; height:100%; width:2px; background:var(--amber); opacity:0; transition:var(--transition); border-radius:var(--radius) 0 0 var(--radius); }
.stat-card:hover::after { opacity:1; }
.stat-card { position:relative; overflow:hidden; }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.amber { background: rgba(245,185,10,0.10); color: #fbd24c; }
.stat-icon.teal { background: rgba(217,154,0,0.10); color: #d99a00; }
.stat-icon.purple { background: rgba(160,112,0,0.10); color: #a07000; }
.stat-icon.green { background: rgba(245,185,10,0.08); color: #fde68a; }
.stat-icon.blue { background: rgba(110,76,0,0.10); color: #6e4c00; }
.stat-info { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: .62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 1.85rem; font-weight: 400; letter-spacing: -.02em; }
.stat-change { font-size: .75rem; font-weight: 600; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-change.neutral { color: var(--text-dim); }

/* Mini stat cards */
.stat-card.mini {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
}
.stat-value-lg {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -.02em;
}
.stat-value-lg.red { color: var(--red); }
.stat-value-lg.green { color: var(--green); }
.stat-sub { font-size: .75rem; color: var(--text-muted); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-compact { padding: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.card-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.card-badge {
  font-size: .65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,185,10,.08);
  color: #fbd24c;
  border: 1px solid rgba(245,185,10,.18);
  font-family: var(--font-num);
  letter-spacing: .04em;
}
.card-badge.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* ===== CHARTS ===== */
.chart-wrap { height: 260px; position: relative; }
.chart-wrap.chart-wide { height: 300px; }

/* ===== TABLE GRID (Floor Plan) ===== */
.table-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 8px 0;
}
.table-spot {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  gap: 4px;
  transition: all var(--transition);
  cursor: pointer;
}
.table-spot:hover { transform: scale(1.05); }
.table-spot .table-num { font-size: 1rem; font-weight: 800; }
.table-spot .table-seats { font-size: .65rem; opacity: .7; }
.table-spot.occupied { background: linear-gradient(180deg, rgba(245,185,10,.16), rgba(245,185,10,.05)); color: #fde68a; border: 1px solid rgba(245,185,10,0.4); }
.table-spot.reserved { background: rgba(255,255,255,0.03); color: var(--text); border: 1px dashed rgba(255,255,255,0.10); }
.table-spot.free { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }

.table-legend { display: flex; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.occupied { background: var(--red); }
.dot.reserved { background: var(--amber); }
.dot.free { background: var(--green); }

/* ===== ORDERS LIST ===== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.order-item:hover { background: var(--bg-card-hover); }
.order-info { display: flex; flex-direction: column; gap: 2px; }
.order-table { font-weight: 600; font-size: .85rem; }
.order-items { font-size: .75rem; color: var(--text-dim); }
.order-amount { font-weight: 700; color: var(--amber); font-size: .9rem; }
.order-time { font-size: .65rem; color: var(--text-muted); }

/* ===== REVIEWS ===== */
.review-avg { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.stars { color: var(--amber); }
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}
.review-item {
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.review-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.review-name { font-weight: 600; font-size: .8rem; }
.review-stars { font-size: .75rem; color: var(--amber); }
.review-text { font-size: .75rem; color: var(--text-dim); line-height: 1.4; }

/* ===== DATA TABLE ===== */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-card-hover); }

/* Status badges */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.status.confirmed { background: rgba(245,185,10,.10); color: #fbd24c; }
.status.pending { background: rgba(255,255,255,.04); color: var(--text-dim); border: 1px dashed var(--border-hover); }
.status.cancelled { background: var(--red-soft); color: var(--red); }
.status.seated { background: var(--green-soft); color: var(--green); }
.status.arrived { background: rgba(109,191,134,.06); color: var(--green); border: 1px solid rgba(109,191,134,.20); }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 6px; }
.tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  color: var(--text-dim);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.tab:hover { border-color: var(--border-hover); color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--amber), #a07000); border-color: transparent; color: #1a0e00; font-weight: 600; }

.btn-sm {
  padding: 6px 16px;
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-sm:hover { background: var(--amber); color: #fff; }

/* ===== FLOOR PLAN ===== */
.floor-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.floor-table {
  aspect-ratio: 1.3;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.floor-table:hover { transform: scale(1.04); }
.floor-table .ft-num { font-size: 1.1rem; font-weight: 800; }
.floor-table .ft-info { font-size: .65rem; opacity: .7; }
.floor-table .ft-time { font-size: .6rem; opacity: .5; }
.floor-table.occupied { background: linear-gradient(180deg, rgba(245,185,10,.16), rgba(245,185,10,.05)); color: #fde68a; border: 1px solid rgba(245,185,10,0.4); }
.floor-table.reserved { background: rgba(255,255,255,0.03); color: var(--text); border: 1px dashed rgba(255,255,255,0.10); }
.floor-table.free { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== MENU GRID ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}
.menu-item {
  padding: 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  transition: all var(--transition);
}
.menu-item:hover { background: var(--bg-card-hover); }
.menu-item-info { display: flex; flex-direction: column; gap: 3px; }
.menu-item-name { font-weight: 600; font-size: .85rem; }
.menu-item-cat { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.menu-item-desc { font-size: .72rem; color: var(--text-dim); line-height: 1.3; }
.menu-item-price { font-weight: 700; color: var(--amber); font-size: .95rem; white-space: nowrap; }
.menu-item-sold { font-size: .6rem; color: var(--text-muted); text-align: right; }

/* ===== KITCHEN QUEUE ===== */
.kitchen-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.kitchen-order {
  padding: 12px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  transition: all var(--transition);
}
.kitchen-order:hover { background: var(--bg-card-hover); }
.kitchen-order.urgent { border-left-color: var(--red); }
.kitchen-order.ready { border-left-color: var(--green); }
.ko-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ko-table { font-weight: 700; font-size: .9rem; }
.ko-time { font-size: .7rem; color: var(--text-muted); }
.ko-items { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.ko-status { font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; margin-top: 6px; display: inline-block; }
.ko-status.preparing { background: rgba(245,185,10,.10); color: #fbd24c; }
.ko-status.waiting { background: var(--red-soft); color: var(--red); }
.ko-status.done { background: var(--green-soft); color: var(--green); }

/* ===== STOCK ALERTS ===== */
.stock-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.stock-name { font-size: .85rem; font-weight: 500; }
.stock-level {
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}
.stock-level.low { background: var(--red-soft); color: var(--red); }
.stock-level.medium { background: var(--amber-soft); color: var(--amber); }

/* ===== SCHEDULE GRID ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sched-cell {
  background: var(--bg);
  padding: 10px 8px;
  font-size: .72rem;
  min-height: 50px;
}
.sched-header {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  font-size: .7rem;
  text-transform: uppercase;
}
.sched-name {
  background: var(--bg-card);
  font-weight: 600;
  font-size: .8rem;
  display: flex;
  align-items: center;
}
.sched-shift {
  font-size: .65rem;
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
}
.sched-shift.morning { background: rgba(245,185,10,.08); color: #fde68a; }
.sched-shift.evening { background: rgba(217,154,0,.12); color: #d99a00; }
.sched-shift.full { background: rgba(245,185,10,.15); color: #f5b90a; font-weight: 600; }
.sched-shift.off { color: var(--text-muted); background: rgba(255,255,255,.02); }

/* ===== SETTINGS FORMS ===== */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: #d99a00; box-shadow: 0 0 0 3px rgba(245,185,10,.10); }
.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--amber), #a07000);
  border: none;
  border-radius: var(--radius-sm);
  color: #1a0e00;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ===== HOURS LIST ===== */
.hours-list { display: flex; flex-direction: column; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.hours-row:last-child { border-bottom: none; }

/* ===== TOGGLE ===== */
.toggle-group { display: flex; flex-direction: column; gap: 4px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; bottom: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--amber-soft); border-color: var(--amber); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--amber); }

/* ===== RATING STARS ===== */
.star-rating { display: flex; gap: 2px; }
.star-rating .star { color: var(--amber); font-size: .8rem; }
.star-rating .star.dim { color: var(--text-muted); }

/* ===== TIMELINE ===== */
.timeline-container {
  overflow-x: auto;
  padding: 8px 0;
}
.timeline {
  display: flex;
  gap: 0;
  min-width: 900px;
  position: relative;
  height: 200px;
}
.timeline-hour {
  flex: 1;
  border-right: 1px solid var(--border);
  position: relative;
  min-width: 80px;
}
.timeline-hour-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.timeline-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  z-index: 10;
  pointer-events: none;
}
.timeline-now::before {
  content: 'NU';
  position: absolute;
  top: -2px;
  left: -10px;
  font-size: .5rem;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  padding: 1px 4px;
  border-radius: 4px;
}
.tl-block {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: .6rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
}
.tl-block:hover { filter: brightness(1.2); transform: scale(1.02); z-index: 6; }
.tl-block.seated { background: linear-gradient(135deg, rgba(109,191,134,.18), rgba(109,191,134,.04)); color: #b3e3c2; border-left: 2px solid var(--green); }
.tl-block.confirmed { background: linear-gradient(135deg, rgba(245,185,10,.18), rgba(245,185,10,.08)); color: #fde68a; border-left: 2px solid #f5b90a; }
.tl-block.pending { background: rgba(255,255,255,0.04); color: var(--text-dim); border-left: 2px dashed var(--border-hover); }
.tl-block.arrived { background: rgba(109,191,134,.06); color: var(--green); border-left: 2px solid rgba(109,191,134,.5); }
.tl-block .tl-name { font-weight: 700; }
.tl-block .tl-guests { opacity: .7; }

/* ===== HEATMAP ===== */
.heatmap-grid {
  display: grid;
  grid-template-columns: 50px repeat(7, 1fr);
  gap: 3px;
}
.hm-cell {
  aspect-ratio: 1.5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: default;
}
.hm-cell:hover { transform: scale(1.1); z-index: 2; }
.hm-header {
  font-size: .6rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.hm-label {
  font-size: .6rem;
  color: var(--text-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
}
.hm-0 { background: #231600; color: var(--text-muted); }
.hm-1 { background: #3d2900; color: #a07000; }
.hm-2 { background: #6e4c00; color: #d99a00; }
.hm-3 { background: #a07000; color: #fbd24c; }
.hm-4 { background: #d99a00; color: #fef3c7; }
.hm-5 { background: #f5b90a; color: #1a0e00; }

/* ===== VIP & DIET ICONS ===== */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 1px 6px;
  border-radius: 10px;
}
.vip-badge .crown { font-size: .7rem; }
.visit-count {
  font-size: .6rem;
  color: var(--text-muted);
  font-weight: 500;
}
.diet-icons {
  display: flex;
  gap: 3px;
}
.diet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 700;
  cursor: help;
}
.diet-icon.gluten { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }
.diet-icon.vegan { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }
.diet-icon.nuts { background: var(--red-soft); color: var(--red); border: 1px solid rgba(217,107,107,.2); }
.diet-icon.dairy { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }
.diet-icon.halal { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }
.diet-icon.vegetarian { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }

/* 036: Confirmation status */
.confirm-status {
  display: flex;
  gap: 4px;
  align-items: center;
}
.confirm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.confirm-dot.sent { background: var(--green); }
.confirm-dot.pending { background: var(--amber); }
.confirm-dot.failed { background: var(--red); }
.confirm-label {
  font-size: .6rem;
  color: var(--text-muted);
}

/* 037: Occasion tags */
.occasion-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.occasion-tag.birthday { background: rgba(245,185,10,.08); color: #fbd24c; border: 1px solid rgba(245,185,10,.18); }
.occasion-tag.anniversary { background: rgba(245,185,10,.08); color: #fbd24c; border: 1px solid rgba(245,185,10,.18); }
.occasion-tag.business { background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover); }
.occasion-tag.wedding { background: rgba(245,185,10,.08); color: #fbd24c; border: 1px solid rgba(245,185,10,.18); }

/* ===== WAITLIST ===== */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.waitlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  transition: all var(--transition);
}
.waitlist-item:hover { background: var(--bg-card-hover); }
.wl-info { display: flex; flex-direction: column; gap: 2px; }
.wl-name { font-weight: 600; font-size: .85rem; }
.wl-details { font-size: .72rem; color: var(--text-dim); }
.wl-time {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wl-wait { font-size: .8rem; font-weight: 700; color: var(--amber); }
.wl-eta { font-size: .65rem; color: var(--text-muted); }

/* ===== TURN TIMES ===== */
.turn-times {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.turn-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-input);
  border-radius: 20px;
  font-size: .7rem;
}
.turn-item .turn-table { font-weight: 700; }
.turn-item .turn-duration { color: var(--text-dim); }
.turn-item .turn-bar {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.turn-item .turn-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .6s ease;
}

/* ===== AUTO-ASSIGN ===== */
.auto-assign {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.assign-row:hover { background: var(--bg-card-hover); }
.assign-guest { display: flex; flex-direction: column; gap: 2px; }
.assign-name { font-weight: 600; font-size: .85rem; }
.assign-detail { font-size: .7rem; color: var(--text-dim); }
.assign-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assign-table {
  padding: 4px 12px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
}
.assign-reason {
  font-size: .65rem;
  color: var(--text-muted);
  max-width: 120px;
}
.assign-btn {
  padding: 4px 12px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.assign-btn:hover { background: var(--green); color: #fff; }

/* ===== 86'd BAR ===== */
.eightysix-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.eightysix-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  animation: fadeIn .4s ease;
}
.eightysix-label {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .7;
}

/* ===== MENU ITEM ENHANCED ===== */
.menu-item-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.menu-item-margin {
  font-size: .55rem;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 2px;
  display: inline-block;
}
.menu-item-margin.high { background: var(--green-soft); color: var(--green); }
.menu-item-margin.mid { background: var(--amber-soft); color: var(--amber); }
.menu-item-margin.low { background: var(--red-soft); color: var(--red); }
.menu-item-allergens {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}
.menu-allergen-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

/* ===== KITCHEN TIMERS ===== */
.kitchen-timers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.kt-table { font-weight: 700; font-size: .8rem; width: 50px; }
.kt-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.kt-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.kt-time {
  font-size: .7rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* ===== ALLERGEN MATRIX ===== */
.allergen-table th, .allergen-table td {
  text-align: center;
  padding: 6px 8px !important;
  font-size: .7rem !important;
}
.allergen-table th:first-child, .allergen-table td:first-child {
  text-align: left;
}
.allergen-yes { color: var(--red); font-weight: 700; }
.allergen-no { color: var(--text-muted); }

/* ===== MENU ENGINEERING ===== */
.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.eng-quadrant {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.eng-quadrant h4 {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eng-items { font-size: .72rem; color: var(--text-dim); line-height: 1.6; }
.eng-star { border-color: rgba(245,158,11,0.3); }
.eng-star h4 { color: var(--amber); }
.eng-puzzle { border-color: rgba(124,58,237,0.3); }
.eng-puzzle h4 { color: var(--purple); }
.eng-plow { border-color: rgba(20,184,166,0.3); }
.eng-plow h4 { color: var(--teal); }
.eng-dog { border-color: rgba(239,68,68,0.3); }
.eng-dog h4 { color: var(--red); }

/* ===== PAIRING LIST ===== */
.pairing-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}
.pairing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-input);
  border-radius: 6px;
  font-size: .75rem;
}
.pairing-dish { font-weight: 600; }
.pairing-wine { color: var(--purple); font-weight: 500; }

/* ===== SPECIALS & SEASON ===== */
.specials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.special-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
}
.special-emoji { font-size: 1.5rem; }
.special-info { flex: 1; }
.special-name { font-weight: 700; font-size: .9rem; }
.special-desc { font-size: .72rem; color: var(--text-dim); }
.special-price { font-weight: 700; color: var(--amber); font-size: .95rem; }

.season-calendar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.season-item {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 500;
}
.season-item.active { background: var(--green-soft); color: var(--green); }
.season-item.upcoming { background: var(--amber-soft); color: var(--amber); }
.season-item.past { background: var(--bg-input); color: var(--text-muted); }

/* ===== SUPPLIER LIST ===== */
.supplier-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.supplier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-input);
  border-radius: 6px;
  font-size: .8rem;
}
.supplier-name { font-weight: 600; }
.supplier-delivery { font-size: .65rem; color: var(--text-muted); }
.supplier-next {
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ===== WASTE LOG ===== */
.waste-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.waste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-input);
  border-radius: 6px;
  font-size: .8rem;
}
.waste-reason { font-size: .65rem; color: var(--text-muted); }
.waste-amount { font-weight: 600; color: var(--red); font-size: .75rem; }

/* ===== DISH RATINGS ===== */
.dish-ratings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.dish-rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.dr-name { font-weight: 600; font-size: .85rem; }
.dr-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dr-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.dr-fill { height: 100%; border-radius: 3px; }
.dr-score { font-size: .75rem; font-weight: 700; min-width: 30px; }

/* ===== MODIFIER LIST ===== */
.modifier-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}
.mod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.mod-text { font-size: .8rem; font-weight: 500; }
.mod-count {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber);
}

/* ===== BUMP SCREEN ===== */
.bump-screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bump-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.bump-card:hover { transform: scale(1.02); }
.bump-card.bump-waiting { border-color: var(--red); background: var(--red-soft); }
.bump-card.bump-cooking { border-color: var(--amber); background: var(--amber-soft); }
.bump-card.bump-ready { border-color: var(--green); background: var(--green-soft); }
.bump-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bump-table { font-weight: 800; font-size: 1rem; }
.bump-timer { font-size: .75rem; font-weight: 700; }
.bump-card.bump-waiting .bump-timer { color: var(--red); }
.bump-card.bump-cooking .bump-timer { color: var(--amber); }
.bump-card.bump-ready .bump-timer { color: var(--green); }
.bump-items { font-size: .75rem; line-height: 1.6; }
.bump-status-label {
  display: inline-block;
  margin-top: 8px;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== P&L SUMMARY ===== */
.pnl-summary { display: flex; flex-direction: column; gap: 6px; }
.pnl-row {
  display: flex; justify-content: space-between; padding: 8px 12px;
  border-radius: 6px; font-size: .85rem;
}
.pnl-row.header { font-weight: 700; font-size: .9rem; }
.pnl-row.total { background: var(--bg-input); font-weight: 700; border-top: 2px solid var(--border); margin-top: 4px; }
.pnl-row.profit { background: var(--green-soft); color: var(--green); font-weight: 800; }

/* ===== UPSELL STATS ===== */
.upsell-stats { display: flex; flex-direction: column; gap: 8px; }
.upsell-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.upsell-label { font-size: .85rem; font-weight: 500; }
.upsell-bar { flex: 1; margin: 0 12px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.upsell-fill { height: 100%; border-radius: 3px; }
.upsell-pct { font-size: .8rem; font-weight: 700; min-width: 40px; text-align: right; }

/* ===== TOP SPENDERS ===== */
.top-spenders { display: flex; flex-direction: column; gap: 6px; }
.spender-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-input); border-radius: var(--radius-sm);
}
.spender-rank { font-weight: 800; font-size: .9rem; color: var(--amber); width: 24px; }
.spender-name { flex: 1; font-weight: 600; font-size: .85rem; }
.spender-visits { font-size: .7rem; color: var(--text-muted); }
.spender-total { font-weight: 700; color: var(--amber); font-size: .9rem; }

/* ===== EXTRA REVENUE ===== */
.extra-revenue { display: flex; flex-direction: column; gap: 8px; }
.extra-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.extra-info { display: flex; flex-direction: column; gap: 2px; }
.extra-label { font-weight: 600; font-size: .85rem; }
.extra-sub { font-size: .7rem; color: var(--text-muted); }
.extra-amount { font-weight: 700; font-size: .95rem; }

/* ===== SWAP BOARD ===== */
.swap-board { display: flex; flex-direction: column; gap: 8px; }
.swap-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg-input); border-radius: var(--radius-sm);
  border-left: 3px solid var(--purple);
}
.swap-info { display: flex; flex-direction: column; gap: 2px; }
.swap-names { font-weight: 600; font-size: .85rem; }
.swap-detail { font-size: .72rem; color: var(--text-dim); }
.swap-actions { display: flex; gap: 6px; }
.swap-btn {
  padding: 4px 12px; border-radius: 6px; font-size: .7rem; font-weight: 600;
  cursor: pointer; font-family: inherit; border: none; transition: all var(--transition);
}
.swap-btn.approve { background: var(--green-soft); color: var(--green); }
.swap-btn.deny { background: var(--red-soft); color: var(--red); }

/* ===== OVERTIME ===== */
.overtime-list { display: flex; flex-direction: column; gap: 8px; }
.ot-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.ot-name { font-weight: 600; font-size: .85rem; }
.ot-hours { font-size: .8rem; }
.ot-bar { width: 60px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ot-fill { height: 100%; border-radius: 3px; }

/* ===== TRAINING ===== */
.training-list { display: flex; flex-direction: column; gap: 6px; }
.train-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.train-name { font-weight: 600; font-size: .85rem; }
.train-cert { font-size: .7rem; color: var(--text-dim); }
.train-status { font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.train-status.valid { background: var(--green-soft); color: var(--green); }
.train-status.expiring { background: var(--amber-soft); color: var(--amber); }
.train-status.expired { background: var(--red-soft); color: var(--red); }

/* ===== REVIEWS PAGE ===== */
.category-ratings { display: flex; flex-direction: column; gap: 10px; }
.cat-rating-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
}
.cat-rating-label { width: 80px; font-size: .8rem; font-weight: 600; }
.cat-rating-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.cat-rating-fill { height: 100%; border-radius: 4px; }
.cat-rating-score { font-size: .85rem; font-weight: 700; min-width: 30px; }

.competitor-list { display: flex; flex-direction: column; gap: 8px; }
.comp-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.comp-name { font-weight: 600; font-size: .85rem; }
.comp-type { font-size: .7rem; color: var(--text-muted); }
.comp-rating { display: flex; align-items: center; gap: 6px; }
.comp-stars { color: var(--amber); font-size: .8rem; }
.comp-score { font-weight: 700; font-size: .9rem; }

.sentiment-cloud {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0;
  justify-content: center;
}
.sentiment-word {
  padding: 4px 10px; border-radius: 14px; font-weight: 600;
  transition: all var(--transition); cursor: default;
}
.sentiment-word:hover { transform: scale(1.1); }

.praise-list, .complaint-list { display: flex; flex-direction: column; gap: 4px; }
.praise-item, .complaint-item { font-size: .75rem; padding: 4px 8px; border-radius: 6px; }
.praise-item { background: var(--green-soft); color: var(--green); }
.complaint-item { background: var(--red-soft); color: var(--red); }

.featured-review {
  padding: 20px; background: var(--bg-input); border-radius: var(--radius);
  border-left: 4px solid var(--amber); position: relative;
}
.fr-quote { font-size: 1rem; font-style: italic; line-height: 1.6; margin-bottom: 12px; }
.fr-author { font-weight: 600; font-size: .85rem; }
.fr-source { font-size: .7rem; color: var(--text-muted); }
.fr-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 8px; }

.recent-reviews { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }

/* ===== BRIEFING BAR ===== */
.briefing-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(var(--glass-blur));
}
.briefing-left { display: flex; align-items: center; gap: 10px; }
.briefing-clock { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.briefing-shift {
  padding: 3px 10px; border-radius: 12px; font-size: .7rem;
  font-weight: 600; background: var(--amber-soft); color: var(--amber);
}
.briefing-center { font-size: .8rem; color: var(--text-dim); flex: 1; text-align: center; }
.weather-widget {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500;
}
.weather-icon { font-size: 1.3rem; }
.weather-temp { font-weight: 700; }
.weather-desc { font-size: .7rem; color: var(--text-muted); }

/* ===== TARGET RING ===== */
.target-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.ring-svg { width: 120px; height: 120px; }
.ring-text { font-size: .8rem; color: var(--text-dim); }

/* ===== QUICK ACTIONS ===== */
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 500;
  cursor: pointer; font-family: inherit; color: var(--text);
  transition: all var(--transition);
}
.qa-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.qa-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .7rem; flex-shrink: 0;
}

/* ===== TOP SERVER ===== */
.top-server { display: flex; align-items: center; gap: 12px; }
.ts-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem; color: #fff;
}
.ts-info { display: flex; flex-direction: column; gap: 2px; }
.ts-name { font-weight: 700; font-size: .9rem; }
.ts-detail { font-size: .72rem; color: var(--text-dim); }

/* ===== CHEF SPECIAL ===== */
.chef-special { display: flex; align-items: center; gap: 12px; }
.cs-info { display: flex; flex-direction: column; gap: 2px; }
.cs-name { font-weight: 700; font-size: .9rem; }
.cs-desc { font-size: .72rem; color: var(--text-dim); }
.cs-sold { font-size: .65rem; color: var(--amber); font-weight: 600; }

/* ===== SOCIAL TICKER ===== */
.social-ticker { display: flex; flex-direction: column; gap: 6px; max-height: 120px; overflow-y: auto; }
.social-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: var(--bg-input); border-radius: 6px; font-size: .75rem;
}
.social-platform { font-weight: 700; min-width: 24px; text-align: center; }
.social-text { color: var(--text-dim); flex: 1; }
.social-time { font-size: .6rem; color: var(--text-muted); }

/* ===== EVENTS LIST ===== */
.events-list { display: flex; flex-direction: column; gap: 6px; }
.event-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--bg-input); border-radius: 6px;
  border-left: 3px solid var(--purple);
}
.event-date { font-size: .65rem; font-weight: 700; color: var(--purple); min-width: 50px; }
.event-name { font-weight: 600; font-size: .8rem; }
.event-desc { font-size: .65rem; color: var(--text-muted); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 80px; right: 28px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--bg-sidebar); border: 1px solid var(--border);
  backdrop-filter: blur(16px); font-size: .8rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; min-width: 280px;
  animation: slideIn .4s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: slideOut .3s ease forwards; }
@keyframes slideOut { to { transform: translateX(100%); opacity: 0; } }
.toast-icon { font-size: 1.1rem; }

/* ===== COMMAND PALETTE ===== */
.cmd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 300; display: none;
  align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.cmd-overlay.open { display: flex; }
.cmd-palette {
  width: 520px; background: var(--bg-sidebar); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cmd-input-wrap { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmd-input {
  width: 100%; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 1rem;
}
.cmd-results { max-height: 300px; overflow-y: auto; }
.cmd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  cursor: pointer; transition: background var(--transition);
}
.cmd-item:hover { background: var(--bg-card-hover); }
.cmd-item.active { background: var(--amber-soft); }
.cmd-icon { font-size: 1rem; width: 24px; text-align: center; }
.cmd-label { font-size: .85rem; font-weight: 500; }
.cmd-shortcut { margin-left: auto; font-size: .65rem; color: var(--text-muted); padding: 2px 6px; background: var(--bg-input); border-radius: 4px; }

/* ===== PRINT STYLES ===== */
@media print {
  .sidebar, .topbar, .briefing-bar, .quick-actions, .toast-container, .cmd-overlay { display: none !important; }
  .main { margin-left: 0 !important; }
  .page { display: block !important; break-inside: avoid; }
  .card { break-inside: avoid; border: 1px solid #ddd !important; }
  body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }
}

/* ===== COURSE TIMING ===== */
.course-timing { display: flex; flex-direction: column; gap: 10px; }
.ct-row { display: flex; align-items: center; gap: 12px; }
.ct-label { width: 100px; font-size: .8rem; font-weight: 600; }
.ct-arrow { color: var(--text-muted); font-size: .8rem; }
.ct-time { font-size: .85rem; font-weight: 700; min-width: 50px; }

/* ===== STATION LOAD ===== */
.station-load { display: flex; flex-direction: column; gap: 8px; }
.sl-item { display: flex; align-items: center; gap: 10px; }
.sl-name { width: 80px; font-size: .8rem; font-weight: 600; }
.sl-bar { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.sl-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.sl-count { font-size: .75rem; font-weight: 600; min-width: 30px; text-align: right; }

/* ===== PREP LIST ===== */
.prep-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prep-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-input); border-radius: 6px; font-size: .8rem; }
.prep-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .6rem; transition: all var(--transition); }
.prep-check.done { background: var(--green); border-color: var(--green); color: #fff; }
.prep-text { font-weight: 500; }
.prep-text.done { text-decoration: line-through; color: var(--text-muted); }

/* ===== AVAILABILITY ===== */
.availability-grid { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 2px; font-size: .65rem; }
.av-cell { padding: 6px 4px; text-align: center; border-radius: 3px; }
.av-yes { background: var(--green-soft); color: var(--green); }
.av-no { background: var(--red-soft); color: var(--red); }
.av-maybe { background: var(--amber-soft); color: var(--amber); }
.av-header { font-weight: 600; color: var(--text-muted); }
.av-name { font-weight: 600; text-align: left; }

/* ===== BIRTHDAY LIST ===== */
.birthday-list { display: flex; flex-direction: column; gap: 6px; }
.bday-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg-input); border-radius: 6px; font-size: .8rem; }
.bday-icon { font-size: 1rem; }
.bday-date { font-size: .7rem; color: var(--text-muted); margin-left: auto; }

/* ===== ONBOARDING/REVIEW TIMELINE/MOOD/CLOCK ===== */
.onboard-list, .review-timeline, .clocklog, .emergency-list, .uniform-list, .audit-log, .review-alerts, .template-list, .monthly-report { display: flex; flex-direction: column; gap: 6px; }
.onboard-item, .rt-item, .clock-item, .emerg-item, .uni-item, .audit-item, .ralert-item, .tmpl-item, .report-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: var(--bg-input); border-radius: 6px; font-size: .8rem;
}
.mood-survey { display: flex; gap: 8px; justify-content: center; padding: 8px 0; }
.mood-emoji { font-size: 1.8rem; cursor: pointer; transition: transform var(--transition); opacity: .5; }
.mood-emoji:hover, .mood-emoji.selected { transform: scale(1.3); opacity: 1; }

/* ===== PHOTO GALLERY ===== */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-thumb {
  aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer; transition: transform var(--transition);
}
.photo-thumb:hover { transform: scale(1.05); }

/* ===== SKELETON LOADING ===== */
.skeleton { background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== DATE PICKER ===== */
.date-picker { display: flex; align-items: center; gap: 6px; }
.dp-preset { padding: 4px 10px; border-radius: 12px; font-size: .7rem; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: none; color: var(--text-dim); font-family: inherit; transition: all var(--transition); }
.dp-preset:hover { border-color: var(--border-hover); color: var(--text); }
.dp-preset.active { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }

/* ===== CONFETTI ===== */
.confetti { position: fixed; z-index: 400; pointer-events: none; animation: confettiFall linear forwards; }
@keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ===== STROOPWAFEL EASTER EGG ===== */
.stroopwafel {
  position: fixed; font-size: 2rem; z-index: 400;
  pointer-events: none; animation: fall linear forwards;
}
@keyframes fall { 0% { transform: translateY(-50px) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ===== INTEGRATION STATUS (settings) ===== */
.integration-list { display: flex; flex-direction: column; gap: 8px; }
.integ-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-input); border-radius: var(--radius-sm);
}
.integ-name { font-weight: 600; font-size: .85rem; }
.integ-status { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; }
.integ-dot { width: 8px; height: 8px; border-radius: 50%; }
.integ-dot.online { background: var(--green); }
.integ-dot.offline { background: var(--red); }
.integ-dot.pending { background: var(--amber); }

/* ===== DRAG FEEDBACK ===== */
.floor-table.dragging {
  opacity: .5;
  transform: scale(.95);
}
.floor-table.drag-over {
  outline: 2px dashed var(--amber);
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .schedule-grid { overflow-x: auto; min-width: 800px; }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar-right .search-box { display: none; }
  .avatar-name { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .table-grid { grid-template-columns: repeat(3, 1fr); }
  .floor-plan { grid-template-columns: repeat(2, 1fr); }
}
