/* ===== RESTAURANT PORTAL THEME ===== */
:root {
  --accent: #FF6B35;
  --accent-soft: rgba(255,107,53,0.12);
  --accent2: #FF9F1C;
}

.sidebar-logo { background: linear-gradient(135deg,#FF6B35,#FF9F1C) !important; }

/* POS Menu Item Card */
.menu-item-card {
  background: var(--dark4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.menu-item-card:hover {
  border-color: var(--accent);
  background: rgba(255,107,53,0.07);
  transform: translateY(-2px);
}

.menu-item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s;
}

.menu-item-card:hover::before { opacity: 1; }

.menu-item-emoji {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.menu-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.menu-item-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.menu-item-type {
  width: 10px; height: 10px;
  border-radius: 2px;
  border: 1.5px solid;
  display: inline-block;
  margin-right: 4px;
}

.menu-item-type.veg { border-color: var(--success); background: var(--success); }
.menu-item-type.non-veg { border-color: var(--danger); background: var(--danger); }

/* Order Line */
.order-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.order-line:last-child { border-bottom: none; }

.order-line-name {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.order-qty-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.order-qty-btn:hover { background: var(--accent); border-color: var(--accent); }

.order-qty { width: 28px; text-align: center; font-size: 0.8rem; font-weight: 700; color: white; }

.order-line-total {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 56px;
  text-align: right;
}

.order-remove {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: none;
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.order-remove:hover { background: var(--danger); color: white; }

/* Order summary */
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-summary-row.total {
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* Table grid */
.table-cell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  background: var(--dark3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.table-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.table-cell.available::before { background: var(--success); }
.table-cell.occupied::before  { background: var(--accent); }
.table-cell.reserved::before  { background: var(--warning); }
.table-cell.dirty::before     { background: var(--danger); }

.table-cell:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.table-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.table-section {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.table-cap {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.table-guest { font-size: 0.78rem; color: var(--text); font-weight: 600; }
.table-time  { font-size: 0.68rem; color: var(--text-dim); }

/* KDS Cards */
.kds-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.kds-card.pending  { border-color: rgba(245,158,11,0.4); }
.kds-card.preparing{ border-color: rgba(59,130,246,0.4); }
.kds-card.ready    { border-color: rgba(34,197,94,0.5); }

.kds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.kds-order-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
}

.kds-station {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.kds-station.main    { background: rgba(255,107,53,0.15); color: #FF6B35; }
.kds-station.chinese { background: rgba(239,68,68,0.15); color: #EF4444; }
.kds-station.bakery  { background: rgba(245,158,11,0.15); color: #F59E0B; }

.kds-timer {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kds-timer.ok      { color: var(--success); }
.kds-timer.warning { color: var(--warning); }
.kds-timer.overdue { color: var(--danger); animation: blink 1s step-end infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.kds-items { padding: 12px 16px; flex: 1; }

.kds-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text);
}

.kds-item:last-child { border-bottom: none; }
.kds-qty {
  font-weight: 800;
  color: white;
  min-width: 20px;
}

.kds-modifier {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

.kds-actions {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* Production plan list */
.prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.prod-item:last-child { border-bottom: none; }

.prod-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prod-name { flex: 1; font-size: 0.82rem; font-weight: 600; color: white; }
.prod-qty  { font-size: 0.78rem; color: var(--text-muted); }
.prod-progress { width: 80px; }

/* Station load bar */
.station-load-item {
  margin-bottom: 16px;
}

.station-load-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.station-load-name { font-weight: 600; color: white; }
.station-load-pct  { color: var(--text-muted); }

/* Analytics bars */
.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.analytics-bar-label {
  width: 140px;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  flex-shrink: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.analytics-bar-track {
  flex: 1;
  height: 8px;
  background: var(--dark4);
  border-radius: 99px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}

.analytics-bar-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  min-width: 64px;
  text-align: right;
}

/* Loyalty badge */
.loyalty-ring {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.loyalty-gold   { background: rgba(251,191,36,0.15); color: #FBB724; }
.loyalty-silver { background: rgba(148,163,184,0.15); color: #94A3B8; }
.loyalty-bronze { background: rgba(180,83,9,0.15); color: #B45309; }

/* Finance P&L */
.pl-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.pl-row:last-child { border-bottom: none; }
.pl-row.group-header { font-weight: 700; color: white; padding-top: 14px; }
.pl-row.subtotal { font-weight: 700; }
.pl-row.total { font-size: 0.95rem; font-weight: 800; color: white; border-top: 2px solid var(--border2); }

/* QC checklist card */
.checklist-card {
  background: var(--dark4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.checklist-status-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.checklist-done   { background: rgba(34,197,94,0.12); }
.checklist-pending { background: rgba(245,158,11,0.12); }
.checklist-miss   { background: rgba(239,68,68,0.12); }

.checklist-info { flex: 1; }
.checklist-zone { font-size: 0.82rem; font-weight: 700; color: white; }
.checklist-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
