/* ============================================================
   POS System — Design System v2
   Friendly, colorful, accessible
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Light Theme ──────────────────────────────────────────── */
:root {
  /* Surfaces */
  --paper:        #f0f2f5;
  --panel:        #ffffff;
  --panel-raised: #f8f9fb;

  /* Text */
  --ink:          #1a1d23;
  --muted:        #6b7280;
  --subtle:       #9ca3af;

  /* Borders */
  --line:         #e5e7eb;
  --line-strong:  #d1d5db;

  /* Primary accent — neutral dark */
  --accent:         #1a1d23;
  --accent-hover:   #2d3139;
  --accent-light:   #f0f2f5;
  --accent-text:    #ffffff;

  /* Semantic colors */
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;

  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;

  --amber:        #d97706;
  --amber-bg:     #fffbeb;
  --amber-border: #fde68a;

  --blue:         #2563eb;
  --blue-bg:      #eff6ff;
  --blue-border:  #bfdbfe;

  /* Sidebar — dark monochrome */
  --sb-bg:        #1a1a1a;
  --sb-bg-hover:  #2a2a2a;
  --sb-bg-active: #383838;
  --sb-border:    #2e2e2e;
  --sb-text:      #e5e5e5;
  --sb-muted:     #a3a3a3;
  --sb-subtle:    #525252;

  /* Shadows */
  --shadow:     0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12), 0 20px 48px rgba(0,0,0,.08);

  /* Shape */
  --radius:    10px;
  --radius-sm:  6px;
  --radius-lg: 16px;
  --transition: .15s ease;
}

/* ── Dark Theme ───────────────────────────────────────────── */
[data-theme="dark"] {
  --paper:        #0f1117;
  --panel:        #1a1d27;
  --panel-raised: #222633;

  --ink:          #f1f5f9;
  --muted:        #94a3b8;
  --subtle:       #64748b;

  --line:         #2d3147;
  --line-strong:  #3d4260;

  --accent:       #f5f5f5;
  --accent-hover: #e5e5e5;
  --accent-light: #2a2a2a;
  --accent-text:  #000000;

  --green:        #22c55e;
  --green-bg:     #052e16;
  --green-border: #166534;

  --red:          #f87171;
  --red-bg:       #2d0a0a;
  --red-border:   #7f1d1d;

  --amber:        #fbbf24;
  --amber-bg:     #1c1407;
  --amber-border: #78350f;

  --blue:         #60a5fa;
  --blue-bg:      #0d1f3c;
  --blue-border:  #1e3a5f;

  --sb-bg:        #111111;
  --sb-bg-hover:  #1e1e1e;
  --sb-bg-active: #2a2a2a;
  --sb-border:    #1e1e1e;
  --sb-text:      #e5e5e5;
  --sb-muted:     #a3a3a3;
  --sb-subtle:    #525252;

  --shadow:     0 1px 3px rgba(0,0,0,.3),  0 4px 12px rgba(0,0,0,.2);
  --shadow-md:  0 4px 16px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.5),  0 20px 48px rgba(0,0,0,.4);
}

/* ── Base ─────────────────────────────────────────────────── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  letter-spacing: -.4px;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p  { color: var(--muted); font-size: 15px; margin-top: 5px; }

/* ── App Shell ────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* Sidebar closed state */
.sidebar.closed {
  width: 0;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid transparent;
}
.sidebar.closed ~ .main-content {
  flex: 1;
}

/* Show hamburger icon to open collapsed sidebar */
.app-shell.sidebar-collapsed::before {
  content: '';
  position: fixed;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  cursor: pointer;
  z-index: 150;
}

.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  z-index: 150;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.sidebar-toggle-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.sidebar.closed ~ .main-content .sidebar-toggle-btn {
  display: flex;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: 272px;
  flex-shrink: 0;
  background: var(--sb-bg);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: background var(--transition);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Sidebar close button */
.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 201;
  padding: 0;
}
.sidebar-close:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
.sidebar-close:active {
  transform: scale(.95);
}

/* Show on desktop */
@media (min-width: 1024px) {
  .sidebar-close {
    display: flex;
  }
}

/* Brand */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 20px;
  font: 700 19px 'Space Grotesk', sans-serif;
  border-bottom: 1px solid var(--sb-border);
  margin-bottom: 8px;
  position: relative;
}
.brand-dot {
  width: 32px; height: 32px;
  background: var(--sb-text);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--sb-bg);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.brand-name { color: var(--sb-text); letter-spacing: -.3px; }

/* Store card */
.store-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 14px 14px;
  border: 1px solid var(--sb-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  transition: background var(--transition);
}
.store-switcher:hover { background: rgba(255,255,255,.07); }
.store-icon {
  width: 36px; height: 36px;
  background: var(--sb-text);
  color: var(--sb-bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 700 13px 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.store-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--sb-text); }
