/* ==========================================================================================================
   V21.0.0 (07-11-2026, opdracht Jason 'E-FREIGHT FLOW V21 – Complete UI/UX-restyling – Alle pagina's'):
   CENTRAAL DESIGN SYSTEM van Flow. Wordt als LAATSTE stylesheet geladen (na app.css en theme-cd.css) en op de
   scannerpagina's (scanner, wegzetten, retouren, verplaatsen, /app, /wms-picken). Alleen uiterlijk: geen logica,
   geen rechten, geen API's. Leidraad = het nieuwe ontwerp van Picken & Packen (V20.86.56) en het goedgekeurde
   Flow-startscherm (/app).

   Indeling:
     1. Tokens (kleuren, typografie, hoeken, schaduwen, ruimte, breekpunten)
     2. Basis (achtergrond, tekst, koppen)
     3. Knoppen (ActionButton: primair oranje, secundair petrol omlijnd, rood voor verwijderen)
     4. Kaarten/panelen (OperationalCard) en vensters (Modal)
     5. Formulieren (SearchField, FilterBar)
     6. Tabellen (DataTable)
     7. Statusbadges en uitzonderingen (StatusBadge / AlertBadge)
     8. KPI-kaarten (KPI Card) — Cockpit, Taken, Medewerkers, Magazijn, …
     9. Voortgangsbalken (ProgressBar)
    10. Navigatie (zijbalk + bovenbalk) — het goedgekeurde beeld blijft, alleen strakker
    11. Lege/laad/foutstatus (EmptyState / LoadingState / ErrorState)
    12. Telefoon en handscanner (≤ 760 px)
   Nieuwe pagina? Gebruik de bestaande klassen (button.primary / .outline / .danger, .panel, table, .pill.ok|warn|bad,
   .f-badge, .f-kpi) — geen eigen kleuren per pagina.
   ========================================================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  --f-pt:#0f4c5c;          /* petrol: titels, voortgang, normaal/actief */
  --f-pt-2:#16687c;        /* petrol hover/licht */
  --f-pt-bg:#e8f1f3;       /* petrol vlak */
  --f-or:#e3820f;          /* E-Freight-oranje: primaire actie, actie vereist */
  --f-or-h:#cc7208;
  --f-or-bg:#fdf1df;       /* oranje vlak (actie vereist / waarschuwing) */
  --f-or-dk:#8a4b00;       /* donkeroranje tekst */
  --f-amber:#b7791f; --f-amber-bg:#fef6e4;
  --f-red:#c8372d; --f-red-bg:#fdecea; --f-red-dk:#a1271f;
  --f-ok:#1f8a4c; --f-ok-bg:#e6f4ec;
  --f-grey:#6b7883; --f-grey-bg:#eef2f4;
  --f-ink:#0e2433;         /* hoofdtekst */
  --f-muted:#5f6d78;       /* ondertekst */
  --f-line:#e3e9ed;        /* randen */
  --f-line-2:#eef2f4;      /* scheidingslijnen in tabellen */
  --f-bg:#f3f5f7;          /* achtergrond */
  --f-card:#ffffff;
  --f-r-s:8px; --f-r:12px; --f-r-l:16px;
  --f-sh:0 1px 2px rgba(16,38,59,.05),0 4px 14px rgba(16,38,59,.05);
  --f-sh-h:0 2px 4px rgba(16,38,59,.06),0 10px 24px rgba(16,38,59,.08);
  --f-gap:14px;
  --f-fs:13.5px; --f-fs-s:12px; --f-fs-h1:28px; --f-fs-h2:18px;
  --f-font:"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
  /* breekpunten (alleen ter documentatie; media queries gebruiken dezelfde waarden): scanner ≤ 760, tablet ≤ 1100, laptop ≤ 1440 */
  /* oude namen laten wijzen naar de nieuwe tokens, zodat bestaande pagina's dezelfde kleuren krijgen */
  --cd-accent:var(--f-or); --cd-accent-hover:var(--f-or-h); --dz-orange:var(--f-or); --dz-orange-hover:var(--f-or-h);
  --pp-pt:var(--f-pt); --pp-or:var(--f-or); --pp-orbg:var(--f-or-bg); --pp-ordk:var(--f-or-dk); --pp-red:var(--f-red); --pp-redbg:var(--f-red-bg); --pp-ok:var(--f-ok); --pp-okbg:var(--f-ok-bg);
}

