/* Jerrycans en bestellingen (js/jerrycans.js): Rapportage-pagina en klantportaal.
   Reekskleuren zoals de pdf: zeep blauw, spoelmiddel oranje (gekeurd op
   kleurenblindheid, ook in het donkere thema). Status altijd met een woord. */
:root {
    --jr-zeep: #2a78d6;
    --jr-spoel: #eb6834;
    --jr-zeep-licht: #a9c8ee;
    --jr-spoel-licht: #f6bfa6;
    --jr-normaal: #9aa0a6;
    --jr-rood: #b91c1c;
}
:root[data-theme="dark"] {
    --jr-zeep: #3987e5;
    --jr-spoel: #d95926;
    --jr-zeep-licht: #2b4a72;
    --jr-spoel-licht: #6b3a26;
    --jr-normaal: #8a9199;
    --jr-rood: #fca5a5;
}

.jr-soort { margin: 0 0 16px; }
.jr-paneel { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 100%; }
#rp-soort { justify-self: start; }
.jr-paneel[hidden] { display: none; }
.jr-balk { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; padding: 18px 24px; }
.jr-balk .rp-veld { margin: 0; min-width: 220px; }
.jr-balk .rp-keuze { margin: 0; }
.jr-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.jr-acties .rp-mail { margin: 0; }
.jr-acties .rp-status:empty { display: none; }
.jr-kop { margin: 0; color: var(--alp-text-secondary); font-size: 0.875rem; }
.jr-kop:empty { display: none; }

.jr-vlak { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jr-melding { margin: 0; padding: 24px 0; color: var(--alp-text-secondary); }
.jr-paneel .jr-blok {
    border: 1px solid var(--alp-outline);
    border-radius: var(--alp-radius-md);
    background: var(--alp-surface);
    box-shadow: var(--alp-shadow-sm);
    padding: 18px 22px;
}
.jr-blok { min-width: 0; }
.jr-blok h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--alp-text-primary); }
.jr-blok h3 small { margin-inline-start: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--alp-text-secondary); }
.jr-twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.jr-blok .jr-twee { gap: 12px 24px; }
@media (max-width: 900px) { .jr-twee { grid-template-columns: minmax(0, 1fr); } }

.jr-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .jr-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jr-tegel {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 14px 16px; border-radius: var(--alp-radius-md);
    background: var(--alp-surface); border: 1px solid var(--alp-outline);
}
.kp-jr .jr-tegel { background: var(--alp-surface-muted); border-color: transparent; }
.jr-tegel small { color: var(--alp-text-secondary); font-size: 0.8125rem; }
.jr-tegel b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.jr-tegel span { color: var(--alp-text-secondary); font-size: 0.8125rem; }

.jr-opvallend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jr-opvallend li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start; }
.jr-opvallend p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 560px) { .jr-opvallend li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .jr-opvallend .jr-chip { justify-self: start; } }

.jr-chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px; white-space: nowrap; text-align: center;
    font-size: 0.75rem; font-weight: 600;
    background: var(--alp-status-toekomst-bg); color: var(--alp-text-secondary);
}
.jr-chip.is-sneller { background: var(--alp-status-blokkade-bg); color: var(--alp-status-blokkade-tekst); }
.jr-chip.is-trager, .jr-chip.is-lang { background: var(--alp-status-aandacht-bg); color: var(--alp-status-aandacht-tekst); }
.jr-chip.is-normaal { background: var(--alp-status-klaar-bg); color: var(--alp-status-klaar-tekst); }

