/* ChemPOS UI — POS26 style match */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f5f9;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e8eaf0;
  --primary: #7c3aed;
  --primary-2: #6d28d9;
  --primary-soft: #f3e8ff;
  --primary-mid: #a78bfa;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #3b82f6;
  --info-soft: #dbeafe;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --pink: #ec4899;
  --pink-soft: #fce7f3;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --w-side: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.app-shell { display: flex; min-height: 100vh; }

/* ===== Light Sidebar (POS26) ===== */
.sidebar {
  width: var(--w-side);
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px;
  overflow: hidden;
}
.sidebar-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.sidebar-brand span { display: none; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 20px;
}
.nav-label {
  margin: 16px 10px 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
}
.sidebar-nav a,
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 13.5px;
  transition: .15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.sidebar-nav a:hover,
.nav-link:hover {
  background: #f5f3ff;
  color: var(--primary);
}
.sidebar-nav a.active,
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #a78bfa;
  font-size: 15px;
}
.sidebar-nav a.active .nav-ico,
.nav-link.active .nav-ico { color: var(--primary); }

.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 13.5px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nav-group-toggle:hover { background: #f5f3ff; color: var(--primary); }
.nav-group-toggle .chev {
  margin-left: auto;
  font-size: 10px;
  color: #9ca3af;
  transition: transform .2s;
}
.nav-group.open > .nav-group-toggle .chev { transform: rotate(180deg); }
.nav-sub {
  display: none;
  padding-left: 8px;
  margin-bottom: 4px;
}
.nav-group.open > .nav-sub { display: block; }
.nav-sub a {
  padding-left: 34px;
  font-size: 13px;
  color: #6b7280;
}

.sidebar-foot { display: none; }

/* ===== Main / Topbar ===== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
}
.topbar-title { display: none; }
.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.top-user strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.top-user span { display: block; font-size: 11px; color: var(--muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
  border: 2px solid #ede9fe;
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; width: 40px; height: 40px; cursor: pointer;
}
.content { padding: 20px 24px 28px; flex: 1; }
.app-footer {
  text-align: center;
  padding: 14px 24px 20px;
  color: #9ca3af;
  font-size: 12px;
}

/* ===== Cards ===== */
.panel {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel + .panel { margin-top: 16px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }

/* POS26 metric cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
}
.stat-card::before { display: none; }
.stat-card .stat-text { min-width: 0; }
.stat-card .label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.stat-card .value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat-card .hint { display: none; }
.stat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-ico.purple { background: #ede9fe; color: #7c3aed; }
.stat-ico.orange { background: #ffedd5; color: #ea580c; }
.stat-ico.red { background: #fee2e2; color: #dc2626; }
.stat-ico.green { background: #d1fae5; color: #059669; }
.stat-ico.pink { background: #fce7f3; color: #db2777; }
.stat-ico.blue { background: #dbeafe; color: #2563eb; }

.welcome-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
}
.welcome-card strong { font-size: 15px; font-weight: 700; }
.welcome-card span { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.period-pills {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow);
  gap: 2px;
}
.period-pills a,
.period-pills button {
  border: none;
  background: transparent;
  color: #6b7280;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.period-pills a.active,
.period-pills button.active {
  background: #3b82f6;
  color: #fff;
}
.branch-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 140px;
  box-shadow: var(--shadow);
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.chart-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 20px 12px;
  margin-bottom: 16px;
}
.chart-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.chart-wrap {
  height: 260px;
  position: relative;
}
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: #374151; }
.form-control, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="file"], input[type="url"],
input[type="tel"], input[type="search"], select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 9px 11px; color: var(--ink); outline: none;
  transition: .15s ease;
}
textarea { min-height: 88px; resize: vertical; }
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.help { font-size: 12px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 9px 14px; font-weight: 600;
  font-size: 13px; cursor: pointer; transition: .12s ease; white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(124,58,237,.22); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-secondary { background: #111827; color: #fff; }
.btn-secondary:hover { background: #1f2937; color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #c4b5fd; color: var(--primary); }
.btn-ghost { background: transparent; color: #6b7280; border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
table.data th {
  background: #fafafa; color: #6b7280; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700;
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #faf5ff; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f3f4f6; border: 1px solid var(--line); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Action dropdown (fixed so table overflow cannot clip it) */
.action-dd { position: relative; display: inline-block; vertical-align: middle; }
.action-dd-menu {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  z-index: 4000;
  overflow: hidden;
  padding: 4px 0;
}
.action-dd-menu.is-open { display: block !important; }
.action-dd-menu a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  padding: 9px 12px;
  color: #374151 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.action-dd-menu a .dd-ico {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  color: #7c3aed;
}
.action-dd-menu a .dd-ico svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
}
.action-dd-menu a:hover { background: #faf5ff; color: #7c3aed !important; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge-success { background: var(--success-soft); color: #047857; }
.badge-warning { background: var(--warning-soft); color: #b45309; }
.badge-danger { background: var(--danger-soft); color: #b91c1c; }
.badge-info { background: var(--info-soft); color: #1d4ed8; }
.badge-muted { background: #f3f4f6; color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }

/* Alerts */
.alert { padding: 11px 13px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: #047857; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-soft); color: #b91c1c; border-color: #fecaca; }
.alert-info { background: var(--info-soft); color: #1d4ed8; border-color: #bfdbfe; }
.alert-warning { background: var(--warning-soft); color: #b45309; border-color: #fde68a; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar .search { flex: 1; min-width: 180px; }
.empty { text-align: center; padding: 36px 14px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.product-card {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  transition: .15s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.product-card .media { aspect-ratio: 4/3; background: #f5f3ff; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 12px; }
.product-card h3 { margin: 0 0 4px; font-size: 14px; }
.product-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.product-card .price { font-weight: 700; color: var(--primary); }

.pos-bill { display: grid; grid-template-columns: 1.35fr .9fr; gap: 14px; }
.bill-lines .row-add {
  display: grid; grid-template-columns: 2fr .7fr .8fr auto; gap: 8px; margin-bottom: 10px;
}
.totals-box {
  background: #fafafa; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.totals-box .row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.totals-box .row.grand {
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px;
  font-weight: 800; font-size: 16px;
}

.track-steps {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 12px 0;
}
.track-step {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center;
  background: #fff; cursor: pointer; transition: .15s ease; user-select: none;
}
.track-step input { display: none; }
.track-step .dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db;
  margin: 0 auto 6px; display: grid; place-items: center; font-size: 10px; color: transparent;
}
.track-step.on { border-color: #86efac; background: #f0fdf4; }
.track-step.on .dot { border-color: var(--success); background: var(--success); color: #fff; }
.track-step .name { font-size: 11px; font-weight: 700; color: #374151; }
.track-step .time { font-size: 10px; color: var(--muted); margin-top: 2px; min-height: 14px; }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  background:
    radial-gradient(700px 360px at 20% 20%, rgba(167,139,250,.45), transparent 60%),
    linear-gradient(160deg, #4c1d95, #7c3aed 75%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.auth-visual h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; line-height: 1.15; max-width: 12ch; font-weight: 800; }
.auth-visual p { max-width: 38ch; opacity: .9; font-size: 15px; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 7s ease-in-out infinite; }
.auth-orb.one { width: 180px; height: 180px; background: rgba(255,255,255,.12); top: 12%; left: 12%; }
.auth-orb.two { width: 120px; height: 120px; background: rgba(196,181,253,.25); top: 30%; right: 16%; animation-delay: -2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.auth-panel { display: grid; place-items: center; padding: 28px; background: var(--bg); }
.auth-card {
  width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 0 0 18px; }

/* A4 Invoice */
.invoice-a4 {
  max-width: 800px; margin: 0 auto; background: #fff; border-radius: 14px;
  padding: 28px 32px; box-shadow: var(--shadow);
}
.inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111827; padding-bottom: 16px; }
.inv-brand { display: flex; gap: 12px; align-items: flex-start; }
.inv-brand img { width: 64px; height: 64px; object-fit: contain; }
.inv-brand h1 { margin: 0; font-size: 22px; font-weight: 800; }
.inv-brand .tag { color: var(--muted); font-size: 12px; }
.inv-meta { text-align: right; }
.inv-meta .inv-no { font-size: 20px; font-weight: 800; color: var(--primary); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.inv-box { background: #fafafa; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); }
.inv-box h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-totals { width: min(280px, 100%); margin-left: auto; margin-top: 14px; }
.inv-totals .row { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-totals .grand { font-weight: 800; font-size: 16px; border-top: 2px solid #111827; margin-top: 6px; padding-top: 8px; }
.inv-footer { margin-top: 28px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }

/* Searchable select (type-to-filter) */
.select-search {
  position: relative;
  width: 100%;
  min-width: 0;
}
.select-search.is-toolbar { min-width: 180px; max-width: 240px; }
.select-search-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.select-search-control {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: text;
}
.select-search.open .select-search-control,
.select-search-control:focus-within {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.select-search-input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 8px 0 !important;
  font: inherit;
  color: var(--ink);
}
.select-search-input::placeholder { color: #9ca3af; }
.select-search-clear {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  display: none;
}
.select-search.has-value .select-search-clear { display: inline-block; }
.select-search-clear:hover { color: #6b7280; }
.select-search-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  z-index: 50;
  padding: 4px 0;
}
.select-search.open .select-search-menu { display: block; }
.select-search-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.select-search-option:hover,
.select-search-option.is-active { background: #faf5ff; color: #7c3aed; }
.select-search-option.is-selected { font-weight: 600; color: #7c3aed; }
.select-search-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media print {
  .sidebar, .topbar, .app-footer, .no-print, .menu-toggle { display: none !important; }
  .main, .content { padding: 0 !important; background: #fff; }
  .panel, .invoice-a4 { box-shadow: none; border: none; }
  body { background: #fff; }
  .invoice-a4 { max-width: none; padding: 0; }
  @page { size: A4; margin: 12mm; }
}

@media (max-width: 1200px) {
  .dash-metrics, .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .track-steps { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .grid-2, .pos-bill, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; transform: translateX(-105%); transition: .25s ease; box-shadow: 8px 0 24px rgba(0,0,0,.08); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 220px; padding: 24px; }
  .content { padding-left: 14px; padding-right: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .bill-lines .row-add { grid-template-columns: 1fr 1fr; }
  .dash-metrics, .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dash-metrics, .stats-grid, .track-steps { grid-template-columns: 1fr; }
}
