@font-face {
    font-family: Geist;
    src: url('/fonts/geist-variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
/* Arial metrics matched to Geist using representative Dutch interface text. */
@font-face {
    font-family: 'Geist Fallback';
    src: local('Arial');
    font-weight: 100 549;
    size-adjust: 102.475%;
    ascent-override: 98.561%;
    descent-override: 28.300%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Geist Fallback';
    src: local('Arial Bold');
    font-weight: 550 900;
    size-adjust: 101.084%;
    ascent-override: 99.916%;
    descent-override: 28.689%;
    line-gap-override: 0%;
}

:root {
    color-scheme: light;
    --background: #fafafa;
    --foreground: #202124;
    --card: #fff;
    --card-foreground: #202124;
    --primary: #3824a8;
    --primary-foreground: #fff;
    --secondary: #f0eef9;
    --secondary-foreground: #3824a8;
    --muted: #f4f4f5;
    --muted-foreground: #6d6e76;
    --border: #20212414;
    --input: #dcdce1;
    --ring: #7164c4;
    --sidebar: #fbfbfc;
    --accent: #f0eef9;
    --success: #23754c;
    --success-bg: #edf7f0;
    --warning: #94631d;
    --warning-bg: #faf3e7;
    --destructive: #b33e3e;
    --destructive-bg: #fbefef;
    --chart: #7866c0;
    --chart-muted: #a89bce;
    --radius: 10px;
    --shadow: 0 1px 2px #18181b06;
    --panel-shadow: 0 1px 2px #18181b03, 0 4px 16px #18181b03;
    --hover-shadow: 0 3px 6px #18181b05, 0 10px 24px #18181b08;
    --sidebar-width: 224px;
    --page-gutter: clamp(20px, 2.5vw, 40px);
    --page-padding: clamp(28px, 2.5vw, 40px);
    --section-gap: clamp(20px, 1.8vw, 28px);
    --panel-padding: clamp(20px, 1.7vw, 24px);
    --control-height: 38px;
    --ease: cubic-bezier(.2,.8,.2,1);
}
:root.dark {
    color-scheme: dark;
    --background: #151518;
    --foreground: #ededf0;
    --card: #1c1c20;
    --card-foreground: #ededf0;
    --primary: #bcaff4;
    --primary-foreground: #221b3b;
    --secondary: #302a41;
    --secondary-foreground: #c8bcf7;
    --muted: #252529;
    --muted-foreground: #aaaab4;
    --border: #ededf019;
    --input: #404047;
    --ring: #a191df;
    --sidebar: #19191d;
    --accent: #302a41;
    --success: #93d6ad;
    --success-bg: #203129;
    --warning: #e4c18b;
    --warning-bg: #352d21;
    --destructive: #f0aaaa;
    --destructive-bg: #392626;
    --chart: #bcaff4;
    --chart-muted: #8f83b4;
    --shadow: 0 1px 2px #0002;
    --panel-shadow: 0 1px 2px #0002, 0 4px 16px #0001;
    --hover-shadow: 0 3px 6px #0002, 0 10px 24px #0003;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 14px/1.5 Geist, 'Geist Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none!important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
a, button, input, select, textarea, [tabindex] { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ring); }
::selection { background: var(--secondary); color: var(--secondary-foreground); }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; stroke-width: 1.65; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--primary); color: var(--primary-foreground); border-radius: 6px; }
.skip-link:focus { top: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 32ch; font-size: clamp(24px, 1.5vw + 8px, 32px); font-weight: 560; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: 15px; font-weight: 560; letter-spacing: -.25px; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 550; }
p { color: var(--muted-foreground); line-height: 1.65; }
small { font-size: 12px; }
strong { font-weight: 550; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 24px 12px 16px; display: flex; flex-direction: column; overflow-y: auto; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 15px; font-weight: 620; letter-spacing: -.4px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.brand-mark .icon { width: 27px; height: 27px; }
.brand small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); }
.sidebar > .brand, .mobile-navigation > .brand { margin-bottom: 36px; }
.nav-label { padding: 0 12px; margin: 0 0 8px; font-size: 11px; font-weight: 500; color: var(--muted-foreground); }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 28px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 12px; border-radius: 6px; color: var(--muted-foreground); font-size: 13px; transition: color 140ms, background 140ms; }
.side-nav a:hover { color: var(--foreground); background: var(--muted); }
.side-nav a.active { color: var(--primary); background: var(--secondary); font-weight: 550; }
.side-nav a > small { margin-left: auto; min-width: 20px; text-align: center; font-size: 11px; }
.side-nav .icon { width: 17px; height: 17px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.account { display: flex; align-items: center; gap: 10px; padding: 16px 8px 0; border-top: 1px solid var(--border); }
.account > div { min-width: 0; }
.account strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.account small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-foreground); }
.account form { margin-left: auto; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted-foreground); font-size: 12px; font-weight: 500; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; margin-left: var(--sidebar-width); padding: 0 var(--page-gutter); display: flex; align-items: center; gap: 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.divider { height: 16px; border-left: 1px solid var(--border); }
.breadcrumb, .breadcrumb-root { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.breadcrumb { min-width: 0; }
.breadcrumb > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumb-root { color: var(--muted-foreground); flex-shrink: 0; }
.breadcrumb .icon { width: 12px; height: 12px; }
.top-right { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.theme-control { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted-foreground); }
.theme-control .icon { width: 15px; height: 15px; }
.theme-control select { width: 80px; min-height: 32px; height: 32px; padding: 4px; margin: 0; border-color: transparent; background: transparent; box-shadow: none; font-size: 12px; }
main { margin-left: var(--sidebar-width); padding: var(--page-padding) var(--page-gutter) 16px; min-height: calc(100svh - 60px); }
.sidebar-collapsed .sidebar { display: none; }
.sidebar-collapsed main, .sidebar-collapsed .topbar { margin-left: 0; }
.mobile-navigation { margin: 0; width: 280px; max-width: 90vw; height: 100dvh; max-height: 100dvh; padding: 28px 12px 20px; border: 0; border-right: 1px solid var(--border); background: var(--sidebar); color: var(--foreground); overflow-y: auto; opacity: 0; transform: translateX(-100%); transition: transform 200ms var(--ease), opacity 200ms var(--ease), display 200ms allow-discrete, overlay 200ms allow-discrete; }
.mobile-navigation[open] { display: flex; flex-direction: column; opacity: 1; transform: translateX(0); }
.mobile-navigation::backdrop { background: #14141b00; transition: background 200ms var(--ease), display 200ms allow-discrete, overlay 200ms allow-discrete; }
.mobile-navigation[open]::backdrop { background: #14141b66; }
@starting-style {
    .mobile-navigation[open] { opacity: 0; transform: translateX(-100%); }
    .mobile-navigation[open]::backdrop { background: #14141b00; }
}
.mobile-close { position: absolute; right: 8px; top: 8px; }

/* Common rhythm and controls */
.page-heading, .dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: var(--section-gap); margin-bottom: clamp(24px, 2vw, 32px); }
.page-heading > div:first-child, .dashboard-welcome > div:first-child { min-width: 0; }
.page-heading p, .dashboard-welcome p { max-width: 65ch; margin-top: 10px; font-size: 13px; line-height: 1.7; text-wrap: pretty; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .5px; color: var(--muted-foreground); margin-bottom: 8px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions form { display: flex; align-items: center; gap: 8px; }
.button, .quick-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 8px 14px; border: 1px solid var(--input); border-radius: 6px; background: var(--card); color: var(--foreground); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 100ms var(--ease); }
.button:hover, .quick-action:hover { background: var(--muted); border-color: color-mix(in srgb,var(--foreground) 25%,var(--border)); }
.button:active:not(:disabled), .quick-action:active { transform: translateY(1px); }
.button.primary, .quick-action.featured { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.button.primary:hover, .quick-action.featured:hover { background: color-mix(in srgb,var(--primary) 90%,var(--foreground)); }
.button.compact { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.button .icon, .quick-action .icon { width: 15px; height: 15px; }
.button[aria-busy="true"] { cursor: progress; opacity: .75; }
.button[aria-busy="true"]::before { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: pending-spin .65s linear infinite; }
@keyframes pending-spin { to { transform: rotate(360deg); } }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; flex-shrink: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); transition: background 140ms, color 140ms; }
.icon-button:hover { background: var(--muted); color: var(--foreground); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button[aria-label^="Verwijder"]:hover, .icon-button[aria-label="Foto verwijderen"]:hover { color: var(--destructive); background: var(--destructive-bg); }
.text-link, .text-button { font-size: 13px; font-weight: 500; text-underline-offset: 4px; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted-foreground); }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--card); color: var(--muted-foreground); font-size: 11px; font-weight: 450; line-height: 1.4; white-space: nowrap; }
.badge.neutral { background: var(--muted); color: var(--foreground); border-color: transparent; }
.badge.green { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge.orange { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--warning); }
.status-dot.online { background: var(--success); }
.muted { color: var(--muted-foreground); font-size: 12px; font-weight: 400; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; color: var(--foreground); font-weight: 500; }
.date-pill { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted-foreground); font-size: 12px; }
.date-pill .icon { width: 14px; height: 14px; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.quick-action strong { font-size: 12px; font-weight: 500; }
.overview-heading { margin-bottom: 12px; }
.overview-heading h2 { font-size: 13px; color: var(--muted-foreground); font-weight: 450; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: var(--section-gap); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stats, .panel { box-shadow: var(--panel-shadow); }
.stat { padding: var(--panel-padding); border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted-foreground); }
.stat-top .icon { width: 15px; height: 15px; opacity: .7; }
.stat-value { margin: 12px 0 6px; font-size: clamp(28px, 2vw, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-value.status-value { font-size: 24px; letter-spacing: -.5px; }
.stat > small { font-size: 12px; color: var(--muted-foreground); }
.panel { min-width: 0; margin-bottom: var(--section-gap); background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: var(--panel-padding); }
.panel-heading p { max-width: 65ch; margin-top: 6px; font-size: 12px; text-wrap: pretty; }
.panel-heading > .icon { color: var(--muted-foreground); width: 16px; height: 16px; }
.panel-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px var(--panel-padding); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.panel-foot a { color: var(--primary); }
.two-col, .dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--section-gap); align-items: start; }
.dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); margin-bottom: var(--section-gap); align-items: stretch; }
.two-col > .panel, .dashboard-grid > .panel { margin-bottom: 0; }
.two-col { margin-bottom: var(--section-gap); }
.form-body .two-col { margin-bottom: 0; }
.city-list { padding: 0 var(--panel-padding) 8px; }
.city-row { margin-bottom: 20px; }
.city-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.city-row strong { font-weight: 450; }
.city-row span { font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.city-row small { font-size: 11px; }
.track { height: 4px; background: var(--muted); border-radius: 4px; overflow: hidden; }
.track > div { height: 100%; background: var(--chart); border-radius: inherit; }
.platform-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--muted); border: 1px solid var(--border); border-radius: 6px; color: var(--muted-foreground); }
.platform-icon .icon { width: 16px; height: 16px; }