.store-info small  { display: block; font-size: 12px; color: var(--sb-muted); margin-top: 2px; }

/* Nav */
.main-nav { padding: 4px 12px; flex: 1; }

.nav-section-label {
  padding: 16px 10px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--sb-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #ffffff; /* White color for accessible items */
  font-size: 15px;
  font-weight: 500;
  margin: 2px 0;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  position: relative;
}
.nav-item:hover  { background: var(--sb-bg-hover); color: #ffffff; text-decoration: none; }
.nav-item.active {
  background: var(--sb-bg-active);
  color: #ffffff;
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--sb-text);
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 17px;
  flex-shrink: 0;
  opacity: .9;
  color: #ffffff; /* White color for icons */
}
.nav-item.active .nav-icon { opacity: 1; color: #ffffff; }
.nav-item.sub-item { padding-left: 42px; font-size: 14px; }

/* Locked nav items (require plan upgrade) */
.nav-item-locked,
.nav-item-locked:visited {
  color: #9ca3af !important; /* Gray color for locked items */
  cursor: pointer !important; /* Allow clicking to see upgrade */
  opacity: 0.6 !important;
  /* pointer-events: none; */ /* REMOVED - need to allow clicks */
}
.nav-item-locked:hover {
  background: rgba(255, 255, 255, 0.05) !important; /* Subtle hover */
  color: #9ca3af !important;
}
.nav-item-locked .nav-text,
.nav-item-locked .nav-icon {
  color: #9ca3af !important;
}
.nav-item-locked svg {
  stroke: #9ca3af !important;
}

.nav-badge {
  margin-left: auto;
  background: var(--sb-text);
  color: var(--sb-bg);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}

/* Sidebar bottom */
.sidebar-bottom {
  margin-top: auto;
  padding: 12px 14px 0;
  border-top: 1px solid var(--sb-border);
}
.support-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  font-size: 12px;
  color: var(--sb-subtle);
}
.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  flex-shrink: 0;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius);
  color: var(--sb-text);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  transition: background var(--transition);
  margin-bottom: 6px;
}
.user-card:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sb-text);
  color: var(--sb-bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.user-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--sb-text); }
.user-info small  { display: block; font-size: 12px; color: var(--sb-muted); margin-top: 2px; }
.more { margin-left: auto; color: var(--sb-subtle); font-size: 18px; }

/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════ */
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-content.full-width { width: 100%; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  height: 68px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--line);
  transition: background var(--transition);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb-sep { color: var(--subtle); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.date-chip {
  font-size: 13px;
  color: var(--muted);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
}

/* Theme toggle */
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}
.notif-btn:hover { background: var(--amber-border); text-decoration: none; }

.help-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: grid;
  place-items: center;
  background: var(--panel);
  transition: all var(--transition);
}
.help-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ── View Root ────────────────────────────────────────────── */
.view-root { padding: 32px 40px 72px; max-width: 1440px; width: 100%; }

.pos-page-head { padding-right: 380px; }

