/* Rancho Chico — Staff Backoffice Styling */

/* ---- Allergen chips (Menu Manager) ---- */
.allergen-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.allergen-chip {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(217, 83, 79, 0.12); color: #e08a87;
  border: 1px solid rgba(217, 83, 79, 0.3);
}
.allergen-none { font-size: 11px; color: rgba(246,244,240,0.35); }

/* ---- Prep & Shift checklist ---- */
.prep-phase { margin-bottom: 16px; }
.prep-task {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 6px; border-bottom: 1px solid var(--border-color);
  cursor: pointer; transition: opacity 0.2s;
}
.prep-task:last-child { border-bottom: none; }
.prep-task input { display: none; }
.prep-check {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--border-color); border-radius: 6px;
  position: relative; transition: all 0.2s;
}
.prep-task.checked .prep-check { background: var(--accent); border-color: var(--accent); }
.prep-task.checked .prep-check::after {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
}
.prep-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.prep-title { font-size: 14px; font-weight: 600; }
.prep-desc { font-size: 12px; color: var(--foreground-light); }
.prep-task.checked .prep-title { text-decoration: line-through; color: var(--foreground-light); }
.cat-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 9px; border-radius: 9999px;
  border: 1px solid; align-self: center;
}

/* ---- progress bar ---- */
.progress-track {
  flex: 1; min-width: 200px; max-width: 360px;
  height: 26px; background: var(--surface-2);
  border: 1px solid var(--border-color); border-radius: 9999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #3fae84);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* ---- FLOOR PLAN (Toast-style table layout) ---- */
.floor-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--foreground-light); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.floor-zone { margin-bottom: 22px; }
.floor-zone-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--foreground-light); margin-bottom: 10px;
}
.floor-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.table-card {
  background: var(--surface); border: 2px solid; border-radius: 16px;
  padding: 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 4px; position: relative;
  font-family: var(--font-sans); transition: transform 0.15s, box-shadow 0.15s;
}
.table-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
.table-num { font-family: var(--font-serif); font-size: 26px; font-weight: 800; color: var(--foreground); line-height: 1; }
.table-seats { font-size: 11px; color: var(--foreground-light); }
.table-status {
  align-self: flex-start; margin-top: 6px; color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 9px; border-radius: 9999px;
}
.table-meta { font-size: 11px; color: var(--foreground-light); margin-top: 4px; }
.table-timer {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; color: var(--foreground-light);
  font-family: ui-monospace, monospace;
}
.table-timer.late { color: var(--danger); }

/* ---- KITCHEN DISPLAY SYSTEM ---- */
.kds-board {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.kds-ticket {
  background: var(--surface); border: 1px solid var(--border-color);
  border-top: 5px solid var(--foreground-light);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column;
}
.kds-ticket.new { border-top-color: var(--primary); }
.kds-ticket.preparing { border-top-color: var(--warning); }
.kds-ticket.ready { border-top-color: var(--accent); }
.kds-head { display: flex; align-items: center; justify-content: space-between; }
.kds-id { font-family: ui-monospace, monospace; font-weight: 800; font-size: 14px; }
.kds-sub { font-size: 11px; color: var(--foreground-light); margin: 4px 0 10px; }
.kds-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.kds-items li { font-size: 14px; font-weight: 600; }
.kds-qty { color: var(--primary); font-weight: 800; }
.kds-bump {
  margin-top: auto; border: none; border-radius: 10px;
  background: var(--primary); color: #000; font-weight: 800;
  font-size: 13px; padding: 10px; cursor: pointer; font-family: var(--font-sans);
  transition: filter 0.15s;
}
.kds-bump:hover { filter: brightness(1.08); }
.kds-ticket.ready .kds-bump { background: var(--accent); color: #fff; }

/* ===================== POINT OF SALE ===================== */
.pos-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pos-wrap { grid-template-columns: 1fr; } }

.pos-left { display: flex; flex-direction: column; gap: 14px; }

/* order context bar */
.pos-ctx {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 14px;
}
.pos-type { display: flex; gap: 6px; }
.pos-typebtn {
  background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground-light);
  border-radius: 9999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font-sans);
}
.pos-typebtn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.pos-seat { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--foreground-light); }
.pos-seat strong { color: var(--foreground); font-size: 15px; }
.pos-guests { display: flex; align-items: center; gap: 6px; }

/* category tabs */
.pos-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.pos-cat {
  background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground-light);
  border-radius: 9999px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font-sans);
}
.pos-cat.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* item button grid — the "wall of buttons" */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-item {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-color); border-radius: 14px;
  min-height: 84px; padding: 12px; cursor: pointer; font-family: var(--font-sans);
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  transition: transform 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.pos-item:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.pos-item:active { transform: scale(0.97); }
.pos-item-name { font-size: 13px; font-weight: 700; color: var(--foreground); line-height: 1.25; }
.pos-item-price { font-size: 13px; font-weight: 800; color: var(--primary); margin-top: 8px; }
.pos-item.off { opacity: 0.4; cursor: not-allowed; }
.pos-item.off .pos-item-price { color: var(--danger); }