/* Tables and forms share the panel's content edge. */
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
th { padding: 11px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--sidebar); color: var(--muted-foreground); font-size: 12px; font-weight: 450; }
th.numeric { color: var(--muted-foreground); font-weight: 450; }
td { padding: 16px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); vertical-align: middle; }
th:first-child, td:first-child { padding-left: var(--panel-padding); }
th:last-child, td:last-child { padding-right: var(--panel-padding); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 140ms var(--ease); }
tbody tr:hover { background: color-mix(in srgb,var(--muted) 55%,var(--card)); }
td a { color: var(--foreground); font-weight: 500; }
td a:not(.button):not(.icon-button):hover { text-decoration: underline; text-underline-offset: 3px; }
.person { display: flex; align-items: center; gap: 12px; }
.person small, .cell-sub { display: block; margin-top: 4px; font-size: 11px; color: var(--muted-foreground); }
.table-name { color: var(--foreground); font-weight: 500; }
.form-body { padding: 0 var(--panel-padding) var(--panel-padding); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
label { display: block; margin: 0 0 20px; font-size: 12px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: var(--control-height); margin-top: 8px; padding: 8px 11px; border: 1px solid var(--input); border-radius: 6px; background: var(--card); color: var(--foreground); font-size: 13px; line-height: 20px; box-shadow: var(--shadow); transition: border-color 140ms, box-shadow 140ms; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb,var(--foreground) 30%,var(--input)); }
input:focus, select:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb,var(--ring) 12%,transparent); outline: 0; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: .8; }
input[readonly] { background: var(--muted); color: var(--muted-foreground); }
textarea { resize: vertical; line-height: 1.6; }
input[type="checkbox"] { display: inline-block; width: 15px; height: 15px; min-height: 15px; flex-shrink: 0; margin: 0; accent-color: var(--primary); box-shadow: none; }
input[type="file"] { padding: 5px; }
input::file-selector-button { margin-right: 12px; padding: 6px 10px; border: 0; border-radius: 3px; background: var(--muted); color: var(--foreground); font: inherit; cursor: pointer; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 13px; margin-bottom: 16px; }
.form-body > p { margin: 0 0 20px; font-size: 12px; }
.form-body > .button { margin-top: 4px; }
.filters { display: flex; align-items: center; gap: 10px; padding: 20px var(--panel-padding); flex-wrap: wrap; }
.filters > input { flex: 1; min-width: 180px; }
.filters > select { width: auto; max-width: 210px; }
.filters input, .filters select { margin: 0; }
.filters > a { color: var(--muted-foreground); font-size: 12px; padding: 8px; }
.filters > a:hover { color: var(--foreground); }
.filters > strong { margin-right: 8px; font-size: 13px; }
.access-stores { min-width: 0; padding: 16px; margin: 4px 0 0; border: 1px solid var(--border); border-radius: 6px; }
.access-stores legend { padding: 0 6px; font-size: 12px; font-weight: 500; }
.access-stores .muted { margin-bottom: 16px; }
.access-stores .check:last-child { margin-bottom: 0; }
.details { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,1.5fr); gap: 16px 24px; margin: 0; padding: 0 var(--panel-padding) var(--panel-padding); font-size: 13px; }
.details dt { color: var(--muted-foreground); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.notice { padding: 12px 16px; margin: 0 0 24px; border: 1px solid color-mix(in srgb,var(--warning) 20%,transparent); border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-size: 13px; }
.notice.success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb,var(--success) 20%,transparent); }
.notice.error { background: var(--destructive-bg); color: var(--destructive); border-color: color-mix(in srgb,var(--destructive) 20%,transparent); }
footer { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding: 20px 0 8px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 11px; }
.footer-right { margin-left: auto; }

