@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./letters/inter-latin-100-900.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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("./letters/inter-latin-ext-100-900.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  color-scheme: light;
  --canvas: #f2f3f6;
  --surface: #fcfcfd;
  --soft: #e9edf3;
  --line: #dce1e9;
  --edge: #c7d0dd;
  --ink: #181e2c;
  --secondary: #445167;
  --muted: #59667a;
  --accent: #1d5bd8;
  --action: #184fad;
  --accent-hover: #194cb4;
  --on-accent: #fff;
  --tint: #e5edfc;
  --chart-fill: #e5edfc;
  --up: #176945;
  --down: #a0322d;
  --hero: #182847;
  --hero-ink: #fcfdff;
  --hero-muted: #c4cfe2;
  --hero-line: #425473;
  --hero-link: #b7d0ff;
  --shell: min(1480px, 100% - clamp(40px, 7vw, 112px));
  font: 400 14px/1.5 Inter, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #161b25;
  --surface: #222a38;
  --soft: #2b3545;
  --line: #3a4558;
  --edge: #526078;
  --ink: #f2f5fa;
  --secondary: #c8d2e3;
  --muted: #aebbd0;
  --accent: #92b8ff;
  --action: #adc9ff;
  --accent-hover: #adc9ff;
  --on-accent: #0e2958;
  --tint: #293e61;
  --chart-fill: #293e61;
  --up: #95dfb7;
  --down: #ffb7ae;
  --hero: #253b60;
  --hero-line: #526b93;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
body:has(dialog[open]) { overflow: hidden; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
a { color: var(--action); }
button,input,select,textarea { font: inherit; }
button, select, input:not([type="checkbox"]):not([type="radio"]), .btn, .button, .actions a {
  min-height: 44px; min-width: 44px; max-width: 100%; border-radius: 8px;
}
button, .btn, .button, .actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--edge); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.35;
  text-decoration: none; text-align: center; cursor: pointer;
}
button:hover, .btn:hover, .button:hover, .actions a:hover { background: var(--soft); }
button:disabled { opacity: .62; cursor: default; }
button.primary, a.primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
button.primary:hover, a.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
input:not([type=file]), select, textarea {
  padding: 9px 12px; border: 1px solid var(--edge); background: var(--surface); color: var(--ink);
}
select { cursor: pointer; padding-right: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button svg, a svg, .tools svg, .source-line svg { width: 17px; height: 17px; flex: none; }
.icon-btn { padding: 0; width: 44px; min-height: 44px; }
.skip:where(:not(:focus)), .sr-only, .visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 6; inset: 8px auto auto 8px; padding: 12px; color: var(--ink); background: var(--surface); }
#demo-strip, #app-header { padding-inline: max(calc((100% - 1480px)/2), clamp(20px, 3.5vw, 56px)); }
#demo-strip, #demo-strip .wrap, #app-header, #app-header .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
}
#demo-strip .wrap, #app-header .wrap { width: 100%; }
#demo-strip { min-height: 44px; background: #162034; color: #e4eafa; font-size: 12px; }
#demo-strip a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: #eff5ff; text-underline-offset: 4px; }
#demo-strip a:hover { color: #c9dbff; }
#demo-strip :focus-visible { outline-color: #b6d2ff; }
#app-header { min-height: 76px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; line-height: 1.15; letter-spacing: -.06em; font-weight: 680; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tools, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tools label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tools select { font-size: 13px; font-weight: 560; }
#intro, #filters, #blocks, #app-footer { width: var(--shell); margin-inline: auto; }
#intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 36px 0 24px; }
.intro-main { min-width: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--action); }
h1 { margin: 3px 0 8px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.09; font-weight: 620; letter-spacing: -.065em; }
.source-line { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.source-line b, .source-line strong { color: var(--secondary); font-weight: 570; }
#filters {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; padding: 16px 0;
  margin-bottom: 20px; border-block: 1px solid var(--edge);
}
.filter-field { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.filter-field > span, .filter-field > label { font-size: 12px; color: var(--secondary); font-weight: 560; }
.filter-field select { width: 100%; min-width: 138px; font-size: 13px; font-weight: 560; }
.filter-field input { width: 100%; font-size: 13px; }
#blocks { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.card {
  display: flex; flex-direction: column; min-width: 0; grid-column: span 4;
  padding: 20px 24px 6px; border-radius: 12px; background: var(--surface);
  color: var(--ink); overflow-wrap: anywhere;
}
.card-omzet,.card-orders { grid-column: span 3; }
.card-week { grid-column: span 6; }
.card-klanten { grid-row: span 2; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.035em; line-height: 1.24; }
.card-head .icon-btn { margin: -10px -10px -10px 0; color: var(--muted); border: 0; background: transparent; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1 0 auto; min-width: 0; }
.metric-value { display: block; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.12; font-weight: 570; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.metric-label,.comparison,.calculation,.card small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.metric-label { display: block; }
.metric-row, .comparison { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.metric-row { color: var(--secondary); }
.comparison { border-top: 1px solid var(--line); padding-top: 6px; }
.comparison b, .comparison strong, .metric-row b, .metric-row strong { color: var(--ink); font-weight: 620; }
.comparison small { display: block; font-size: 11px; }
.comparison span:last-child { flex-shrink: 0; text-align: right; }
.positive,.comparison .up { color: var(--up); }
.negative,.comparison .down { color: var(--down); }
.order-average { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.secondary-number { display: block; font-size: clamp(24px,2vw,32px); letter-spacing: -.055em; line-height: 1.3; font-weight: 570; }
.card-omzet .metric-row,.card-levering .metric-row { margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.card-omzet {
  --ink: var(--hero-ink); --muted: var(--hero-muted); --secondary: var(--hero-muted);
  --line: var(--hero-line); --edge: var(--hero-line); --action: var(--hero-link); --soft: #334b70;
  --up: #a5e7c3; --down: #ffb7b4; color: var(--ink); background: var(--hero);
}
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; border-top: 1px solid var(--line); margin-top: 16px; }
.card-foot .calculation { flex-basis: 100%; padding-top: 10px; }
.card-foot button { background: transparent; border-color: transparent; font-size: 12px; color: var(--action); padding-inline: 2px; }
.card-foot button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body > svg:not(.bar), .card-body figure svg { display: block; width: 100%; max-width: 100%; height: auto; }
.card-body figure { margin: 0; }
.plot-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.plot-text { fill: var(--muted); font-family: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.plot-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.plot-fill { fill: var(--chart-fill); }
.plot-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 580; }
.rank-list, .bar-table { font-size: 13px; }
.rank-list tr + tr, .bar-table tr + tr { border-top: 1px solid var(--line); }
.rank-list td,.rank-list th,.bar-table th,.bar-table td { padding: 7px 0; vertical-align: middle; }
.rank-list td:last-child,.bar-table td:last-child { text-align: right; font-weight: 580; font-variant-numeric: tabular-nums; }
.rank-list th+td,.bar-table th+td { padding-left: 12px; }
.rank-list .rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar { display: block; width: 100%; height: 5px; margin: 5px 0 1px; background: var(--soft); overflow: hidden; border-radius: 1px; }
.bar rect { fill: var(--accent); }
.bar .bar-track { fill: var(--soft); }
.bar .bar-value,.age-bar { fill: var(--accent); }
.plot-number { fill: var(--ink); font: 570 13px Inter,"Segoe UI",sans-serif; font-variant-numeric: tabular-nums; }
.rank-no { display: inline-block; min-width: 26px; color: var(--muted); font-size: 11px; font-weight: 520; font-variant-numeric: tabular-nums; }
.customer-chart { display: flex; align-items: center; gap: clamp(10px,1.5vw,24px); margin-block: 4px; }
.ring-chart { display: block; width: clamp(84px,8vw,120px); max-width: 34%; height: auto; flex: none; }
.ring-track { stroke: var(--edge); }
.ring-value { stroke: var(--accent); }
.ring-total { font: 590 27px Inter,"Segoe UI",sans-serif; fill: var(--ink); letter-spacing: -1.5px; }
.customer-table { font-size: 13px; }
.customer-table tr+tr { border-top: 1px solid var(--line); }
.customer-table th,.customer-table td { padding-block: 8px; }
.customer-table th { color: var(--secondary); font-weight: 520; }
.customer-table td { padding-left: 4px; text-align: right; font-weight: 630; font-variant-numeric: tabular-nums; }
.key-fresh,.key-returning { display: inline-block; vertical-align: middle; width: 10px; height: 10px; margin: -1px 6px 0 0; background: var(--accent); }
.key-fresh { border-radius: 50%; }
.key-returning { background: var(--edge); }
.filter-range { display: inline-flex; align-items: center; align-self: center; gap: 7px; margin-left: auto; color: var(--secondary); font-weight: 520; font-size: 13px; }
.filter-range svg { width: 16px; height: 16px; flex: none; }
.source-line span { display: inline-flex; align-items: center; gap: 4px; }
.source-line span + span { border-left: 1px solid var(--edge); padding-left: 10px; }
.data-table { font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th,.data-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--secondary); }
.data-table thead th { background: var(--soft); font-size: 12px; }
.data-table caption { margin-block: 8px; text-align: left; font-weight: 600; }
.card.is-open { grid-column: 1 / -1; grid-row: auto; scroll-margin-top: 16px; }
.detail-panel {
  --ink: #182132; --muted: #56657a; --secondary: #45546a; --line: #dce1e9;
  --edge: #c7d0dd; --action: #184fad; --soft: #e9edf3; --surface: #fcfcfd;
  color: var(--ink); background: var(--surface); padding: 20px; margin: 0 -12px 8px;
  border: 1px solid var(--line); border-radius: 8px; min-width: 0;
}
:root[data-theme=dark] .detail-panel {
  --ink: #f2f5fa; --muted: #aebbd0; --secondary: #c8d2e3; --line: #3a4558;
  --edge: #526078; --action: #adc9ff; --soft: #2b3545; --surface: #222a38;
}
.detail-panel h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.035em; }
.detail-panel p { margin: 8px 0; color: var(--secondary); }
.detail-panel header,.pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.detail-choice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--secondary); font-size: 13px; }
.detail-table { overflow-x: auto; margin-top: 10px; }
.pagination { margin-top: 12px; }
.dialog-body { margin-top: 16px; }
#app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 24px 0 36px; color: var(--muted); font-size: 12px; }
#app-footer button { color: var(--secondary); }
dialog {
  width: min(760px, calc(100vw - 40px)); max-height: min(86dvh,840px); margin: auto; overflow-y: auto;
  border: 0; padding: 28px; border-radius: 14px; box-shadow: 0 24px 80px #0b132547;
  background: var(--surface); color: var(--ink); overflow-wrap: anywhere;
}
dialog::backdrop { background: rgb(15 23 40 / .6); }
dialog h2 { font-size: 26px; font-weight: 620; letter-spacing: -.05em; line-height: 1.12; }
dialog h3 { font-size: 16px; font-weight: 620; }
dialog p { margin-block: 8px; color: var(--secondary); }
dialog header, .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
dialog header .icon-btn, .dialog-head .icon-btn { flex: 0 0 44px; }
dialog label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 580; }
dialog input, dialog select, dialog textarea { max-width: 100%; }
dialog input[type=file] { display: block; width: 100%; padding: 8px; border: 1px dashed var(--edge); background: var(--soft); }
dialog input[type=file]::file-selector-button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 6px; color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; }
.file-label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; margin-block: 12px 6px; overflow: hidden; border: 1px dashed var(--accent); border-radius: 8px; background: var(--tint); color: var(--action); cursor: pointer; }
.file-label:hover { border-style: solid; }
.file-label:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.file-label input[type=file] { position: absolute; inset: 0; height: 100%; width: 100%; opacity: 0; padding: 0; cursor: pointer; }
.file-name { display: block; margin-block: 14px 4px; color: var(--action); font-size: 13px; font-weight: 550; }
.format-hint { font-size: 12px; }
.dialog-body #mapping:not(:empty) { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.mapping, .mapping-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block: 16px; }
dialog footer,.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.errors,[role=alert] { color: var(--down); }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 560; color: var(--action); }
#status { position: fixed; z-index: 4; right: 20px; bottom: 20px; max-width: min(420px,calc(100% - 32px)); border-radius: 8px; color: var(--on-accent); background: var(--accent); font-weight: 540; }
#status:not(:empty) { padding: 12px 18px; }
noscript { display: block; margin: 24px; }
.print-context { display: none; }
@media (max-width: 1150px) {
  .card { padding-inline: 18px; }
  .card-omzet,.card-orders { grid-column: span 3; }
  .metric-value { font-size: clamp(26px, 3.1vw,38px); }
}
@media (max-width: 960px) {
  #intro { align-items: flex-start; }
  #intro .actions { justify-content: flex-end; }
  .card { grid-column: span 6; }
  .card-week { grid-column: span 12; }
  .metric-value { font-size: 38px; }
}
@media screen and (min-width: 961px) {
  #app-header { min-height: 64px; }
  #intro { padding-block: 24px 16px; }
  h1 { font-size: clamp(33px,2.9vw,44px); }
  #filters { padding-block: 10px; margin-bottom: 14px; gap: 10px 16px; align-items: center; }
  #filters .filter-field { flex-direction: row; align-items: center; gap: 7px; }
  #filters .filter-field select { width: auto; min-width: 92px; }
  #filters .filter-field:has(input) { flex-direction: column; align-items: stretch; gap: 2px; }
  .card { padding: 16px 20px 2px; }
  .card-head { margin-bottom: 10px; }
  .card-body { gap: 5px; }
  .card-foot { margin-top: 12px; }
  #blocks:not(:has(.card-omzet)) .card { grid-column: span 4; }
  #blocks:not(:has(.card-omzet)) .card.is-open { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --shell: calc(100% - 32px); }
  #demo-strip, #app-header { padding-inline: 16px; }
  #demo-strip, #demo-strip .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 0 10px; }
  #demo-strip { padding-top: 9px; }
  #demo-strip a { min-height: 44px; }
  #app-header, #app-header .wrap { flex-wrap: wrap; gap: 10px; }
  #app-header { padding-block: 14px; }
  #app-header { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; }
  #app-header .brand { grid-column: 1 / -1; grid-row: 1; padding-right: 50px; }
  .tools { display: contents; }
  .tools label { grid-row: 2; gap: 3px; min-width: 0; flex-direction: column; align-items: stretch; }
  .tools label span { font-size: 12px; }
  .tools select { min-width: 0; width: 100%; }
  .tools #theme { grid-row: 1; grid-column: 2; justify-self: end; }
  #intro { flex-direction: column; gap: 14px; padding: 24px 0 16px; }
  #intro .actions { justify-content: flex-start; width: 100%; }
  h1 { font-size: 34px; }
  #filters { gap: 8px; margin-bottom: 12px; padding: 12px 0; }
  .filter-field { flex: 1 1 140px; }
  .filter-field select { min-width: 0; }
  .filter-range { margin-left: 0; flex: 1 1 140px; justify-content: flex-start; font-size: 12px; }
  .source-line { gap: 4px 10px; }
  .source-line span:first-child { flex-basis: 100%; }
  .source-line span:nth-child(2) { padding-left: 0; border-left: 0; }
  #blocks { display: flex; flex-direction: column; gap: 12px; }
  .card { padding: 18px 18px 4px; }
  .card-head { margin-bottom: 12px; }
  .metric-value { font-size: 38px; }
  .card-foot { margin-top: 12px; }
  .detail-panel { margin-inline: -10px; padding: 12px 8px; }
  .detail-panel .data-table:has(td[data-label]) thead {
    position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
  }
  .detail-panel .data-table:has(td[data-label]) tbody,
  .detail-panel .data-table:has(td[data-label]) tr { display: block; }
  .detail-panel .data-table:has(td[data-label]) tr { border-top: 1px solid var(--edge); padding-block: 8px; }
  .detail-panel .data-table td[data-label] {
    display: grid; grid-template-columns: minmax(90px,.85fr) minmax(0,1.15fr);
    gap: 8px; padding: 2px 0; border: 0; text-align: left;
  }
  .detail-panel .data-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .detail-panel .data-table th[scope=row] { display: block; padding: 2px 0 6px; border: 0; font-size: 14px; }
  #app-footer { align-items: flex-start; flex-direction: column; padding: 22px 0; }
  dialog { width: calc(100% - 20px); padding: 18px 16px; max-height: calc(100dvh - 20px); }
  .mapping,.mapping-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@page { size: A4 landscape; margin: 8mm; }
@media print {
  :root, :root[data-theme=dark] {
    color-scheme: light; --canvas: white; --surface: white; --soft: #edf0f4; --ink: #161c25;
    --muted: #425064; --secondary: #253246; --edge: #bcc4d1; --line: #cdd4df;
    --action: #174797; --accent: #2857a4; --chart-fill: #e6edf7; --hero: white;
    --hero-ink: #161c25; --hero-muted: #425064; --hero-line: #cdd4df; --hero-link:#174797;
    --shell: 100%; font-size: 8pt; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  html,body, main { margin: 0; padding: 0; width: 100%; background: white; }
  .skip,.sr-only,.visually-hidden,#demo-strip,#status,.tools,.actions,#app-footer,#filters,dialog,button,summary,details, noscript { display: none !important; }
  #app-header { float: right; width: 29%; display: flex; justify-content: flex-end; min-height: 0; padding: 1.5mm 0 0; border: 0; }
  .brand img { width: 7mm; height: 7mm; }
  .brand { gap: 2mm; }
  .brand strong { font-size: 11pt; }
  .brand small { font-size: 7pt; margin: 0; }
  #intro { display: block; width: 70%; margin: 0; padding: 0 0 2mm; }
  h1 { font-size: 18pt; margin: 0; }
  .eyebrow,.source-line { font-size: 7.5pt; }
  .print-context { display: block; margin-top: 1mm; color: var(--secondary); font-size: 7pt; }
  #blocks { clear: both; width: 100%; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1.5mm; }
  .card { grid-column: span 4; padding: 2mm; border: .25mm solid var(--line); border-radius: 2mm; break-inside: avoid; }
  .card.is-open { grid-column: span 4; }
  .card-omzet,.card-orders,.card-omzet.is-open,.card-orders.is-open { grid-column: span 3; }
  .card-week,.card-week.is-open { grid-column: span 6; }
  .card-klanten,.card-klanten.is-open { grid-row: span 2; }
  .detail-panel { display: none; }
  .card-omzet { --up:#176945; --down:#a0322d; }
  .card-head { margin: 0 0 1.5mm; min-height: 0; }
  .card-foot { margin-top: 1.5mm; }
  .card-foot .calculation { padding-top: 1mm; font-size: 6.6pt; line-height: 1.25; }
  .card-head h2 { font-size: 10pt; }
  .metric-value { font-size: 20pt; }
  .card-body { gap: .7mm; }
  .metric-label,.comparison,.calculation,.card small,.metric-row { font-size: 7pt; }
  .comparison { padding-top: .8mm; }
  .comparison small { font-size: 6.5pt; }
  .order-average { padding-top: 1mm; margin-top: 0; }
  .secondary-number { font-size: 13pt; }
  .card-omzet .metric-row,.card-levering .metric-row,.customer-table { font-size: 7.5pt; }
  .customer-table td,.customer-table th { padding-block: 1mm; }
  .ring-chart { width: 19mm; }
  .rank-no { min-width: 4mm; font-size: 6.5pt; }
  .card-body > svg:not(.bar),.card-body figure svg { max-height: 32mm; }
  .rank-list,.bar-table,.data-table { font-size: 7.5pt; }
  .rank-list td,.rank-list th,.bar-table td,.bar-table th,.data-table td,.data-table th { padding-block: .8mm; }
  .bar { height: .8mm; margin-block: .5mm; }
  .bar-table { table-layout: fixed; }
  .bar-table th { position: relative; width: 66%; padding-right: 15mm; }
  .bar-table th,.bar-table td { padding-block: .65mm; }
  .bar-table .bar { position: absolute; top: 50%; right: 1mm; width: 12mm; margin: 0; }
}
