/* ============================================================
   BenchTracker Design System
   Dark navy + cyan theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Brand Colors */
  --navy-950: #060d14;
  --navy-900: #0a1520;
  --navy-800: #0f1f2e;
  --navy-750: #132535;
  --navy-700: #172d3f;
  --navy-600: #1e3a50;
  --navy-500: #255068;
  --navy-400: #2e6585;
  --cyan-500:  #1e90c8;
  --cyan-400:  #29a8e8;
  --cyan-300:  #5cc0f0;
  --cyan-200:  #9ddaf5;
  --cyan-glow: rgba(30, 144, 200, 0.15);

  /* Semantic Colors */
  --bg-base:    var(--navy-950);
  --bg-surface: var(--navy-900);
  --bg-card:    var(--navy-800);
  --bg-input:   var(--navy-750);
  --bg-hover:   var(--navy-700);
  --bg-active:  var(--navy-600);

  --border:       rgba(30, 144, 200, 0.18);
  --border-hover: rgba(30, 144, 200, 0.38);
  --border-focus: var(--cyan-500);

  --text-primary:   #e8f2fa;
  --text-secondary: #8faec8;
  --text-muted:     #4d7090;
  --text-inverse:   #060d14;

  /* Status Colors */
  --status-intake:          #8faec8;
  --status-pending:         #d4a843;
  --status-in_progress:     #29a8e8;
  --status-waiting_parts:   #e07b2a;
  --status-waiting_customer:#9b6fd4;
  --status-ready:           #2ec47a;
  --status-completed:       #2ec47a;
  --status-closed:          #4d7090;
  --status-cancelled:       #c45252;

  --priority-low:    #4d7090;
  --priority-normal: #8faec8;
  --priority-high:   #d4a843;
  --priority-urgent: #c45252;

  --success: #2ec47a;
  --warning: #d4a843;
  --danger:  #c45252;
  --info:    #29a8e8;

  /* Layout */
  --sidebar-width: 230px;
  --topbar-height: 56px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow:    0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --glow:      0 0 0 3px var(--cyan-glow);
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-400); text-decoration: none; }
a:hover { color: var(--cyan-300); text-decoration: underline; }

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

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cyan-400);
  letter-spacing: -0.01em;
  display: block;
}

.sidebar-brand .brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.sidebar-brand img.brand-logo {
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background: linear-gradient(90deg, var(--cyan-glow), transparent);
  border-left-color: var(--cyan-500);
  color: var(--cyan-300);
  font-weight: 500;
}

.nav-item .nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--cyan-500);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Main content ---- */
.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.avatar {
  width: 30px;
  height: 30px;
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-300);
  flex-shrink: 0;
}

.page-content {
  padding: 28px 28px;
  flex: 1;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-sm { padding: 16px; }
.card-lg { padding: 32px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   Dashboard Stat Cards
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan-500);
}

