/* === BIZZFLO DESIGN SYSTEM === */

:root {
  --brand: #00A870;
  --brand-dark: #007A52;
  --brand-mid: #00C48C;
  --brand-light: #E6FFF5;
  --brand-glow: rgba(0, 168, 112, 0.22);
  --accent: #FFB800;
  --accent-dark: #E69500;
  --accent-glow: rgba(255, 184, 0, 0.28);
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #64748B;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --surface-3: #F8FAFC;
  --border: #E2E8F0;
  --border-focus: #00A870;
  --sidebar-bg: var(--brand);
  --sidebar-color: #fff;
  --sidebar-color-muted: rgba(255,255,255,0.5);
  --sidebar-color-soft: rgba(255,255,255,0.85);
  --sidebar-divider: rgba(255,255,255,0.1);
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-active: rgba(255,255,255,0.14);
  --sidebar-logo-color: #fff;
  --brand-ring: rgba(0, 168, 112, 0.15);
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --info: #2563EB;
  --info-light: #DBEAFE;
  --sidebar-w: 240px;
  --sidebar-collapsed: 64px;
  --header-h: 56px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 150ms ease;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Typography */
h1 { font-size: 32px; font-weight: 600; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
.subhead { font-size: 16px; }
.small { font-size: 13px; }
.caption { font-size: 12px; color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-accent { color: var(--accent-dark); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}
.justify-between{justify-content:space-between}.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.flex-1{flex:1}.w-full{width:100%}.hidden{display:none!important}

/* Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  transition: width var(--transition);
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 4px; }
.sidebar.collapsed { width: var(--sidebar-collapsed); scrollbar-width: none; }
.sidebar.collapsed::-webkit-scrollbar { display: none; }
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .brand-name { display: none; }
.sidebar.collapsed .brand { justify-content: center; padding: 0 8px; }
.sidebar.collapsed .sidebar-nav { padding: 8px 6px; }
.sidebar.collapsed .nav-group { margin-bottom: 2px; }
.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 6px;
  gap: 0;
  margin-bottom: 2px;
}
.sidebar.collapsed .nav-item:hover { background: var(--sidebar-hover); }
.sidebar.collapsed .nav-item.active { background: transparent; }
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--transition);
  min-width: 0;
}
.main-area.collapsed { margin-left: var(--sidebar-collapsed); }
.main-content { padding: 24px; }

/* Sidebar brand */
.brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--sidebar-divider);
  flex-shrink: 0;
}
.brand-logo { font-size: 20px; font-weight: 700; color: var(--sidebar-logo-color); }
.brand-logo span { color: var(--accent); }
.brand-logo-img {
  width: 36px; height: 36px; flex-shrink: 0; display: block;
  border-radius: 10px; object-fit: cover;
}
.sidebar.collapsed .brand-logo-img {
  width: 32px; height: 32px; border-radius: 8px;
}
.brand-name { font-size: 13px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sidebar nav */
.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sidebar-color-muted);
  padding: 12px 12px 4px;
}
.nav-group-desc {
  font-size: 11px;
  color: var(--sidebar-color-muted);
  padding: 0 12px 8px;
  line-height: 1.35;
  margin: 0;
}
.nav-group-desc-inline { padding-top: 0; margin-top: -4px; }
.sidebar.collapsed .nav-group-desc { display: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-color-soft);
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--transition);
}
.nav-item:hover { background: var(--sidebar-hover); text-decoration: none; color: var(--sidebar-color); }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-color); font-weight: 500; }
.nav-item .nav-icon { width: auto; height: auto; flex-shrink: 0; display: flex; align-items: center; }
.select-card .sc-icon { margin-bottom: 12px; }
.select-card .sc-icon .mod-icon { width: 44px; height: 44px; }

/* Header */
.app-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-title { font-size: 16px; font-weight: 600; }
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--surface-2);
}
.header-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px;
  border: none; background: transparent;
  border-radius: var(--radius);
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--text-secondary);
}
.icon-btn:hover { background: var(--surface-3); }
.badge-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: var(--text-primary);
  font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

