:root {
  --bg: #f6f5f2;
  --bg-1: #ffffff;
  --bg-2: #f3f2ee;
  --bg-3: #e9e7e1;
  --line: #e4e1da;
  --line-2: #d0ccc3;
  --text: #1c1b19;
  --text-dim: #5c5a55;
  --text-muted: #8a877f;
  --amber: #e8912a;
  --amber-bright: #b5650c;
  --amber-dim: #fbe8cf;
  --amber-soft: rgba(232, 145, 42, 0.12);
  --green: #2e9550;
  --red: #d04545;
  --blue: #2f72b6;
  --violet: #7a5cc2;
  --shadow-lg: 0 20px 50px rgba(30,25,15,.14), 0 2px 8px rgba(30,25,15,.08);
  --shadow-md: 0 8px 20px rgba(30,25,15,.10);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; height: 100%; overflow: hidden; }
.ember-root { font-family: 'Inter', system-ui, sans-serif; color: var(--text); }
.ember-root { height: 100vh; width: 100%; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: 1fr; }

/* Dashboard layout */
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 4px;
  overflow: hidden;
}
.sidebar-brand {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), #c4761e);
  display: grid; place-items: center;
  color: #1a0f00; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 20px rgba(242,164,58,.3);
  margin-bottom: 14px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-btn {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-dim); position: relative;
  transition: all .15s ease;
}
.sidebar-btn:hover { background: var(--bg-2); color: var(--text); }
.sidebar-btn.active { background: var(--amber-soft); color: var(--amber-bright); }
.sidebar-btn.active::before {
  content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px;
  background: var(--amber); border-radius: 0 2px 2px 0;
}
.sidebar-btn .pulse {
  position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 6px var(--amber);
}
.sidebar-label {
  position: absolute; left: 60px; background: var(--bg-3); border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  color: var(--text); pointer-events: none; opacity: 0; transform: translateX(-6px);
  transition: all .15s; z-index: 50; font-weight: 500;
}
.sidebar-btn:hover .sidebar-label { opacity: 1; transform: translateX(0); }
.sidebar-spacer { flex: 1; }