/* modifier bar */
.pos-modbar { background: var(--surface); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 14px; transition: border-color 0.2s; }
.pos-modlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--foreground-light); }
.pos-modlabel b { color: var(--primary); }
.pos-modbar.nosel { border-color: rgba(224,169,59,0.45); background: rgba(224,169,59,0.06); }
.pos-modbar.nosel .pos-modlabel { color: var(--warning); }
.pos-modbar.nosel .pos-mods { opacity: 0.4; }
.pos-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pos-mod {
  background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground);
  border-radius: 9999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-sans);
}
.pos-mod:hover { border-color: var(--accent); color: var(--accent); }

/* ---- check panel (right) ---- */
.pos-right {
  background: var(--surface); border: 1px solid var(--border-color); border-radius: 16px;
  display: flex; flex-direction: column; position: sticky; top: 88px; overflow: hidden;
}
.pos-check-head { padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.pos-check-head h3 { font-size: 15px; font-weight: 800; }
.pos-check-head span { font-size: 12px; color: var(--foreground-light); }
.pos-lines { padding: 8px 12px; max-height: 320px; overflow-y: auto; min-height: 120px; }
.pos-empty { text-align: center; color: var(--foreground-light); font-size: 13px; padding: 40px 0; }
.pos-line { padding: 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; border-left: 4px solid transparent; transition: background 0.15s, border-color 0.15s; }
.pos-line.sel { border-left: 4px solid var(--primary); background: rgba(224,106,59,0.14); box-shadow: inset 0 0 0 1px rgba(224,106,59,0.25); }
.pos-line-top { display: flex; justify-content: space-between; gap: 8px; }
.pos-line-name { font-size: 13px; font-weight: 700; }
.pos-line-price { font-size: 13px; font-weight: 800; color: var(--foreground); }
.pos-line-mods { font-size: 11px; color: var(--accent); margin-top: 3px; }
.pos-line-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qtybtn {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-color);
  background: var(--surface-2); color: var(--foreground); font-size: 15px; font-weight: 800; cursor: pointer; line-height: 1;
}
.voidbtn { margin-left: auto; background: transparent; border: none; color: var(--danger); font-size: 11px; font-weight: 700; cursor: pointer; text-transform: uppercase; }

.pos-totals { padding: 12px 16px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--foreground-light); }
.pos-totals > div { display: flex; justify-content: space-between; }
.pos-totals .disc { color: var(--accent); }
.pos-totals .grand { color: var(--foreground); font-weight: 800; font-size: 17px; border-top: 1px solid var(--border-color); padding-top: 8px; margin-top: 2px; }

.pos-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 12px; }
.pos-act { background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground); border-radius: 10px; padding: 11px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); }

/* Send to Kitchen — a ROUTING action: outlined, not a payment color */
.pos-send {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; width: calc(100% - 32px); margin: 0 16px 16px;
  padding: 14px; border-radius: 10px; cursor: pointer; font-family: var(--font-sans);
  background: transparent; border: 2px solid var(--warning); color: var(--warning);
  font-size: 14px; font-weight: 800; letter-spacing: 0.3px;
}
.pos-send:hover { background: rgba(224,169,59,0.12); }

/* clear visual break between "fire to kitchen" and "settle payment" */
.pos-paydiv {
  display: flex; align-items: center; gap: 10px; margin: 4px 16px 12px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--foreground-light);
}
.pos-paydiv::before, .pos-paydiv::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }

.pos-tender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 10px; }
.pos-pay { border-radius: 10px; padding: 13px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: var(--font-sans); border: 1px solid var(--border-color); }
.pos-pay.cash { background: rgba(45,138,102,0.15); color: var(--accent); border-color: rgba(45,138,102,0.4); }
.pos-pay.card { background: rgba(111,168,220,0.15); color: #6FA8DC; border-color: rgba(111,168,220,0.4); }
.pos-charge {
  box-sizing: border-box; width: calc(100% - 32px); margin: 0 16px 16px;
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 16px; font-size: 17px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer;
  font-family: var(--font-sans); box-shadow: 0 6px 18px rgba(45,138,102,0.3);
}
.pos-charge:hover { filter: brightness(1.08); }

/* ---- Handheld: check collapses to a swipe-up bottom sheet ---- */
.pos-fab, .pos-sheet-close { display: none; }
@media (max-width: 1000px) {
  .pos-right {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 300;
    max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0;
    transform: translateY(106%); transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 -12px 44px rgba(0,0,0,0.6);
  }
  .pos-right.open { transform: translateY(0); }
  .pos-sheet-close {
    display: block; margin: 12px 16px 0 auto; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground);
    border-radius: 9999px; padding: 8px 18px; font-weight: 700; font-family: var(--font-sans);
  }
  .pos-fab {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 290;
    align-items: center; justify-content: space-between; gap: 8px;
    background: var(--accent); color: #fff; border: none; border-radius: 16px;
    padding: 16px 20px; font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45); font-family: var(--font-sans);
  }
  .pos-fab-go { font-size: 13px; opacity: 0.9; }
}

