@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@300;400;500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════
   SKU — Sambriddhi Khadya Udhyog
   Clean White Minimal · DM Sans + DM Mono
   ══════════════════════════════════════════ */



:root {
  --primary:      #2563eb;
  --primary-dk:   #1d4ed8;
  --primary-lt:   #eff6ff;
  --success:      #16a34a;
  --success-lt:   #f0fdf4;
  --danger:       #dc2626;
  --danger-lt:    #fef2f2;
  --warning:      #d97706;
  --warning-lt:   #fffbeb;
  --info:         #0891b2;
  --info-lt:      #ecfeff;
  --purple:       #7c3aed;
  --purple-lt:    #f5f3ff;

  --text-primary: #111827;
  --text-sec:     #6b7280;
  --text-muted:   #9ca3af;
  --border:       #e5e7eb;
  --border-dk:    #d1d5db;
  --surface:      #ffffff;
  --surface-2:    #f9fafb;
  --surface-3:    #f3f4f6;

  --sidebar-w:    260px;
  --header-h:     64px;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --transition:   all .2s ease;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'IBM Plex Sans', sans-serif;
  background: var(--surface-2);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-body {
  padding: 24px;
  flex: 1;
}

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

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-logo .logo-text { line-height: 1.2; }
.sidebar-logo .logo-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); letter-spacing: .01em;
}
.sidebar-logo .logo-sub {
  font-size: 10px; color: var(--text-muted);
  font-family: 'DM Mono', monospace; letter-spacing: .05em;
}

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

.nav-section { margin-bottom: 4px; }
.nav-section-label {
  padding: 8px 20px 4px;
  font-size: 10px; font-weight: 600;
  color: var(--text-muted); letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--text-sec);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--primary-lt);
  color: var(--primary);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.nav-item.active .nav-icon { opacity: 1; }

.nav-dropdown { display: none; }
.nav-dropdown.open { display: block; }
.nav-dropdown .nav-item { padding-left: 48px; font-size: 13px; }

.nav-toggle {
  cursor: pointer;
  user-select: none;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--text-sec);
  font-size: 13.5px; font-weight: 500;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--surface-3); color: var(--text-primary); }
.nav-toggle .toggle-arrow {
  margin-left: auto;
  transition: transform .2s ease;
  font-size: 12px; opacity: .5;
}
.nav-toggle.open .toggle-arrow { transform: rotate(90deg); }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.sidebar-user .user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.sidebar-user .user-role { font-size: 11px; color: var(--text-muted); }

/* ── HEADER ── */
.page-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.header-breadcrumb { font-size: 12px; color: var(--text-muted); }
.header-right { display: flex; align-items: center; gap: 12px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-lt); color: var(--primary); }
.stat-icon.green { background: var(--success-lt); color: var(--success); }
.stat-icon.red { background: var(--danger-lt); color: var(--danger); }
.stat-icon.amber { background: var(--warning-lt); color: var(--warning); }
.stat-icon.purple { background: var(--purple-lt); color: var(--purple); }
.stat-icon.cyan { background: var(--info-lt); color: var(--info); }

.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.stat-value.money::before { content: 'Rs. '; font-size: 12px; font-weight: 500; color: var(--text-sec); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.data-table thead th {
  padding: 10px 14px;
  background: var(--surface-3);
  color: var(--text-sec);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }

.mono { font-family: 'DM Mono', monospace; font-size: .9em; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
}
.badge-blue { background: var(--primary-lt); color: var(--primary); }
.badge-green { background: var(--success-lt); color: var(--success); }
.badge-red { background: var(--danger-lt); color: var(--danger); }
.badge-amber { background: var(--warning-lt); color: var(--warning); }
.badge-purple { background: var(--purple-lt); color: var(--purple); }
.badge-gray { background: var(--surface-3); color: var(--text-sec); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 22px; font-size: 15px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-dk); }
.btn-outline:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-sec); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text-primary); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-print { background: #1e293b; color: #fff; }
.btn-print:hover { background: #0f172a; color: #fff; }

/* ── FORM ── */
.form-control, .form-select {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-group { margin-bottom: 16px; }
.form-text { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-check-input { cursor: pointer; }

/* Invoice table rows */
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th {
  padding: 8px 10px;
  background: var(--surface-3);
  font-size: 11px; font-weight: 600;
  color: var(--text-sec); text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.invoice-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.invoice-table td .form-control,
.invoice-table td .form-select {
  padding: 6px 8px;
  font-size: 13px;
  border-color: transparent;
  background: transparent;
}
.invoice-table td .form-control:focus,
.invoice-table td .form-select:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.invoice-table tbody tr:hover td .form-control,
.invoice-table tbody tr:hover td .form-select {
  background: var(--surface);
  border-color: var(--border);
}

/* ── VAT TOGGLE ── */
.vat-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
}
.toggle-switch {
  position: relative;
  width: 42px; height: 22px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-dk);
  border-radius: 22px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: var(--success-lt); color: var(--success); border: 1px solid #bbf7d0; }
.alert-danger { background: var(--danger-lt); color: var(--danger); border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-lt); color: var(--warning); border: 1px solid #fde68a; }
.alert-info { background: var(--info-lt); color: var(--info); border: 1px solid #a5f3fc; }

/* ── FILTERS / SEARCH BAR ── */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-bar .form-control, .filter-bar .form-select {
  width: auto; min-width: 180px;
}
.search-input-wrap { position: relative; }
.search-input-wrap .search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px;
}
.search-input-wrap .form-control { padding-left: 34px; }

/* ── PAGINATION ── */
.pagination-wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  font-size: 13px; color: var(--text-sec);
}
.paginator { display: flex; gap: 4px; }
.paginator a, .paginator span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 13px; text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-sec);
  transition: var(--transition);
}
.paginator a:hover { border-color: var(--primary); color: var(--primary); }
.paginator .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── PRINT ── */
@media print {
  .sidebar, .page-header, .btn, .filter-bar,
  .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .page-body { padding: 0 !important; }
}

/* ── AMOUNT SUMMARY ── */
.amount-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 16px;
}
.amount-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.amount-card.gross { background: var(--surface-3); }
.amount-card.discount { background: var(--warning-lt); }
.amount-card.net { background: var(--primary-lt); }
.amount-card .a-label { font-size: 11px; color: var(--text-sec); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.amount-card .a-value { font-size: 20px; font-weight: 700; margin-top: 4px; font-family: 'DM Mono', monospace; }
.amount-card.net .a-value { color: var(--primary); }

/* ── CHART WRAPPER ── */
.chart-wrap { position: relative; height: 220px; }

/* ── EMPTY STATE ── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--text-sec); margin-bottom: 6px; }
.empty-state .empty-sub { font-size: 13px; }

/* ── PRINT INVOICE ── */
.invoice-print-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}
.invoice-company { font-size: 20px; font-weight: 700; color: var(--primary); }
.invoice-meta { text-align: right; }
.invoice-meta .inv-no { font-size: 18px; font-weight: 700; font-family: 'DM Mono', monospace; }

