/* Fulfillment > kostprijs per box (fulfillment-analyse.js). Alles onder #fulfillment-analyse-modal, kleuren alleen via de
   huisstijlvariabelen uit crm.css (navy, teal, neutraal, negatief), Poppins via de body. */
#fulfillment-analyse-modal .fa-venster { overflow-y: auto; min-height: 0; padding-right: .2rem; }

.fa-hero {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: .9rem;
  color: #fff; background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-700) 100%);
}
.fa-hero::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; background: var(--teal);
  border-radius: var(--blob); opacity: .9; transform: rotate(-14deg); pointer-events: none;
}
.fa-hero > * { position: relative; z-index: 1; max-width: 78ch; }
.fa-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); }
.fa-hero h2 { color: #fff; font-size: 1.45rem; margin: .35rem 0 .5rem; }
.fa-hero p { color: #dbe4ef; font-size: .92rem; line-height: 1.55; margin: 0; }
.fa-hero b { color: var(--teal-300); font-weight: 600; }

.fa-melding { display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .65rem .9rem; font-size: .84rem; color: var(--grey); margin-bottom: 1rem; }
.fa-melding b { color: var(--navy); }
.fa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-dark); flex: none; margin-top: .4rem; }

.fa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.fa-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .8rem .95rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow-kaart); }
.fa-kpi span { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.fa-kpi b { font-size: 1.6rem; font-weight: 600; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.fa-kpi small { font-size: .76rem; color: var(--grey); }
.fa-kpi-neg b { color: var(--negatief); }

.fa-sectiekop { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 1.4rem 0 .6rem; }
.fa-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
.fa-grid2 .fa-paneel { margin-bottom: 0; }
@media (max-width: 900px) { .fa-grid2 { grid-template-columns: minmax(0, 1fr); } }
.fa-paneel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.1rem; margin-bottom: .9rem; min-width: 0; }
.fa-paneel h4 { margin: 0 0 .25rem; font-size: .98rem; font-weight: 600; color: var(--navy); }
.fa-toel { font-size: .8rem; color: var(--grey); margin: 0 0 .6rem; line-height: 1.45; }
.fa-grijs { color: var(--grey); }

.fa-legenda { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .76rem; color: var(--grey); margin-bottom: .3rem; }
.fa-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.fa-svg { width: 100%; height: auto; display: block; }
.fa-svg text { fill: var(--grey); font-size: 11px; font-family: var(--font-body); }
.fa-svg .fa-raster { stroke: var(--line); }
.fa-svg .fa-eind, .fa-svg .fa-waarde { font-weight: 600; font-size: 11.5px; }
.fa-svg .fa-waarde { fill: var(--navy); }
.fa-svg .fa-rijlabel { fill: var(--navy); font-weight: 600; font-size: 12px; }
.fa-svg .fa-gemlijn { stroke: var(--navy); stroke-dasharray: 4 3; stroke-width: 1.4; }
.fa-svg .fa-gemlabel { fill: var(--navy); font-weight: 600; font-size: 10.5px; paint-order: stroke; stroke: #fff; stroke-width: 3px; }

.fa-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .2rem 0 .7rem; }
.fa-schakel { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.fa-schakel button { border: 0; background: transparent; border-radius: var(--pill); padding: .3rem .85rem; font-size: .8rem; font-weight: 600; color: var(--grey); cursor: pointer; }
.fa-schakel button.actief { background: var(--navy); color: #fff; }

.fa-tabel-wrap { overflow-x: auto; }
.fa-scroll { max-height: 420px; overflow-y: auto; }
.fa-scroll .data-tabel th { position: sticky; top: 0; background: #fff; z-index: 1; box-shadow: inset 0 -1.5px 0 var(--line); }
.fa-tabel { font-size: .82rem; }
.fa-tabel td, .fa-tabel th { white-space: nowrap; }
.fa-getal, .fa-tabel th.fa-getal { text-align: right; font-variant-numeric: tabular-nums; }
.fa-getal small { display: block; font-size: .7rem; color: var(--grey); }
.fa-aanname { font-style: italic; }
.fa-totaalrij td { font-weight: 600; color: var(--navy); border-top: 2px solid var(--navy); }
.fa-neg { color: var(--negatief) !important; font-weight: 600; }
.fa-ok { color: var(--teal-ink); }
.fa-noot, .fa-tabel td.fa-noot { white-space: normal; color: var(--grey); font-size: .78rem; min-width: 150px; }
.fa-rij-controle td { background: var(--negatief-tint); }
.fa-rij-controle .fa-noot { color: var(--orange-dark); }

.fa-soort { display: inline-block; font-size: .7rem; font-weight: 600; padding: .1rem .55rem; border-radius: var(--pill); background: var(--bg-soft); color: var(--grey); }
.fa-soort-weekly_spa { background: #e8edf4; color: var(--navy); }
.fa-soort-swim_spa { background: var(--teal-tint); color: var(--teal-ink); }
.fa-soort-exception { background: var(--negatief-tint); color: var(--orange-dark); }
.fa-soort-b2b { background: var(--teal-50); color: var(--teal-ink); }

.fa-opbouw { display: flex; align-items: center; gap: 2px; height: 30px; margin: .5rem 0 .4rem; }
.fa-opbouw > div { height: 100%; min-width: 3px; }
.fa-opbouw > div:first-child { border-radius: 6px 0 0 6px; }
.fa-opbouw > div:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.fa-opbouw b { margin-left: .6rem; color: var(--navy); font-size: 1rem; }
.fa-opbouw-waarden { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--grey); }
.fa-opbouw-waarden i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }
.fa-opbouw-waarden b { color: var(--navy); }

.fa-punten { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .55rem; font-size: .86rem; line-height: 1.5; }
.fa-punten b { color: var(--navy); }
.fa-zoek { font: inherit; font-size: .85rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); width: min(320px, 100%); margin-bottom: .6rem; }
.fa-zoek:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