/* ── Page Head ────────────────────────────────────────────── */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 0 6px;
}
.page-head h1 { margin: 0; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.primary-button {
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.primary-button:hover   { background: var(--accent-hover); box-shadow: 0 3px 8px rgba(0,0,0,.2); transform: translateY(-1px); }
.primary-button:active  { transform: none; box-shadow: none; }
.primary-button:disabled { background: var(--line-strong); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }

.secondary-button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}
.secondary-button:hover { background: var(--panel-raised); border-color: var(--line-strong); }

.danger-button {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.danger-button:hover { opacity: .88; transform: translateY(-1px); }

.text-button {
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 2px;
  transition: color var(--transition);
}
.text-button:hover { color: var(--ink); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   KPI GRID
══════════════════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: .12;
}
.kpi:nth-child(2)::before { opacity: .12; }
.kpi:nth-child(3)::before { opacity: .12; }
.kpi:nth-child(4)::before { opacity: .12; }
.kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-value {
  font: 700 34px 'Space Grotesk', sans-serif;
  margin: 12px 0 6px;
  letter-spacing: -.5px;
  color: var(--ink);
}
.kpi-foot { font-size: 13px; color: var(--muted); }
.kpi-foot a { color: var(--accent); font-weight: 600; }
.positive { color: var(--green) !important; font-weight: 600; }
.negative { color: var(--red)   !important; font-weight: 600; }

/* ── Grid Layouts ─────────────────────────────────────────── */
.grid-main      { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 20px; margin-bottom: 20px; }
.grid-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ══════════════════════════════════════════════════════════
   PANEL
══════════════════════════════════════════════════════════ */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 17px; margin: 0; }
.panel-body    { padding: 20px 24px; }

/* ── Activity List ────────────────────────────────────────── */
.activity-list { padding: 4px 20px 12px; }
.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.activity:last-child { border: 0; }
.activity-icon {
  width: 34px; height: 34px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.activity-icon.voided { background: var(--red-bg); color: var(--red); }
.activity-info { flex: 1; }
.activity-info strong { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.activity-info small  { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.activity-amount { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }

/* ── Summary Bar ──────────────────────────────────────────── */
.summary-bar {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.summary-item {
  flex: 1;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}
.summary-item:last-child { border-right: 0; }
.summary-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.summary-val   { font: 700 26px 'Space Grotesk', sans-serif; color: var(--ink); margin-top: 4px; }

/* ── Toolbar ──────────────────────────────────────────────── */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  width: 280px;
  outline: none;
  color: var(--ink);
  transition: all var(--transition);
}
.search:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,29,35,.08); }
.search::placeholder { color: var(--subtle); }
.filter-select {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 34px 10px 14px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--ink); }
.result-count { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  padding: 14px 20px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  vertical-align: middle;
  color: var(--ink);
  transition: background var(--transition);
}
.data-table tbody tr:hover td { background: var(--accent-light); }
.row-voided td { opacity: .5; }
.th-actions { text-align: right !important; }
.empty-td { text-align: center; color: var(--muted); padding: 52px !important; font-size: 14px; }
.muted-text { color: var(--muted) !important; }

/* Product cell */
.product-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.product-thumb {
  width: 34px; height: 34px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

/* Pills */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.pill.low    { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.pill.voided { background: var(--red-bg);   color: var(--red);   border-color: var(--red-border);   }
.pill.green  { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }

/* Stock cell */
.stock-cell { display: flex; align-items: center; gap: 6px; }
.stock-btn {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  background: var(--panel-raised);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.stock-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* Action buttons */
.actions-cell { text-align: right !important; white-space: nowrap; }
.action-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 15px;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  transition: all var(--transition);
}
.action-btn:hover            { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.action-btn.delete-btn:hover { background: var(--red-bg);       color: var(--red);    border-color: var(--red-border); }
.action-btn.void-btn:hover   { background: var(--red-bg);       color: var(--red);    border-color: var(--red-border); }

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border-color: var(--red-border);   }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.alert-info    { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue-border);  }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 26px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background-color: var(--panel);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group select {
  padding-right: 34px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,29,35,.08);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.input-prefix-wrap { display: flex; align-items: stretch; }
.input-prefix {
  background: var(--panel-raised);
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.input-prefix-wrap input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex: 1;
}
.input-prefix-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.req { color: var(--red); font-weight: 700; }
.field-error { font-size: 12px; color: var(--red); min-height: 16px; font-weight: 500; }
.field-hint  { font-size: 11px; color: var(--muted); }

/* Settings form */
.settings-form .form-grid { grid-template-columns: 1fr 1fr; }

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,17,25,.6);
  display: grid;
  place-items: center;
  z-index: 500;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s cubic-bezier(.34,1.3,.64,1);
}
.modal.modal-sm { max-width: 440px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h2 { font-size: 19px; margin: 0; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.modal-body { padding: 20px 24px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel-raised);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Void warning */
.void-warning {
  display: flex;
  gap: 14px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.void-icon { font-size: 22px; flex-shrink: 0; }
.void-warning p { margin: 0; font-size: 13px; color: var(--ink); }

/* ══════════════════════════════════════════════════════════
   POS LAYOUT
══════════════════════════════════════════════════════════ */
.pos-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
  min-height: calc(100vh - 68px);
}

.pos-catalog {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 20px 0;
  overflow-y: auto;
}

.cart-panel-wrapper {
  width: 380px;
  flex-shrink: 0;
  position: fixed;
  right: 0;
  top: 68px;
  height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.cart-panel {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  box-shadow: none;
  background: var(--panel);
}

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1.5px solid var(--line);
  background: var(--panel);
  transition: all var(--transition);
  flex-shrink: 0;
}
.category-tab:hover  { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.category-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(79,70,229,.3); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px,1fr));
  gap: 12px;
}
.product-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(79,70,229,.15);
}
.product-card:active { transform: scale(.97); }
.product-card.out-of-stock { opacity: .38; pointer-events: none; filter: grayscale(.5); }
.product-art {
  height: 86px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.product-card:nth-child(3n+2) .product-art { background: var(--green-bg); }
.product-card:nth-child(3n+3) .product-art { background: var(--amber-bg); }
.product-card strong { font-size: 13px; display: block; line-height: 1.35; color: var(--ink); }
.product-card small  { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.product-card .card-price { font-size: 15px; font-weight: 700; margin-top: 8px; color: var(--ink); }
.product-card .card-stock { font-size: 11px; color: var(--muted); margin-top: 2px; }
.no-products-msg { color: var(--muted); text-align: center; padding: 56px 0; font-size: 15px; }

/* ── Cart Panel ───────────────────────────────────────────── */
.cart-panel {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}
.cart-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.cart-head h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.cart-count { font-size: 13px; font-weight: 600; color: var(--muted); }

.cart-note-row { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cart-note-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  background: var(--panel-raised);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.cart-note-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,29,35,.08); }

.cart-items {
  min-height: 80px;
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
}
.empty-cart { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-cart-icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }
.empty-cart p    { font-size: 14px; font-weight: 600; margin: 0; }
.empty-cart small{ font-size: 12px; margin-top: 6px; display: block; color: var(--subtle); }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cart-item-info small  { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--panel-raised);
  font-size: 14px;
  font-weight: 600;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all var(--transition);
}
.qty-btn:hover        { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.qty-btn.remove:hover { background: var(--red-bg);       border-color: var(--red-border); color: var(--red); }
.qty-val { font-size: 13px; font-weight: 700; min-width: 22px; text-align: center; color: var(--ink); }
.cart-item-price { font-size: 12px; font-weight: 700; min-width: 52px; text-align: right; color: var(--ink); }

/* Discount row */
.discount-row {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  flex-wrap: wrap;
  background: var(--panel-raised);
  flex-shrink: 0;
}
.discount-row label { color: var(--muted); font-weight: 600; }
.discount-row select,
.discount-row input {
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
.discount-row input { width: 72px; }

/* Cart summary */
.cart-summary { 
  background: var(--panel-raised); 
  padding: 12px 16px; 
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 45%;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  align-items: center;
}
.summary-line.total {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  padding-top: 10px;
  border-top: 1.5px solid var(--line);
  margin-top: 8px;
  margin-bottom: 12px;
}
.pay-button { 
  width: 100%; 
  justify-content: center; 
  margin-bottom: 8px; 
  padding: 13px; 
  font-size: 15px; 
  border-radius: var(--radius-sm); 
  flex-shrink: 0;
}
.shortcut-hint { 
  text-align: center; 
  color: var(--muted); 
  font-size: 10px; 
  padding: 0 16px 12px;
  flex-shrink: 0;
}
kbd {
  background: var(--panel-raised);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: monospace;
  color: var(--ink);
}

/* ── Payment section ──────────────────────────────────────── */
.cart-pay-section {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 50%;
}
.cart-pay-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.method-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.method-btn {
  padding: 11px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.method-btn:hover { 
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.method-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 2px 8px rgba(26,29,35,.15);
}
.method-btn::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: none;
  flex-shrink: 0;
}
.method-btn.active::before {
  display: block;
  background: var(--accent-text);
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* Cash section */
#cash-section {
  padding: 12px;
  background: var(--panel-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
#cash-section .input-prefix-wrap {
  margin-bottom: 8px;
}
.change-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}
.change-row span:first-child {
  color: var(--muted);
}
.change-row strong {
  color: var(--green);
}

/* Reference/approval section */
#ref-section {
  padding: 12px;
  background: var(--panel-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
#payment-ref {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: all var(--transition);
}
#payment-ref:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
#payment-amount {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: all var(--transition);
}
#payment-amount:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.cart-customer-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.cart-customer-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.cart-customer-input:last-child {
  margin-bottom: 0;
}
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cart-customer-input {
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  background: var(--panel-raised);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.cart-customer-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

/* Payment method buttons */
.method-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.method-btn {
  flex: 1 0 70px;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
  text-align: center;
}
.method-btn:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.method-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }

