/* ===================================================================
   LabCommerce — Canonical stylesheet (v2, 2026-04)
   Drop-in replacement for labcommerce/styles.css.

   Goal: one visual language across Progenom, Beauty ID, Reseller,
   Customer Portal, and LabConnect. Every component defined once.
   No per-portal overrides. Single blue primary (#4F8EF7).

   Load order in every portal page:
     <link rel="stylesheet" href="..bootstrap-icons CDN..">
     <link rel="stylesheet" href="../labcommerce.css">   (or ./labcommerce.css)
   =================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --lc-primary:         #4F8EF7;
  --lc-primary-hover:   #3d7ce6;
  --lc-primary-active:  #2d6dd1;
  --lc-primary-subtle:  #dbeafe;
  --lc-primary-ring:    rgba(79,142,247,.18);
  --lc-logo-gradient:   linear-gradient(135deg,#4F8EF7,#6366F1);

  /* Ink / surface */
  --lc-ink-1:           #111827;
  --lc-ink-2:           #374151;
  --lc-ink-muted:       #6b7280;
  --lc-ink-light:       #9ca3af;
  --lc-bg:              #f3f4f6;
  --lc-surface:         #ffffff;
  --lc-surface-subtle:  #f9fafb;
  --lc-thead:           #f9fafb;

  /* Borders */
  --lc-border:          #e5e7eb;
  --lc-border-light:    #f3f4f6;
  --lc-border-dark:     #d1d5db;

  /* Status — each has bg + text pair for badges */
  --lc-success:#10b981; --lc-success-bg:#d1fae5; --lc-success-text:#065f46;
  --lc-warning:#f59e0b; --lc-warning-bg:#fef3c7; --lc-warning-text:#92400e;
  --lc-danger:#dc2626;  --lc-danger-bg:#fee2e2;  --lc-danger-text:#991b1b;
  --lc-info:#2563eb;    --lc-info-bg:#dbeafe;    --lc-info-text:#1e40af;

  /* Radii */
  --lc-r-sm:6px; --lc-r-md:8px; --lc-r-lg:12px; --lc-r-xl:20px; --lc-r-pill:9999px;

  /* Shadows */
  --lc-shadow-sm:0 1px 3px rgba(0,0,0,.05);
  --lc-shadow-md:0 4px 12px rgba(0,0,0,.08);
  --lc-shadow-lg:0 20px 60px rgba(0,0,0,.08);
  --lc-focus-ring:0 0 0 3px var(--lc-primary-ring);

  /* Layout */
  --lc-header-h:60px;
  --lc-sidebar-w:250px;
  --lc-sidebar-collapsed:60px;

  /* Type */
  --lc-font: 'Inter', -apple-system, BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --lc-font-mono: Monaco, Menlo, 'Ubuntu Mono', Consolas, monospace;
}

/* ---------- 2. Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--lc-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--lc-ink-1);
  background: var(--lc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--lc-primary); text-decoration: none; }
a:hover { color: var(--lc-primary-hover); }

/* Bootstrap Icons safety (kept from original) */
[class^="bi-"]::before, [class*=" bi-"]::before, .bi::before {
  font-family: "bootstrap-icons" !important;
  font-style: normal !important; font-weight: normal !important;
  vertical-align: -0.125em !important;
}

/* ---------- 3. Header ---------- */
.header {
  position: fixed; top:0; left:0; right:0; height: var(--lc-header-h);
  background: var(--lc-surface); border-bottom: 1px solid var(--lc-border);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; z-index: 1000;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 8px; position: relative; }

.burger-menu, .header-icon, .notification-bell {
  width: 40px; height: 40px; border: none; background: transparent;
  border-radius: var(--lc-r-md); cursor: pointer; color: var(--lc-ink-muted);
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.burger-menu:hover, .header-icon:hover, .notification-bell:hover {
  background: var(--lc-bg); color: var(--lc-ink-1);
}

.logo {
  width: 32px; height: 32px; border-radius: var(--lc-r-md);
  background: var(--lc-logo-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.company-name { font-size: 18px; font-weight: 600; color: var(--lc-ink-1); }

.notification-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--lc-danger); color: #fff;
  font-size: 10px; font-weight: 600; padding: 1px 5px;
  border-radius: var(--lc-r-pill); min-width: 16px; text-align: center; line-height: 1.4;
}
.notification-dot {
  position: absolute; top: 10px; right: 11px;
  width: 8px; height: 8px; background: var(--lc-danger); border-radius: 50%;
}

.account-menu {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--lc-r-md); cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--lc-ink-2);
  transition: background .15s;
}
.account-menu:hover { background: var(--lc-bg); }
.avatar, .account-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--lc-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.account-dropdown {
  position: absolute; top: 48px; right: 0;
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); box-shadow: var(--lc-shadow-md);
  min-width: 220px; z-index: 1000; overflow: hidden;
  animation: lcDropFade .18s ease;
}
@keyframes lcDropFade { from { opacity:0; transform:translateY(-6px);} to {opacity:1; transform:none;} }
.account-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; color: var(--lc-ink-2); font-size: 14px;
  text-decoration: none; transition: background .15s;
}
.account-dropdown a:hover { background: var(--lc-surface-subtle); color: var(--lc-ink-1); }
.account-dropdown a i { font-size: 16px; color: var(--lc-ink-muted); }