/* POS toasts */
.toast-c { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast-msg { background: var(--surface); border: 1px solid var(--accent); color: var(--foreground); font-size: 13px; font-weight: 700; padding: 12px 20px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(16px); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.toast-msg.show { opacity: 1; transform: translateY(0); }

/* ---- Report bar rows ---- */
.bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.bar-label { flex: 0 0 150px; font-size: 13px; font-weight: 600; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 14px; background: var(--surface-2); border-radius: 9999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.bar-val { flex: 0 0 44px; text-align: right; font-size: 13px; font-weight: 800; color: var(--foreground-light); font-family: ui-monospace, monospace; }
.clockbtn { white-space: nowrap; }

:root {
  --background: #141312;
  --surface: #1c1a19;
  --surface-2: #232120;
  --foreground: #F6F4F0;
  --foreground-light: #A3A19E;
  --primary: #E06A3B;
  --primary-hover: #C2410C;
  --accent: #2D8A66;
  --danger: #d9534f;
  --warning: #E0A93B;
  --border-color: rgba(246, 244, 240, 0.10);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 20;
}

.sidebar-brand {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
}
.sidebar-brand .logo span { color: var(--primary); }
.sidebar-brand .sub {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--foreground-light);
  margin-top: 4px;
}

.nav { padding: 16px 12px; flex-grow: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--foreground-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--foreground); }
.nav-item.active { background: var(--primary); color: #000; }
.nav-item .ico { font-size: 16px; }
.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.nav-item.active .nav-badge { background: #000; color: var(--primary); }

.sidebar-foot {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--foreground-light);
}
.sidebar-foot a { color: var(--primary); text-decoration: none; }

/* MAIN */
.main {
  margin-left: 240px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 { font-size: 20px; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(45, 138, 102, 0.12);
  border: 1px solid rgba(45, 138, 102, 0.3);
  padding: 6px 12px;
  border-radius: 9999px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.lang-toggle {
  background: var(--surface-2); border: 1px solid var(--border-color); color: var(--foreground);
  border-radius: 9999px; padding: 7px 16px; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: var(--font-sans); display: flex; align-items: center; gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle::before { content: "🌐"; font-size: 13px; }
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.content { padding: 28px; }
.view { display: none; }
.view.active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
}
.stat-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--foreground-light);
  font-weight: 700;
}
.stat-card .value {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 800;
  margin: 8px 0 4px;
}
.stat-card .delta { font-size: 12px; font-weight: 700; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--danger); }
.stat-card .ico {
  float: right;
  font-size: 22px;
  opacity: 0.8;
}

/* PANELS */
.panel {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-head h2 { font-size: 16px; font-weight: 800; }
.panel-head .hint { font-size: 12px; color: var(--foreground-light); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1100px) {
  .two-col { grid-template-columns: 2fr 1fr; }
}

/* TABLES */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--foreground-light);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
tr.row-new { animation: flashnew 2.5s ease; }
@keyframes flashnew {
  0% { background: rgba(224, 106, 59, 0.22); }
  100% { background: transparent; }
}
.mono { font-family: ui-monospace, monospace; font-size: 12px; color: var(--foreground-light); }
.strong { font-weight: 700; }

/* STATUS PILLS */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid;
}
.pill.pending  { color: var(--warning); border-color: rgba(224,169,59,.4); background: rgba(224,169,59,.1); }
.pill.confirmed{ color: var(--accent);  border-color: rgba(45,138,102,.4); background: rgba(45,138,102,.1); }
.pill.seated   { color: #6FA8DC; border-color: rgba(111,168,220,.4); background: rgba(111,168,220,.1); }
.pill.cancelled{ color: var(--danger); border-color: rgba(217,83,79,.4); background: rgba(217,83,79,.1); }
.pill.new      { color: var(--primary); border-color: rgba(224,106,59,.4); background: rgba(224,106,59,.1); }
.pill.preparing{ color: var(--warning); border-color: rgba(224,169,59,.4); background: rgba(224,169,59,.1); }
.pill.ready    { color: var(--accent); border-color: rgba(45,138,102,.4); background: rgba(45,138,102,.1); }
.pill.completed{ color: var(--foreground-light); border-color: var(--border-color); background: rgba(246,244,240,.04); }

.src-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(246,244,240,.06);
  color: var(--foreground-light);
}
.src-tag.web { background: rgba(45,138,102,.12); color: var(--accent); }

/* form controls in tables */
.status-select {
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
}

/* toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 24px; transition: 0.3s;
}
.slider::before {
  content: ""; position: absolute; height: 16px; width: 16px;
  left: 3px; bottom: 3px; background: var(--foreground-light);
  border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }

.empty {
  text-align: center;
  color: var(--foreground-light);
  padding: 40px;
  font-size: 13px;
}

canvas { max-height: 280px; }

/* mobile */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex !important; }
}
.menu-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--foreground);
  border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 18px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