.change-row {
  display: flex;
  justify-content: space-between;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 13px;
  align-items: center;
}
.change-row strong { font-size: 16px; font-weight: 700; color: var(--green); }

/* ── Receipt ──────────────────────────────────────────────── */
.receipt-header { 
    text-align: center; 
    margin-bottom: 10px; 
    padding-bottom: 6px;
}
.receipt-header .company-name {
    font-size: 22.5px;
    font-weight: bold;
    margin-bottom: 3px;
}
.receipt-header .company-address {
    font-size: 16.5px;
    line-height: 1.4;
    color: var(--muted);
}
.receipt-transaction-info {
    font-size: 18px;
    margin-bottom: 10px;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    padding: 8px 0;
}
.receipt-transaction-info div {
    margin: 2px 0;
    display: flex;
    justify-content: space-between;
}
.receipt-transaction-info div span:first-child {
    text-align: left;
    font-weight: bold;
}
.receipt-transaction-info div span:last-child {
    text-align: right;
}
.receipt-items { 
    width: 100%; 
    margin: 10px 0;
    border-collapse: collapse;
}
.receipt-items th { 
    text-align: left; 
    font-size: 16.5px;
    font-weight: bold;
    padding: 6px 0 8px 0;
    border-bottom: 1px solid var(--line);
}
.receipt-items td { 
    padding: 4px 0;
    vertical-align: top;
    font-size: 17.5px;
}
.receipt-items .item-name {
    font-size: 17.5px;
}
.receipt-items .receipt-item-qty {
    font-size: 16.5px;
    color: #000;
    padding-top: 0;
}
.receipt-items .text-right {
    text-align: right;
    font-weight: 600;
}
.receipt-totals { 
    border-top: 1px dashed var(--line); 
    padding-top: 8px; 
    margin-top: 10px;
    font-size: 17.5px;
}
.receipt-totals > div { 
    display: flex; 
    justify-content: space-between; 
    margin: 4px 0;
}
.receipt-totals .receipt-total-row {
    font-weight: bold;
    font-size: 19.5px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
}
.receipt-thank-you {
    text-align: center;
    margin-top: 14px;
    font-weight: bold;
    font-size: 18.5px;
}
.receipt-keep-message {
    text-align: center;
    font-size: 14.5px;
    margin-top: 8px;
    font-style: italic;
    color: var(--muted);
}
.receipt-footer { 
    text-align: center; 
    margin-top: 12px; 
    color: var(--muted); 
    font-size: 14.5px; 
    padding-top: 8px; 
    border-top: 1px dashed var(--line); 
}