/* ---------- 4. Sidebar ---------- */
.sidebar {
  position: fixed; left: 0; top: var(--lc-header-h);
  width: var(--lc-sidebar-w); height: calc(100vh - var(--lc-header-h));
  background: var(--lc-surface); border-right: 1px solid var(--lc-border);
  overflow-y: auto; overflow-x: hidden; z-index: 100;
  padding: 8px 0;
  transition: width .3s ease;
}
.sidebar.collapsed { width: var(--lc-sidebar-collapsed); }
body:not(:has(.header)) .sidebar { top: 0; height: 100vh; }

.sidebar-toggle {
  display: none; /* hidden — header burger now toggles; kept for source compat */
}

.menu-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; color: var(--lc-ink-muted);
  text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 500;
  border-right: 3px solid transparent;
  transition: background .15s, color .15s;
}
.menu-item i { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }
.menu-item:hover { background: var(--lc-surface-subtle); color: var(--lc-ink-1); }
.menu-item.active {
  background: var(--lc-primary-subtle); color: var(--lc-info);
  border-right-color: var(--lc-info);
}
.sidebar.collapsed .menu-item-text,
.sidebar.collapsed .menu-text { display: none; }
.sidebar.collapsed .menu-item { justify-content: center; padding: 12px 0; gap: 0; border-right: none; }
.sidebar.collapsed .menu-item.active { background: var(--lc-primary-subtle); }

/* ---------- 5. Main / page header ---------- */
.main-content {
  margin-left: var(--lc-sidebar-w); margin-top: var(--lc-header-h);
  padding: 30px; min-height: calc(100vh - var(--lc-header-h));
  transition: margin-left .3s ease;
}
.sidebar.collapsed ~ .main-content { margin-left: var(--lc-sidebar-collapsed); }
body:not(:has(.header)) .main-content { margin-top: 0; min-height: 100vh; }

.page-content { width: 100%; }
.page-header, .content-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 16px;
}
.page-title {
  font-size: 28px; font-weight: 700; color: var(--lc-ink-1);
  margin: 0; line-height: 1.2; letter-spacing: -0.015em;
}
.page-subtitle, .page-description {
  font-size: 14px; color: var(--lc-ink-muted); margin-top: 4px; margin-bottom: 0;
}

/* ---------- 6. Buttons ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--lc-r-md);
  border: 1px solid var(--lc-border); background: var(--lc-surface);
  color: var(--lc-ink-2); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--lc-surface-subtle); border-color: var(--lc-border-dark); }
.btn:focus-visible { outline: none; box-shadow: var(--lc-focus-ring); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary, .btn.btn-primary, button.btn-primary, .btn-primary-simple {
  background: var(--lc-primary); color: #fff; border-color: var(--lc-primary);
}
.btn-primary:hover, .btn-primary-simple:hover {
  background: var(--lc-primary-hover); border-color: var(--lc-primary-hover);
}
.btn-danger { background: var(--lc-danger); color: #fff; border-color: var(--lc-danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--lc-ink-2); }
.btn-ghost:hover { background: var(--lc-surface-subtle); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon {
  width: 32px; height: 32px; padding: 0; justify-content: center;
  border-color: transparent; background: transparent; color: var(--lc-ink-muted);
}
.btn-icon:hover { background: var(--lc-surface-subtle); color: var(--lc-primary); border-color: var(--lc-border); }

/* ---------- 7. Cards ---------- */
.card, .lc-card {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); overflow: hidden;
}
.card-head, .card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--lc-border-light);
  background: var(--lc-surface-subtle);
}
.card-title { font-size: 16px; font-weight: 600; color: var(--lc-ink-1); margin: 0; }
.card-body { padding: 20px; }

/* ---------- 8. Stat cards — ONE canonical style ----------
   The "modern" variant from Progenom/Reseller is retired.
   All portals now use the subtle top-stripe card. */