.jr-grafiek { width: 100%; overflow: hidden; }
.jr-svg { display: block; overflow: visible; font-family: var(--alp-font); }
.jr-raster { stroke: var(--alp-outline); stroke-width: 1; }
.jr-as { stroke: var(--alp-text-secondary); stroke-opacity: 0.5; stroke-width: 1; }
.jr-as-tekst { fill: var(--alp-text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.jr-waarde { fill: var(--alp-text-primary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jr-label { fill: var(--alp-text-primary); font-size: 12px; }
.jr-zacht { fill: var(--alp-text-secondary); }
.jr-plaat { paint-order: stroke; stroke: var(--alp-surface); stroke-width: 4px; stroke-linejoin: round; }
.jr-f-zeep { fill: var(--jr-zeep); background: var(--jr-zeep); }
.jr-f-spoel { fill: var(--jr-spoel); background: var(--jr-spoel); }
.jr-f-zeep.is-licht { fill: var(--jr-zeep-licht); }
.jr-f-spoel.is-licht { fill: var(--jr-spoel-licht); }
.jr-f-zeep-tekst { fill: var(--jr-zeep); }
.jr-f-spoel-tekst { fill: var(--jr-spoel); }
.jr-s-zeep { stroke: var(--jr-zeep); stroke-width: 1; }
.jr-s-spoel { stroke: var(--jr-spoel); stroke-width: 1; }
.jr-arc-bg { fill: var(--alp-surface); }
.jr-svg [data-tip] { cursor: default; }
.jr-svg rect[data-tip]:hover { opacity: 0.85; }
.jr-raak { fill: transparent; }
.jr-dumb { stroke: var(--jr-normaal); stroke-width: 2; }
.jr-normaal-punt { fill: var(--alp-surface); stroke: var(--jr-normaal); stroke-width: 2; }
.jr-ring { stroke: var(--alp-surface); stroke-width: 2; }
.jr-normaal-lijn { stroke: var(--alp-text-primary); stroke-width: 1; stroke-dasharray: 4 3; }
.jr-streep { stroke: var(--jr-rood); stroke-width: 1.2; }
.jr-streep-tekst { fill: var(--jr-rood); font-size: 11px; font-weight: 600; }

.jr-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--alp-text-secondary); font-size: 0.8125rem; }
.jr-legende i { display: inline-block; width: 11px; height: 8px; border-radius: 2px; margin-inline-end: 6px; vertical-align: 0; }
.jr-legende i.jr-arc-i { background: repeating-linear-gradient(45deg, var(--alp-text-secondary) 0 2px, transparent 2px 4px); border: 1px solid var(--alp-text-secondary); }
.jr-legende i.jr-normaal-i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--jr-normaal); vertical-align: -1px; }
.jr-uitleg { margin: 8px 0 0; color: var(--alp-text-secondary); font-size: 0.8125rem; line-height: 1.45; }
.jr-klein { margin: 0 0 4px; color: var(--alp-text-secondary); font-size: 0.8125rem; }
.jr-rood { color: var(--jr-rood); font-weight: 600; }

.jr-tabel-vak { width: 0; min-width: 100%; overflow-x: auto; }
.jr-tabel { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.jr-tabel.jr-breed { min-width: 820px; }
.jr-tabel th { padding: 6px 8px; border-bottom: 1px solid var(--alp-outline); color: var(--alp-text-secondary); font-weight: 600; text-align: start; white-space: nowrap; }
.jr-tabel td { padding: 7px 8px; border-bottom: 1px solid var(--alp-outline); white-space: nowrap; }
.jr-tabel .r { text-align: end; }
.jr-tabel tfoot td { font-weight: 700; border-bottom: 0; }
.jr-tabel tr.is-grijs td { color: var(--alp-text-secondary); }
.jr-tabel tbody tr:hover td { background: var(--alp-rij-hover); }
.jr-blokje { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 7px; vertical-align: 0; }

.jr-tip {
    position: fixed; z-index: 1000; max-width: 320px; padding: 6px 10px; border-radius: 8px; pointer-events: none;
    background: var(--alp-text-primary); color: var(--alp-surface); font-size: 0.8125rem; line-height: 1.35;
    box-shadow: var(--alp-shadow-md);
}
.jr-tip[hidden] { display: none; }

.kp-jr { margin-top: 24px; }
.kp-jr .jr-blok { padding: 4px 0 0; }

/* Knop Bestellen onder het bestelvoorstel (bestellingen.html) */
.jr-bestel-knop { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 10px; background: var(--alp-brand-primary); color: var(--alp-on-brand-primary); font-weight: 600; text-decoration: none; }
.jr-bestel-knop:hover { filter: brightness(1.08); }
.jr-bestel-knop:focus-visible { outline: 2px solid var(--alp-brand-primary); outline-offset: 2px; }
@media print { .jr-bestel { display: none; } }