.stat-card.warning::before { background: var(--warning); }
.stat-card.success::before { background: var(--success); }
.stat-card.danger::before  { background: var(--danger); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.stat-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--cyan-500);
  color: #fff;
  border-color: var(--cyan-500);
}
.btn-primary:hover:not(:disabled) {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  text-decoration: none;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(196, 82, 82, 0.12);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-sm  { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg  { padding: 11px 22px; font-size: 0.95rem; }
.btn-xl  { padding: 13px 28px; font-size: 1rem; }
.btn-icon { padding: 7px; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: var(--glow);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234d7090' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-row {
  display: grid;
  gap: 16px;
}
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Toggle / Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan-500);
  cursor: pointer;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.bt-table thead tr {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.bt-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.bt-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(30, 144, 200, 0.07);
  vertical-align: middle;
}

.bt-table tbody tr:last-child td { border-bottom: none; }

.bt-table tbody tr {
  transition: background 0.1s;
}

.bt-table tbody tr:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

.bt-table .col-actions {
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   Badges / Status Pills
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Status badges */
.badge-intake          { background: rgba(143,174,200,0.15); color: var(--status-intake); }
.badge-pending         { background: rgba(212,168,67,0.15);  color: var(--status-pending); }
.badge-in_progress     { background: rgba(41,168,232,0.15);  color: var(--status-in_progress); }
.badge-waiting_parts   { background: rgba(224,123,42,0.15);  color: var(--status-waiting_parts); }
.badge-waiting_customer{ background: rgba(155,111,212,0.15); color: var(--status-waiting_customer); }
.badge-ready           { background: rgba(46,196,122,0.15);  color: var(--status-ready); }
.badge-completed       { background: rgba(46,196,122,0.15);  color: var(--status-completed); }
.badge-closed          { background: rgba(77,112,144,0.15);  color: var(--status-closed); }
.badge-cancelled       { background: rgba(196,82,82,0.15);   color: var(--status-cancelled); }

/* Payment status */
.badge-draft    { background: rgba(77,112,144,0.15); color: var(--text-muted); }
.badge-sent     { background: rgba(41,168,232,0.15); color: var(--info); }
.badge-partial  { background: rgba(212,168,67,0.15); color: var(--warning); }
.badge-paid     { background: rgba(46,196,122,0.15); color: var(--success); }
.badge-void     { background: rgba(196,82,82,0.1);   color: var(--danger); }
.badge-overdue  { background: rgba(196,82,82,0.15);  color: var(--danger); }

/* Priority */
.badge-low    { background: rgba(77,112,144,0.15);  color: var(--priority-low); }
.badge-normal { background: rgba(143,174,200,0.12); color: var(--priority-normal); }
.badge-high   { background: rgba(212,168,67,0.15);  color: var(--priority-high); }
.badge-urgent { background: rgba(196,82,82,0.15);   color: var(--priority-urgent); }

/* Tax exempt */
.badge-exempt { background: rgba(155,111,212,0.15); color: #a87ddc; }

/* ============================================================
   Search & Filter Bar
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap input {
  padding-left: 34px;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-header-left h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-header-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan-300); text-decoration: none; }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--text-primary); text-decoration: none; }
.tab.active {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-500);
}

/* ============================================================
   Modals
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 20, 0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-body { padding: 20px 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: rgba(46,196,122,0.12); border: 1px solid rgba(46,196,122,0.3); color: #4fe09a; }
.alert-warning { background: rgba(212,168,67,0.12); border: 1px solid rgba(212,168,67,0.3); color: #e0b84a; }
.alert-danger  { background: rgba(196,82,82,0.12);  border: 1px solid rgba(196,82,82,0.3);  color: #d97070; }
.alert-info    { background: rgba(41,168,232,0.12); border: 1px solid rgba(41,168,232,0.3); color: #5cc0f0; }

/* ============================================================
   Invoice-specific
   ============================================================ */
.invoice-totals {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.total-row.final {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   Ticket timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--cyan-500);
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-content {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-muted    { color: var(--text-muted) !important; }
.text-secondary{ color: var(--text-secondary) !important; }
.text-success  { color: var(--success) !important; }
.text-warning  { color: var(--warning) !important; }
.text-danger   { color: var(--danger) !important; }
.text-cyan     { color: var(--cyan-400) !important; }
.text-sm       { font-size: 0.8rem; }
.text-xs       { font-size: 0.72rem; }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.mono          { font-family: var(--mono); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.w-100 { width: 100%; }
.mw-400 { max-width: 400px; }
.mw-600 { max-width: 600px; }
.mw-800 { max-width: 800px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p  { font-size: 0.82rem; }

/* ============================================================
   Login page (standalone)
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,200,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cyan-400);
  letter-spacing: -0.02em;
}

.login-logo .brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); width: 240px; }
  .main-wrap { margin-left: 0; }
  .page-content { padding: 16px; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