.stats-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card, .stat-card-modern {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 20px;
  position: relative; overflow: hidden;
  box-shadow: none; display: block;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover, .stat-card-modern:hover {
  box-shadow: var(--lc-shadow-md); transform: translateY(-2px);
}
.stat-card::before, .stat-card-modern::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lc-primary);
}
.stat-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.stat-label, .stat-label-modern {
  font-size: 13px; color: var(--lc-ink-muted); font-weight: 500; margin: 0 0 8px;
}
.stat-icon, .stat-icon-modern {
  width: 36px !important; height: 36px !important;
  border-radius: var(--lc-r-md);
  background: var(--lc-primary-subtle) !important;
  color: var(--lc-info) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px !important; flex-shrink: 0;
}
/* neutralise the old colored gradients */
.stat-icon-modern.purple, .stat-icon-modern.orange,
.stat-icon-modern.blue, .stat-icon-modern.green,
.stat-icon-modern.yellow {
  background: var(--lc-primary-subtle) !important; color: var(--lc-info) !important;
}
.stat-value, .stat-value-modern {
  font-size: 28px; font-weight: 700; color: var(--lc-ink-1);
  line-height: 1; margin: 4px 0;
}
.stat-sub, .stat-change-modern { font-size: 12px; color: var(--lc-ink-muted); font-weight: 500; }
.stat-change-modern.positive { color: var(--lc-success); }
.stat-change-modern.negative { color: var(--lc-danger); }

/* Progenom/Reseller layout used display:flex on .stat-card-modern;
   keep layout working by flex-aligning icon/content when present. */
.stat-card-modern { display: flex; align-items: flex-start; gap: 16px; padding-top: 23px; }
.stat-content-modern { flex: 1; min-width: 0; }

/* ---------- 9. Tables (canonical + legacy .modern-table alias) ---------- */
.table, .data-table, .modern-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--lc-surface); font-size: 14px;
}
.table thead th, .data-table thead th, .modern-table thead th {
  background: var(--lc-thead);
  padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--lc-ink-2);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--lc-border); white-space: nowrap;
}
.table tbody td, .data-table tbody td, .modern-table tbody td {
  padding: 14px 16px; font-size: 14px; color: var(--lc-ink-1);
  border-bottom: 1px solid var(--lc-border-light);
}
.table tbody tr:hover, .data-table tbody tr:hover, .modern-table tbody tr:hover {
  background: var(--lc-surface-subtle);
}
.table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.modern-table tbody tr:last-child td { border-bottom: none; }

.table-container, .data-table-wrap {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); overflow: hidden;
}