/* ── Order detail ─────────────────────────────────────────── */
.order-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.order-detail-meta .meta-item label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; display: block; font-weight: 700; }
.order-detail-meta .meta-item span  { font-size: 14px; font-weight: 600; margin-top: 2px; display: block; }

/* ── Bulk Action Bar ─────────────────────────────────────── */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  animation: slideDown .15s ease;
  box-shadow: 0 3px 12px rgba(79,70,229,.35);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.bulk-count { font-size: 13px; font-weight: 700; flex: 1; }
.bulk-bar .secondary-button {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  font-size: 12px;
}
.bulk-bar .secondary-button:hover { background: rgba(255,255,255,.25); }
.bulk-bar .bulk-clear { color: rgba(255,255,255,.7); font-size: 12px; }
.bulk-bar .bulk-clear:hover { color: #fff; }

/* ── Checkbox column ─────────────────────────────────────── */
.th-check, .td-check {
  width: 36px;
  padding-left: 16px !important;
  padding-right: 4px !important;
}
.th-check input[type="checkbox"],
.td-check  input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: var(--accent);
}
.row-selected td { background: var(--accent-light) !important; }

/* ── Bulk stock modal ────────────────────────────────────── */
.bulk-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.bulk-action-row label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bulk-qty-input {
  width: 84px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
.bulk-qty-input:focus { border-color: var(--accent); }
.bulk-stock-table .bulk-stock-input {
  width: 100%;
  padding: 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
.bulk-stock-table .bulk-stock-input:focus { border-color: var(--accent); }
.bulk-stock-table .bulk-stock-input.input-error { border-color: var(--red); background: var(--red-bg); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 26px;
  background: var(--ink);
  color: var(--panel);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .22s cubic-bezier(.34,1.3,.64,1);
  z-index: 9999;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error   { background: var(--red);   color: #fff; border-color: transparent; }
.toast.toast-success { background: var(--green);  color: #fff; border-color: transparent; }

/* ── Shortcut table ──────────────────────────────────────── */
.shortcut-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shortcut-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.shortcut-table tr:last-child td { border: 0; }

/* ── Chart legend ────────────────────────────────────────── */
.chart-container { padding: 20px 22px 0; }
.chart-container canvas { display: block; width: 100% !important; }
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 6px 22px 16px;
  overflow: hidden;
}
.chart-labels span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.chart-labels span:first-child { text-align: left; }
.chart-labels span:last-child  { text-align: right; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend-revenue::before,
.legend-orders::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-revenue::before { background: var(--ink); }
.legend-orders::before  { background: var(--muted); }

/* ── Register status ─────────────────────────────────────── */
.register-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
}

/* ── Loading ─────────────────────────────────────────────── */
.loading-spinner { text-align: center; padding: 48px; color: var(--muted); font-size: 14px; }
.empty-state     { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .modal-backdrop { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; border: 0; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; }
  .data-table th, .data-table td { border: 1px solid #ccc !important; }
  .positive { color: #166534 !important; }
  .negative { color: #991b1b !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .kpi-grid       { grid-template-columns: repeat(2,1fr); }
  .grid-main      { grid-template-columns: 1fr; }
  .grid-secondary { grid-template-columns: 1fr; }
  .pos-layout     { grid-template-columns: 1fr; }
  .cart-panel     { position: static; border-radius: var(--radius) !important; }
  .product-grid   { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); }
  .report-cards   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
  .sidebar { width: 58px; padding: 0 6px 12px; }
  .brand-name, .store-info, .nav-text, .nav-section-label,
  .user-info, .more, .support-row span:last-child { display: none; }
  .brand-mark     { padding: 18px 8px 14px; justify-content: center; border-bottom: 1px solid var(--sb-border); }
  .brand-dot      { width: 32px; height: 32px; }
  .store-switcher { padding: 8px; justify-content: center; gap: 0; margin: 8px 4px; }
  .nav-item       { justify-content: center; padding: 10px 0; }
  .nav-item.active::before { display: none; }
  .user-card      { justify-content: center; padding: 10px 0; }
  .topbar         { padding: 0 16px; height: 58px; }
  .view-root      { padding: 18px 16px 48px; }
  .page-head      { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head .primary-button { width: 100%; justify-content: center; }
  .form-grid      { grid-template-columns: 1fr; padding: 16px; }
  .form-group.span-2 { grid-column: auto; }
  .toolbar        { flex-direction: column; align-items: stretch; gap: 8px; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .search         { width: 100%; }
  .summary-bar    { flex-direction: column; }
  .summary-item   { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .summary-item:last-child { border-bottom: 0; }
  .date-chip      { display: none; }
}
@media (max-width: 480px) {
  .sidebar { display: none; }
  .sidebar.open {
    display: flex;
    position: fixed;
    inset: 0;
    width: 248px;
    z-index: 200;
    box-shadow: 6px 0 40px rgba(0,0,0,.5);
  }
  .sidebar.open .sidebar-close {
    display: flex;
    position: fixed;
    right: 14px;
  }
  .sidebar.open .nav-text,
  .sidebar.open .brand-name,
  .sidebar.open .store-info,
  .sidebar.open .nav-section-label,
  .sidebar.open .user-info,
  .sidebar.open .more,
  .sidebar.open .support-row span:last-child { display: block; }
  .sidebar.open .nav-item     { justify-content: flex-start; padding: 9px 12px; }
  .sidebar.open .nav-item.active::before { display: block; }
  .sidebar.open .store-switcher { justify-content: flex-start; gap: 10px; }
  .sidebar.open .brand-mark   { justify-content: flex-start; padding: 20px 20px 16px; }
  .sidebar.open .user-card    { justify-content: flex-start; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.visible { display: block; }
  .hamburger {
    width: 34px; height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
  }
  /* Hide hamburger on desktop */
  @media (min-width: 481px) {
    .hamburger { display: none !important; }
  }
  .topbar     { padding: 0 12px; gap: 8px; }
  .view-root  { padding: 12px 12px 48px; }
  .kpi-grid   { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal, .modal.modal-sm { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
  .method-btn { flex: 1 0 40%; }
  .data-table { min-width: 500px; font-size: 12px; }
  .data-table td, .data-table th { padding: 10px 12px; }
}


/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(.7); }
  60%  { opacity: 1; transform: scale(1.05); }
  80%  { transform: scale(.97); }
  100% { transform: scale(1); }
}
@keyframes ripple {
  from { transform: scale(0); opacity: .5; }
  to   { transform: scale(3); opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page entrance ───────────────────────────────────────── */
.view-root {
  animation: fadeIn .3s ease both;
}

/* Page head slides down */
.page-head {
  animation: fadeDown .35s ease both;
}

/* ── KPI cards staggered entrance ────────────────────────── */
.kpi-grid .kpi {
  animation: fadeUp .4s ease both;
}
.kpi-grid .kpi:nth-child(1) { animation-delay: .05s; }
.kpi-grid .kpi:nth-child(2) { animation-delay: .10s; }
.kpi-grid .kpi:nth-child(3) { animation-delay: .15s; }
.kpi-grid .kpi:nth-child(4) { animation-delay: .20s; }

.kpi-value {
  animation: countUp .5s ease both;
  animation-delay: .2s;
}

/* ── Panels slide up ─────────────────────────────────────── */
.panel {
  animation: fadeUp .4s ease both;
  animation-delay: .1s;
}
.grid-main > .panel:nth-child(1) { animation-delay: .12s; }
.grid-main > .panel:nth-child(2) { animation-delay: .18s; }
.grid-main > div:nth-child(2)    { animation-delay: .18s; }
.grid-secondary > .panel:nth-child(1) { animation-delay: .20s; }
.grid-secondary > .panel:nth-child(2) { animation-delay: .26s; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  animation: fadeDown .3s cubic-bezier(.34,1.3,.64,1) both;
}

/* ── Table rows stagger ──────────────────────────────────── */
.data-table tbody tr {
  animation: fadeUp .3s ease both;
}
.data-table tbody tr:nth-child(1)  { animation-delay: .05s; }
.data-table tbody tr:nth-child(2)  { animation-delay: .08s; }
.data-table tbody tr:nth-child(3)  { animation-delay: .11s; }
.data-table tbody tr:nth-child(4)  { animation-delay: .14s; }
.data-table tbody tr:nth-child(5)  { animation-delay: .17s; }
.data-table tbody tr:nth-child(6)  { animation-delay: .20s; }
.data-table tbody tr:nth-child(7)  { animation-delay: .22s; }
.data-table tbody tr:nth-child(8)  { animation-delay: .24s; }
.data-table tbody tr:nth-child(n+9){ animation-delay: .26s; }

/* ── Modal entrance ──────────────────────────────────────── */
.modal-backdrop {
  animation: fadeIn .18s ease both;
}
.modal {
  animation: scaleIn .22s cubic-bezier(.34,1.3,.64,1) both;
}

/* ── Sidebar nav items ───────────────────────────────────── */
.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.nav-item:hover::after { opacity: 1; }

/* ── Product cards ───────────────────────────────────────── */
.product-card {
  transition: transform .18s cubic-bezier(.34,1.3,.64,1),
              box-shadow .18s ease,
              border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.product-card:active {
  transform: scale(.96);
  transition-duration: .08s;
}

/* Product grid entrance */
.product-grid .product-card {
  animation: scaleIn .25s ease both;
}
.product-grid .product-card:nth-child(1)  { animation-delay: .02s; }
.product-grid .product-card:nth-child(2)  { animation-delay: .04s; }
.product-grid .product-card:nth-child(3)  { animation-delay: .06s; }
.product-grid .product-card:nth-child(4)  { animation-delay: .08s; }
.product-grid .product-card:nth-child(5)  { animation-delay: .10s; }
.product-grid .product-card:nth-child(6)  { animation-delay: .12s; }
.product-grid .product-card:nth-child(7)  { animation-delay: .14s; }
.product-grid .product-card:nth-child(8)  { animation-delay: .16s; }
.product-grid .product-card:nth-child(n+9){ animation-delay: .18s; }

/* ── Buttons ─────────────────────────────────────────────── */
.primary-button {
  position: relative;
  overflow: hidden;
}
.primary-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .15s;
}
.primary-button:hover::after { opacity: 1; }
.primary-button:active { transform: scale(.97) !important; transition-duration: .07s !important; }

.secondary-button:active,
.danger-button:active {
  transform: scale(.97);
  transition-duration: .07s;
}

/* ── Cart items ──────────────────────────────────────────── */
.cart-item {
  animation: slideInLeft .2s ease both;
}

/* ── Toast bounce ────────────────────────────────────────── */
.toast.show {
  animation: bounceIn .3s cubic-bezier(.34,1.3,.64,1) both;
}

/* ── Activity list ───────────────────────────────────────── */
.activity {
  animation: fadeUp .3s ease both;
}
.activity:nth-child(1) { animation-delay: .05s; }
.activity:nth-child(2) { animation-delay: .10s; }
.activity:nth-child(3) { animation-delay: .15s; }
.activity:nth-child(4) { animation-delay: .20s; }
.activity:nth-child(5) { animation-delay: .25s; }

/* ── Action buttons spin on click ────────────────────────── */
.action-btn {
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.action-btn:active { transform: scale(.88); }

/* ── Summary bar numbers ─────────────────────────────────── */
.summary-val {
  animation: countUp .45s ease both;
  animation-delay: .15s;
}

/* ── Bulk bar slide ──────────────────────────────────────── */
.bulk-bar {
  animation: slideInLeft .22s cubic-bezier(.34,1.3,.64,1) both;
}

/* ── Report cards ────────────────────────────────────────── */
.report-card {
  animation: fadeUp .35s ease both;
  transition: transform .18s ease, box-shadow .18s ease;
}
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.report-card:nth-child(1) { animation-delay: .05s; }
.report-card:nth-child(2) { animation-delay: .10s; }
.report-card:nth-child(3) { animation-delay: .15s; }
.report-card:nth-child(4) { animation-delay: .20s; }

/* ── Pill pop ────────────────────────────────────────────── */
.pill {
  transition: transform .12s ease, opacity .12s ease;
}
.pill:hover { transform: scale(1.06); }

/* ── Sidebar store card ──────────────────────────────────── */
.store-switcher {
  transition: background .2s ease, transform .15s ease;
}
.store-switcher:hover { transform: scale(1.01); }

/* ── Category tabs ───────────────────────────────────────── */
.category-tab {
  transition: background .15s ease, color .15s ease,
              border-color .15s ease, transform .12s ease;
}
.category-tab:hover  { transform: translateY(-2px); }
.category-tab.active { transform: translateY(-2px); }

/* ── Change row pop ──────────────────────────────────────── */
.change-row {
  animation: bounceIn .3s cubic-bezier(.34,1.3,.64,1) both;
}

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--line) 25%,
    var(--panel-raised) 50%,
    var(--line) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

/* ── Input focus ripple ──────────────────────────────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transition: border-color .15s ease, box-shadow .2s ease, transform .1s ease;
  transform: translateY(-1px);
}

/* ── Reduce motion for accessibility ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   DATE PICKER & DROPDOWN ANIMATIONS
   ============================================================ */

/* ── Date input ──────────────────────────────────────────── */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  transition: border-color .2s ease, box-shadow .2s ease,
              transform .15s cubic-bezier(.34,1.3,.64,1),
              background .2s ease;
  cursor: pointer;
}
input[type="date"]:hover,
input[type="time"]:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
}
input[type="date"]:focus,
input[type="time"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  animation: inputPop .2s cubic-bezier(.34,1.3,.64,1) both;
}
/* Calendar icon pulse on hover */
input[type="date"]:hover::-webkit-calendar-picker-indicator {
  animation: calPulse .4s ease;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  transition: opacity .15s ease, transform .15s ease;
  opacity: .6;
  cursor: pointer;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  transform: scale(1.2);
}

@keyframes inputPop {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-3px) scale(1.01); }
  100% { transform: translateY(-2px) scale(1); }
}
@keyframes calPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3) rotate(-10deg); }
  100% { transform: scale(1.2) rotate(0deg); }
}

/* ── Native select dropdown ──────────────────────────────── */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 34px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease,
              transform .15s cubic-bezier(.34,1.3,.64,1);
}
select:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
}
select:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  animation: inputPop .2s cubic-bezier(.34,1.3,.64,1) both;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1d23' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
[data-theme="dark"] select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}

/* ── Custom dropdown (customer suggestions, etc.) ────────── */
#customer-suggestions,
.dropdown-menu {
  animation: dropdownOpen .18s cubic-bezier(.34,1.3,.64,1) both;
  transform-origin: top center;
}
@keyframes dropdownOpen {
  from { opacity: 0; transform: scaleY(.85) translateY(-6px); }
  to   { opacity: 1; transform: scaleY(1)   translateY(0); }
}

/* Each suggestion item fades in */
.customer-suggestion {
  animation: fadeUp .15s ease both;
  transition: background .12s ease;
}
.customer-suggestion:nth-child(1) { animation-delay: .02s; }
.customer-suggestion:nth-child(2) { animation-delay: .04s; }
.customer-suggestion:nth-child(3) { animation-delay: .06s; }
.customer-suggestion:nth-child(4) { animation-delay: .08s; }
.customer-suggestion:nth-child(n+5) { animation-delay: .10s; }

/* ── Filter select in toolbar ────────────────────────────── */
.filter-select {
  transition: border-color .2s ease, box-shadow .2s ease,
              transform .15s cubic-bezier(.34,1.3,.64,1);
}
.filter-select:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.filter-select:focus { transform: translateY(-2px); }

/* ── Report date row inputs ──────────────────────────────── */
.report-date-row input[type="date"] {
  transition: border-color .2s, box-shadow .2s,
              transform .15s cubic-bezier(.34,1.3,.64,1);
}
.report-date-row input[type="date"]:hover { transform: translateY(-2px); }
.report-date-row input[type="date"]:focus { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* ── Method buttons in POS ───────────────────────────────── */
.method-btn {
  transition: background .15s, color .15s, border-color .15s,
              transform .15s cubic-bezier(.34,1.3,.64,1),
              box-shadow .15s;
}
.method-btn:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.method-btn.active { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.method-btn:active { transform: scale(.96); }


/* ── CRM Section ──────────────────────────────────────────── */
#crm-section {
  margin-bottom: 12px;
}
#customer-search {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: all var(--transition);
}
#customer-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
#customer-suggestions {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 100;
  max-height: 160px;
  overflow-y: auto;
}
.customer-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
  font-size: 12px;
}
.customer-suggestion:last-child {
  border-bottom: 0;
}
.customer-suggestion:hover {
  background: var(--accent-light);
}
#customer-selected {
  padding: 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
#selected-customer-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
#btn-clear-customer {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
#btn-clear-customer:hover {
  color: var(--red);
}
#customer-points-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
#redeem-section {
  margin-top: 10px;
  padding: 10px;
  background: var(--panel-raised);
  border-radius: var(--radius-sm);
}
#redeem-section label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 6px;
}
#redeem-points-input {
  width: 70px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
#redeem-points-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}
#redeem-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
#btn-apply-redeem {
  padding: 6px 10px;
  font-size: 11px;
}
#redeem-applied {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
