:root {
  /* Fallback defaults — overridden by inline style from DB theme_config */
  --primary: #A6D608;
  --primary-dark: #7FB800;
  --accent: #C7F464;
  --bg: #F4FBE8;
  --card: #ffffff;
  --text: #2E2E2E;
  --muted: #6B6B6B;
  --line: #dce8eb;
  --dark: #1a2332;
  --success: #d4edda;
  --warning: #fff3cd;
  --error: #f8d7da;
  --sidebar-from: #5A8A00;
  --sidebar-to: #7FB800;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  /* Legacy aliases for backward compat */
  --teal: var(--primary);
  --teal-dark: var(--primary-dark);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 200px; min-width: 200px;
  background: linear-gradient(180deg, var(--sidebar-from), var(--sidebar-to));
  padding: 12px 10px;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  transition: width 0.2s, min-width 0.2s, padding 0.2s;
}
.brand-wrap { display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.brand-logo { width:80px; max-width:100%; height:auto; border-radius:10px; background:#fff; padding:5px; box-shadow:0 3px 10px rgba(0,0,0,0.12); transition: width 0.2s; }
.sidebar nav { display:flex; flex-direction:column; gap:2px; flex:1; }

/* Two-zone nav header (POS / Backoffice) */
.nav-zone-label {
  font-size:0.65rem; font-weight:700; color:rgba(255,255,255,0.45);
  text-transform:uppercase; letter-spacing:0.08em;
  padding:14px 8px 4px; white-space:nowrap; overflow:hidden;
}
.sidebar nav > .nav-zone-label:first-child { padding-top:4px; }
body.sidebar-collapsed .nav-zone-label .nav-text { display:none; }
body.sidebar-collapsed .nav-zone-label {
  padding:8px 0 2px; text-align:center;
}
body.sidebar-collapsed .nav-zone-label::after {
  content:"·"; font-size:1.2rem; color:rgba(255,255,255,0.45);
}

/* Nav collapsible groups */
.nav-group { margin:0; }
.nav-group summary { list-style:none; }
.nav-group summary::-webkit-details-marker { display:none; }
.nav-group-label {
  display:flex; align-items:center; gap:6px;
  font-size:0.72rem; font-weight:700; color:rgba(255,255,255,0.5);
  text-transform:uppercase; letter-spacing:0.03em;
  padding:8px 8px 4px; white-space:nowrap; overflow:hidden;
  cursor:pointer; user-select:none; transition:color 0.15s;
}
.nav-group-label:hover { color:rgba(255,255,255,0.8); }
.nav-group-label::after {
  content:'›'; font-size:0.9rem; margin-left:auto;
  transition:transform 0.2s; color:rgba(255,255,255,0.3);
}
.nav-group[open] > .nav-group-label::after { transform:rotate(90deg); }
.nav-group-items { display:flex; flex-direction:column; gap:2px; padding-left:6px; }
/* Non-details group labels (standalone) */
div.nav-group-label { cursor:default; }
div.nav-group-label::after { display:none; }
.nav-spacer { flex:1; }

/* Nav links */
.nav-link {
  display:flex; align-items:center; gap:8px;
  text-decoration:none; color:rgba(255,255,255,0.8);
  padding:6px 10px; border-radius:8px;
  background:transparent;
  font-size:0.8rem; font-weight:600;
  white-space:nowrap; overflow:hidden;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background:rgba(255,255,255,0.14); color:#fff; }
.nav-link.active { background:rgba(255,255,255,0.22); color:#fff; font-weight:700; }
.nav-icon { font-size:1rem; flex-shrink:0; width:20px; text-align:center; }
.nav-text { overflow:hidden; text-overflow:ellipsis; }
.nav-logout { opacity:0.6; margin-top:4px; }
.nav-logout:hover { opacity:1; }

.main { flex:1; padding:20px; min-width:0; overflow-x:auto; }
.topbar h1 { margin-top:0; font-size:32px; color: var(--primary-dark); }

.card { background:var(--card); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:20px; }
.grid { display:grid; gap:20px; }
.grid.cols-2 { grid-template-columns: 2fr 1fr; }

.hero-card { display:grid; grid-template-columns:180px 1fr; gap:20px; background:var(--card); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:20px; }
.hero-logo { width:100%; max-width:160px; border-radius:18px; background:#fff; padding:8px; box-shadow:0 8px 20px rgba(0,0,0,0.12); }

.item-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:16px; }
.item-card { border:1px solid var(--line); border-radius:var(--radius); padding:14px; background:var(--card); }
.item-name { font-weight:700; margin-bottom:8px; }
.item-desc { color:var(--muted); min-height:36px; font-size:14px; }
.item-price { font-size:20px; margin:12px 0; color:var(--accent); }

.btn { border:none; border-radius:var(--radius); padding:10px 14px; cursor:pointer; background:var(--primary); color:white; font-weight:700; text-decoration:none; display:inline-block; text-align:center; transition:box-shadow 0.2s; }
.btn:hover { box-shadow: 0 0 14px rgba(0,0,0,0.15); }
.btn-primary { background:var(--primary-dark); }
.full-width { width:100%; }

input, select, textarea { width:100%; padding:12px; border-radius:12px; border:1px solid var(--line); margin-top:6px; margin-bottom:14px; background:white; }
.cart-list { border:1px solid var(--line); border-radius:12px; min-height:120px; padding:10px; margin-bottom:12px; }
.cart-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed var(--line); }
.totals { font-size:22px; margin:12px 0 18px; }

.table { width:100%; border-collapse:collapse; }
.table th, .table td { padding:12px; border-bottom:1px solid var(--line); text-align:left; }

.kitchen-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:14px; }
.column { min-height:280px; }
.order-tile { border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:12px; background:var(--card); }
.order-items { font-size:14px; color:var(--muted); margin:8px 0; }

.progress-wrap { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 20px; }
.progress-step { padding:10px 14px; border-radius:999px; background:var(--bg); color:var(--muted); font-size:13px; font-weight:700; }
.progress-step.active { background:var(--primary); color:white; }

.mini-progress { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.mini-progress span { padding:8px 12px; background:var(--bg); border-radius:999px; font-size:12px; font-weight:700; }

.flash-wrap { margin-bottom:16px; }
.flash { padding:12px 14px; border-radius:12px; margin-bottom:8px; }
.flash.success { background:var(--success); }
.flash.error { background:var(--error); }
.muted { color:var(--muted); }
.sticky-cart { position:sticky; top:20px; align-self:start; }
.track-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.qr-box img { width:180px; max-width:100%; border:1px solid var(--line); border-radius:12px; background:#fff; padding:6px; }

/* ── Responsive ── */

/* Narrow desktop / tablet (769-1200px) — keep full sidebar by default
   so cashier sees readable labels on iPad / Samsung Tab. The user can
   click the collapse button (▾ in the sidebar) to switch to icon-only;
   that choice is remembered per-device via localStorage and applied as
   `body.sidebar-collapsed`. */
@media (max-width: 1200px) {
  .grid.cols-2, .kitchen-grid, .hero-card { grid-template-columns: 1fr; }
  /* Default: full sidebar, slightly narrower than desktop */
  .sidebar { width:180px; min-width:180px; padding:10px 8px; }
  .sticky-cart { position:static; }
}

/* Icon-only mode — only when the user explicitly collapses */
body.sidebar-collapsed .sidebar { width:56px; min-width:56px; padding:10px 4px; align-items:center; }
body.sidebar-collapsed .brand-logo { width:38px; }
body.sidebar-collapsed .nav-text { display:none; }
body.sidebar-collapsed .nav-group-label { font-size:1rem; padding:6px 0 2px; justify-content:center; }
body.sidebar-collapsed .nav-group-label .nav-text { display:none; }
body.sidebar-collapsed .nav-group-label::after { display:none; }
body.sidebar-collapsed .nav-group-items { padding-left:0; }
body.sidebar-collapsed .nav-group:not([open]) .nav-group-items { display:flex; }
body.sidebar-collapsed .nav-link { justify-content:center; padding:8px; border-radius:10px; }
body.sidebar-collapsed .nav-icon { font-size:1.1rem; width:auto; }
body.sidebar-collapsed .sidebar-collapse-icon::before { content:"»"; }
.sidebar-collapse-icon::before { content:"«"; }

/* Sidebar collapse toggle button */
.sidebar-collapse-btn {
  margin: 4px 0 8px; padding: 6px 10px;
  background: rgba(255,255,255,0.10); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  cursor: pointer; font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; transition: .15s;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,0.20); }
body.sidebar-collapsed .sidebar-collapse-btn { padding: 8px 0; }
body.sidebar-collapsed .sidebar-collapse-label { display:none; }

/* Tablet: horizontal bar */
@media (max-width: 768px) {
  .shell { flex-direction: column; }
  .sidebar { width:100% !important; min-width:100% !important;
             padding:8px 10px; flex-direction:row; flex-wrap:wrap; align-items:center; }
  .brand-wrap { margin-bottom:0; margin-right:8px; }
  .brand-logo { width:36px; }
  .sidebar nav { flex-direction:row; flex-wrap:wrap; gap:2px; flex:1; }
  .nav-group-label { display:none; }
  .nav-spacer { display:none; }
  .nav-link { padding:6px 8px; border-radius:8px; }
  .nav-icon { font-size:1rem; }
  .nav-text { display:none; }
  .main { padding:10px; }
  .topbar h1 { font-size:1.2rem; }
}

/* Phone */
@media (max-width: 480px) {
  .nav-link { padding:5px 6px; }
  .nav-icon { font-size:0.9rem; }
  .main { padding:8px; }
}

.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.badge {
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.badge.success { background:var(--success); color:#216c3f; }
.badge.warning { background:var(--warning); color:#8f6500; }
.badge.danger { background:var(--error); color:#9a2121; }

.login-card {
  max-width: 460px;
}

/* Fast food kiosk experience */
.ff-hero {
  display:grid;
  grid-template-columns: 1.7fr 220px;
  gap:20px;
  align-items:center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
}
.ff-chip {
  display:inline-block;
  background:var(--primary-dark);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  margin-bottom:12px;
}
.ff-hero h2 {
  margin:0 0 8px 0;
  font-size:34px;
  line-height:1.1;
}
.ff-hero p {
  margin:0;
  color:#5b6d73;
  max-width:680px;
}
.ff-table-banner {
  margin-top:14px;
  background:var(--bg);
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:12px;
  display:inline-block;
}
.ff-hero-brand {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.staff-login-btn {
  display:inline-block;
  padding:8px 18px;
  border-radius:20px;
  background:rgba(255,255,255,0.18);
  border:1.5px solid rgba(255,255,255,0.35);
  color:#fff;
  font-size:0.82rem;
  font-weight:600;
  text-decoration:none;
  letter-spacing:0.03em;
  transition:background 0.15s, transform 0.1s;
  backdrop-filter:blur(4px);
}
.staff-login-btn:hover { background:rgba(255,255,255,0.30); transform:translateY(-1px); }
.staff-logout-btn { opacity:0.85; }
.ff-hero-logo {
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,0.10);
}

.ff-layout {
  display:grid;
  grid-template-columns: minmax(0, 2fr) 420px;
  gap:20px;
  align-items:start;
}
.ff-menu-panel, .ff-cart-panel {
  min-width:0;
}
.ff-toolbar {
  position:sticky;
  top:10px;
  z-index:5;
  background:rgba(246,248,249,0.96);
  backdrop-filter: blur(6px);
  padding-bottom:12px;
  margin-bottom:8px;
}
.ff-search {
  width:100%;
  border-radius:16px;
  border:1px solid #d8e8ea;
  padding:14px 16px;
  font-size:15px;
  margin-bottom:12px;
}
.ff-category-pills {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ff-pill {
  border:none;
  border-radius:999px;
  padding:10px 14px;
  background:var(--bg);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.ff-pill.active {
  background:var(--primary-dark);
  color:#fff;
}
.ff-category-section {
  margin-bottom:22px;
}
.ff-category-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.ff-category-header h3 {
  margin:0;
  font-size:24px;
}
.ff-category-header span {
  color:#6b8189;
  font-size:13px;
  font-weight:700;
}
.ff-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
}
.ff-card {
  background:#fff;
  border:1px solid #dfeaec;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(18,41,50,0.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
.ff-card:hover {
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(18,41,50,0.10);
}
.ff-card-media {
  position:relative;
  height:150px;
  background:linear-gradient(135deg, #f1f7f7, #fff7ee);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ff-card-media img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.ff-badge {
  position:absolute;
  top:12px;
  left:12px;
  background:#ff8d3a;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
}
.ff-card-body {
  padding:14px;
}
.ff-card-title {
  font-size:18px;
  font-weight:800;
  min-height:44px;
}
.ff-card-desc {
  color:#6c8188;
  font-size:13px;
  line-height:1.4;
  min-height:54px;
  margin-top:6px;
}
.ff-card-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
.ff-price {
  color:var(--accent);
  font-size:22px;
  font-weight:900;
}
.ff-add-btn {
  min-width:88px;
}

.ff-cart-card, .ff-status-card {
  background:#fff;
  border-radius:24px;
  padding:20px;
  box-shadow:0 10px 26px rgba(18,41,50,0.08);
  border:1px solid #e2ecee;
  margin-bottom:18px;
}
.ff-cart-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}
.ff-cart-head h3 {
  margin:0;
}
#cart-count-badge {
  background:var(--bg);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  color:var(--text);
}
.ff-form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.ff-cart-list {
  border:1px solid #e2ecee;
  border-radius:18px;
  min-height:140px;
  padding:10px;
  background:#fcfefe;
  margin:12px 0;
}
.ff-empty-cart {
  color:#7a9098;
  font-size:14px;
  padding:18px 10px;
  text-align:center;
}
.ff-cart-row {
  border-bottom:1px dashed #d8e5e7;
  padding:10px 4px;
}
.ff-cart-row:last-child {
  border-bottom:none;
}
.ff-cart-row-main {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.ff-cart-row-main span {
  color:#6f858c;
  font-size:12px;
}
.ff-cart-row-actions {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  flex-wrap:wrap;
}
.ff-qty-btn {
  border:none;
  background:var(--primary-dark);
  color:#fff;
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.ff-qty {
  min-width:18px;
  text-align:center;
  font-weight:800;
}
.ff-remove-btn {
  border:none;
  background:#ffe6d8;
  color:#984b18;
  padding:8px 10px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}
.ff-line-total {
  font-weight:800;
  color:#1f414a;
}
.ff-cart-summary {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:12px 0 16px;
}
.ff-cart-summary > div {
  background:#f4f8f8;
  border-radius:16px;
  padding:14px;
}
.ff-cart-summary span {
  display:block;
  color:#6b8189;
  font-size:12px;
  margin-bottom:6px;
}
.ff-cart-summary strong {
  font-size:22px;
}
.ff-submit-btn {
  width:100%;
  padding:16px;
  font-size:17px;
  border-radius:18px;
}
.ff-steps {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0;
}
.ff-steps span {
  background:var(--bg);
  border-radius:999px;
  padding:10px 12px;
  font-size:12px;
  font-weight:800;
}

@media (max-width: 1200px) {
  .ff-layout {
    grid-template-columns:1fr;
  }
  .ff-hero {
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px) {
  .ff-grid {
    grid-template-columns:1fr 1fr;
  }
  .ff-form-grid {
    grid-template-columns:1fr;
  }
}
@media (max-width: 520px) {
  .ff-grid {
    grid-template-columns:1fr;
  }
  .ff-card-title {
    min-height:auto;
  }
}

/* Mobile dashboard style */
.mobile-dashboard {
  max-width: 100%;
}
.dash-sync {
  text-align:center;
  color:#7e868d;
  margin:8px 0 18px;
  font-size:16px;
}
.mobile-stat-grid {
  /* Wider tiles, fewer per row. min 200px keeps each tile spacious; auto-fit
     stretches them to fill the full main-content width. */
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:12px;
  width:100%;
}
.mobile-stat-card {
  position:relative;
  border-radius:14px;
  min-height:74px;
  padding:10px 14px;
  color:#fff;
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
  box-shadow:0 10px 24px rgba(18,41,50,0.08);
}
.mobile-stat-card::before,
.mobile-stat-card::after {
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,0.18);
}
.mobile-stat-card::before {
  width:120px;
  height:120px;
  top:-20px;
  right:30px;
}
.mobile-stat-card::after {
  width:140px;
  height:140px;
  bottom:-30px;
  right:-20px;
}
.mobile-stat-card.peach { background:#eba58f; }
.mobile-stat-card.teal { background:#67c3cb; }
.mobile-stat-card.green { background:#a5d6b0; }
.mobile-stat-card.orange { background:#e7a169; }
.stat-icon {
  /* Float icon to the upper-right so it doesn't eat vertical space.
     The value + label stack on the left and the tile stays compact. */
  position:absolute;
  top:8px;
  right:12px;
  font-size:28px;
  opacity:.40;
  margin-bottom:0;
  line-height:1;
}
.stat-value {
  font-size:1.55rem;
  font-weight:800;
  line-height:1.1;
  word-break:break-word;
}
.stat-label {
  font-size:0.82rem;
  margin-top:2px;
  font-weight:600;
  opacity:.95;
}
.dash-section-title {
  margin:28px 0 18px;
  font-size:22px;
  font-weight:800;
  color:#60bec4;
}
.mobile-dash-layout {
  display:grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap:20px;
}
.mobile-card {
  background:#fff;
  border-radius:24px;
  padding:22px;
  box-shadow:0 8px 24px rgba(18,41,50,0.06);
}
.card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.card-title {
  font-size:18px;
  font-weight:800;
  color:#56bdc3;
}
.card-sub {
  color:#7f888f;
  font-size:14px;
  margin-top:6px;
}
.filter-open-btn {
  border:none;
  background:#eef6f7;
  color:#56bdc3;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
.tab-strip {
  display:flex;
  gap:24px;
  margin:10px 0 16px;
}
.tab {
  color:#202f38;
  font-size:15px;
}
.tab.active {
  color:#56bdc3;
  border-bottom:3px solid #56bdc3;
  padding-bottom:8px;
}
.simple-chart {
  display:flex;
  align-items:flex-end;
  gap:12px;
  min-height:280px;
  overflow:auto;
  padding-top:10px;
}
.chart-col {
  min-width:42px;
  text-align:center;
}
.chart-bar-wrap {
  height:220px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.chart-bar {
  width:32px;
  background:#9fd0ab;
  border-radius:10px 10px 0 0;
}
.chart-label {
  font-size:11px;
  color:#647984;
  margin-top:8px;
}
.payment-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid #eef3f4;
}
.payment-row:last-child {
  border-bottom:none;
}
.payment-name {
  font-weight:700;
}
.payment-amt {
  color:#22343a;
  font-weight:800;
}
.table-scroll {
  overflow:auto;
}
.dash-modal-backdrop {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:18px;
}
.dash-modal {
  width:min(840px, 100%);
  background:#fff;
  border-radius:24px;
  padding:26px;
  box-shadow:0 20px 40px rgba(0,0,0,0.16);
}
.dash-modal-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}
.dash-modal-head h3 {
  margin:0;
  font-size:22px;
}
.dash-close {
  border:none;
  background:transparent;
  font-size:28px;
  cursor:pointer;
  color:#a7a7a7;
}
.dash-radio-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 28px;
  margin-bottom:22px;
}
.dash-radio {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
}
.dash-radio input[type="radio"] {
  width:24px;
  height:24px;
  margin:0;
}
.dash-or {
  display:flex;
  align-items:center;
  gap:16px;
  margin:18px 0;
  color:#929292;
}
.dash-or::before,
.dash-or::after {
  content:"";
  flex:1;
  height:1px;
  background:#e2e2e2;
}
.dash-or span {
  background:#efefef;
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
}
.dash-modal-actions {
  margin-top:20px;
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 900px) {
  .mobile-dash-layout {
    grid-template-columns:1fr;
  }
  /* Tablet */
  .mobile-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }
  .mobile-stat-card { min-height: 68px; padding: 9px 12px; border-radius: 12px; }
  .stat-icon { font-size: 24px; top: 7px; right: 10px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.78rem; }
}
@media (max-width: 640px) {
  .dash-radio-grid {
    grid-template-columns:1fr;
  }
  /* Mobile (iOS / Android phones) — 2 tiles per row, tight */
  .mobile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-stat-card { min-height: 62px; padding: 8px 10px; border-radius: 11px; }
  .stat-icon { font-size: 20px; top: 6px; right: 8px; opacity: .5; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: 0.72rem; }
}
@media (max-width: 380px) {
  /* Very small phones — single column */
  .mobile-stat-grid { grid-template-columns: 1fr; }
}

.kitchen-filter-strip {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin-top:10px;
}
.kitchen-filter-link {
  display:inline-block;
  padding:6px 12px;
  border-radius:8px;
  white-space:nowrap;
  background:var(--bg);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:0.82rem;
}
.kitchen-filter-link.active {
  background:var(--primary-dark);
  color:#fff;
}
.text-link {
  color:var(--primary-dark);
  text-decoration:none;
  font-weight:700;
}
.text-link:hover {
  text-decoration:underline;
}

.order-status-card .status-component {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.order-status-card .status-dropdown {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.order-status-card .status-save-btn {
  margin-top: 8px;
}

.item-admin-form textarea {
  width: 100%;
}
.checkbox-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}
.checkbox-row input {
  width:auto;
  margin:0;
}
.upload-help {
  margin-top:10px;
  color:#6f858c;
  font-size:14px;
  line-height:1.5;
}
.admin-actions {
  margin-top:20px;
}
.item-thumb {
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #dce8eb;
}

.ff-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ff-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f7f7, #fff7ee);
  color: #6c8188;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ff-card-media {
  overflow: hidden;
}

/* ── Cash Drawer ────────────────────────────────────────── */
.cd-hero-card {
  background: linear-gradient(135deg, #2b6e74, #3a9ca6);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 8px 24px rgba(18,41,50,0.12);
  /* Clear vertical rhythm so the stat grid below doesn't visually overlap
     the hero's drop shadow. */
  margin-bottom: 20px;
}
.cd-hero-left { min-width: 0; flex: 1 1 auto; }
.cd-hero-right { flex: 0 0 auto; }
.cd-hero-label { font-size: 0.85rem; opacity: 0.85; margin-bottom: 6px; }
.cd-hero-amount { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.cd-hero-date { font-size: 0.78rem; opacity: 0.7; margin-top: 4px; }

/* Tablet / phone — stack and keep the hero's action button below the amount. */
@media (max-width: 640px) {
  .cd-hero-card {
    padding: 20px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cd-hero-amount { font-size: 1.9rem; }
  .cd-hero-right { width: 100%; }
  .cd-hero-right .btn { width: 100%; }
}

/* ── Modal (shared: cash drawer + kiosk modifier + gcash) ─ */
.cd-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.cd-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.cd-modal h3 { margin-bottom: 10px; }
.cd-modal label { display: block; margin-top: 12px; font-weight: 600; font-size: 0.88rem; }
.cd-modal input, .cd-modal select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #ddd;
  border-radius: 10px; font-size: 0.95rem; margin-top: 4px;

/* ── Modifier picker ── */
.mod-group { margin-bottom: 18px; }
.mod-group-title {
  font-weight: 700; font-size: 0.92rem; color: var(--dark, #1a2332);
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1.5px solid var(--line, #e5e7eb);
}
.mod-option {
  display: flex !important; align-items: center; gap: 12px;
  margin-top: 0 !important; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; font-weight: 500 !important;
  transition: background 0.12s;
}
.mod-option:hover { background: var(--bg, #f6f8f9); }
.mod-option input[type="radio"] {
  width: 18px !important; height: 18px; min-width: 18px;
  padding: 0 !important; margin: 0;
  accent-color: var(--teal, #77d2d3);
  border-radius: 50% !important;
}
.mod-option-name { flex: 1; font-size: 0.92rem; color: var(--dark, #1a2332); }
.mod-option-price {
  font-size: 0.82rem; font-weight: 600;
  color: var(--teal, #77d2d3); white-space: nowrap;
}

/* ── Kiosk discount buttons ─────────────────────────────── */
.ff-discount-row { margin: 10px 0 6px; }
.ff-discount-row label { font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; display: block; }
.ff-discount-btn {
  border: 1.5px solid #ddd; background: #f7f3ef; border-radius: 20px;
  padding: 5px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.ff-discount-btn.active,
.ff-discount-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ── Badge warning colour (for QUEUED/PREPARING status) ─── */
.badge.warning { background: #f0c040; color: #5a3e00; }

/* ════════════════════════════════════════════════════════════
   DARK MODE — DB-driven via data-dark="true" on <html>
   ════════════════════════════════════════════════════════════ */
[data-dark="true"] body { background: var(--bg); color: var(--text); }
[data-dark="true"] .card,
[data-dark="true"] .mobile-card { background: var(--card); color: var(--text); }
[data-dark="true"] input, [data-dark="true"] select, [data-dark="true"] textarea {
  background: var(--card); color: var(--text); border-color: var(--muted);
}
[data-dark="true"] .data-table th { background: var(--bg); color: var(--text); }
[data-dark="true"] .data-table tr:hover td { background: rgba(255,255,255,0.04); }
[data-dark="true"] .brand-logo { background: var(--card); }
[data-dark="true"] .hero-card { background: var(--card); }
[data-dark="true"] .item-card { background: var(--card); border-color: var(--muted); }
[data-dark="true"] .btn { box-shadow: 0 0 10px rgba(166,214,8,0.2); }
[data-dark="true"] .btn:hover { box-shadow: 0 0 18px rgba(166,214,8,0.35); }
[data-dark="true"] .mobile-stat-card { border-color: rgba(255,255,255,0.08); }

/* ════════════════════════════════════════════════════════════
   DEMO MODE BANNER
   ════════════════════════════════════════════════════════════ */
.demo-topbar-banner {
  background: var(--primary-dark); color: #fff; text-align: center;
  padding: 6px 12px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; position: sticky; top: 0; z-index: 100;
}
.demo-banner-pill {
  display: inline-block; background: rgba(166,214,8,0.12);
  border: 2px solid var(--primary); color: var(--primary-dark);
  border-radius: 999px; padding: 6px 18px; font-weight: 700;
  font-size: 0.9rem; margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════
   SEARCH BAR (topbar)
   ════════════════════════════════════════════════════════════ */
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.topbar-search { display: flex; gap: 6px; margin-left: auto; }
.topbar-search input {
  width: 220px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); margin: 0;
}
.topbar-search button {
  border-radius: 999px; padding: 8px 16px; font-size: 0.85rem;
}
.topbar-user { font-size: 0.85rem; color: var(--muted); white-space: nowrap; display:flex; align-items:center; gap:7px; }
.topbar-theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.06); text-decoration: none;
  font-size: 0.95rem; transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.topbar-theme-btn:hover { background: rgba(0,0,0,0.13); transform: rotate(20deg); }

/* ════════════════════════════════════════════════════════════
   SYSTEM SETTINGS PAGE
   ════════════════════════════════════════════════════════════ */
.settings-page { max-width: 960px; }
.settings-section { margin-bottom: 8px; }
.settings-section-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.settings-section-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.settings-section-header h2 { margin: 0 0 2px; font-size: 1.1rem; }
.settings-desc { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Settings form */
.settings-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.settings-field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; display: block; }
.settings-field input { margin-top: 2px; margin-bottom: 0; }

/* Config quick links */
.config-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.config-link-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card);
  text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
.config-link-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.config-link-card.demo-active { border-color: var(--warning); }
.config-link-icon { font-size: 1.3rem; flex-shrink: 0; }
.config-link-card strong { display: block; font-size: 0.88rem; }
.config-link-card small { color: var(--muted); font-size: 0.76rem; }

/* Theme tiles */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 160px));
  gap: 14px;
}
/* form is a grid item wrapper — make it invisible to layout */
.theme-form { display: contents; }
.theme-tile {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 0; border-radius: 16px; border: 2.5px solid transparent;
  background: var(--card); cursor: pointer;
  width: 100%; overflow: hidden;
  box-shadow: var(--shadow); transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.theme-tile.active {
  border-color: var(--tile-primary, var(--primary));
  box-shadow: 0 0 0 3px rgba(59,183,184,0.18), 0 6px 24px rgba(0,0,0,0.12);
}
.theme-tile:hover {
  border-color: var(--tile-primary, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* Mini UI mockup inside the tile */
.theme-tile-preview {
  width: 100%; height: 110px;
  display: flex; overflow: hidden;
  border-radius: 13px 13px 0 0;
}
.ttp-sidebar {
  width: 32px; min-width: 32px; height: 100%;
}
.ttp-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 5px 6px; gap: 4px; overflow: hidden;
}
.ttp-topbar { width: 100%; height: 13px; border-radius: 4px; flex-shrink: 0; }
.ttp-tiles { display: flex; gap: 3px; flex-shrink: 0; }
.ttp-tile { flex: 1; height: 24px; border-radius: 4px; }
.ttp-table { flex: 1; border-radius: 4px; min-height: 0; }

/* Label + swatches */
.theme-tile-label {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 10px 12px 4px;
}
.theme-tile-label strong { font-size: 0.82rem; }
.theme-tile-label small { font-size: 0.7rem; color: var(--muted); }
.ttp-swatches {
  display: flex; gap: 4px; padding: 4px 12px 12px;
}
.ttp-swatch {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
}

/* Legacy swatch (kept for fallback) */
.theme-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tile-primary, var(--primary));
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Feature matrix */
.feature-matrix td.center { text-align: center; }
.table-scroll { overflow-x: auto; }

/* Dataset cards */
.dataset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dataset-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.dataset-info strong { display: block; margin-bottom: 4px; }
.dataset-info p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Audit table */
.audit-table pre { font-size: 0.75rem; max-width: 260px; overflow-x: auto; margin: 4px 0 0; }
.audit-table details summary { cursor: pointer; font-size: 0.82rem; color: var(--primary); }
.nowrap { white-space: nowrap; }
.pagination { display: flex; align-items: center; gap: 10px; }
.page-info { color: var(--muted); font-size: 0.9rem; }

/* Help text */
.help-text { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; }

/* Row muted */
.row-muted td { opacity: 0.45; }

/* Two col layout */
.two-col-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }

/* data-table (enterprise variant) */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th { background: var(--bg); padding: 10px 12px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--line); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: rgba(0,0,0,0.03); }
.action-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* btn variants */
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-warning { background: #ff8f00; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 0.82rem; border-radius: 8px; }

/* Form row */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row select { margin: 0; }

/* page-actions */
.page-actions { margin-bottom: 16px; }

/* Filter strip */
.filter-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-strip select { width: auto; margin: 0; }

/* KPI card as link */
a.mobile-stat-card, a.kpi-link {
  text-decoration: none; color: inherit; display: block; cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}
a.mobile-stat-card:hover, a.kpi-link:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); transform: translateY(-2px);
}

/* KPI tooltip */
.kpi-info-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.85rem; padding: 0 4px;
  vertical-align: middle;
}
.kpi-tooltip {
  display: none; position: absolute; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 0.8rem; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-width: 280px; top: 100%; left: 0;
}
.kpi-stat-wrap { position: relative; display: inline-block; }
.kpi-stat-wrap:hover .kpi-tooltip,
.kpi-stat-wrap:focus-within .kpi-tooltip { display: block; }

/* Demo login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-wrap { width: 100%; max-width: 520px; padding: 32px 24px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-logo { width: 100px; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.login-brand h1 { margin: 12px 0 4px; font-size: 1.6rem; color: var(--primary); }
.demo-persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.demo-persona-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--card); cursor: pointer; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-persona-tile:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.persona-icon { font-size: 2rem; }
.demo-persona-tile strong { font-size: 1rem; }
.demo-persona-tile small { font-size: 0.78rem; color: var(--muted); text-align: center; }
.login-footer { text-align: center; margin-top: 20px; }

/* Search results */
.search-group { margin-bottom: 24px; }
.search-group h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px;
  text-decoration: none; color: var(--text); background: var(--card);
}
.search-result-item:hover { border-color: var(--primary); }
.search-result-label { font-weight: 600; }
.search-result-sub { font-size: 0.82rem; color: var(--muted); }
.search-type-badge { margin-left: auto; }
.search-empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }

/* ════════════════════════════════════════════════════════════
   DASHBOARD KPI TILE SIZE TOGGLE
   ════════════════════════════════════════════════════════════ */

/* Tile-size toggle (S/M/L) removed — feature was non-functional. */

/* Tile-size [data-size] rules removed — toggle was non-functional. */


/* ════════════════════════════════════════════════════════════
   LOW-STOCK ALERT
   ════════════════════════════════════════════════════════════ */
.low-stock-alert {
  background: var(--warning); border-left: 4px solid #e65100;
  padding: 12px 16px; cursor: pointer; text-decoration: none;
  color: var(--text); display: block; border-radius: var(--radius);
}
.low-stock-alert:hover { opacity: 0.9; }
.low-stock-chip {
  display: inline-block; background: rgba(0,0,0,0.06);
  padding: 2px 8px; border-radius: 6px; font-size: 0.8rem; margin: 2px;
}

/* ════════════════════════════════════════════════════════════
   ATTENDANCE
   ════════════════════════════════════════════════════════════ */
.attendance-date-header { margin-bottom: 16px; }

/* Board grid */
.att-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.att-staff-card {
  background: var(--card, #fff);
  border-radius: var(--radius, 14px);
  padding: 18px 16px;
  box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.07));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 4px solid #dce8eb;
  transition: transform 0.1s;
}
.att-staff-card:hover { transform: translateY(-2px); }
.att-in   { border-top-color: #3bb7b8; }
.att-done { border-top-color: #bde7c6; }
.att-absent { border-top-color: #dce8eb; opacity: 0.75; }

/* Photo */
.att-photo-wrap { position: relative; }
.att-photo {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 3px solid #e0e8eb;
}
.att-photo-placeholder {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary,#3bb7b8), var(--primary-dark,#2a9a9b));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
}
.att-status-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--card, #fff);
}
.dot-in     { background: #3bb7b8; }
.dot-done   { background: #5cb85c; }
.dot-absent { background: #b0bec5; }

/* Info */
.att-staff-info { text-align: center; line-height: 1.3; }
.att-times { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.att-time-badge {
  display: inline-block; padding: 3px 10px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}
.att-time-badge.in  { background: rgba(59,183,184,0.15); color: #2a9a9b; }
.att-time-badge.out { background: rgba(224,122,95,0.15);  color: #c0533a; }
.att-adjust-wrap { margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   EXPORT TOOLBAR
   ════════════════════════════════════════════════════════════ */
.export-toolbar {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.export-toolbar .btn { font-size: 0.8rem; padding: 6px 14px; }

/* ════════════════════════════════════════════════════════════
   CASHIER STATION
   ════════════════════════════════════════════════════════════ */
.cashier-order-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.cashier-order-link:hover { text-decoration: underline; }
.cashier-row-new { background: rgba(255,152,0,0.06); }
.cashier-row-cancelled { opacity: 0.55; }
.btn-danger { background: #d7263d; color: #fff; border: none; }
.btn-danger:hover { background: #b01d2f; }

/* ── Kiosk pay-at-counter notice ── */
.kiosk-pay-notice {
  background: rgba(var(--primary-rgb, 59,130,246), 0.08);
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
}

/* ── Kiosk payment method radio cards ── */
.kiosk-pay-method-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.kiosk-pay-option { display: flex; flex: 1; cursor: pointer; }
.kiosk-pay-option input[type="radio"] { display: none; }
.kiosk-pay-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid var(--line, #e5e7eb);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background: var(--card);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.kiosk-pay-option input[type="radio"]:checked + .kiosk-pay-card {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 59,130,246), 0.08);
  color: var(--primary);
}

/* ── Cashier station layout ── */
.cashier-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.cashier-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cashier-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--line, #e5e7eb);
  text-decoration: none;
  transition: all .15s;
}
.cashier-filter:hover { border-color: var(--primary); color: var(--primary); }
.cashier-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cashier-filter-urgent.active { background: #e07a5f; border-color: #e07a5f; }
.cashier-badge-count {
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.cashier-filter-urgent.active .cashier-badge-count { color: #e07a5f; }

.cashier-section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e07a5f;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pending payment cards grid */
.cashier-pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cashier-pending-card {
  background: var(--card);
  border: 2px solid #e07a5f;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(224,122,95,.15);
}
.cashier-pending-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cashier-pending-orderno {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline dotted;
}
.cashier-pending-time { font-size: 0.78rem; color: var(--muted); }
.cashier-pending-customer { font-weight: 700; font-size: 0.95rem; }
.cashier-pending-table { font-size: 0.85rem; color: var(--primary); font-weight: 700; }
.cashier-pending-type { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.cashier-pending-paymethod { color: var(--muted); font-size: 0.8rem; }
.cashier-pending-total { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-top: 4px; }
.cashier-pay-btn { width: 100%; margin-top: 6px; padding: 10px; font-size: 0.9rem; }

/* ════════════════════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════════════════════ */
@media print {
  .sidebar, .topbar, .kitchen-filter-strip,
  .export-toolbar, .flash-wrap, .demo-topbar-banner,
  .mobile-stat-grid, .btn, nav, .topbar-status,
  .brand-wrap { display: none !important; }
  .shell { display: block !important; }
  .main { padding: 0 !important; width: 100% !important; }
  .data-table { font-size: 11px; width: 100%; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  body { background: white !important; color: black !important; -webkit-print-color-adjust: exact; }
  a { color: black !important; text-decoration: none !important; }
}

/* ─── Phase 0 New Status Flow Styles ───────────────────────────── */
.cashier-section {
  margin-bottom: 24px;
}
.cashier-section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text, #2c1810);
  padding: 8px 14px;
  border-left: 4px solid var(--primary, #8b5e3c);
  background: var(--accent, #f5e6d3);
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
}
.cashier-queue-badge {
  display: inline-block;
  background: var(--primary, #0d9488);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.cashier-row-cancelled td {
  opacity: 0.55;
  text-decoration: line-through;
}

/* ─── Kitchen Board Tile Enhancements ─────────────────────────────── */
.kitchen-tile {
  border-radius: 14px;
  border: 1.5px solid var(--line, #e5e7eb);
  background: var(--card, #fff);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.kitchen-queue-no {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary, #0d9488);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.kitchen-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.kitchen-order-link {
  font-weight: 700;
  font-size: 0.88rem;
}
.kitchen-tile-customer {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #2c1810);
  margin-bottom: 6px;
}
.kitchen-items-list {
  margin: 8px 0;
  padding: 8px;
  background: var(--accent, #f5e6d3);
  border-radius: 8px;
}
.kitchen-item-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 2px 0;
}
.kitchen-qty {
  font-weight: 800;
  color: var(--primary, #0d9488);
  min-width: 28px;
}
.kitchen-action-btn {
  transition: opacity 0.15s, transform 0.1s;
}
.kitchen-action-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.kitchen-action-btn:active { transform: none; }

/* ─── Demo Persona Login Tiles ─────────────────────────────────────── */
.demo-login-section { margin-top: 24px; }
.demo-login-divider {
  text-align: center; color: #9bb3ba; font-size: 0.8rem;
  margin-bottom: 14px;
}
.demo-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}
.demo-persona-btn {
  width: 100%; padding: 12px 8px;
  border: 1.5px solid #dce8eb; border-radius: 14px;
  background: #f8fbfb; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.demo-persona-btn:hover { border-color: #77d2d3; background: #f0fafa; }
.demo-persona-icon { font-size: 1.4rem; }
.demo-persona-name { font-size: 0.72rem; font-weight: 700; color: #3bb7b8; }
.demo-persona-role { font-size: 0.65rem; color: #9bb3ba; text-transform: uppercase; letter-spacing: 0.04em; }

/* ─── Open Tabs & Parked Orders ────────────────────────────────────── */
.tab-card {
  background: var(--card);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.tab-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tab-label { font-size: 1rem; color: var(--text); }
.tab-total { font-size: 1.2rem; font-weight: 800; color: #f59e0b; white-space: nowrap; }
.tab-orders-list {
  border-top: 1px solid #fde68a;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab-order-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid #fef3c7;
}
.tab-order-row:last-child { border-bottom: none; }

/* ─── Cashier KPI Pulse Animation ──────────────────────────────── */
@keyframes kpi-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(18,41,50,0.08); }
  50% { box-shadow: 0 4px 20px rgba(224,122,95,0.35); }
}
a.kpi-link {
  scroll-behavior: smooth;
}

/* ─── Cashier Beautification ───────────────────────────────────── */
.cashier-section {
  scroll-margin-top: 12px;
}
.cashier-pending-card {
  transition: box-shadow 0.18s, transform 0.12s;
}
.cashier-pending-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.cashier-pay-btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: opacity 0.12s, transform 0.1s;
}
.cashier-pay-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.cashier-pay-btn:active {
  transform: none;
}
.cashier-pending-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 6px 0;
}
.cashier-pending-orderno {
  transition: color 0.12s;
}
.cashier-pending-orderno:hover {
  color: var(--primary-dark, #7FB800);
}
.cashier-section-label {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg, #F4FBE8);
  padding-top: 8px;
  padding-bottom: 8px;
}
.tab-card {
  transition: box-shadow 0.18s, transform 0.12s;
}
.tab-card:hover {
  box-shadow: 0 6px 24px rgba(245,158,11,0.18);
  transform: translateY(-1px);
}