/* ── UTILITIES ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-primary-color { color: var(--primary); }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.font-mono { font-family: 'DM Mono', monospace; }
.w-100 { width: 100%; }

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

.low-stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 2px 8px;
  background: var(--danger-lt); color: var(--danger);
  border-radius: 20px; font-weight: 600;
}

.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-sec);
  text-decoration: none;
  transition: var(--transition);
  font-size: 13px;
  cursor: pointer; background: transparent;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }
.action-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-lt); }
.action-btn.success:hover { border-color: var(--success); color: var(--success); background: var(--success-lt); }

.section-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); --sidebar-w: 260px; }
  .main-content { margin-left: 0; }
}

/* ══════════════════════════════════════════
   RESPONSIVE + SIDEBAR TOGGLE  (v2 patch)
   ══════════════════════════════════════════ */

/* Sidebar collapsed state */
.sidebar-collapsed .sidebar {
  transform: translateX(-260px);
}
.sidebar-collapsed .main-content {
  margin-left: 0;
}

/* Smooth transition already on .sidebar via --transition,
   but main-content needs it too */
.main-content {
  transition: margin-left .25s ease;
}
.sidebar {
  transition: transform .25s ease;
}

/* Toggle button in header */
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-sec);
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--border-dk);
}

/* Make sidebar-logo clickable as toggle */
.sidebar-logo { cursor: pointer; }

/* ── FULL RESPONSIVE ─────────────────────────────────────────── */

/* Default: sidebar visible, content offset */
body.layout-ready .main-content {
  margin-left: var(--sidebar-w);
}

/* When collapsed */
body.sidebar-collapsed .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-w)));
}
body.sidebar-collapsed .main-content {
  margin-left: 0 !important;
}

/* ── Fluid page body ─────────────────────────────────── */
.page-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Tables: horizontal scroll on small screens ──────── */
.table-wrap {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ── Stat grid: collapse to 2 cols then 1 ────────────── */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Two-column card grids collapse ──────────────────── */
@media (max-width: 960px) {
  /* dashboard 2-col sections */
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* amount summary 3-col */
  .amount-summary { grid-template-columns: 1fr !important; }
}

/* ── Invoice row tables ───────────────────────────────── */
@media (max-width: 900px) {
  .invoice-table { min-width: 700px; }
}

/* ── Header ──────────────────────────────────────────── */
.page-header {
  gap: 8px;
  flex-wrap: nowrap;
}
.header-right {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .header-right .btn span { display: none; } /* hide text, keep icon */
  .header-title { font-size: 14px; }
}

/* ── Overlay for mobile when sidebar open ────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 99;
}
@media (max-width: 768px) {
  .sidebar-overlay.active { display: block; }
  :root { --sidebar-w: 260px; }
  body.sidebar-collapsed .sidebar { transform: translateX(-260px); }
  body:not(.sidebar-collapsed) .main-content { margin-left: 0 !important; }
}

/* ── Date converter widget ───────────────────────────── */
.date-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: flex-end;
}
.date-pair .swap-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 38px;
  color: var(--primary); font-size: 16px;
  padding-bottom: 2px;
}