/* Authentication */
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 4vw, 72px); background: var(--sidebar); border-right: 1px solid var(--border); }
.login-intro .brand { padding: 0; }
.login-story { max-width: 480px; margin: clamp(48px, 6vw, 96px) 0; }
.login-story h2 { max-width: 18ch; font-size: clamp(32px, 3vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; margin-bottom: 24px; text-wrap: balance; }
.login-story > p { font-size: 15px; line-height: 1.8; max-width: 360px; }
.login-features { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.login-features > span { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.login-features .icon { width: 16px; height: 16px; }
.login-intro > small { font-size: 11px; color: var(--muted-foreground); }
.login-content { position: relative; display: flex; align-items: center; justify-content: center; padding: 96px 32px; background: var(--card); }
.login-theme { position: absolute; right: 28px; top: 28px; }
.login-form { width: 352px; max-width: 100%; }
.login-form > .brand-mark { margin-bottom: 28px; }
.login-form h1 { font-size: 25px; }
.login-form > p { margin-top: 10px; font-size: 13px; }
.login-form form { margin: 28px 0 20px; }
.login-form .button { width: 100%; min-height: 40px; }
.login-form > small { color: var(--muted-foreground); font-size: 12px; }
.login-form .notice { margin-top: 20px; }
.login-copyright { position: absolute; bottom: 28px; color: var(--muted-foreground); font-size: 11px; }

@media (max-width: 1100px) {
    :root { --sidebar-width: 208px; }
    .date-pill { display: none; }
    .stat-top .icon { display: none; }
}
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stats:not(.three-stats) .stat:nth-child(2) { border-right: 0; }
    .stats:not(.three-stats) .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .two-col, .dashboard-grid { grid-template-columns: minmax(0,1fr); }
    .page-heading { align-items: flex-start; }
    .page-heading > .actions { justify-content: flex-end; }
}
@media (max-width: 760px) {
    :root { --page-gutter: 20px; --section-gap: 20px; --control-height: 40px; }
    .sidebar { display: none; }
    main, .topbar { margin-left: 0; }
    .topbar { height: 56px; gap: 12px; }
    .top-right { gap: 12px; }
    .page-heading, .dashboard-welcome { margin-bottom: 24px; }
    .page-heading p, .dashboard-welcome p { font-size: 13px; }
    input, select, textarea { font-size: 16px; }
    .theme-control select { font-size: 12px; }
    .quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .quick-action { justify-content: flex-start; padding: 10px; }
    .quick-action strong { font-size: 12px; }
    .login-page { grid-template-columns: minmax(0,1fr); }
    .login-intro { display: none; }
    .login-content { min-height: 100svh; padding: 96px 24px; }
}
@media (max-width: 480px) {
    :root { --page-gutter: 16px; --panel-padding: 16px; }
    .breadcrumb-root { display: none; }
    .breadcrumb { font-size: 12px; }
    .top-right { gap: 8px; }
    .theme-control { gap: 3px; }
    .theme-control select { width: 74px; }
    .page-heading { flex-direction: column; align-items: stretch; gap: 16px; }
    .page-heading > .actions { justify-content: flex-start; }
    .page-heading > .button { align-self: flex-start; }
    .form-grid { grid-template-columns: minmax(0,1fr); }
    .filters { gap: 10px; padding-top: 16px; padding-bottom: 16px; }
    .filters > input { flex-basis: 100%; }
    .filters > select { flex: 1; min-width: 150px; max-width: 100%; }
    .filters > strong { flex-basis: 100%; }
    .panel-heading { gap: 12px; }
    .panel-heading .button { flex-shrink: 0; }
    .stat-value { font-size: 28px; }
    .stat-value.status-value { font-size: 21px; overflow-wrap: anywhere; }
    .stat-top, .stat > small { font-size: 11px; }
    .details { gap: 16px; font-size: 12px; }
    .footer-right { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; }
}
@media print {
    .sidebar, .topbar, .quick-actions, .skip-link { display: none!important; }
    main { margin: 0; padding: 0; }
    .panel { break-inside: avoid; }
    .table-scroll { overflow: visible; }
}

.warehouse-selection { display: grid; gap: 16px; }
.warehouse-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px 24px; max-height: 320px; overflow-y: auto; padding: 4px; }
.warehouse-options .check { margin: 0; align-items: start; }
.article-search { flex: 1; max-width: 460px; }
.article-search input { width: 100%; }
[data-article-row][hidden], [data-article-empty][hidden] { display: none; }

.warehouse-table { min-width: 680px; }
.warehouse-table input { min-width: 180px; flex: 1; }
@media (max-width: 640px) {
    [data-article-selection] > .panel-heading, .price-program-panel > .panel-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
    [data-article-selection] > .filters { flex-direction: column; align-items: stretch; }
    [data-article-selection] .article-search { max-width: none; }
}

.address-fields { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.address-fields legend { font-size: 16px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.address-fields > .muted { margin: 0 0 16px; }
.address-fields .form-grid { gap: 20px; }
.address-fields .form-grid > label { margin: 0; }
.customer-prices th, .customer-prices td { padding-inline: 12px; }
.customer-prices .price-input { width: 104px; min-width: 104px; }
.customer-prices td:nth-child(3) { min-width: 180px; white-space: normal; }