/* ---------- 10. Pagination ---------- */
.pagination {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 6px; padding: 14px 20px; border-top: 1px solid var(--lc-border);
}
.pagination .meta { margin-right: auto; font-size: 13px; color: var(--lc-ink-muted); }
.page-btn, .pagination button, .pagination a {
  width: 34px; height: 34px; border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-sm); background: var(--lc-surface);
  color: var(--lc-ink-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: all .15s;
}
.page-btn:hover:not(:disabled), .pagination a:hover { border-color: var(--lc-primary); color: var(--lc-primary); }
.page-btn.active, .pagination .active { background: var(--lc-primary); color: #fff; border-color: var(--lc-primary); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 11. Filter / search bar ---------- */
.filter-section, .toolbar {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 16px 20px; margin-bottom: 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 14px; background: var(--lc-bg); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-sm); font-size: 14px; font-weight: 500;
  color: var(--lc-ink-muted); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-tab:hover { background: var(--lc-border); }
.filter-tab.active { background: var(--lc-primary-subtle); color: var(--lc-info); border-color: #93c5fd; }
.filter-count { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: var(--lc-r-pill); font-size: 11px; }
.filter-tab.active .filter-count { background: #bfdbfe; color: var(--lc-info-text); }

.search-box, .search-bar {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: var(--lc-surface-subtle); padding: 8px 12px;
  border-radius: var(--lc-r-sm); border: 1px solid var(--lc-border);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within, .search-bar:focus-within {
  border-color: var(--lc-primary); box-shadow: var(--lc-focus-ring);
}
.search-box i, .search-bar i { color: var(--lc-ink-light); }
.search-box input, .search-bar input {
  border: none; background: transparent; outline: none; flex: 1;
  font: inherit; font-size: 14px; color: var(--lc-ink-1);
}
.search-box input::placeholder { color: var(--lc-ink-light); }

/* ---------- 12. Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label, label.form-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--lc-ink-2); margin-bottom: 6px;
}
.form-control, input.form-control, select.form-control, textarea.form-control,
input[type="text"].form-input, input[type="email"].form-input,
input[type="password"].form-input, input[type="number"].form-input,
.form-input, select.form-input, textarea.form-input {
  width: 100%; padding: 10px 14px; font: inherit; font-size: 14px;
  color: var(--lc-ink-1); background: var(--lc-surface);
  border: 1px solid var(--lc-border-dark); border-radius: var(--lc-r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder, .form-input::placeholder { color: var(--lc-ink-light); }
.form-control:focus, .form-input:focus {
  outline: none; border-color: var(--lc-primary); box-shadow: var(--lc-focus-ring);
}
.form-help, .form-hint { font-size: 13px; color: var(--lc-ink-muted); margin-top: 4px; }
.form-control:disabled, .form-input:disabled { background: var(--lc-surface-subtle); cursor: not-allowed; }

/* ---------- 13. Badges / status pills ---------- */
.badge, .status-badge, .status-badge-modern {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--lc-r-md);
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.badge-success,.status-active,.status-badge-modern.active,.status-badge-modern.delivered { background: var(--lc-success-bg); color: var(--lc-success-text); }
.badge-warning,.status-pending,.status-badge-modern.pending { background: var(--lc-warning-bg); color: var(--lc-warning-text); }
.badge-danger,.status-inactive,.status-badge-modern.inactive,.status-badge-modern.cancelled { background: var(--lc-danger-bg); color: var(--lc-danger-text); }
.badge-info,.status-badge-modern.confirmed,.status-badge-modern.shipped { background: var(--lc-info-bg); color: var(--lc-info-text); }
.status-badge-modern.processing { background: var(--lc-primary-subtle); color: var(--lc-info-text); }

/* ---------- 14. Empty state ---------- */
.empty-state {
  background: var(--lc-surface-subtle); border: 1px dashed var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 48px 20px; text-align: center;
}
.empty-state i { font-size: 42px; color: var(--lc-ink-light); display: block; margin-bottom: 10px; }
.empty-state-title { font-weight: 600; font-size: 16px; color: var(--lc-ink-1); margin-bottom: 4px; }
.empty-state-sub { font-size: 14px; color: var(--lc-ink-muted); }

/* ---------- 15. Toast ---------- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-md); padding: 12px 16px;
  box-shadow: var(--lc-shadow-md);
  display: flex; align-items: center; gap: 10px; min-width: 280px;
  animation: lcToastIn .2s ease;
}
@keyframes lcToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.success { border-left: 3px solid var(--lc-success); }
.toast.danger  { border-left: 3px solid var(--lc-danger);  }
.toast.warning { border-left: 3px solid var(--lc-warning); }

/* ---------- 16. Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17,24,39,.45);
  display: flex; align-items: center; justify-content: center; z-index: 1050;
}
.modal {
  background: var(--lc-surface); border-radius: var(--lc-r-lg);
  box-shadow: var(--lc-shadow-lg); width: 100%; max-width: 520px;
  animation: lcModalIn .2s ease; overflow: hidden;
}
@keyframes lcModalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--lc-border); }
.modal-title { font-size: 16px; font-weight: 600; color: var(--lc-ink-1); margin: 0; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--lc-border); background: var(--lc-surface-subtle); }

/* ---------- 17. Misc utility / legacy aliases ---------- */
.text-muted { color: var(--lc-ink-muted); }
.divider { height: 1px; background: var(--lc-border); margin: 16px 0; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* Welcome card (kept from original, retuned to canonical colors) */
.welcome-dashboard { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.welcome-card-simple {
  text-align: center; max-width: 680px; padding: 56px 40px;
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-xl); box-shadow: var(--lc-shadow-lg);
}
.welcome-title-simple {
  font-size: 44px; font-weight: 700; color: var(--lc-ink-1);
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.1;
}
.welcome-description-simple {
  font-size: 16px; line-height: 1.6; color: var(--lc-ink-muted); margin-bottom: 28px;
}

/* Chart / analytics surface used by Progenom + Reseller dashboards */
.chart-card {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 24px; box-shadow: none;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.chart-title  { font-size: 16px; font-weight: 600; color: var(--lc-ink-1); margin: 0; }
.chart-period {
  font-size: 13px; color: var(--lc-ink-muted);
  padding: 6px 12px; background: var(--lc-bg);
  border-radius: var(--lc-r-sm);
}

/* Status list used on dashboards (Order Status Breakdown etc.) */
.status-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--lc-border-light); }
.status-item:last-child { border-bottom: none; }
.status-left { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--lc-primary); }
.status-name { font-size: 14px; color: var(--lc-ink-2); font-weight: 500; }
.status-right { display: flex; align-items: center; gap: 12px; }
.status-count { font-size: 18px; font-weight: 700; color: var(--lc-ink-1); }
.status-percent { font-size: 13px; color: var(--lc-ink-muted); min-width: 42px; text-align: right; }

/* order / customer helper rows */
.order-id, .customer-name, .order-amount { color: var(--lc-ink-1); }
.order-id { font-weight: 600; }
.order-amount { font-weight: 700; }
.customer-name { font-weight: 500; color: var(--lc-ink-2); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}
@media (max-width: 640px) {
  .main-content { padding: 20px 16px; }
  .page-title { font-size: 24px; }
  .stats-grid { grid-template-columns: 1fr; }
}
