/* ==========================================================================
   Route PRO Magazijn — huisstijl
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/inter-var-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy-950: #081726;
  --navy-900: #0d2238;
  --navy-800: #13304f;
  --navy-700: #1c4169;
  --blue-600: #2563c9;
  --blue-500: #2f74e0;
  --blue-50:  #ecf3fd;
  --amber-500: #f4a51c;
  --amber-400: #f7b93f;
  --amber-50: #fff6e5;
  --green-600: #15803d;
  --green-50: #e9f7ef;
  --red-600: #c9302c;
  --red-50: #fdeeee;
  --violet-600: #5b47c7;
  --violet-50: #f0eefc;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --line: #e7eaf0;
  --surface: #ffffff;
  --canvas: #f3f5f9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
  --sidebar-w: 256px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink-900);
  --bs-border-color: var(--line);
  --bs-primary: var(--blue-600);
  --bs-primary-rgb: 37, 99, 201;
  --bs-link-color: var(--blue-600);
  --bs-link-color-rgb: 37, 99, 201;
  --bs-link-hover-color: var(--navy-700);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 12px;
}

body { background: var(--canvas); font-feature-settings: "cv11"; -webkit-font-smoothing: antialiased; }
.stat-value, .num, .pick-qty, .table td.text-end, .viz-legend b { font-variant-numeric: tabular-nums; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn:hover, .side-link:hover, .list-group-item:hover, .bottom-nav a:hover, .stat:hover, .brand-link:hover, .topbar-brand:hover { text-decoration: none; }
h1.h4, .page-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.text-muted { color: var(--ink-500) !important; }
code { color: var(--violet-600); }

/* ---------- shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #c9d5e3; display: flex; flex-direction: column;
}
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1030; }
  .app-main { margin-left: var(--sidebar-w); }
}
@media (max-width: 991.98px) {
  .sidebar.offcanvas-lg { --bs-offcanvas-width: 280px; --bs-offcanvas-bg: var(--navy-900); }
}
.side-brand { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500)); color: var(--navy-900); box-shadow: 0 4px 12px rgba(244,165,28,.35); }
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; box-shadow: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber-400); font-weight: 600; }
.brand-text.dark strong { color: var(--navy-900); }
.side-company { margin: 0 16px 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06);
  font-size: .82rem; color: #e3ebf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-company i { color: var(--amber-400); margin-right: 4px; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.side-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7890ab; font-weight: 650; padding: 18px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #c9d5e3; font-size: .92rem;
  font-weight: 500; position: relative; transition: background .12s, color .12s; }
.side-link i { font-size: 1.05rem; width: 20px; text-align: center; color: #8ea4bd; transition: color .12s; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link:hover i { color: #fff; }
.side-link.active { background: rgba(47,116,224,.22); color: #fff; font-weight: 600; }
.side-link.active i { color: var(--amber-400); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber-400); }
.side-badge { margin-left: auto; font-size: .72rem; font-weight: 650; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: rgba(255,255,255,.12); color: #fff; }
.side-link.active .side-badge { background: var(--amber-500); color: var(--navy-900); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700;
  background: linear-gradient(135deg, var(--blue-500), var(--violet-600)); color: #fff; }
.side-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.side-user-info strong { color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info small { color: #8ea4bd; font-size: .75rem; }
.side-user .btn-icon { color: #c9d5e3; }
.btn-icon { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--ink-700); }
.btn-icon:hover { background: rgba(127,127,127,.12); }

.topbar { position: sticky; top: 0; z-index: 1020; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); }
.topbar-search { flex: 1; max-width: 520px; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--canvas); border: 1px solid transparent; transition: border-color .12s, background .12s; }
.topbar-search:focus-within { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,116,224,.12); }
.topbar-search i { color: var(--ink-400); }
.topbar-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: .92rem; min-width: 0; }
.topbar-search kbd { font-size: .7rem; background: #fff; color: var(--ink-500); border: 1px solid var(--line); box-shadow: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-scan { background: var(--amber-500); color: var(--navy-900); font-weight: 650; border: 0; align-items: center; gap: 6px; }
.btn-scan:hover { background: var(--amber-400); color: var(--navy-900); }

.content { padding: 24px; max-width: 1480px; }
@media (max-width: 991.98px) {
  .content { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 10px; height: 58px; }
}

/* ---------- gsm onderbalk ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16,24,40,.06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-500); font-size: .7rem; font-weight: 550; padding: 4px 0; }
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--blue-600); }
.bottom-nav a.bn-scan { width: 60px; height: 60px; margin: -26px auto 0; border-radius: 50%; justify-content: center;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500)); color: var(--navy-900); box-shadow: 0 6px 16px rgba(244,165,28,.45); border: 4px solid #fff; }
.bottom-nav a.bn-scan i { font-size: 1.55rem; }

/* ---------- componenten ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card > .table-responsive:last-child, .card > .list-group:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 650; padding: 14px 18px; display: flex; align-items: center; gap: 8px; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-header > a, .card-header .small { font-weight: 500; }
.card-header .d-flex, .card-header.d-flex { width: 100%; }
.card-body { padding: 18px; }
.card.card-body { padding: 20px; }
.card-footer { background: #fafbfc; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.shadow-sm { box-shadow: var(--shadow) !important; }

.btn { font-weight: 550; border-radius: 10px; }
.btn-sm { border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--blue-600); --bs-btn-border-color: var(--blue-600); --bs-btn-hover-bg: var(--navy-700); --bs-btn-hover-border-color: var(--navy-700);
  --bs-btn-active-bg: var(--navy-800); --bs-btn-active-border-color: var(--navy-800); box-shadow: 0 1px 2px rgba(37,99,201,.25); }
.btn-outline-primary { --bs-btn-color: var(--blue-600); --bs-btn-border-color: #c8d9f3; --bs-btn-hover-bg: var(--blue-50); --bs-btn-hover-color: var(--blue-600);
  --bs-btn-hover-border-color: #a9c4ee; --bs-btn-active-bg: var(--blue-50); --bs-btn-active-color: var(--blue-600); background: #fff; }
.btn-outline-secondary { --bs-btn-color: var(--ink-700); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #f5f6f8; --bs-btn-hover-color: var(--ink-900);
  --bs-btn-hover-border-color: #d5dae2; --bs-btn-active-bg: #eef0f3; --bs-btn-active-color: var(--ink-900); background: #fff; }
.btn-warning { --bs-btn-bg: var(--amber-500); --bs-btn-border-color: var(--amber-500); --bs-btn-hover-bg: var(--amber-400); --bs-btn-hover-border-color: var(--amber-400); --bs-btn-color: var(--navy-900); --bs-btn-hover-color: var(--navy-900); }
.btn-success { --bs-btn-bg: var(--green-600); --bs-btn-border-color: var(--green-600); --bs-btn-hover-bg: #116632; --bs-btn-hover-border-color: #116632; }

.form-control, .form-select { border-color: #dde2ea; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,116,224,.12); }
.form-label { font-weight: 550; font-size: .88rem; color: var(--ink-700); }
.form-text { color: var(--ink-500); }
.input-group .btn { border-color: #dde2ea; }
.form-check-input:checked { background-color: var(--blue-600); border-color: var(--blue-600); }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .9rem; border-bottom-color: #eef1f5; }
.table-sm > :not(caption) > * > * { padding: .55rem .9rem; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 650;
  background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f7f9fc; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-success { --bs-table-bg: #f1faf4; }
.table-warning { --bs-table-bg: #fffaf0; }
td a strong, td a { font-weight: 600; white-space: nowrap; }
.list-group { --bs-list-group-bg: #fff; }

/* badges: zacht, met duidelijke tekstkleur */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .38em .72em; }
.badge.text-bg-secondary { background: #eef0f4 !important; color: var(--ink-700) !important; }
.badge.text-bg-warning { background: var(--amber-50) !important; color: #8a5a00 !important; box-shadow: inset 0 0 0 1px #f6dca8; }
.badge.text-bg-info { background: var(--blue-50) !important; color: #1d4f9e !important; box-shadow: inset 0 0 0 1px #cfe0f8; }
.badge.text-bg-success { background: var(--green-50) !important; color: #11622f !important; box-shadow: inset 0 0 0 1px #c5e8d2; }
.badge.text-bg-danger { background: var(--red-50) !important; color: #9f2420 !important; box-shadow: inset 0 0 0 1px #f5cfcd; }
.badge.text-bg-dark { background: #e5e7eb !important; color: var(--ink-500) !important; }

.alert { border: 0; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; box-shadow: var(--shadow-sm); padding: 12px 44px 12px 14px; }
.alert > i { font-size: 1.1rem; line-height: 1.3; }
.alert-success { background: var(--green-50); color: #11622f; }
.alert-danger { background: var(--red-50); color: #9f2420; }
.alert-warning { background: var(--amber-50); color: #7a4f00; }
.alert-info { background: var(--blue-50); color: #1d4f9e; }
.alert .btn-close { padding: 14px; }
.flash-stack { margin-bottom: 16px; display: grid; gap: 8px; }

.list-group-item { border-color: #eef1f5; padding: .8rem 1.1rem; }
.list-group-item-action:hover { background: #f7f9fc; }
.pagination { --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--ink-700); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(16,24,40,.12); padding: 6px; }
.dropdown-item { border-radius: 8px; padding: .45rem .75rem; font-size: .92rem; }
.modal-content { border: 0; border-radius: 16px; }

/* ---------- pagina-kop ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head .eyebrow { font-size: .78rem; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }
.page-head h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.025em; margin: 2px 0 0; }

/* ---------- dashboard ---------- */
.stat { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; padding: 18px; height: 100%; color: inherit; transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.stat-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.stat-icon.amber { background: var(--amber-50); color: #b87400; }
.stat-icon.violet { background: var(--violet-50); color: var(--violet-600); }
.stat-icon.green { background: var(--green-50); color: var(--green-600); }
.stat-label { font-size: .82rem; color: var(--ink-500); font-weight: 550; }
.stat-value { font-size: 1.85rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.stat-sub { font-size: .8rem; color: var(--ink-500); margin-top: 2px; }
.stat-sub .warn { color: #b87400; font-weight: 600; }
.stat-sub .bad { color: var(--red-600); font-weight: 600; }

.today { display: grid; gap: 10px; }
.today-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fafbfc; border: 1px solid #eef1f5; }
.today-row .stat-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
.today-row .num { margin-left: auto; font-weight: 750; font-size: 1.25rem; }

.row-item { display: flex; align-items: center; gap: 12px; }
.row-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f3f7; color: var(--ink-500); flex: none; }
.row-main { min-width: 0; flex: 1; }
.row-main strong { display: block; color: var(--ink-900); }
.row-main small { color: var(--ink-500); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-thin { height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; margin-top: 6px; }
.progress-thin > span { display: block; height: 100%; border-radius: 99px; background: var(--red-600); }

.mv-type { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.mv-dot { width: 8px; height: 8px; border-radius: 50%; }
.mv-receipt { background: #2a78d6; } .mv-pick { background: #eb6834; } .mv-transfer { background: #7c8799; } .mv-adjust { background: #b8860b; }

.empty-state { text-align: center; color: var(--ink-500); padding: 28px 16px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--blue-50); color: var(--blue-600); }
.onboard { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color: #dbe6f3; border: 0; }
.onboard h2 { color: #fff; }
.onboard .step { display: flex; gap: 10px; align-items: center; color: #fff; }
.onboard .step span { width: 26px; height: 26px; border-radius: 50%; background: var(--amber-500); color: var(--navy-900); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.onboard a { color: var(--amber-400); }

/* grafiek */
.viz-root { --series-1: #2a78d6; --series-2: #eb6834; --grid: #eef1f5; --axis: #9ca3af; position: relative; }
.viz-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-700); }
.viz-legend span { display: inline-flex; align-items: center; gap: 8px; }
.viz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-legend b { font-weight: 700; color: var(--ink-900); }
.viz-svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz-svg text { font-family: inherit; font-size: 11px; fill: var(--ink-500); }
.viz-hit { fill: transparent; cursor: default; }
.viz-hit:hover { fill: rgba(37,99,201,.05); }
.viz-tip { position: absolute; pointer-events: none; background: var(--navy-900); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .8rem;
  box-shadow: 0 8px 24px rgba(8,23,38,.25); opacity: 0; transition: opacity .1s; white-space: nowrap; transform: translate(-50%, -100%); }
.viz-tip.show { opacity: 1; }
.viz-tip .t { font-weight: 650; margin-bottom: 4px; }
.viz-tip .r { display: flex; align-items: center; gap: 8px; }
.viz-tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.viz-table summary { font-size: .8rem; color: var(--ink-500); cursor: pointer; }

/* ---------- login ---------- */
.app-public { background: #fff; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 10% 10%, #1f4c7e 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #cfdcec; display: flex; align-items: center; }
.login-hero-inner { position: relative; z-index: 1; padding: 56px; max-width: 560px; }
.login-hero h2 { color: #fff; font-weight: 750; font-size: 2.3rem; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 28px; }
.login-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.02rem; }
.login-points i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--amber-400); display: inline-grid; place-items: center; margin-right: 12px; }
.login-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(160deg, #000 20%, transparent 75%); }
.login-form-side { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 400px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.input-icon > .form-control { padding-left: 42px; }
@media (max-width: 991.98px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; } }

/* ---------- picken op gsm ---------- */
.pick-card { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.pick-card::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--amber-400), var(--amber-500)); }
.pick-loc { font-size: 2.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--navy-900); }
.pick-qty { font-size: 2.6rem; font-weight: 800; line-height: 1.05; color: var(--blue-600); }
/* scanvenster */
.scan-view { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 14px; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 7%; right: 7%; top: 28%; bottom: 28%; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.42); border: 2px solid rgba(255,255,255,.9); }
.scan-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff3b30; box-shadow: 0 0 8px #ff3b30;
  animation: scanline 1.6s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-28px); opacity: .6; } 50% { transform: translateY(28px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scan-laser { animation: none; } }
@media (max-width: 576px) {
  .btn-lg-mobile { padding: .65rem 1.2rem; font-size: 1.05rem; }
  input.form-control, select.form-select { font-size: 16px; }
  .page-head h1 { font-size: 1.35rem; }
}

/* ---------- labels: A4, 3 x 8 (70 x 37 mm) ---------- */
.label-sheet { display: flex; flex-wrap: wrap; gap: 0; }
.label { width: 70mm; height: 37mm; padding: 3mm 4mm; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden; border: 1px dashed #d0d5dd; background: #fff; text-align: center; }
.label svg { max-width: 100%; height: 14mm; }
.label-big { font-size: 13pt; font-weight: 800; color: #000; }
.label-loc .label-big { font-size: 20pt; }
.label-small { font-size: 8pt; color: #333; max-height: 2.4em; overflow: hidden; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .sidebar, .topbar, .bottom-nav, .noprint, .alert, .flash-stack { display: none !important; }
  .app-main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .label { border: none; }
  .label-sheet { width: 210mm; }
}
@media (max-width: 575.98px) {
  .stat { flex-direction: column; gap: 10px; padding: 14px; }
  .stat-value { font-size: 1.6rem; }
  .viz-svg text { font-size: 16px; }
}
