/* Simulatiepagina: bouwt voort op styles.css (zelfde kleuren, vakken en kaarten). */
.sim-fout { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.sim-top { grid-template-columns: auto 1fr auto; }
.sim-top .brand small { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sim-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-self: center; }
.sim-ctrl label { color: #b9c6cb; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.sim-ctrl select { background: var(--navy-2); color: #fff; border: 1px solid var(--navy-3); border-radius: 6px; padding: 5px 8px; font-size: 13px; }
.sim-klok b { font-variant-numeric: tabular-nums; }
.sim-main { grid-template-columns: minmax(0, 1fr) 380px; }
.sim-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.sim-side .card h2 { margin-bottom: 8px; }
.sim-side .card h2 span { font-weight: 400; }

.voortgang { width: 240px; height: 6px; background: var(--cream); border-radius: 3px; overflow: hidden; }
.voortgang b { display: block; height: 100%; width: 0; background: var(--gold); }

.sim-weken { display: grid; grid-template-columns: repeat(53, 1fr); gap: 2px; align-items: end; height: 80px; border-bottom: 1px solid var(--line); }
.sim-weken i { display: block; background: var(--navy); border-radius: 2px 2px 0 0; min-height: 1px; }
.sim-weken i.nu { background: var(--gold); }
.sim-as { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }

.feed-card { flex: 1; min-height: 220px; display: flex; flex-direction: column; }
#feed { list-style: none; margin: 0; padding: 0; font-size: 12.5px; overflow: auto; flex: 1; }
#feed li { display: grid; grid-template-columns: 68px 1fr; gap: 8px; padding: 6px 0 6px 8px; border-bottom: 1px solid #f0ece3; border-left: 3px solid transparent; line-height: 1.35; }
#feed li small { display: block; color: var(--muted); font-size: 11.5px; }
#feed li.f-blokkade { border-left-color: var(--red); }
#feed li.f-vol { border-left-color: var(--gold); }
#feed li.f-info { border-left-color: #9aa5a8; }
#feed li.leeg { display: block; color: var(--muted); border: 0; }
#feed .ft { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.instel summary { font-weight: 700; font-size: 14px; cursor: pointer; }
.instel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px 0; }
.instel label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.instel input, .instel textarea { font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
.instel textarea { width: 100%; margin: 6px 0; font: 11px/1.3 Consolas, monospace; }
.instel .hint { margin-top: 10px; }

/* Vakken tijdens de simulatie */
.tegel .ev-auto .ico { color: #2f6b3a; margin-right: 0.15em; }
.tegel.sim-nieuw { box-shadow: 0 0 0 0.3em var(--gold); z-index: 3; }
.tegel.sim-vast { box-shadow: 0 0 0 0.3em var(--red), inset 0 0 0 0.2em var(--red); background: var(--red-soft); z-index: 4; animation: simpuls .5s ease-in-out 3; }
.tegel.sim-blokker { box-shadow: inset 0 0 0 0.32em var(--orange); z-index: 3; }
@keyframes simpuls { 50% { box-shadow: 0 0 0 0.6em rgba(168, 50, 36, .35), inset 0 0 0 0.2em var(--red); } }
@media (prefers-reduced-motion: reduce) { .tegel.sim-vast { animation: none; } }
#pijlLaag { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
#pijlLaag line { stroke: var(--red); stroke-width: 5; stroke-linecap: round; }

/* Jaaroverzicht */
.overzicht { position: fixed; inset: 0; z-index: 100; background: rgba(11, 39, 51, .55); overflow: auto; padding: 28px 16px; display: flex; justify-content: center; align-items: flex-start; }
.overzicht[hidden] { display: none; }
.rapport { background: var(--paper); border-radius: 14px; width: min(1100px, 100%); padding: 22px 26px 26px; box-shadow: 0 20px 60px rgba(11, 39, 51, .35); }
.rapport-kop { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rapport-kop h2 { margin: 0 0 4px; font-size: 20px; }
.rapport-kop .x { color: var(--muted); font-size: 26px; }
.rapport h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 0 8px; display: flex; gap: 10px; align-items: baseline; }
.rapport h3 .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.kpi b { display: block; font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-weight: 700; font-size: 13px; margin-top: 2px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.conclusies { margin: 0; padding-left: 18px; line-height: 1.5; font-size: 14px; }
.conclusies li { margin-bottom: 4px; }
table.vergelijk { font-size: 13px; }
table.vergelijk td.r, table.vergelijk th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.vergelijk tr.hoofd td { font-weight: 700; background: #fffaf0; }
table.vergelijk tr.wacht td { color: var(--muted); font-style: italic; }
.mini-baan { display: inline-block; width: 140px; height: 10px; background: var(--grey-soft); border-radius: 0 4px 4px 0; vertical-align: -1px; margin-right: 6px; }
.mini-baan i { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.rapport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.hbars .rij { display: grid; grid-template-columns: 190px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.hbars .lab em { color: var(--muted); font-style: normal; font-size: 11.5px; }
.hbars .baan { height: 12px; background: var(--grey-soft); border-radius: 0 4px 4px 0; }
.hbars .baan i { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.hbars .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: end; padding-top: 6px; }
.vbars .kolom { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.vbars .kolom i { display: block; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 1px; }
.vbars .kolom span { font-size: 11px; color: var(--muted); text-align: center; margin-top: 3px; }
.ergste { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.voorbeelden { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 12.5px; }
.voorbeelden p { margin: 4px 0; color: var(--ink); }
.voorbeelden small { color: var(--muted); }
.tip { position: fixed; z-index: 200; pointer-events: none; background: var(--navy); color: #fff; padding: 6px 9px; border-radius: 6px; font-size: 12px; max-width: 320px; box-shadow: 0 6px 20px rgba(11, 39, 51, .3); }
.tip[hidden] { display: none; }

@media (max-width: 1280px) {
  .sim-main { grid-template-columns: 1fr; }
  .kpis, .rapport-grid, .voorbeelden { grid-template-columns: 1fr; }
}