/* ---------- 2. Basis ---------- */
html body{background:var(--f-bg)!important;color:var(--f-ink);font-family:var(--f-font)!important;font-size:var(--f-fs)}
html body main{background:transparent}
html body .page>h1,html body section.page>h1,html body .oo-head h3,html body .pagehead h1,html body .page-head h1,html body .df-head h1,html body h1.page-title{font-size:var(--f-fs-h1)!important;font-weight:700!important;color:var(--f-ink)!important;letter-spacing:-.01em;line-height:1.15}
html body .page>p.sub,html body .page .subtitle,html body .pagehead p{color:var(--f-muted)!important}
html body h2,html body .panel h2,html body .panel h3{color:var(--f-ink)!important}
html body .muted,html body small.muted{color:var(--f-muted)}
html body a{color:var(--f-pt)}
html body ::selection{background:#fbe2c0}

/* ---------- 3. Knoppen (ActionButton) ---------- */
/* primair = oranje met witte tekst (Nieuwe taak, Start picken, Telling starten, Opslaan/Bevestigen) */
html body .primary,html body button.primary,html body .btn.primary,html body .tbtn.primary,html body a.primary{
  background:var(--f-or)!important;border:1px solid var(--f-or)!important;color:#fff!important;font-weight:600!important;
  border-radius:10px!important;box-shadow:0 2px 6px rgba(227,130,15,.25)!important;transition:background .12s,box-shadow .12s}
html body .primary:hover,html body button.primary:hover,html body .btn.primary:hover{background:var(--f-or-h)!important;border-color:var(--f-or-h)!important;box-shadow:0 3px 10px rgba(227,130,15,.32)!important}
html body .primary svg,html body button.primary svg{stroke:currentColor}
/* secundair = wit met petrolrand en -tekst */
html body .outline,html body button.outline,html body .btn.outline,html body .clear{
  background:#fff!important;border:1px solid #c9d7dc!important;color:var(--f-pt)!important;font-weight:600!important;border-radius:10px!important;box-shadow:none!important}
html body .outline:hover,html body button.outline:hover,html body .btn.outline:hover,html body .clear:hover{background:#f2f7f8!important;border-color:var(--f-pt)!important}
html body .outline.active,html body button.outline.active,html body .outline.on{background:var(--f-pt)!important;border-color:var(--f-pt)!important;color:#fff!important}
/* rood = verwijderen/annuleren met bestaande bevestiging */
html body .danger,html body button.danger,html body .btn.danger{background:#fff!important;border:1px solid #efc2bd!important;color:var(--f-red)!important;font-weight:600!important;border-radius:10px!important}
html body .danger:hover,html body button.danger:hover{background:var(--f-red-bg)!important;border-color:var(--f-red)!important}
html body button.danger.solid,html body .danger.primary{background:var(--f-red)!important;color:#fff!important;border-color:var(--f-red)!important}
html body button:disabled,html body .btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none!important}
html body button:focus-visible,html body a:focus-visible,html body input:focus-visible,html body select:focus-visible{outline:2px solid #f2b866;outline-offset:2px}
html body button.small,html body .btn.small,html body .btn.sm,html body button.sm{border-radius:8px!important}
html body .linkbtn,html body .btnlink,html body .lnk{color:var(--f-pt)!important;font-weight:600}

/* ---------- 4. Kaarten/panelen (OperationalCard) en vensters (Modal) ---------- */
html body .panel,html body .card:not(.mw-c):not(.tile),html body .br-card{
  background:var(--f-card);border:1px solid var(--f-line)!important;border-radius:var(--f-r-l)!important;box-shadow:var(--f-sh)!important}
html body .panel.flat,html body .panel.bare{box-shadow:none!important;border-color:transparent!important;background:transparent}
html body .panelhead h2,html body .panelhead h3,html body .panel>h2,html body .panel>h3{font-size:var(--f-fs-h2)!important;font-weight:700!important}
html body .modalbox{border-radius:var(--f-r-l)!important;border:1px solid var(--f-line);box-shadow:0 20px 60px rgba(14,36,51,.25)!important}
html body .modalhead{border-bottom:1px solid var(--f-line-2)!important}
html body .modalhead h2,html body .modalhead h3{font-size:19px!important;font-weight:700!important;color:var(--f-ink)!important}
html body .modalfoot{border-top:1px solid var(--f-line-2)!important;background:#fafbfc;border-radius:0 0 var(--f-r-l) var(--f-r-l)}

/* ---------- 5. Formulieren (SearchField / FilterBar) ---------- */
html body input[type=text],html body input[type=search],html body input[type=number],html body input[type=date],html body input[type=time],
html body input[type=email],html body input[type=password],html body input[type=tel],html body input:not([type]),html body select,html body textarea{
  border:1px solid #cfd9de!important;border-radius:10px!important;background:#fff!important;color:var(--f-ink)!important;font-family:inherit;font-size:13.5px;
  transition:border-color .12s,box-shadow .12s}
html body input[type=text],html body input[type=search],html body input[type=number],html body input[type=date],html body input[type=time],
html body input[type=email],html body input[type=password],html body input[type=tel],html body input:not([type]),html body select{min-height:36px}
html body input:focus,html body select:focus,html body textarea:focus{border-color:var(--f-pt)!important;box-shadow:0 0 0 3px rgba(15,76,92,.12)!important;outline:none}
html body input::placeholder,html body textarea::placeholder{color:#97a3ab}
html body label{color:var(--f-muted)}
html body input[type=checkbox],html body input[type=radio]{accent-color:var(--f-pt)}
/* gesegmenteerde keuzes / tabs (FilterBar) */
html body .seg,html body .segmented{background:var(--f-grey-bg);border-radius:10px;padding:3px;gap:3px}
html body .seg button,html body .segmented button{border-radius:8px!important;border:0!important;background:transparent!important;color:var(--f-muted)!important;font-weight:600}
html body .seg button.on,html body .seg button.active,html body .segmented button.on,html body .segmented button.active{background:#fff!important;color:var(--f-pt)!important;box-shadow:0 1px 3px rgba(16,38,59,.12)!important}

/* ---------- 6. Tabellen (DataTable) ---------- */
html body main table:not(.mw-t):not(.bt-tbl){border-collapse:separate;border-spacing:0}
html body main table:not(.bt-tbl) th{background:#f6f8f9!important;color:var(--f-muted)!important;font-size:12px!important;font-weight:600!important;
  text-transform:none!important;letter-spacing:0!important;border-bottom:1px solid var(--f-line)!important;border-top:0!important;white-space:nowrap}
html body main table:not(.bt-tbl) th:first-child{border-top-left-radius:10px}html body main table:not(.bt-tbl) th:last-child{border-top-right-radius:10px}
html body main table:not(.bt-tbl) td{border-bottom:1px solid var(--f-line-2)!important;color:var(--f-ink);vertical-align:middle}
html body main table:not(.bt-tbl) tbody tr:last-child td{border-bottom:0!important}
html body main table:not(.bt-tbl) tbody tr:hover td{background:#f9fbfc}
html body main td.num,html body main th.num,html body main .num{font-variant-numeric:tabular-nums}
html body main td.num,html body main th.num{text-align:right}

/* ---------- 7. Statusbadges en uitzonderingen (StatusBadge / AlertBadge) ----------
   Overal dezelfde betekenis:  normaal/actief = petrol · actie vereist = oranje · waarschuwing = amber · kritiek = rood · afgerond = groen · inactief = grijs */
html body .pill{border-radius:99px!important;font-weight:600;font-size:12px;padding:2px 9px;background:var(--f-grey-bg);color:#34495a;border:0}
html body .pill.ok,html body .pill.done,html body .pill.green,html body .badge.ok{background:var(--f-ok-bg)!important;color:var(--f-ok)!important}
html body .pill.warn,html body .pill.amber,html body .badge.warn{background:var(--f-amber-bg)!important;color:var(--f-amber)!important}
html body .pill.act,html body .pill.orange,html body .pill.action{background:var(--f-or-bg)!important;color:var(--f-or-dk)!important}
html body .pill.bad,html body .pill.red,html body .pill.danger,html body .badge.bad{background:var(--f-red-bg)!important;color:var(--f-red-dk)!important}
html body .pill.info,html body .pill.pt,html body .pill.active{background:var(--f-pt-bg)!important;color:var(--f-pt)!important}
html body .pill.off,html body .pill.grey,html body .pill.muted{background:var(--f-grey-bg)!important;color:var(--f-grey)!important}
/* gedeelde badge voor nieuwe schermen: <span class="f-badge act">⚠ 3 op te lossen</span> (button = klikbaar) */
.f-badge{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:3px 10px;font-size:12px;font-weight:600;line-height:1.3;border:0;white-space:nowrap;background:var(--f-grey-bg);color:#34495a;font-family:inherit}
button.f-badge{cursor:pointer}button.f-badge:hover{filter:brightness(.97)}
.f-badge.pt{background:var(--f-pt-bg);color:var(--f-pt)}.f-badge.act{background:var(--f-or-bg);color:var(--f-or-dk)}.f-badge.warn{background:var(--f-amber-bg);color:var(--f-amber)}
.f-badge.bad{background:var(--f-red-bg);color:var(--f-red-dk)}.f-badge.ok{background:var(--f-ok-bg);color:var(--f-ok)}.f-badge.off{background:var(--f-grey-bg);color:var(--f-grey)}
/* meldingen (msg/hint/waarschuwing) */
html body .msg.ok,html body .msg.success{background:var(--f-ok-bg)!important;color:var(--f-ok)!important;border-color:#bfe3cd!important}
html body .msg.bad,html body .msg.error{background:var(--f-red-bg)!important;color:var(--f-red-dk)!important;border-color:#f0c4bf!important}
html body .warn-box,html body .cc-warn,html body .notice.warn{background:var(--f-or-bg)!important;color:var(--f-or-dk)!important;border-color:#f3d2a1!important;border-radius:10px}

/* ---------- 8. KPI-kaarten (KPI Card): klein pictogram, duidelijk getal, korte omschrijving ---------- */
html body .df-kpi.dash,html body .kpi2,html body .tile,html body .mini{
  background:var(--f-card)!important;border:1px solid var(--f-line)!important;border-radius:14px!important;box-shadow:var(--f-sh)!important;transition:box-shadow .15s,transform .15s}
html body .df-kpi.dash:hover,html body .kpi2:hover,html body button.tile:hover{box-shadow:var(--f-sh-h)!important}
html body .df-kpi.dash .df-num,html body .kpi2 .kpi2-num,html body .df-kpi.dash b.n{color:var(--f-ink)!important;font-weight:700!important;font-variant-numeric:tabular-nums}
html body .kpi2-label,html body .df-kpi.dash .df-lbl{color:var(--f-muted)!important;font-weight:600!important}
/* één indeling voor alle KPI-kaarten: pictogram links (40 px), label boven het getal, toelichting eronder over de volle breedte */
html body .df-kpi.dash,html body .kpi2{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:"ic lb" "ic nm" "ft ft" "sb sb"!important; /* V21.1.1: !important — oudere paginaregels (theme-cd.css) gebruikten andere vaknamen (lab/num, lg/sb) waardoor alles over elkaar viel */
  column-gap:12px!important;row-gap:0!important;align-items:center!important;align-content:start!important;padding:12px 14px!important;text-align:left!important;min-height:0!important;height:auto!important;position:relative}
html body .df-kpi.dash>.df-ic,html body .kpi2 .kpi2-ico{grid-area:ic!important;position:static!important;margin:0!important;width:40px!important;height:40px!important;padding:9px!important;box-sizing:border-box!important;
  border-radius:11px!important;background:var(--f-pt-bg)!important;color:var(--f-pt)!important;box-shadow:none!important;display:grid!important;place-items:center;align-self:center}
html body .df-kpi.dash>.df-ic svg{width:20px!important;height:20px!important}
html body .df-kpi.dash>.df-ic svg *,html body .kpi2 .kpi2-ico *{stroke:currentColor!important}html body .kpi2 .kpi2-ico [fill="currentColor"]{fill:currentColor!important}
html body .df-kpi.dash>span{grid-area:lb!important;align-self:end;font-size:12.5px!important;font-weight:600!important;color:var(--f-muted)!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .df-kpi.dash>b{grid-area:nm!important;align-self:start;font-size:26px!important;line-height:1.1!important;margin:0!important}
html body .df-kpi.dash>small{grid-area:ft!important;margin:8px 0 0!important;font-size:12px!important;color:var(--f-muted)!important}
html body .df-kpi.dash>.df-go{display:none!important}
html body .kpi2 .kpi2-top{display:contents!important}
html body .kpi2 .kpi2-label{grid-area:lb!important;align-self:end;font-size:12.5px!important;color:var(--f-muted)!important;margin:0!important}
html body .kpi2 .kpi2-num{grid-area:nm!important;align-self:start;font-size:26px!important;line-height:1.1!important;margin:0!important}
html body .kpi2 .kpi2-foot{grid-area:ft!important;margin:8px 0 0!important;font-size:12px!important;color:var(--f-muted)!important}
/* kleuraccent per betekenis (oude kleurnamen c-…/kpi2--… blijven werken) */
html body .df-kpi.dash.c-orange>.df-ic,html body .df-kpi.dash.c-amber>.df-ic,html body .kpi2--orange .kpi2-ico,html body .kpi2--brand .kpi2-ico{background:var(--f-or-bg)!important;color:var(--f-or)!important}
html body .df-kpi.dash.c-green>.df-ic,html body .kpi2--green .kpi2-ico{background:var(--f-ok-bg)!important;color:var(--f-ok)!important}
html body .df-kpi.dash.c-red>.df-ic,html body .kpi2--red .kpi2-ico{background:var(--f-red-bg)!important;color:var(--f-red)!important}
html body .df-kpi.dash.c-slate>.df-ic,html body .kpi2--slate .kpi2-ico,html body .kpi2--grey .kpi2-ico{background:var(--f-grey-bg)!important;color:var(--f-grey)!important}
html body .df-kpis,html body .kpi2-row{gap:12px!important}
/* hogere specificiteit: oudere rijen (.kpi2-row, Magazijn) gebruiken flex met eigen icoonblok */
html body .kpi2-row .kpi2,html body #warehouseTotals .kpi2{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:"ic lb" "ic nm" "ft ft";column-gap:12px!important;align-items:center!important;padding:12px 14px!important;text-align:left!important}
html body .kpi2-row .kpi2 .kpi2-ico,html body #warehouseTotals .kpi2 .kpi2-ico{display:grid!important;grid-area:ic!important;order:0!important;width:40px!important;height:40px!important;padding:9px!important;border-radius:11px!important;background:var(--f-pt-bg)!important;color:var(--f-pt)!important;box-shadow:none!important}
html body .kpi2-row .kpi2 .kpi2-ico *,html body #warehouseTotals .kpi2 .kpi2-ico *{stroke:currentColor!important}
html body .kpi2-row .kpi2-num,html body #warehouseTotals .kpi2-num{font-size:26px!important}
html body .kpi2-row .kpi2--orange .kpi2-ico,html body .kpi2-row .kpi2--brand .kpi2-ico,html body #warehouseTotals .kpi2--orange .kpi2-ico,html body #warehouseTotals .kpi2--brand .kpi2-ico{background:var(--f-or-bg)!important;color:var(--f-or)!important}
html body .kpi2-row .kpi2--red .kpi2-ico,html body #warehouseTotals .kpi2--red .kpi2-ico{background:var(--f-red-bg)!important;color:var(--f-red)!important}
html body .kpi2-row .kpi2--green .kpi2-ico,html body #warehouseTotals .kpi2--green .kpi2-ico{background:var(--f-ok-bg)!important;color:var(--f-ok)!important}
/* deeltellingen in een KPI (Te gaan, Inbound): onder de toelichting i.p.v. eroverheen */
html body .df-kpi.dash .df-sub2{position:static!important;display:flex!important;flex-wrap:wrap;gap:4px;margin:6px 0 0!important;transform:none!important}
html body .df-kpi.dash .df-subk{background:var(--f-grey-bg)!important;color:#34495a!important;border-radius:99px!important;padding:1px 8px!important;font-size:11.5px!important;border:0!important}
html body .df-kpi.dash .df-subk.df-in-done{background:var(--f-ok-bg)!important;color:var(--f-ok)!important}
/* Taken-tegels (t2k): wit, rustig pictogram per betekenis, actief = petrol rand, probleem = rode streep */
html body .t2k{background:#fff!important;border:1px solid var(--f-line)!important;border-radius:14px!important;box-shadow:var(--f-sh)!important}
html body .t2k .t2k-ic{background:var(--f-pt-bg)!important;color:var(--f-pt)!important;box-shadow:none!important;border-radius:11px!important}
html body .t2k .t2k-ic svg,html body .t2k .t2k-ic svg *{stroke:currentColor!important}
html body .t2k.t2-amber .t2k-ic,html body .t2k.t2-brown .t2k-ic{background:var(--f-or-bg)!important;color:var(--f-or)!important}
html body .t2k.t2-red .t2k-ic{background:var(--f-red-bg)!important;color:var(--f-red)!important}
html body .t2k.t2-green .t2k-ic{background:var(--f-ok-bg)!important;color:var(--f-ok)!important}
html body .t2k.is-active{border-color:var(--f-pt)!important;box-shadow:0 0 0 2px rgba(15,76,92,.15),var(--f-sh)!important;background:#fff!important}
html body .t2k.is-alert{box-shadow:inset 3px 0 0 var(--f-red),var(--f-sh)!important}
html body .t2k .t2k-n b{color:var(--f-ink)!important}html body .t2k small{color:var(--f-muted)!important}
/* Te laat > 0 = rood accent i.p.v. rood vlak */
html body .df-kpi.dash.bad,html body .df-kpi.dash.late-on{box-shadow:inset 3px 0 0 var(--f-red),var(--f-sh)!important}
html body .df-kpi.dash.bad .df-ic{background:var(--f-red-bg)!important;color:var(--f-red)!important}
/* algemene KPI-kaart voor nieuwe schermen */
.f-kpi{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--f-line);border-radius:14px;padding:12px 14px;box-shadow:var(--f-sh);min-width:0}
.f-kpi .f-ki{flex:none;width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:var(--f-pt-bg);color:var(--f-pt)}
.f-kpi b{display:block;font-size:24px;line-height:1.1;font-weight:700;color:var(--f-ink)}.f-kpi small{display:block;color:var(--f-muted);font-size:12.5px}
.f-kpi.act{border-color:#f1cf9f;background:linear-gradient(180deg,#fff,#fffaf2)}.f-kpi.act .f-ki{background:var(--f-or-bg);color:var(--f-or)}
.f-kpi.bad .f-ki{background:var(--f-red-bg);color:var(--f-red)}.f-kpi.ok .f-ki{background:var(--f-ok-bg);color:var(--f-ok)}

/* ---------- 9. Voortgangsbalken (ProgressBar) ---------- */
html body .bar,html body .progress,html body .df-bar,html body .pbar{background:#e8eef1!important;border-radius:99px!important;overflow:hidden}
html body .bar>i,html body .bar>span,html body .progress>i,html body .progress>span,html body .df-bar>i,html body .pbar>i{background:var(--f-pt)!important;border-radius:99px!important}
html body .bar.ok>i,html body .progress.ok>i{background:var(--f-ok)!important}
html body .bar.warn>i,html body .progress.warn>i{background:var(--f-or)!important}
html body .bar.bad>i,html body .progress.bad>i{background:var(--f-red)!important}
.f-bar{height:7px;border-radius:99px;background:#e8eef1;overflow:hidden}.f-bar>i{display:block;height:100%;background:var(--f-pt);border-radius:99px}

/* ---------- 10. Navigatie ---------- */
html body aside nav button.active,html body aside nav button[aria-current="page"]{background:var(--f-pt-bg)!important;color:var(--f-pt)!important;font-weight:700!important;box-shadow:inset 3px 0 0 var(--f-or)}
html body aside nav button:hover:not(.active){background:#f2f6f7!important}
html body .nav-grouphead,html body .nav-favhead{color:var(--f-pt)!important}
html body #flowUserBar{background:rgba(255,255,255,.92);backdrop-filter:saturate(1.2) blur(6px);border-bottom:1px solid var(--f-line)}
html body #flowUserBar .lang-toggle button.on,html body .lang-toggle button.active{background:var(--f-pt)!important;color:#fff!important}
/* tabbladen als pillen: geselecteerd = petrol */
html body .tabs button.active,html body .tabs button.on,html body .tab.active{color:var(--f-pt)!important}

/* ---------- 11. Leeg / laden / fout ---------- */
html body .empty,html body .emptystate,html body p.empty{color:var(--f-muted);text-align:center;padding:22px 12px}
.f-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 14px;color:var(--f-muted);text-align:center}
.f-empty b{color:var(--f-ink);font-size:15px}
.f-load{display:inline-block;width:18px;height:18px;border:2px solid #d5e0e4;border-top-color:var(--f-pt);border-radius:50%;animation:f-spin .8s linear infinite;vertical-align:middle}
@keyframes f-spin{to{transform:rotate(360deg)}}
.f-err{background:var(--f-red-bg);color:var(--f-red-dk);border:1px solid #f0c4bf;border-radius:10px;padding:10px 12px}

/* ---------- 12. Telefoon en handscanner ---------- */
@media(max-width:760px){
  html body{font-size:14px}
  html body .page>h1,html body section.page>h1,html body .df-head h1{font-size:22px!important}
  html body button.primary,html body button.outline,html body .btn{min-height:40px}
  html body input[type=text],html body input[type=search],html body input[type=number],html body input:not([type]),html body select{min-height:42px;font-size:16px}
  html body .panel,html body .card:not(.mw-c){border-radius:14px!important}
  html body .df-kpi.dash,html body .kpi2{border-radius:12px!important}
  html body main{overflow-x:hidden}
  html body main h1,html body .oo-head h3{font-size:22px!important;line-height:1.2!important}
  /* KPI's twee naast elkaar, compacter (scanner/telefoon: minder scrollen) */
  html body .df-kpis,html body .kpi2-row,html body #warehouseTotals{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body .df-kpi.dash,html body .kpi2,html body .kpi2-row .kpi2,html body #warehouseTotals .kpi2{grid-template-columns:32px minmax(0,1fr)!important;column-gap:9px!important;padding:10px 11px!important}
  html body .df-kpi.dash>.df-ic,html body .kpi2 .kpi2-ico,html body .kpi2-row .kpi2 .kpi2-ico,html body #warehouseTotals .kpi2 .kpi2-ico{width:32px!important;height:32px!important;padding:7px!important;border-radius:9px!important}
  html body .df-kpi.dash>b,html body .kpi2 .kpi2-num,html body .kpi2-row .kpi2-num,html body #warehouseTotals .kpi2-num{font-size:22px!important}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- 13. Tabbladen als tegels (Medewerkers e.d.): wit, rustig petrol pictogram, gekozen = petrol rand ---------- */
html body #employees .tabs button{background:#fff!important;border:1px solid var(--f-line)!important;box-shadow:var(--f-sh)!important;color:var(--f-ink)!important;background-image:none!important}
html body #employees .tabs button:hover{border-color:#c9d7dc!important}
html body #employees .tabs button .tab-ico,html body #employees .tabs button svg.tab-ico,html body #employees .tabs button.active .tab-ico{background:var(--f-pt-bg)!important;color:var(--f-pt)!important;stroke:var(--f-pt)!important;box-shadow:none!important}
html body #employees .tabs button.active{border-color:var(--f-pt)!important;box-shadow:0 0 0 2px rgba(15,76,92,.15),var(--f-sh)!important;color:var(--f-pt)!important}
html body #employees .tabs button.active .tab-ico{background:var(--f-pt)!important;color:#fff!important;stroke:#fff!important}
html body .df-kpi.dash.df-split .df-sub2{position:static!important;grid-area:sb!important;flex-direction:row!important;align-items:center!important;max-width:none!important;margin-top:6px!important}
html body #employees .tabs button::before{display:none!important}
/* KPI zonder pictogram (Retourportaal, Toeslagen, RI&E): één kolom, geen lege ruimte links */
html body .df-kpi.dash:not(:has(>.df-ic)),html body .kpi2:not(:has(.kpi2-ico)),html body .kpi2-row .kpi2:not(:has(.kpi2-ico)){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"lb" "nm" "ft" "sb"!important}
html body .rie-kpis .kpi2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"lb" "nm" "ft"!important;padding:12px 14px!important;text-align:left!important}
html body .rie-kpis .kpi2 .kpi2-label{display:block!important}
html body .rie-kpis .kpi2 .kpi2-foot{position:static!important;background:none!important;padding:0!important;color:var(--f-muted)!important;justify-self:start}
html body .rie-kpis .kpi2--red{box-shadow:inset 3px 0 0 var(--f-red),var(--f-sh)!important}html body .rie-kpis .kpi2--orange{box-shadow:inset 3px 0 0 var(--f-or),var(--f-sh)!important}
html body .rie-kpis .kpi2 .kpi2-top{display:block!important;grid-area:lb!important;position:static!important;height:auto!important;overflow:visible!important}
html body .rie-kpis .kpi2 .kpi2-label{grid-area:lb!important;visibility:visible!important;opacity:1!important;font-size:12.5px!important;color:var(--f-muted)!important;font-weight:600!important}
html body .rie-kpis .kpi2 .kpi2-foot{white-space:normal!important;overflow:visible!important;max-width:none!important}
/* oude regels zetten kpi2-label absoluut en kpi2-top op hoogte 0: in het centrale ontwerp gewoon in de rij boven het getal */
html body .kpi2 .kpi2-label{position:static!important;max-width:none!important;bottom:auto!important;left:auto!important}
html body .kpi2 .kpi2-top{height:auto!important}

/* V21.1.1 (08-11-2026, melding Jason met schermafbeelding Werkcockpit 'staat niet goed'): de Cockpit-tegels (theme-cd.css V20.86.49) noemen hun vakken lab/num/sub,
   dit bestand plaatst label/getal/toelichting in lb/nm/ft; die vakken bestonden in de Cockpit dus niet en alles viel over elkaar. Vakken hier gelijkgetrokken. */
html body #ckDayFlow .df-kpis .df-kpi.dash{grid-template-areas:"ic lb" "ic nm" "ft ft" "sb sb"!important}
/* V21.1.1 (08-11-2026): B2B Inbound — lostijd bij de container en knop Loslijst */
html body .ib-lt{display:inline-block;margin-left:10px;padding:1px 9px;border-radius:99px;background:var(--f-or-bg);color:var(--f-or-dk);font-size:12.5px;font-weight:700!important}
html body .ib-lt.none{background:var(--f-grey-bg);color:var(--f-muted);font-weight:600!important}
html body .ib-ul{margin-left:10px;padding:2px 10px!important;font-size:12px!important;vertical-align:middle}
html body .ib-dh .ib-ul{margin-left:auto}
/* V21.1.1 (08-11-2026, melding Jason met schermafbeelding Openstaande bestellingen 'hele layout is kapot'): zelfde oorzaak als de Cockpit.
   Tegels hier weer zoals V20.84.22: pictogram/logo links, naam + toelichting in het midden, getal rechts; logo telt als pictogram. */
html body .df-kpi.dash>.oo-logo{grid-area:ic!important}
html body .oo-grid2 .oo-tile.oo2.df-kpi.dash,html body .oo-grid2 .oo-tile.oo2.df-kpi.dash:not(:has(>.df-ic)){grid-template-columns:34px minmax(0,1fr) auto!important;grid-template-areas:"ic lb nm" "ic ft nm"!important;align-items:center!important;column-gap:10px!important;row-gap:1px!important;padding:10px 12px!important}
html body .oo-grid2 .oo2>.df-ic,html body .oo-grid2 .oo2>.oo-logo{width:34px!important;min-width:34px!important;height:34px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;align-self:center!important}
html body .oo-grid2 .oo2>.df-ic{padding:8px!important}
html body .oo-grid2 .oo2>.oo-logo img,html body .oo-grid2 .oo2>.oo-logo svg{max-width:34px!important;max-height:24px!important;width:auto!important;height:auto!important}
html body .oo-grid2 .oo2>span{align-self:end!important;font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .oo-grid2 .oo2>b{align-self:center!important;text-align:right!important;font-size:22px!important;line-height:1!important;margin:0!important}
html body .oo-grid2 .oo2>small{align-self:start!important;margin:0!important;font-size:11.5px!important;line-height:1.3!important;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .oo-grid2 .oo2 .oo-ds{display:flex!important;flex-wrap:nowrap!important;gap:3px;overflow:hidden}
@media (max-width:760px){html body .oo-grid2 .oo-tile.oo2.df-kpi.dash,html body .oo-grid2 .oo-tile.oo2.df-kpi.dash:not(:has(>.df-ic)){grid-template-columns:30px minmax(0,1fr) auto!important}html body .oo-grid2 .oo2>.df-ic,html body .oo-grid2 .oo2>.oo-logo{width:30px!important;min-width:30px!important;height:30px!important}html body .oo-grid2 .oo2.rule .oo-ds{flex-wrap:wrap!important}html body .oo-grid2 .oo2.rule>small{white-space:normal!important}}
@media (max-width:760px){
  html body .oo-grid2 .oo-tile.oo2.rule.df-kpi.dash{grid-template-columns:64px minmax(0,1fr) auto!important}
  html body .oo-grid2 .oo2.rule>.oo-logo{width:64px!important;min-width:64px!important}
  html body .oo-grid2 .oo2.rule>.oo-logo img,html body .oo-grid2 .oo2.rule>.oo-logo svg{max-width:60px!important;max-height:22px!important}
  html body .oo .oo-head{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  html body .oo .oo-headbtns{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-left:0!important}
  html body .oo .oo-headbtns button{white-space:normal!important}
}
/* V21.1.2 (08-11-2026): venster 'wat ligt er op deze locatie' (public/whloc.js) */
html body #whLocModal .modalbox.wlc{max-width:760px;width:calc(100vw - 32px)}
html body .wlc-body{padding:0 20px 18px;max-height:70vh;overflow:auto}
html body .wlc-t{width:100%!important;min-width:0!important;border-collapse:collapse;table-layout:auto}
html body .wlc-t th:last-child,html body .wlc-t td:last-child{width:90px}
html body .wlc-t th,html body .wlc-t td{padding:8px 6px;border-bottom:1px solid var(--f-line,#e5e7eb);text-align:left;vertical-align:top}
html body .wlc-t td small{display:block;color:var(--f-muted,#6b7280);font-size:12px;margin-top:2px}
html body .wlc-t .n{text-align:right;white-space:nowrap}
html body .wlc-empty{padding:14px 0;color:var(--f-muted,#6b7280)}
html body .wlc-foot{font-size:12px;margin:10px 0 0}
html body .wlc-st{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--f-line,#e5e7eb)}
html body .wlc-st span{font-size:13px;color:var(--f-muted,#6b7280);margin-right:4px}
/* V21.1.3 (08-11-2026): locatielabels-venster + niet-bestaande vloerplek (Magazijn) */
html body .wll{max-width:640px}html body .wll-body{padding:0 20px 20px;display:grid;gap:12px}
html body .wll-row{display:flex;flex-wrap:wrap;gap:10px}html body .wll-row label,html body .wll-codes{display:grid;gap:4px;font-size:13px;color:var(--f-muted,#5b6670)}
html body .wll-codes textarea{width:100%;font-family:Consolas,monospace}html body .wll-pv{margin:0;font-size:13px}html body .wll-pv .bad{color:var(--f-red,#c0392b)}
html body .wll-act{display:flex;gap:8px}
html body .loc-cell.gone{background:repeating-linear-gradient(45deg,#fff3e0,#fff3e0 6px,#ffe0b2 6px,#ffe0b2 12px)!important;border-color:#e3820f!important}
html body .loc-cell.gone small{color:#b35c00;font-weight:700}
html body .wlc-gone{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#fff3e0;color:#8a4600;font-size:13px}
/* V21.2.6 (10-11-2026, melding Jason B2B Outbound: 'Kan je dit aanpassen dat goed staat'): de regel 'x% gepickt' + balk in de groepstegels (Vandaag laden/picken/Later)
   is een <span> direct in de tegel en kreeg daardoor grid-area lb (.df-kpi.dash>span) = over het label heen. Eigen rij sb onder de toelichting, volle breedte. */
html body .df-kpi.dash>.cmr-gpk{grid-area:sb!important;align-self:stretch!important;display:block!important;width:100%!important;margin:10px 0 0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:13px!important;font-weight:400!important;color:var(--f-text,#1f2937)!important}
html body .df-kpi.dash>.cmr-gpk .cmr-gpk-top{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
html body .df-kpi.dash>.cmr-gpk .cmr-gpk-top em{font-style:normal;color:var(--f-muted)!important}
html body .df-kpi.dash>.cmr-gpk .cmr-gpk-p{font-weight:800!important;font-size:14px!important}html body .df-kpi.dash>.cmr-gpk .cmr-gpk-p.ok{color:var(--f-ok,#15803d)!important}html body .df-kpi.dash>.cmr-gpk .cmr-gpk-p.mid{color:var(--f-or,#c2570c)!important}html body .df-kpi.dash>.cmr-gpk .cmr-gpk-p.no{color:var(--f-bad,#b42318)!important}
/* V21.2.7 (10-11-2026): tegel 'Getekende CMR's uploaden' + uitkomstlijst */
html body .cmr-act-tile.scan .cmr-act-ico{background:#e6f2f4!important;color:var(--f-petrol,#0f4c5c)!important}
html body .cmr-scan-res{width:100%;border-collapse:collapse;margin-top:8px;font-size:13px}
html body .cmr-scan-res td,html body .cmr-scan-res th{padding:6px 8px;border-bottom:1px solid var(--f-line,#e5e7eb);text-align:left;vertical-align:top}
html body .cmr-scan-res .ok{color:var(--f-ok,#15803d)}html body .cmr-scan-res .bad{color:var(--f-bad,#b42318)}
/* V21.2.7: echte ontvanger uit de notitie */
html body .cmr-dest{display:block;margin-top:2px;font-weight:700;color:var(--f-petrol,#0f4c5c)}
/* V21.4.35 (18-11-2026): Cockpit-tegel Verwerkte retouren in paars (zelfde kleur als de kolom Retouren bij Per persoon) */
html body .df-kpi.dash.c-purple{--tone:#7a5bb5;--tone2:#5a3f8f;--tone-soft:#f0ebf8}
html body .df-kpi.dash.c-purple>.df-ic{background:#f0ebf8!important;color:#6b4ba8!important}

/* V21.4.36 (18-11-2026): Team-overzicht in de Cockpit (zoals het Team-scherm van ChannelDock) */
html body .df-people.tm .tm-wrap { overflow-x: auto; border: 1px solid var(--f-line, #e3e8ec); border-radius: 12px; background: #fff; }
html body .tm-t { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 980px; }
html body .tm-t th { text-align: left; font-weight: 700 !important; color: #5b6b75; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid #e3e8ec; white-space: nowrap; vertical-align: bottom; }
html body .tm-t th small, html body .tm-t td small { display: block; font-weight: 400 !important; color: #8a979f; font-size: 11px; }
html body .tm-t td { padding: 7px 10px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
html body .tm-t tfoot td { border-bottom: 0; background: #f7f9fa; }
html body .tm-t .num { text-align: right; white-space: nowrap; }
html body .tm-t .num b { font-weight: 700 !important; font-size: 14px; }
html body .tm-who { display: flex; align-items: center; gap: 8px; min-width: 170px; }
html body .tm-who .df-av { width: 28px; height: 28px; border-radius: 50%; background: #e8f0f2; color: #0f4c5c; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700 !important; flex: none; }
html body .tm-who em { font-style: normal; font-size: 10.5px; color: #b26b00; }
html body .tm-t .tm-tl { width: 34%; min-width: 260px; }
html body .tm-ticks { position: relative; display: block; height: 14px; }
html body .tm-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-weight: 400 !important; font-size: 10.5px; color: #8a979f; }
html body .tm-bar { position: relative; display: block; height: 16px; background: #f1f4f6; border-radius: 4px; overflow: hidden; }
html body .tm-bar .tm-blk { position: absolute; top: 0; bottom: 0; background: #dfe9ec; }
html body .tm-bar s { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; min-width: 2px; text-decoration: none; }
html body .tm-pick { background: #0f4c5c !important; } html body .tm-pack { background: #e3820f !important; } html body .tm-ship { background: #2e9e5b !important; }
html body .tm-stock { background: #c08a00 !important; } html body .tm-in { background: #3a7bd5 !important; } html body .tm-ret { background: #7a5bb5 !important; }
html body .tm-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* V21.4.42 (19-11-2026, verzoeken Jason B2B Inbound: 'per boeking zien of opslag of leveren is' + 'nog een beetje oranje van onze huisstijl'):
   bestemming per levering (Opslag petrol, Leveren oranje) en oranje accenten: dagkop, containerkop, knop Wegzetten. */
html body .ib-dest{display:inline-block;padding:2px 9px;border-radius:99px;font-size:12px;font-weight:700!important;white-space:nowrap;line-height:1.5}
html body .ib-dest.st{background:var(--f-pt-bg);color:var(--f-pt)}
html body .ib-dest.dl{background:var(--f-or-bg);color:var(--f-or-dk);box-shadow:inset 0 0 0 1px #f4c98f}
html body .ib-dest.mx{background:var(--f-amber-bg);color:var(--f-amber)}
html body .ib-day{border-top:3px solid var(--f-or)}
html body .ib-dh>b{border-left:4px solid var(--f-or);padding-left:9px}
html body .ib-table tr.ib-cgrp td{border-top:2px solid var(--f-or);box-shadow:inset 4px 0 0 var(--f-or)}
html body .ib-table tr.ib-cgrp.none td{border-top-color:#d6dde2;box-shadow:none}
html body .ib-ci{color:var(--f-or);font-weight:800!important}
html body .ib-table a.ib-go{border-color:var(--f-or)!important;color:var(--f-or-dk)!important;font-weight:700!important}
html body .ib-table a.ib-go:hover{background:var(--f-or)!important;color:#fff!important}
@media (max-width:760px){html body .ib-dest{font-size:11px;padding:1px 7px}}