.main-col {
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--amber); color: #000; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* Top bar */
.topbar {
  height: 64px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  flex-shrink: 0;
}
.page-title { flex: 1; }
.page-title-main { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.page-title-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.stat-tile {
  background: var(--bg-1);
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.stat-tile-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat-tile-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-family: 'JetBrains Mono', monospace; }
.stat-tile-value.accent { color: var(--amber-bright); }
.stat-tile-value.green { color: var(--green); }
.stat-tile-value.blue { color: var(--blue); }
.stat-tile-delta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Dashboard body */
.dash-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
  min-height: 0;
  gap: 1px;
  background: var(--line);
}
.dash-center { background: var(--bg); overflow: auto; padding: 20px 24px; min-height: 0; }
.dash-right {
  background: var(--bg-1);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Panel chrome */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.panel-title .count-pill { background: var(--bg-3); color: var(--text-dim); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; }
.panel-sub { font-size: 11px; color: var(--text-dim); }
.panel-body { padding: 14px 16px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; width: 240px; color: var(--text-dim);
}
.search-box input { background: transparent; border: none; outline: none; color: var(--text); font-size: 13px; flex: 1; min-width: 0; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box kbd { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.clock { text-align: right; font-variant-numeric: tabular-nums; }
.clock-time { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; font-family: 'JetBrains Mono', monospace; }
.clock-date { font-size: 11px; color: var(--text-dim); }
.shift-badge {
  padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: var(--amber-dim); color: var(--amber-bright);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.shift-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.cashier-chip {
  padding: 6px 6px 6px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500;
}
.cashier-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--amber);
}

/* Main layout (legacy alias still used by non-floor views) */
.workspace { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.workspace-inner { flex: 1; overflow: auto; padding: 20px 24px; min-height: 0; }

/* Dashboard floor layout */
.dash-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; margin-top: 4px;
}
.dash-section-title h2 {
  font-size: 14px; font-weight: 600; margin: 0;
  color: var(--text); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.dash-section-title h2 .count-pill { background: var(--bg-2); color: var(--text-dim); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; border: 1px solid var(--line); }

.order-panel { background: transparent; border-left: none; }

/* Live ticker */
.ticker {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 10px 16px;
  max-height: 220px;
  overflow-y: auto;
}
.ticker-title { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ticker-item {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 10px; align-items: center;
  padding: 7px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.ticker-item:last-child { border-bottom: none; }
.ticker-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); }
.ticker-desc { color: var(--text-dim); }
.ticker-desc b { color: var(--text); font-weight: 600; }
.ticker-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--amber-bright); }

/* Floor plan */
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-dim); }
.section-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.section-sub { font-size: 12px; color: var(--text-dim); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}
.table-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all .15s ease;
  aspect-ratio: 1.15;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.table-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.table-card.selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 24px rgba(242,164,58,.15);
}
.table-card.available::before { background: var(--green); }
.table-card.occupied::before { background: var(--amber); }
.table-card.reserved::before { background: var(--blue); }
.table-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.table-top { display: flex; justify-content: space-between; align-items: flex-start; }
.table-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.table-cap { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.table-status {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 12px;
}
.table-card.available .table-status { background: rgba(107,191,123,.12); color: var(--green); }
.table-card.occupied .table-status { background: var(--amber-soft); color: var(--amber-bright); }
.table-card.reserved .table-status { background: rgba(103,162,217,.12); color: var(--blue); }
.table-meta { font-size: 11px; color: var(--text-dim); }
.table-waiter { font-size: 11px; color: var(--text); font-weight: 500; }
.table-total { font-size: 13px; font-weight: 700; color: var(--amber-bright); font-family: 'JetBrains Mono', monospace; }
.table-splits { position: absolute; bottom: 8px; right: 10px; font-size: 9px; color: var(--text-dim); font-weight: 600; }

/* Menu area */
.menu-area { margin-top: 28px; }
.cat-tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.cat-tab {
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-dim); white-space: nowrap; transition: all .15s;
  border: 1px solid transparent;
}
.cat-tab:hover { color: var(--text); background: var(--bg-2); }
.cat-tab.active { background: var(--bg-2); color: var(--amber-bright); border-color: var(--line-2); }
.cat-tab .count { font-size: 10px; opacity: .6; margin-left: 4px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.menu-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  text-align: left;
  display: flex; flex-direction: column;
}
.menu-card:hover:not(.unavailable) { border-color: var(--amber); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.menu-card.unavailable { opacity: 0.4; cursor: not-allowed; }
.menu-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.menu-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.veg-badge {
  width: 14px; height: 14px; border: 1.5px solid var(--green); border-radius: 2px;
  display: grid; place-items: center; flex-shrink: 0;
}
.veg-badge::after { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.veg-badge.nonveg { border-color: var(--red); }
.veg-badge.nonveg::after { background: var(--red); border-radius: 0; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.menu-desc { font-size: 11px; color: var(--text-dim); line-height: 1.4; flex: 1; margin-bottom: 10px; }
.menu-bottom { display: flex; justify-content: space-between; align-items: center; }
.menu-price { font-size: 14px; font-weight: 700; color: var(--amber-bright); font-family: 'JetBrains Mono', monospace; }
.menu-add { font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.unavailable-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-3); color: var(--text-dim); padding: 2px 6px; border-radius: 4px;
}

/* Order panel */
.order-panel {
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 0;
}
.order-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.order-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-table-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.order-table-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.order-waiter-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.order-waiter-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; font-size: 12px; color: var(--text);
}
.order-waiter-input:focus { outline: none; border-color: var(--amber); }
.order-waiter-input::placeholder { color: var(--text-muted); }

.split-tabs { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.split-tab {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: var(--bg-2); color: var(--text-dim); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
}
.split-tab.active { background: var(--amber-soft); color: var(--amber-bright); border-color: var(--amber); }
.split-tab .x { opacity: 0.5; font-size: 13px; line-height: 1; }
.split-tab .x:hover { opacity: 1; color: var(--red); }
.split-add { font-size: 11px; color: var(--text-dim); padding: 4px 8px; border-radius: 6px; border: 1px dashed var(--line-2); }
.split-add:hover { color: var(--amber); border-color: var(--amber); }

.order-items { flex: 1; overflow-y: auto; padding: 8px 0; min-height: 0; }
.order-item {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.order-item:hover { background: var(--bg-2); }
.order-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-item-name { font-size: 13px; font-weight: 500; line-height: 1.3; flex: 1; }
.order-item-price { font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.order-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty-ctrl { display: flex; align-items: center; gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty-btn { width: 24px; height: 24px; display: grid; place-items: center; font-size: 14px; color: var(--text-dim); }
.qty-btn:hover { background: var(--bg-3); color: var(--amber); }
.qty-val { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.remove-btn { font-size: 11px; color: var(--text-muted); padding: 4px 8px; }
.remove-btn:hover { color: var(--red); }
.note-input {
  width: 100%; background: transparent; border: none; border-bottom: 1px dashed var(--line);
  padding: 4px 0; font-size: 11px; color: var(--text-dim); margin-top: 6px; font-style: italic;
}
.note-input:focus { outline: none; border-color: var(--amber); color: var(--text); }
.note-input::placeholder { color: var(--text-muted); }

.order-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.order-empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }

/* Totals */
.totals { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-1); flex-shrink: 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 4px 0; color: var(--text-dim); }
.total-row.grand { font-size: 16px; color: var(--text); font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.total-row.grand .val { color: var(--amber-bright); font-size: 20px; font-family: 'JetBrains Mono', monospace; }
.total-val { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text); }
.tax-input, .small-input {
  width: 56px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; font-size: 11px; color: var(--text); text-align: right; font-family: 'JetBrains Mono', monospace;
}
.tax-input:focus, .small-input:focus { outline: none; border-color: var(--amber); }

.discount-toggle { display: inline-flex; background: var(--bg-2); border-radius: 4px; padding: 2px; gap: 2px; margin: 0 4px; }
.discount-toggle button { font-size: 10px; padding: 2px 6px; border-radius: 3px; color: var(--text-dim); }
.discount-toggle button.active { background: var(--bg-3); color: var(--amber); }

.opt-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: var(--text-dim); }
.toggle-switch {
  width: 28px; height: 16px; border-radius: 8px; background: var(--line-2); position: relative;
  transition: background .15s;
}
.toggle-switch::after {
  content: ''; width: 12px; height: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: all .2s;
}
.toggle-switch.on { background: var(--amber); }
.toggle-switch.on::after { left: 14px; background: #fff; }

/* Action buttons */
.order-actions { padding: 12px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-shrink: 0; }
.order-actions .btn-primary { grid-column: 1 / -1; }
.btn {
  padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.btn-primary { background: var(--amber); color: #1a0f00; }
.btn-primary:hover { background: var(--amber-bright); box-shadow: 0 4px 12px rgba(242,164,58,.3); }
.btn-primary:disabled { background: var(--bg-3); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--bg-3); border-color: var(--line-2); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--bg-2); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,25,15,.35); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 100;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 92vw; max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalIn .25s cubic-bezier(.16,1,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.modal-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { font-size: 20px; color: var(--text-dim); width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.modal-close:hover { background: var(--bg-2); color: var(--text); }

/* Context menu */
.ctx-menu {
  position: fixed; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 4px;
  z-index: 200; min-width: 180px;
  animation: modalIn .15s ease;
}
.ctx-item { padding: 8px 12px; font-size: 13px; border-radius: 6px; display: flex; align-items: center; gap: 10px; }
.ctx-item:hover { background: var(--bg-3); }
.ctx-item .k { font-size: 10px; color: var(--text-muted); margin-left: auto; }

/* KOT */
.kot {
  background: #fff; color: #000; width: 340px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  border-radius: 4px;
}
.kot-head { text-align: center; border-bottom: 2px dashed #000; padding-bottom: 10px; margin-bottom: 10px; }
.kot-title { font-size: 18px; font-weight: 700; letter-spacing: 0.1em; }
.kot-meta { display: flex; justify-content: space-between; font-size: 11px; margin: 4px 0; }
.kot-item { padding: 6px 0; border-bottom: 1px dashed #999; }
.kot-item-row { display: flex; justify-content: space-between; font-weight: 700; }
.kot-note { font-size: 10px; font-style: italic; color: #555; padding-left: 12px; }
.kot-foot { text-align: center; margin-top: 10px; font-size: 10px; }

/* Receipt */
.receipt {
  background: #fff; color: #000; width: 340px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  border-radius: 4px;
}
.receipt-head { text-align: center; border-bottom: 2px dashed #000; padding-bottom: 10px; margin-bottom: 10px; }
.receipt-name { font-size: 16px; font-weight: 800; letter-spacing: 0.05em; }
.receipt-addr { font-size: 10px; margin-top: 2px; line-height: 1.4; }
.receipt-meta { display: flex; justify-content: space-between; font-size: 10px; margin: 3px 0; }
.receipt-items { border-bottom: 1px dashed #000; padding-bottom: 8px; margin-bottom: 8px; }
.receipt-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 11px; padding: 2px 0; }
.receipt-item-qty { color: #555; font-size: 10px; }
.receipt-total-row { display: flex; justify-content: space-between; font-size: 11px; padding: 1px 0; }
.receipt-total-row.grand { font-size: 14px; font-weight: 800; border-top: 1px solid #000; padding-top: 4px; margin-top: 4px; }
.receipt-foot { text-align: center; margin-top: 12px; border-top: 1px dashed #000; padding-top: 10px; font-size: 10px; }

/* Checkout */
.pay-methods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.pay-method {
  padding: 16px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.pay-method:hover { border-color: var(--line-2); color: var(--text); }
.pay-method.active { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-bright); }
.pay-method-icon { font-size: 20px; }

.cash-pad { display: grid; gap: 10px; }
.cash-input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 18px; font-weight: 700; color: var(--text);
  font-family: 'JetBrains Mono', monospace; text-align: right;
  width: 100%;
}
.cash-input:focus { outline: none; border-color: var(--amber); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick-cash button {
  padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.quick-cash button:hover { border-color: var(--amber); color: var(--amber); }

.change-box {
  padding: 14px; background: var(--bg-2); border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.change-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.change-val { font-size: 22px; font-weight: 700; color: var(--green); font-family: 'JetBrains Mono', monospace; }
.change-val.short { color: var(--red); }

.split-row {
  display: grid; grid-template-columns: 1fr 120px 30px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.split-row select, .split-row input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; font-size: 13px; color: var(--text);
}
.split-row input { font-family: 'JetBrains Mono', monospace; text-align: right; }

/* Settings */
.settings-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.setting-field { display: flex; flex-direction: column; gap: 6px; }
.setting-field label { font-size: 11px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.setting-field input, .setting-field select {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-size: 13px; color: var(--text);
}
.setting-field input:focus, .setting-field select:focus { outline: none; border-color: var(--amber); }
.setting-field.full { grid-column: 1 / -1; }

/* History */
.history-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
}
.filter-chip.active { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-bright); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row {
  display: grid; grid-template-columns: 80px 1fr 120px 100px 80px;
  gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px;
}
.history-row:hover { border-color: var(--line-2); }
.history-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }
.history-tbl { font-weight: 600; }
.history-method { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; display: inline-block; text-transform: uppercase; letter-spacing: 0.05em; }
.method-cash { background: rgba(107,191,123,.15); color: var(--green); }
.method-card { background: rgba(103,162,217,.15); color: var(--blue); }
.method-upi { background: rgba(168,138,217,.15); color: var(--violet); }
.method-split { background: var(--amber-soft); color: var(--amber-bright); }
.history-total { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; }

/* Summary cards */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-family: 'JetBrains Mono', monospace; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-accent { color: var(--amber-bright); }

.method-split-bar {
  display: flex; height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-top: 12px;
}
.method-split-bar > div { height: 100%; transition: width .3s; }
.method-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-dim); }

/* Print */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .modal-backdrop { position: static; background: #fff; backdrop-filter: none; display: block; }
  .modal { box-shadow: none; border: none; max-width: none; max-height: none; background: #fff; }
  .modal-body { overflow: visible; padding: 0; }
  .receipt, .kot { box-shadow: none; }
}

/* Utility */
.flex { display: flex; }
.row { display: flex; align-items: center; gap: 8px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.hint { font-size: 11px; color: var(--text-muted); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-2); border: 1px solid var(--amber); color: var(--text);
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 300;
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .25s cubic-bezier(.16,1,.3,1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* Additional styles for dashboard enhancements */

/* Menu card with image */
.menu-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
}
.menu-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  background: linear-gradient(135deg, #efece6 0%, #e4e0d8 100%);
  overflow: hidden;
}
.menu-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.menu-card:hover .menu-img img { transform: scale(1.05); }
.menu-img .veg-badge { position: absolute; top: 8px; left: 8px; background: rgba(15,17,20,.85); border-radius: 3px; width: 18px; height: 18px; backdrop-filter: blur(4px); }
.menu-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.menu-card-body .menu-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.menu-card-body .menu-desc { font-size: 11px; color: var(--text-dim); line-height: 1.35; flex: 1; margin-bottom: 6px; }
.menu-card .unavailable-tag { top: 8px; right: 8px; background: rgba(15,17,20,.85); color: #fff; }
.stock-low {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(226,96,96,.92); color: #fff; padding: 2px 7px; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.menu-card.unavailable .menu-img::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.6);
}

/* Reservations */
.resv-list { display: flex; flex-direction: column; gap: 8px; }
.resv-card {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
}
.resv-card:hover { border-color: var(--line-2); }
.resv-time {
  text-align: center; padding: 6px; background: var(--bg-2); border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.resv-time .h { font-size: 16px; font-weight: 700; color: var(--amber-bright); }
.resv-time .rel { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.resv-name { font-size: 14px; font-weight: 600; }
.resv-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.resv-note { font-size: 11px; color: var(--amber); margin-top: 4px; font-style: italic; }
.resv-actions { display: flex; gap: 6px; }

/* Customer cards */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cust-card {
  padding: 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
}
.cust-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cust-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--amber);
}
.cust-name { font-size: 13px; font-weight: 600; }
.cust-phone { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.tier-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 10px;
  margin-left: auto;
}
.tier-Bronze { background: rgba(184,115,51,.14); color: #9a5a22; }
.tier-Silver { background: rgba(120,120,120,.12); color: #6d6d6d; }
.tier-Gold { background: var(--amber-soft); color: var(--amber-bright); }
.tier-Platinum { background: rgba(90,100,150,.12); color: #56608a; }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 11px; }
.cust-stat { display: flex; flex-direction: column; }
.cust-stat-lbl { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 9px; }
.cust-stat-val { font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* Notifications panel */
.notif-trigger {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line); display: grid; place-items: center;
  position: relative; color: var(--text-dim);
}
.notif-trigger:hover { color: var(--text); border-color: var(--line-2); }
.notif-trigger .badge-dot {
  position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 2px var(--bg-1);
}
.notif-panel {
  position: absolute; top: 46px; right: 0; width: 340px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 150;
  animation: modalIn .15s ease;
  overflow: hidden;
}
.notif-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.notif-head h3 { font-size: 13px; font-weight: 700; margin: 0; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item {
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: flex-start;
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-3); }
.notif-item.unread::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  display: block; margin-top: 6px;
}
.notif-item.read::before { content: ''; display: block; }
.notif-icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; }
.notif-icon.warn { background: rgba(226,96,96,.12); color: var(--red); }
.notif-icon.info { background: rgba(103,162,217,.12); color: var(--blue); }
.notif-icon.ok { background: rgba(107,191,123,.12); color: var(--green); }
.notif-body { font-size: 12px; line-height: 1.4; }
.notif-title { font-weight: 600; color: var(--text); }
.notif-msg { color: var(--text-dim); margin-top: 2px; }
.notif-time { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* Onboarding tip banner */
.tip-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--amber-soft), transparent 60%);
  border: 1px solid var(--amber-dim);
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text);
}
.tip-banner kbd { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 10px; font-family: 'JetBrains Mono', monospace; }
.tip-banner .dismiss { margin-left: auto; color: var(--text-muted); padding: 4px 8px; border-radius: 4px; }
.tip-banner .dismiss:hover { color: var(--text); background: var(--bg-2); }

/* Status pipeline chip */
.course-chip {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.course-new { background: var(--bg-3); color: var(--text-dim); }
.course-preparing { background: rgba(242,164,58,.15); color: var(--amber-bright); }
.course-ready { background: rgba(107,191,123,.15); color: var(--green); }
.course-served { background: rgba(103,162,217,.15); color: var(--blue); }

/* Hero image strip (settings) */
.hero-preview {
  width: 100%; height: 140px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  position: relative; margin-bottom: 14px;
}
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.hero-preview .hero-overlay {
  position: absolute; bottom: 10px; left: 14px; right: 14px; color: #fff;
}
.hero-preview h3 { margin: 0; font-size: 18px; font-weight: 700; }

/* Alert banner for low stock */
.alerts-strip {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.alert-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  background: rgba(208,69,69,.07); border: 1px solid rgba(208,69,69,.25); color: #b83a3a;
}
.alert-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* Rating stars */
.rating { display: inline-flex; gap: 2px; font-size: 10px; color: var(--amber); }

/* Quick adjust FAB */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber);
  display: grid; place-items: center;
  color: #1a0f00; box-shadow: 0 10px 30px rgba(242,164,58,.4);
  z-index: 90;
  transition: transform .15s;
}
.fab:hover { transform: scale(1.08); }


/* Dark mode */
html[data-theme="dark"] {
  --bg: #0e0f11; --bg-1: #15171a; --bg-2: #1b1e22; --bg-3: #24282e;
  --line: #2a2f36; --line-2: #363c44;
  --text: #f2ede2; --text-dim: #a8a79f; --text-muted: #6b6e74;
  --amber: #f2a43a; --amber-bright: #ffb84a; --amber-dim: #3a2a12; --amber-soft: rgba(242,164,58,.12);
  --green: #6bbf7b; --red: #e26060; --blue: #67a2d9; --violet: #a88ad9;
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .menu-img { background: linear-gradient(135deg, #2a2f36 0%, #1b1e22 100%); }
html[data-theme="dark"] .menu-card.unavailable .menu-img::after { background: rgba(14,15,17,0.55); }
html[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.65); }
html[data-theme="dark"] .tier-Silver { background: rgba(192,192,192,.15); color: #c0c0c0; }
html[data-theme="dark"] .tier-Platinum { background: rgba(180,180,210,.15); color: #d4d8ec; }
html[data-theme="dark"] .tier-Bronze { background: rgba(184,115,51,.15); color: #cd8c53; }
html[data-theme="dark"] .alert-chip { background: rgba(226,96,96,.08); border-color: rgba(226,96,96,.25); color: #f08585; }
html[data-theme="dark"] .toggle-switch { background: var(--bg-3); }
html[data-theme="dark"] .toggle-switch.on { background: var(--amber); }
html[data-theme="dark"] .toggle-switch.on::after { background: #1a0f00; box-shadow: none; }
.ember-root, .ember-root * { transition-property: background-color, border-color, color; transition-duration: .2s; }
.ember-root .menu-img img, .ember-root .table-card, .ember-root .menu-card { transition: all .15s ease; }


/* ── Tema "Lorong Malam" (gaya benga.lucrativeid.com) — terang (warkop) & gelap (dark) ── */
html[data-theme="warkop"] {
  --bg: #f0eee9; --bg-1: #f8f7f4; --bg-2: #e7e5df; --bg-3: #dcd9d1;
  --line: rgba(5,6,8,.12); --line-2: rgba(5,6,8,.24);
  --text: #050608; --text-dim: #44474e; --text-muted: #6b6e75;
  --amber: #40e0ff; --amber-bright: #0a7f99; --amber-dim: #d4f6fd; --amber-soft: rgba(64,224,255,.16);
  --green: #1f9d55; --red: #d64545; --blue: #2f72b6; --violet: #6f4fb8;
  --ink: rgba(5,6,8,.14); --card: #ffffff; --side: #050608; --side-text: #f0eee9; --sticker: #40e0ff; --on-sticker: #050608; --img: #e7e5df;
  --glow: rgba(64,224,255,.10);
  --shadow-lg: 0 30px 80px rgba(5,6,8,.18); --shadow-md: 0 10px 30px rgba(5,6,8,.10);
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
}
html[data-theme="dark"] {
  --bg: #050608; --bg-1: #0a0c0f; --bg-2: #111418; --bg-3: #191d22;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.22);
  --text: #f0eee9; --text-dim: #b4b6bc; --text-muted: #8b8e96;
  --amber: #40e0ff; --amber-bright: #7eeaff; --amber-dim: #0b2a33; --amber-soft: rgba(64,224,255,.12);
  --green: #4ade80; --red: #ff6b6b; --blue: #60a5fa; --violet: #a78bfa;
  --ink: rgba(255,255,255,.12); --card: #0a0c0f; --side: #050608; --side-text: #f0eee9; --sticker: #40e0ff; --on-sticker: #050608; --img: #111418;
  --glow: rgba(64,224,255,.08);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6); --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
  color-scheme: dark;
}
html:is([data-theme="warkop"],[data-theme="dark"]) body, html:is([data-theme="warkop"],[data-theme="dark"]) .ember-root { font-family: 'Inter', system-ui, sans-serif; }
html:is([data-theme="warkop"],[data-theme="dark"]) .main-col { background: radial-gradient(700px 480px at 0 0, var(--glow), transparent 65%), var(--bg); }
html:is([data-theme="warkop"],[data-theme="dark"]) :is(.page-title-main, .section-title, .panel-title, .modal-title, .menu-name, .stat-tile-value, .stat-value, .change-val, .total-row.grand .val, .menu-price) { font-family: 'Space Grotesk', 'Inter', sans-serif; }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar { background: var(--side); border-right: 1px solid var(--ink); }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-brand { background: var(--sticker); color: var(--on-sticker); box-shadow: 0 0 24px rgba(64,224,255,.35); border-radius: 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.03em; }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar > .sidebar-brand { background: transparent; box-shadow: none; }
html:not([data-theme="dark"]) .brand-logo { filter: invert(1); }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-btn { color: var(--side-text); opacity: .55; }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-btn:hover { background: rgba(240,238,233,.08); color: var(--side-text); opacity: 1; }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-btn.active { background: rgba(64,224,255,.14); color: var(--sticker); opacity: 1; }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-btn.active::before { background: var(--sticker); box-shadow: 0 0 10px var(--sticker); }
html:is([data-theme="warkop"],[data-theme="dark"]) .sidebar-label { background: #111418; color: #f0eee9; border-color: rgba(255,255,255,.14); }
html:is([data-theme="warkop"],[data-theme="dark"]) .topbar { background: transparent; border-bottom: 1px solid var(--ink); }
html:is([data-theme="warkop"],[data-theme="dark"]) .page-title { min-width: 120px; overflow: hidden; }
html:is([data-theme="warkop"],[data-theme="dark"]) .page-title-main { font-weight: 700; font-size: 24px; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:is([data-theme="warkop"],[data-theme="dark"]) .page-title-sub { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:is([data-theme="warkop"],[data-theme="dark"]) .page-title-sub::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sticker); box-shadow: 0 0 8px var(--sticker); margin-right: 7px; vertical-align: 1px; }
html:is([data-theme="warkop"],[data-theme="dark"]) .stats-strip { background: transparent; gap: 12px; padding: 14px 20px 4px; border-bottom: none; }
html:is([data-theme="warkop"],[data-theme="dark"]) .stat-tile { border: 1px solid var(--ink); border-radius: 16px; box-shadow: none; background: var(--card); }
html:is([data-theme="warkop"],[data-theme="dark"]) .stat-tile-label { color: var(--text-muted); font-weight: 600; letter-spacing: .14em; }
html:is([data-theme="warkop"],[data-theme="dark"]) .stat-tile-value { letter-spacing: -0.04em; }
html:is([data-theme="warkop"],[data-theme="dark"]) .stat-tile:first-child .stat-tile-value { background: linear-gradient(90deg, var(--text) 30%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="warkop"] .stat-tile:first-child .stat-tile-value { background-image: linear-gradient(90deg, var(--text) 30%, var(--amber-bright)); }
html:is([data-theme="warkop"],[data-theme="dark"]) :is(.section-title, .panel-title, .modal-title) { font-weight: 700; letter-spacing: -0.02em; }
html:is([data-theme="warkop"],[data-theme="dark"]) .cat-tab { border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 600; padding: 7px 16px; }
html:is([data-theme="warkop"],[data-theme="dark"]) .cat-tab:hover { color: var(--text); border-color: var(--text-muted); }
html:is([data-theme="warkop"],[data-theme="dark"]) .cat-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-grid { gap: 14px; }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-card { border: 1px solid var(--ink); border-radius: 16px; box-shadow: none; background: var(--card); padding: 0; overflow: hidden; transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s; }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-card:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: 0 14px 34px -14px rgba(64,224,255,.45); }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-card:active { transform: translateY(0) scale(.98); }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-img { border-bottom: 1px solid var(--ink); border-radius: 0; background: var(--img); }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
html:is([data-theme="warkop"],[data-theme="dark"]) .menu-price { color: var(--amber-bright); font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
html:is([data-theme="warkop"],[data-theme="dark"]) :is(.order-panel, .dash-right) { background: var(--bg-1); border-left: 1px solid var(--ink); }
html:is([data-theme="warkop"],[data-theme="dark"]) .order-head { border-bottom: 1px solid var(--ink); }
html:is([data-theme="warkop"],[data-theme="dark"]) .order-item { border-bottom: 1px solid var(--line); }
html:is([data-theme="warkop"],[data-theme="dark"]) .qty-ctrl { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; }
html:is([data-theme="warkop"],[data-theme="dark"]) .btn { border-radius: 12px; font-weight: 600; }
html:is([data-theme="warkop"],[data-theme="dark"]) .btn-primary { background: var(--amber); color: #050608; border: none; box-shadow: 0 10px 28px -10px rgba(64,224,255,.7); }
html:is([data-theme="warkop"],[data-theme="dark"]) .btn-primary:hover { background: var(--amber); filter: brightness(1.08); }
html:is([data-theme="warkop"],[data-theme="dark"]) .btn-primary:active { transform: scale(.98); }
html:is([data-theme="warkop"],[data-theme="dark"]) .btn-secondary { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
html:is([data-theme="warkop"],[data-theme="dark"]) .pay-method { background: transparent; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-weight: 600; }
html:is([data-theme="warkop"],[data-theme="dark"]) .pay-method.active { background: var(--amber-soft); border-color: var(--amber); color: var(--text); box-shadow: 0 0 0 1px var(--amber) inset; }
html:is([data-theme="warkop"],[data-theme="dark"]) .modal { border: 1px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--bg-1); }
html:is([data-theme="warkop"],[data-theme="dark"]) .modal-backdrop { background: rgba(5,6,8,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:is([data-theme="warkop"],[data-theme="dark"]) .search-box { background: var(--bg-2); border: 1px solid var(--ink); border-radius: 999px; }
html:is([data-theme="warkop"],[data-theme="dark"]) :is(.panel, .stat-card, .cust-card, .table-card) { border: 1px solid var(--ink); box-shadow: none; border-radius: 16px; }
html:is([data-theme="warkop"],[data-theme="dark"]) .toggle-switch.on { background: var(--amber); }
html:is([data-theme="warkop"],[data-theme="dark"]) .toast { background: var(--text); color: var(--bg); border: none; border-radius: 999px; }
html:is([data-theme="warkop"],[data-theme="dark"]) ::selection { background: var(--sticker); color: var(--on-sticker); }
html:is([data-theme="warkop"],[data-theme="dark"]) .cart-fab { color: #050608; border: none; box-shadow: 0 14px 34px -10px rgba(64,224,255,.7); }
html:is([data-theme="warkop"],[data-theme="dark"]) * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }


/* ── Responsif: iPad & HP ── */
.cart-fab, .cart-close, .cart-scrim { display: none; }
@media (max-width: 1240px) {
  .dash-body { grid-template-columns: 1fr 330px; }
  .clock-date, .shift-badge { display: none !important; }
  .cashier-chip span:last-child { display: none; }
  .search-box { width: 190px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (max-width: 1024px) {
  .dash-body { grid-template-columns: 1fr; position: relative; }
  .dash-right { position: fixed; left: 0; right: 0; bottom: 0; height: min(86vh, 760px); z-index: 60; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.25); border-left: none !important; border-top: 2px solid var(--ink, var(--line)); }
  .dash-right.open { transform: translateY(0); }
  .dash-right .ticker { display: none; }
  .cart-close { display: block; align-self: flex-end; margin: 10px 14px 0; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-weight: 700; font-size: 13px; }
  .cart-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  .cart-fab { display: flex; position: fixed; right: 18px; bottom: 18px; z-index: 50; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px; background: var(--amber); color: #fff; font-size: 15px; font-weight: 700; border: 2px solid var(--ink, transparent); box-shadow: 4px 4px 0 var(--ink, rgba(0,0,0,.25)); }
  .dash-center { padding-bottom: 96px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .clock { display: none; }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar-right { gap: 10px; }
  .modal { max-width: 96vw !important; }
}
@media (max-width: 680px) {
  html, body { overflow: hidden; }
  .ember-root { grid-template-columns: 1fr; grid-template-rows: 1fr 64px; }
  .sidebar[data-mobile-nav] { grid-row: 2; grid-column: 1; flex-direction: row; padding: 6px 8px; gap: 2px; overflow-x: auto; border-right: none !important; border-top: 2px solid var(--ink, var(--line)); align-items: center; }
  .sidebar[data-mobile-nav] .sidebar-brand, .sidebar[data-mobile-nav] .sidebar-spacer, .sidebar[data-mobile-nav] .sidebar-label { display: none; }
  .sidebar[data-mobile-nav] .sidebar-nav { flex-direction: row; gap: 2px; }
  .sidebar[data-mobile-nav] .sidebar-btn { width: 50px; height: 50px; flex: none; }
  .sidebar[data-mobile-nav] .sidebar-btn.active::before { display: none; }
  .main-col { grid-row: 1; grid-column: 1; }
  .topbar { height: 56px; padding: 0 12px; }
  .page-title-main { font-size: 17px !important; }
  .page-title-sub { display: none; }
  .search-box { width: 130px; }
  .search-box kbd, .cashier-chip { display: none !important; }
  .stats-strip { padding: 10px 12px 2px !important; gap: 8px !important; }
  .stat-tile { padding: 10px 12px !important; }
  .stat-tile-value { font-size: 17px !important; }
  .stat-tile-delta { font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-center, .workspace-inner { padding: 14px 12px 90px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .cat-tabs { flex-wrap: nowrap; }
  .tip-banner { display: none; }
  .cart-fab { left: 12px; right: 12px; bottom: 76px; justify-content: space-between; }
  .dash-right { height: calc(100vh - 70px); bottom: 0; }
  .modal { width: 100vw !important; max-width: 100vw !important; max-height: 94vh !important; border-radius: 16px 16px 0 0 !important; align-self: flex-end; }
  .modal-backdrop { align-items: flex-end !important; }
  .pay-methods { grid-template-columns: repeat(3, 1fr) !important; }
  .section-head { flex-wrap: wrap; gap: 10px; }
  .workspace-inner > div { min-width: 0; }
  .workspace-inner [style*="grid-template-columns"] { overflow-x: auto; }
}

@media (max-width: 680px) { .cloud-label { display: none; } }

.history-row { grid-template-columns: 80px minmax(0,1fr) 120px 100px auto !important; }

/* Sidebar: nama menu selalu tampil di bawah ikon (owner 27 Nov 2026) */
.sidebar-nav { overflow-y: auto; scrollbar-width: none; min-height: 0; flex: 0 1 auto; }
.sidebar-btn { height: auto; min-height: 48px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none; }
.sidebar-name { font-size: 9.5px; line-height: 1.1; font-weight: 600; text-align: center; max-width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ember-root .sidebar[data-mobile-nav] .sidebar-btn { height: auto; min-height: 50px; }