/* User menu */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius); }
.user-trigger:hover { background: var(--surface-3); }
.branch-trigger {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.branch-trigger:hover { background: var(--surface-3); border-color: var(--brand-mid, var(--brand)); }
.branch-icon { font-size: 15px; line-height: 1; }
.branch-caret { font-size: 10px; color: var(--text-muted); }
.branch-pill {
  padding: 6px 12px; border-radius: var(--radius);
  background: var(--brand-light); color: var(--brand-dark); font-weight: 600;
}
.branch-switch-item { width: 100%; text-align: left; border: none; background: transparent; cursor: pointer; font: inherit; }
.branch-switch-item.active { background: var(--brand-light); font-weight: 600; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px; z-index: 50; display: none;
}
.dropdown.open { display: block; }
.dropdown-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; }
.dropdown-item:hover { background: var(--surface-3); text-decoration: none; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.notif-dropdown { width: 340px; max-height: 460px; overflow-y: auto; }
.notif-item { padding: 10px 12px; border-radius: var(--radius-sm); }
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { background: var(--brand-light); }
.notif-item .notif-title { font-weight: 600; font-size: 13px; }
.notif-item .notif-body { font-size: 12px; color: var(--text-secondary); }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--text-primary); }
.btn-accent:hover { background: var(--accent-dark); color: var(--text-primary); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.form-label .req { color: var(--danger); }
.form-input, .form-select, textarea.form-input {
  width: 100%; height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px; font-family: var(--font); font-size: 14px;
  background: #fff; transition: border-color var(--transition);
}
textarea.form-input { height: auto; padding: 10px 12px; resize: vertical; }
.form-input:focus, .form-select:focus, textarea.form-input:focus {
  outline: none; border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0,168,112,0.1);
}
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.input-group { position: relative; }
.input-group .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-secondary); background: none; border: none; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 16px; }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi-card .kpi-label { font-size: 13px; color: var(--text-secondary); }
.kpi-card .kpi-value { font-size: 26px; font-weight: 600; margin-top: 6px; }
.kpi-card .kpi-value.accent { color: var(--accent-dark); }
.kpi-card .kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  position: sticky; top: 0; background: var(--surface-3);
  text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--text-secondary);
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-neutral { background: var(--surface-3); color: var(--text-secondary); }
.badge-accent { background: var(--accent); color: var(--text-primary); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--success-light); color: #166534; border-color: #BBF7D0; }
.alert-danger { background: var(--danger-light); color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: #FDE68A; }
.alert-info { background: var(--info-light); color: #1E40AF; border-color: #BFDBFE; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal.modal-lg { max-width: 800px; }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-secondary); line-height: 1; }

/* User module access (simple chips) */
.perm-simple .alert { margin-bottom: 12px; font-size: 13px; }
.perm-toggle-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.perm-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 200px; overflow-y: auto;
  padding: 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.perm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; cursor: pointer; user-select: none;
  transition: border-color var(--transition), background var(--transition);
}
.perm-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.perm-chip input { margin: 0; accent-color: var(--brand); }

/* Spinner & skeleton */
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.center-spinner { display: flex; justify-content: center; padding: 40px; }

/* Mobile sidebar backdrop */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 39; }
.sidebar-backdrop.open { display: block; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side {
  flex: 1; background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side .brand-logo { font-size: 32px; margin-bottom: 24px; }
.auth-side h1 { font-size: 30px; margin-bottom: 12px; }
.auth-side p { opacity: 0.9; font-size: 16px; max-width: 420px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--surface-2); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { margin-bottom: 6px; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 24px; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 18px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-weight: 500; cursor: pointer; font-size: 14px; }
.google-btn:hover { background: var(--surface-3); text-decoration: none; }

/* Wizard steps */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.wizard-step { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.wizard-step.active { background: var(--brand); }
.wizard-step.done { background: var(--accent); }

/* Selectable cards (shop type / plan) */
.select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.select-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all var(--transition); background: #fff; }
.select-card:hover { border-color: var(--brand); }
.select-card.selected { border-color: var(--brand); background: var(--brand-light); }
.select-card .sc-icon { font-size: 28px; margin-bottom: 8px; }
.select-card .sc-title { font-weight: 600; }
.select-card .sc-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.select-card .sc-price { font-size: 20px; font-weight: 600; color: var(--brand); margin-top: 8px; }

/* POS */
.pos-layout { display: grid; grid-template-columns: 1fr 420px; height: calc(100vh - var(--header-h)); }
.rpos-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 20px; background: linear-gradient(135deg, #e6fff5 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.rpos-title { font-size: 20px; font-weight: 700; margin: 0; }
.rpos-path-badge {
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.rpos-layout { height: calc(100vh - var(--header-h) - 56px); }
.rpos-cart-head { padding: 14px 16px 8px; border-bottom: 1px solid var(--border); }
.rpos-customer-bar { padding: 10px 16px; border-bottom: 1px solid var(--border); background: #fafafa; }
.rpos-cust-dropdown { width: calc(100% - 32px); }
.rpos-pay-panel { padding: 12px 16px; }
.pos-left { padding: 16px; overflow-y: auto; }
.pos-right { background: #fff; border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.pos-search input { height: 44px; font-size: 16px; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.cat-tab { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--border); cursor: pointer; white-space: nowrap; font-size: 13px; }
.cat-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 148px;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card.product-card--out { opacity: 0.85; border-color: #fecaca; }
.product-card.product-card--out:hover { border-color: var(--danger); }
.product-card .pc-thumb {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-light) 0%, var(--surface-3) 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.product-card .pc-thumb-inner {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  line-height: 1;
}
.product-card.product-card--out .pc-thumb { background: linear-gradient(145deg, #fee2e2 0%, var(--surface-3) 100%); }
.product-card.product-card--out .pc-thumb-inner { color: var(--danger); }
.product-card .pc-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}
.product-card .pc-price { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 6px; }
.product-card .pc-stock { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-top: 4px; }
.product-card .pc-stock.low { color: var(--accent-dark); font-weight: 600; }
.product-card .pc-stock.out { color: var(--danger); font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-row .ci-name { flex: 1; font-size: 13px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 26px; height: 28px; border: none; background: var(--surface-3); cursor: pointer; font-size: 16px; }
.qty-stepper input { width: 40px; height: 28px; border: none; text-align: center; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cart-summary { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 600; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.pay-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.pay-tab { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.pay-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Floating quick actions */
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.chart-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.chart-box h3 { font-size: 15px; margin-bottom: 12px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state .es-icon { font-size: 40px; margin-bottom: 12px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1C1C1E; color: #fff; padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; animation: slideup 0.2s ease; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideup { from { transform: translateY(12px); opacity: 0; } }

/* Offline banner */
.offline-banner { display: none; background: var(--warning); color: #fff; text-align: center; padding: 6px; font-size: 13px; }
.offline-banner.show { display: block; }

/* Restaurant floor plan */
.floor-plan-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, #f0faf6 0%, #e6fff5 100%); }
.floor-plan { position: relative; min-width: 720px; min-height: 480px; height: calc(100vh - 220px); }
.floor-table {
  position: absolute; width: 88px; height: 88px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; touch-action: none;
  border: 3px solid #fff; box-shadow: var(--shadow-md); transition: box-shadow var(--transition);
  font-size: 12px; text-align: center;
}
.floor-table.dragging { z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.18); cursor: grabbing; }
.floor-free { background: var(--success-light); border-color: var(--success); }
.floor-occupied { background: var(--danger-light); border-color: var(--danger); }
.floor-reserved { background: var(--warning-light); border-color: var(--warning); }
.floor-table .ft-num { font-weight: 700; font-size: 15px; }
.floor-table .ft-seats { font-size: 10px; color: var(--text-secondary); }
.floor-table .ft-total { font-size: 10px; font-weight: 600; color: var(--brand); margin-top: 2px; }

/* Waiter mobile app */
.waiter-mode .main-area.full-width { margin-left: 0 !important; width: 100%; }
.waiter-mode .waiter-content { padding: 0; min-height: 100vh; background: linear-gradient(180deg, #e6fff5 0%, var(--surface-2) 120px); }
.waiter-mode .waiter-content .alert { margin: 12px 16px 0; border-radius: var(--radius); }

/* Header */
.waiter-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; position: sticky; top: 0; z-index: 40;
  box-shadow: 0 4px 20px rgba(0,168,112,0.25);
}
.waiter-header-sub { padding: 12px 16px; }
.waiter-header-brand { min-width: 0; }
.waiter-brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.waiter-flow-tag { font-size: 11px; opacity: 0.88; margin-top: 2px; font-weight: 500; }
.waiter-header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.waiter-user-name { font-size: 12px; opacity: 0.9; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiter-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.35);
}
.waiter-back { color: #fff; text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.waiter-back-icon { font-size: 22px; line-height: 1; opacity: 0.95; }
.waiter-header-center { flex: 1; text-align: center; min-width: 0; }
.waiter-header-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.waiter-header-subtitle { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.waiter-header-action {
  font-size: 12px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255,255,255,0.18); padding: 6px 12px; border-radius: 20px; flex-shrink: 0;
}
.waiter-header-action-muted { opacity: 0.7; }

/* Stepper */
.waiter-stepper {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border);
}
.waiter-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; }
.waiter-step .ws-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text-muted);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.waiter-step .ws-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.waiter-step.done .ws-num { background: var(--brand); color: #fff; }
.waiter-step.done .ws-label { color: var(--brand); font-weight: 600; }
.waiter-step.active .ws-num { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--brand-light); }
.waiter-step.active .ws-label { color: var(--brand); font-weight: 700; }
.waiter-step-line { flex: 1; max-width: 40px; height: 2px; background: var(--border); margin-bottom: 18px; }
.waiter-step-line.done { background: var(--brand); }

/* Panels */
.waiter-app-body { padding-bottom: 8px; }
.waiter-app-body.has-bottom-nav,
.waiter-status-page.has-bottom-nav { padding-bottom: 72px; }
.waiter-panel { padding: 16px 16px 8px; }
.waiter-panel-head { margin-bottom: 14px; }
.waiter-h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.waiter-panel-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.waiter-badge { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 700; }

/* Stats row */
.waiter-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.waiter-stat {
  background: #fff; border-radius: var(--radius-lg); padding: 12px 10px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.waiter-stat .ws-value { display: block; font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.waiter-stat .ws-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.waiter-stat.ws-busy .ws-value { color: var(--danger); }
.waiter-stat.ws-ready .ws-value { color: var(--accent-dark); }

/* Table cards */
.waiter-table-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px) { .waiter-table-grid { grid-template-columns: repeat(3, 1fr); } }
.waiter-table-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.waiter-table-card:active { transform: scale(0.98); }
.waiter-table-card.wt-free { border-top: 3px solid var(--success); }
.waiter-table-card.wt-busy { border-top: 3px solid var(--danger); }
.waiter-table-card.wt-reserved { border-top: 3px solid var(--warning); }
.wtc-main { display: block; padding: 16px 14px 12px; text-decoration: none; color: inherit; }
.wtc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wtc-status-dot { font-size: 10px; color: var(--text-muted); }
.wtc-num { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.wtc-meta { font-size: 12px; color: var(--text-secondary); }
.wtc-total { font-size: 15px; font-weight: 700; color: var(--brand); margin-top: 8px; }
.wtc-ref { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.wtc-action { font-size: 13px; color: var(--brand); margin-top: 10px; font-weight: 600; }
.wtc-status-link {
  display: block; text-align: center; padding: 10px; font-size: 12px; font-weight: 600;
  color: var(--brand); background: var(--brand-light); text-decoration: none;
  border-top: 1px solid rgba(0,168,112,0.12);
}

/* Ready & order cards */
.waiter-ready-card, .waiter-order-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.waiter-ready-card { border-left: 4px solid var(--success); }
.wrc-top { margin-bottom: 8px; }
.wrc-table { display: block; margin-top: 6px; font-size: 16px; }
.wrc-item { font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.waiter-pickup-btn { border-radius: var(--radius-lg); font-weight: 600; }
.waiter-order-card.wos-cashier { border-left: 4px solid var(--info); }
.waiter-order-card.wos-open { border-left: 4px solid var(--accent); }
.woc-main { display: block; text-decoration: none; color: inherit; }
.woc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.woc-total { font-weight: 700; color: var(--brand); font-size: 15px; }
.woc-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
.woc-status { font-weight: 600; text-transform: capitalize; }

/* Bottom nav */
.waiter-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  padding: 4px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.waiter-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 500;
  position: relative; border-radius: var(--radius); transition: color var(--transition);
}
.waiter-nav-item.active { color: var(--brand); font-weight: 700; background: var(--brand-light); }
.wn-icon {
  width: 24px; height: 24px; border-radius: 6px; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.waiter-nav-item.active .wn-icon { background: var(--brand); color: #fff; }
.wn-tables::before { content: '⊞'; font-size: 16px; }
.wn-ready::before { content: '◉'; font-size: 12px; }
.wn-orders::before { content: '☰'; font-size: 14px; }
.waiter-nav-badge {
  position: absolute; top: 2px; right: calc(50% - 26px); background: var(--danger);
  color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 2px 6px rgba(220,38,38,0.4);
}

/* Banners & empty states */
.waiter-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--brand-light); border: 1px solid var(--brand-ring);
  border-radius: var(--radius-lg); font-size: 13px; margin-bottom: 14px; line-height: 1.4;
}
.waiter-banner.small { padding: 10px 12px; font-size: 12px; }
.waiter-banner-info { background: var(--info-light); border-color: rgba(37,99,235,0.2); }
.waiter-banner-success { background: var(--success-light); border-color: rgba(22,163,74,0.2); }
.waiter-banner-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.waiter-banner-info .waiter-banner-icon { background: var(--info); }
.waiter-banner-success .waiter-banner-icon { background: var(--success); }
.waiter-empty {
  text-align: center; padding: 32px 20px; background: #fff; border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.waiter-empty.compact { padding: 20px 16px; }
.waiter-empty-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.7; }

/* Skeleton loading */
.waiter-skeleton {
  height: 110px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--surface-3) 25%, #fff 50%, var(--surface-3) 75%);
  background-size: 200% 100%; animation: waiter-shimmer 1.2s infinite;
}
.waiter-skeleton-row { height: 72px; margin-bottom: 10px; border-radius: var(--radius-lg); }
@keyframes waiter-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Order taking page */
.waiter-order-page { display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
.waiter-order-scroll { flex: 1; padding: 14px 16px 0; }
.waiter-search-wrap { position: relative; margin-bottom: 16px; }
.waiter-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
}
.waiter-search { padding-left: 40px !important; height: 46px; font-size: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.waiter-menu-section { margin-bottom: 20px; }
.waiter-menu-cat {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); margin-bottom: 10px; padding-left: 2px;
}
.waiter-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 8px; }
.waiter-menu-item {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px; cursor: pointer; min-height: 96px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.waiter-menu-item.hidden { display: none !important; }
.waiter-menu-item:active, .waiter-menu-item.added { transform: scale(0.97); border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
.wmi-ticket {
  font-size: 9px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 7px;
  border-radius: 4px; margin-bottom: 6px;
}
.wt-ticket-kot { background: #dcfce7; color: #166534; }
.wt-ticket-bot { background: #ede9fe; color: #5b21b6; }
.wt-ticket-cot { background: #fef3c7; color: #92400e; }
.wmi-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.wmi-station { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.wmi-price { font-size: 14px; font-weight: 700; color: var(--brand); margin-top: auto; padding-top: 8px; }

/* Cart dock */
.waiter-cart {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
}
.waiter-cart-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  border-radius: 20px 20px 0 0; border-bottom: none;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  max-height: 50vh; overflow-y: auto;
  transition: max-height var(--transition), bottom var(--transition);
}
.has-cart-nav .waiter-cart-dock {
  bottom: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: 14px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.has-cart-nav .waiter-nav {
  z-index: 50;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.has-cart-nav .waiter-order-scroll { padding-bottom: 300px; }
.has-cart-nav .waiter-cart-dock.has-items { max-height: 48vh; }
.waiter-cart-handle {
  width: 36px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 0 auto 10px;
}
.waiter-cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.waiter-cart-total { font-size: 18px; font-weight: 700; color: var(--brand); }
.waiter-cart-count {
  display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; margin-left: 6px; font-weight: 700;
}
.waiter-cart-items { max-height: 140px; overflow-y: auto; }
.waiter-cart-hint { text-align: center; padding: 8px 0; }
.waiter-cart-row {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--surface-3); font-size: 14px;
}
.waiter-cart-qty { font-weight: 700; color: var(--brand); }
.waiter-cart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiter-qty-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 18px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.waiter-qty-btn:active { background: var(--brand-light); border-color: var(--brand); }
.waiter-notes { font-size: 14px; border-radius: var(--radius); resize: none; }
.waiter-send-btn { border-radius: var(--radius-lg); font-weight: 700; letter-spacing: 0.01em; min-height: 50px; }
.waiter-order-scroll { padding-bottom: 210px; }
.woh-status { display: inline-block; margin-top: 12px; font-size: 12px; }
.waiter-pay-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.waiter-pay-card .card-header { background: var(--surface-2); padding: 12px 14px; }
.waiter-pay-card .card-header h3 { font-size: 15px; margin: 0; }
.waiter-pay-card .card-body { padding: 14px; }

/* Order status page */
.waiter-status-page { padding-bottom: 24px; }
.waiter-order-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; margin-bottom: 20px;
  color: #fff; box-shadow: 0 8px 24px rgba(0,168,112,0.25);
}
.woh-label { font-size: 12px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.woh-total { font-size: 32px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.woh-meta { font-size: 12px; opacity: 0.85; margin-top: 8px; }
.waiter-progress {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; padding: 0 4px;
}
.wp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.wp-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--text-muted);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.wp-step.done .wp-dot { background: var(--success); color: #fff; }
.wp-step.active .wp-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--brand-light); }
.wp-label { font-size: 10px; color: var(--text-muted); font-weight: 500; text-align: center; }
.wp-step.done .wp-label, .wp-step.active .wp-label { color: var(--text-primary); font-weight: 600; }
.wp-line { flex: 0 0 12px; height: 2px; background: var(--border); margin-top: 13px; }
.wp-line.done { background: var(--success); }
.waiter-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 10px; }
.waiter-items-list { display: flex; flex-direction: column; gap: 8px; }
.waiter-item-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.waiter-item-row.status-ready { border-left: 3px solid var(--info); }
.waiter-item-row.status-done { border-left: 3px solid var(--success); opacity: 0.85; }
.waiter-item-row.status-wip { border-left: 3px solid var(--warning); }
.wir-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.wir-body { flex: 1; min-width: 0; }
.wir-status { font-size: 11px; font-weight: 600; text-transform: capitalize; color: var(--text-secondary); flex-shrink: 0; }

/* Restaurant hub */
.rest-hub-hero { margin-bottom: 24px; }
.rest-hub-hero h1 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.rest-hub-lead { font-size: 15px; color: var(--text-secondary); max-width: 560px; line-height: 1.5; }
.rest-flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.rest-flow-card {
  padding: 0; overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.rest-flow-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rest-flow-card > *:not(.rfc-head) { padding-left: 22px; padding-right: 22px; }
.rest-flow-card h3 { padding-top: 4px; margin-bottom: 8px; font-size: 18px; }
.rest-flow-card .caption { padding-bottom: 4px; }
.rest-flow-card .rest-flow-steps { padding: 0 22px 8px 38px; }
.rest-flow-card .flex, .rest-flow-card > a.btn { margin: 0 22px 22px; }
.rfc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 22px 12px; border-bottom: 1px solid var(--surface-3);
}
.rfc-icon { font-size: 28px; opacity: 0.85; }
.rfc-badge { display: inline-block; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.rfc-badge.rfc-b { background: var(--accent-dark); }
.rfc-badge.rfc-c { background: #6366f1; }
.rest-flow-a { border-top: 4px solid var(--brand); }
.rest-flow-b { border-top: 4px solid var(--accent); }
.rest-flow-c { border-top: 4px solid #6366f1; }
.rest-flow-steps { line-height: 1.75; font-size: 14px; }
.rest-setup-card .rest-setup-list { list-style: none; padding: 0; }
.rest-setup-list li { padding: 12px 0; border-bottom: 1px solid var(--surface-3); line-height: 1.5; }
.rest-setup-list li:last-child { border-bottom: none; }
.rest-setup-list a { font-weight: 600; text-decoration: none; }
.rest-setup-list a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .pos-layout { grid-template-columns: 1fr 360px; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); width: var(--sidebar-w); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-area { margin-left: 0 !important; }
  .header-search { display: none; }
  .pos-layout { grid-template-columns: 1fr; height: auto; }
  .pos-right { border-left: none; border-top: 1px solid var(--border); }
  .auth-side { display: none; }
  .form-row { flex-direction: column; }
}
