/* Battle Plan Students — front-end app styles.
   Everything is scoped under .bam-app / .bam-print-view so it cannot leak
   into (or be leaked into by) the surrounding WordPress theme. */

.bam-app{
  --bam-teal:#24534A; --bam-teal-deep:#14332C; --bam-teal-tint:#DCE6E1;
  --bam-ink:#16231F; --bam-ink-soft:#45524B;
  --bam-paper:#ECEAE0; --bam-paper-raised:#F6F5EE; --bam-paper-line:#CBC7B7;
  --bam-ochre:#B07C2C; --bam-ochre-tint:#EFE1C6;
  --bam-danger:#a13b2f; --bam-danger-bg:#f6e6e2;

  /* Analyse-tabblad: vaste 10-punten score­schaal (1 probleem .. 10 troef). */
  --bam-score-1:#B5382F; --bam-score-2:#C1503A; --bam-score-3:#C96B30; --bam-score-4:#CF8A34; --bam-score-5:#D4A63F; --bam-score-6:#CDB84A; --bam-score-7:#A6B25A; --bam-score-8:#7FA65C; --bam-score-9:#4F8063; --bam-score-10:var(--bam-teal);

  box-sizing:border-box;
  font-family:"Inter","Segoe UI",system-ui,sans-serif;
  background:var(--bam-paper); color:var(--bam-ink); line-height:1.55;
  -webkit-font-smoothing:antialiased;
  max-width:900px; margin:0 auto; padding:12px 4px 60px;
}
.bam-app *, .bam-app *::before, .bam-app *::after{ box-sizing:border-box; }
.bam-app h1, .bam-app h2, .bam-app h3{ font-family:Georgia,"Times New Roman",serif; }

.bam-hidden{ display:none !important; }

/* ---------- gate (logged out / terms) ---------- */
.bam-gate{ max-width:600px; margin:40px auto; background:var(--bam-paper-raised); border:1px solid var(--bam-paper-line); border-radius:14px; padding:36px 30px; }
.bam-gate.bam-gate-center{ text-align:center; }
.bam-gate h2{ color:var(--bam-teal); font-size:22px; margin:0 0 10px; }
.bam-gate h3{ color:var(--bam-teal); font-size:15px; margin:18px 0 6px; }
.bam-gate p{ color:var(--bam-ink-soft); font-size:14px; margin:0 0 12px; }
.bam-gate .bam-btn{ display:inline-block; text-decoration:none; }
.bam-gate label.bam-accept{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--bam-ink); margin:20px 0; cursor:pointer; }
.bam-gate label.bam-accept input{ margin-top:3px; }
.bam-gate .bam-field{ text-align:left; margin-bottom:14px; }
/* .bam-gate p.bam-gate-error, not just .bam-gate-error: the bare-class
   selector has lower specificity than the general `.bam-gate p` rule above
   (class+element beats a single class), so without matching that shape here
   too, this error text would silently render in the muted default color. */
.bam-gate p.bam-gate-alt{ font-size:13px; margin-top:18px; }
.bam-gate p.bam-gate-error{ background:var(--bam-danger-bg); color:var(--bam-danger); border-radius:8px; padding:10px 12px; font-size:13px; }

/* ---------- shared buttons / fields ---------- */
/* color/text-decoration/font-weight repeated with !important: the "Inloggen"
   button is an <a>, and the Kadence theme's own link styling (color, underline,
   weight) otherwise wins over a plain .bam-btn rule on that element, leaving
   near-invisible thin colored underlined text on the dark button background. */
.bam-btn{ border:1px solid var(--bam-teal); background:var(--bam-teal); color:#fff !important; text-decoration:none !important; padding:10px 18px; border-radius:8px; font-size:13.5px; font-weight:700 !important; cursor:pointer; font-family:inherit; }
.bam-btn:hover{ background:var(--bam-teal-deep); border-color:var(--bam-teal-deep); }
/* color needs !important too: .bam-btn's own color:#fff!important otherwise
   always wins over this rule regardless of specificity, leaving every ghost
   button's text invisible (white on the ghost's white background). */
.bam-btn.bam-ghost{ background:#fff; color:var(--bam-teal) !important; }
.bam-btn.bam-ghost:hover{ background:var(--bam-teal-tint); border-color:var(--bam-teal); }
.bam-btn.bam-sm{ padding:6px 12px; font-size:12.5px; }
.bam-btn:disabled{ opacity:.55; cursor:default; background:var(--bam-paper-line); border-color:var(--bam-paper-line); color:var(--bam-ink-soft); }
.bam-linkbtn{ background:none; border:none; color:var(--bam-teal); font-weight:600; font-size:13px; cursor:pointer; padding:4px 0; font-family:inherit; }
.bam-rmicon{ background:none; border:none; color:var(--bam-ink-soft); font-size:18px; line-height:1; cursor:pointer; padding:2px 4px; }
.bam-rmicon:hover{ color:var(--bam-danger); }

.bam-app input[type="text"], .bam-app input[type="email"], .bam-app input[type="password"], .bam-app textarea, .bam-app select{
  width:100%; border:1px solid var(--bam-paper-line); border-radius:8px; padding:9px 10px;
  font-family:inherit; font-size:13.5px; color:var(--bam-ink); background:#fff;
}
.bam-app textarea{ resize:vertical; min-height:56px; }
.bam-app input[type="text"]:focus, .bam-app input[type="email"]:focus, .bam-app input[type="password"]:focus, .bam-app textarea:focus, .bam-app select:focus{
  outline:none; border-color:var(--bam-teal); box-shadow:0 0 0 3px rgba(36,83,74,.15);
}

/* ---------- topbar ---------- */
.bam-topbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:14px 0 18px; border-bottom:1px solid var(--bam-paper-line); margin-bottom:22px; }
.bam-brand{ font-family:Georgia,serif; font-size:19px; color:var(--bam-teal); font-weight:700; letter-spacing:-.01em; }
.bam-topbar .bam-user{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; font-size:12.5px; color:var(--bam-ink-soft); text-align:right; }
.bam-topbar .bam-user a{ color:var(--bam-ink-soft); text-decoration:underline; }
.bam-topbar .bam-user a:hover{ color:var(--bam-teal); }
.bam-user-row2{ display:flex; gap:6px; }
/* Deliberately as muted as "uitloggen" — this is a reference link, not a call to action. */
.bam-terms-details{ display:inline; }
.bam-terms-details summary{ display:inline; cursor:pointer; color:var(--bam-ink-soft); font-weight:400; font-size:12.5px; list-style:none; text-decoration:underline; }
.bam-terms-details summary::-webkit-details-marker{ display:none; }
.bam-terms-details summary:hover{ color:var(--bam-teal); }
.bam-terms-details[open]{ display:block; margin-top:10px; text-align:left; }
.bam-terms-content{ background:var(--bam-paper-raised); border:1px solid var(--bam-paper-line); border-radius:10px; padding:16px 18px; margin-top:8px; max-width:640px; text-align:left; }
.bam-terms-content h3{ color:var(--bam-teal); font-size:14px; margin:12px 0 6px; }
.bam-terms-content h3:first-child{ margin-top:0; }
.bam-terms-content p{ color:var(--bam-ink-soft); font-size:13px; margin:0 0 10px; }
.bam-savestate{ font-size:12px; color:var(--bam-ink-soft); display:flex; align-items:center; gap:6px; }
.bam-savestate .bam-dot{ width:7px; height:7px; border-radius:50%; background:var(--bam-paper-line); }
.bam-savestate.bam-saving .bam-dot{ background:var(--bam-ochre); }
.bam-savestate.bam-saved .bam-dot{ background:var(--bam-teal); }
.bam-savestate.bam-error .bam-dot{ background:var(--bam-danger); }
.bam-savestate.bam-error{ color:var(--bam-danger); font-weight:700; }
.bam-savestate-top{ min-width:170px; justify-content:flex-end; margin-right:10px; }
.bam-notice{ background:var(--bam-ochre-tint); border:1px solid var(--bam-ochre); border-radius:10px; padding:10px 14px; font-size:13px; margin-bottom:16px; }
/* Buiten .bam-app (direct in <body>): daarom vaste kleuren, geen var(--bam-*). */
.bam-save-alert{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:999; width:min(720px,calc(100vw - 24px)); box-sizing:border-box; background:#a13b2f; color:#fff; border-radius:12px; padding:12px 16px; font:14px/1.45 "Inter","Segoe UI",system-ui,sans-serif; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.bam-save-alert a{ color:#fff !important; text-decoration:underline; font-weight:700; }
.bam-save-alert .bam-btn{ background:#fff; color:#a13b2f !important; border:1px solid #fff; border-radius:8px; padding:6px 12px; font-size:12.5px; font-weight:700 !important; cursor:pointer; margin-top:8px; display:block; }

/* ---------- case list ---------- */
.bam-listhead{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.bam-listhead h1{ font-size:24px; color:var(--bam-teal); margin:0; }
.bam-listhead p{ color:var(--bam-ink-soft); font-size:13.5px; margin:4px 0 0; }
.bam-cases{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.bam-case-card{ background:var(--bam-paper-raised); border:1px solid var(--bam-paper-line); border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:8px; cursor:pointer; text-align:left; }
.bam-case-card:hover{ border-color:var(--bam-teal); box-shadow:0 2px 10px rgba(20,51,44,.1); }
.bam-case-card .bam-case-name{ font-weight:700; font-size:14.5px; color:var(--bam-ink); }
.bam-case-card .bam-case-meta{ font-size:11.5px; color:var(--bam-ink-soft); margin-top:auto; }
/* Base rule, not scoped to .bam-case-card: .bam-case-del is reused for the
   "Verwijderen" button inside Strategisch Kompas partnerkaarten too
   (bam-rmpartner) — without an unscoped rule that fell through to the
   surrounding WordPress theme's default <button> styling instead of this
   small, muted look. */
.bam-case-del{ background:none; border:none; color:var(--bam-danger); font-size:11px; cursor:pointer; text-decoration:underline; padding:0; }
.bam-case-del:hover{ color:var(--bam-teal-deep); }
.bam-case-card .bam-case-del{ color:var(--bam-ink-soft); align-self:flex-end; }
.bam-case-card .bam-case-del:hover{ color:var(--bam-danger); }
.bam-empty-state{ background:var(--bam-paper-raised); border:1px dashed var(--bam-paper-line); border-radius:12px; padding:40px 20px; text-align:center; color:var(--bam-ink-soft); font-size:13.5px; }

/* ---------- editor shell ---------- */
.bam-editor-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.bam-back{ display:inline-flex; align-items:center; gap:6px; }
.bam-casename-wrap{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.bam-casename-wrap label{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--bam-ink-soft); flex:none; }
.bam-casename-wrap input{ font-family:Georgia,serif; font-size:20px; font-weight:700; color:var(--bam-teal); border:1px solid transparent; padding:2px 6px; border-radius:6px; max-width:420px; background:transparent; }
.bam-casename-wrap input:hover, .bam-casename-wrap input:focus{ border-color:var(--bam-paper-line); background:#fff; }
.bam-editor-actions{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

.bam-topfields{ display:flex; flex-direction:column; gap:16px; margin-bottom:8px; }
.bam-eyebrow{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--bam-teal); margin:0 0 8px; }
.bam-field-help{ font-size:12.5px; color:var(--bam-ink-soft); margin:0 0 7px; }

.bam-logo-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.bam-logo-preview{ width:64px; height:64px; border-radius:8px; border:1px solid var(--bam-paper-line); background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; flex:none; }
.bam-logo-preview img{ max-width:100%; max-height:100%; object-fit:contain; }
.bam-logo-preview.bam-logo-empty{ color:var(--bam-ink-soft); font-size:10.5px; text-align:center; padding:4px; }

/* ---------- tabs ---------- */
/* Sticky + filled active state: this is the primary way to move between the
   4 sections while filling in a long form, so it needs to stay visible and
   be unmistakable at a glance, not just a thin underline. */
.bam-tabs{
  display:flex; gap:6px; flex-wrap:wrap; margin-top:26px; padding:8px;
  background:var(--bam-paper-raised); border:1px solid var(--bam-paper-line); border-radius:12px;
  position:sticky; top:0; z-index:5; box-shadow:0 4px 10px -6px rgba(20,51,44,.25);
}
.bam-tab{
  display:flex; align-items:center; gap:8px; border:1px solid transparent; background:none;
  padding:9px 14px; font-size:13.5px; font-weight:700; color:var(--bam-ink-soft); cursor:pointer;
  font-family:inherit; border-radius:8px;
}
.bam-tab:hover{ color:var(--bam-teal); background:#fff; }
.bam-tab.bam-tab-active{ color:#fff; background:var(--bam-teal); }
.bam-tab .bam-tab-num{
  display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;
  border-radius:50%; background:var(--bam-teal-tint); color:var(--bam-teal); font-size:11.5px; flex:none;
}
.bam-tab.bam-tab-active .bam-tab-num{ background:rgba(255,255,255,.25); color:#fff; }
/* Don't stick underneath WordPress' own fixed admin toolbar, shown to any logged-in user by default. */
body.admin-bar .bam-tabs{ top:32px; }
@media (max-width:782px){ body.admin-bar .bam-tabs{ top:46px; } }
.bam-tabpanel{ padding-top:26px; }

.bam-tab-footer{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:28px; padding-top:16px; border-top:1px solid var(--bam-paper-line); }
/* Explicit hover/focus styling in the brand teal — without it, a plain
   <button> falls back to the browser's own default highlight (blue in
   Chrome/Safari on macOS), which clashes with the rest of the palette. */
.bam-next-tab{ font-size:13.5px; padding:6px 12px; border-radius:8px; transition:background .15s,color .15s; }
.bam-next-tab:hover{ background:var(--bam-teal); color:#fff; }
.bam-next-tab:focus-visible{ outline:2px solid var(--bam-teal); outline-offset:2px; }

.bam-section-intro{ color:var(--bam-ink-soft); font-size:13.5px; margin:0 0 18px; }
.bam-kern-title{ font-size:20px; color:var(--bam-teal); margin:0 0 14px; }
.bam-kern-text{ min-height:200px; font-size:15px; }

.bam-field{ margin-bottom:12px; }
.bam-field label{ display:block; font-size:12px; font-weight:600; color:var(--bam-ink); margin-bottom:5px; }

/* ---------- Kerndoelstellingen ---------- */
.bam-table-scroll{ overflow-x:auto; }
.bam-obj-table{ width:100%; min-width:860px; border-collapse:collapse; }
.bam-obj-table th, .bam-obj-table td{ border:1px solid var(--bam-paper-line); padding:8px; vertical-align:top; }
.bam-obj-table thead th{ background:var(--bam-teal-tint); font-size:12px; text-align:left; }
.bam-obj-table .bam-period-input{ border:none; background:transparent; font-weight:700; color:var(--bam-teal); padding:2px; }
.bam-obj-table .bam-obj-subrow th{ font-size:11px; font-weight:600; color:var(--bam-ink-soft); background:#fff; }
.bam-obj-table textarea{ min-height:40px; border:none; padding:2px; }
.bam-obj-table textarea:focus{ box-shadow:none; }
.bam-obj-rm{ border:none !important; vertical-align:middle; text-align:center; width:1%; }

/* ---------- circle ---------- */
.bam-layout{ display:flex; flex-direction:column; gap:22px; margin-top:6px; align-items:center; }
.bam-stage{ position:relative; width:100%; aspect-ratio:1/1; max-width:480px; margin:0 auto; }
.bam-stage svg{ width:100%; height:100%; display:block; overflow:visible; }
.bam-ring-label{ font-size:11px; fill:var(--bam-ink-soft); letter-spacing:.04em; text-transform:uppercase; }
.bam-seg{ cursor:pointer; transition:filter .15s; }
.bam-seg:hover{ filter:brightness(0.94); }
.bam-seg.bam-active{ stroke:var(--bam-teal); stroke-width:3; }
.bam-seg-text{ pointer-events:none; font-size:12px; font-weight:600; fill:var(--bam-ink); text-anchor:middle; }
.bam-seg-text.bam-light{ fill:#fff; }
.bam-seg-score{ pointer-events:none; font-weight:700; fill:var(--bam-ink); text-anchor:middle; }
.bam-seg-score.bam-light{ fill:#fff; }
.bam-core-title{ font-family:Georgia,serif; }
.bam-legend{ display:flex; gap:14px; flex-wrap:wrap; margin:16px auto 0; max-width:520px; justify-content:center; }
.bam-lg{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--bam-ink-soft); }
.bam-lg-score{ gap:3px; font-weight:600; }
.bam-lg-ends{ flex-basis:100%; text-align:center; font-size:12px; color:var(--bam-ink-soft); }
.bam-sw{ width:14px; height:14px; border-radius:3px; border:1px solid rgba(0,0,0,.08); }
.bam-panel{ width:100%; max-width:520px; background:var(--bam-paper-raised); border:1px solid var(--bam-paper-line); border-radius:14px; padding:20px; }
.bam-panel h2{ font-size:18px; color:var(--bam-teal); margin:0 0 2px; }
.bam-panel .bam-dom-sub{ color:var(--bam-ink-soft); font-size:13px; margin:0 0 14px; }
.bam-hint{ font-size:12.5px; color:var(--bam-ink-soft); background:var(--bam-teal-tint); border-radius:8px; padding:10px 12px; margin-bottom:16px; }
.bam-placeholder{ color:var(--bam-ink-soft); font-size:14px; }
.bam-placeholder strong{ color:var(--bam-ink); display:block; font-size:15px; margin-bottom:4px; font-weight:600; }

.bam-action-row{ border:1px solid var(--bam-paper-line); border-radius:10px; padding:14px; margin-bottom:12px; background:#fff; }
.bam-action-row-cols{ display:flex; gap:10px; flex-wrap:wrap; }
.bam-action-row-cols .bam-field{ flex:1; min-width:150px; }

/* ---------- Analyse: score- en focus-knoppen ---------- */
.bam-score-btns{ display:flex; gap:6px; flex-wrap:wrap; }
.bam-score-btn{ min-width:44px; width:auto; padding:0 6px; white-space:nowrap; line-height:1; height:38px; border:1px solid var(--bam-paper-line); background:#fff; border-radius:8px; font-weight:700; font-size:14px; color:var(--bam-ink); cursor:pointer; transition:filter .15s; }
.bam-score-btn:hover{ filter:brightness(0.96); }
.bam-score-btn.bam-selected{ background:var(--bam-score-btn-color); border-color:var(--bam-score-btn-color); color:var(--bam-ink); }
.bam-score-btn.bam-selected.bam-score-light{ color:#fff; }

/* ---------- Kernactieplan ---------- */
.bam-kap-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:760px){ .bam-kap-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:460px){ .bam-kap-grid{ grid-template-columns:1fr; } }
.bam-kap-block{ border:1px solid var(--bam-teal); border-radius:10px; padding:12px; background:var(--bam-teal-tint); }
.bam-kap-label{ font-weight:700; color:var(--bam-teal-deep); margin-bottom:8px; font-size:12.5px; background:transparent; border:none; padding:0; }
.bam-kap-label:focus{ box-shadow:none; text-decoration:underline; }
/* Belangrijkheid: één cirkeltje met cijfer. Vaste kleuren (geen var(--bam-*)):
   dezelfde markup staat ook in .bam-print-view, buiten .bam-app. */
.bam-imp{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:18px; height:18px; border-radius:50%; font-size:11px; font-weight:700; line-height:1; background:#24534A; color:#fff; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.bam-imp-1{ background:#14332C; color:#fff; }
.bam-imp-2{ background:#24534A; color:#fff; }
.bam-imp-3{ background:#6B958A; color:#fff; }
.bam-imp-4{ background:#C5D6D0; color:#14332C; box-shadow:inset 0 0 0 1px #6B958A; }
.bam-imp-legend, .bam-pv-imp-legend{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; }
.bam-imp-legend{ font-size:12px; color:var(--bam-ink-soft); margin:12px 0 0; }
.bam-imp-legend-item{ display:inline-flex; align-items:center; gap:5px; }
.bam-app .bam-kap-list, .bam-pv-kap-block ul{ margin:0; padding:0; list-style:none; }
.bam-kap-list li, .bam-pv-kap-block li{ display:flex; align-items:flex-start; gap:6px; margin:0 0 6px; line-height:1.35; }
.bam-kap-list li > .bam-imp, .bam-pv-kap-block li > .bam-imp{ margin-top:1px; }
.bam-kap-list{ font-size:12.5px; }
.bam-kap-list li{ margin-bottom:4px; }
.bam-kap-empty{ color:var(--bam-ink-soft); font-size:12px; font-style:italic; margin:0; }
.bam-other-actions{ margin-top:18px; }
.bam-other-actions h3{ font-size:14px; margin:0 0 4px; color:var(--bam-teal); }
.bam-other-list{ margin:0; padding-left:18px; font-size:13px; }
.bam-other-list li{ margin-bottom:5px; }
.bam-muted{ color:var(--bam-ink-soft); font-size:12px; }

.bam-note{ font-size:12.5px; color:var(--bam-ink-soft); font-style:italic; margin-top:20px; max-width:760px; }

@media (max-width:520px){
  .bam-editor-top{ flex-direction:column; }
  .bam-editor-actions{ width:100%; }
}

/* ---------- print / pdf report ---------- */
/* .bam-print-view is appended as a direct child of <body> by bam-app.js.
   On print, hide every other direct child of body (the whole theme chrome
   in one shot, without leaving hidden elements reserving page-flow height
   the way a visibility:hidden approach would) and show only the report.
   The report itself is one <table> whose <thead>/<tfoot> browsers repeat on
   every printed page — the only reliable way to get a running header/footer
   out of plain HTML+CSS print output (there is no CSS Paged Media support
   for running headers in Chrome's print engine). */
.bam-print-view{ display:none; }
@media print{
  body > *{ display:none !important; }
  .bam-print-view{ display:block !important; }
  @page{ margin:16mm 14mm; }
}
/* .bam-print-view is a sibling of .bam-app (appended straight to <body>), so
   it doesn't inherit .bam-app's custom properties either — the Analyse-
   cirkel/scorebadges reuse the same var(--bam-score-N) markup as the live
   tab (built by the same JS function), so the score scale is redeclared
   here rather than hardcoded a second time in hex. */
.bam-print-view{
  font-family:Avenir,"Avenir Next","Segoe UI",Helvetica,Arial,sans-serif; color:#16231F;
  --bam-score-1:#B5382F; --bam-score-2:#C1503A; --bam-score-3:#C96B30; --bam-score-4:#CF8A34; --bam-score-5:#D4A63F; --bam-score-6:#CDB84A; --bam-score-7:#A6B25A; --bam-score-8:#7FA65C; --bam-score-9:#4F8063; --bam-score-10:#24534A;
}
/* .bam-print-view is appended outside .bam-app, so it never inherits the
   box-sizing:border-box reset above — without it, border+padding are added
   on top of a width instead of being included in it, which is exactly the
   kind of few-pixel overflow that pushes content (and a right/bottom
   border) past the printable page edge. */
.bam-print-view, .bam-print-view *, .bam-print-view *::before, .bam-print-view *::after{ box-sizing:border-box; }
.bam-pv-shell{ width:100%; border-collapse:collapse; }
.bam-pv-shell > tbody > tr > td{ padding:0; }

.bam-pv-header{ display:flex; justify-content:space-between; align-items:baseline; border-bottom:2px solid #24534A; padding-bottom:8px; margin-bottom:14px; }
.bam-pv-header .bam-pv-headtitle{ font-family:Georgia,serif; font-weight:700; font-size:14px; color:#24534A; }
.bam-pv-header .bam-pv-headdate{ font-size:10.5px; color:#45524B; }

.bam-pv-footer{ display:flex; justify-content:space-between; border-top:1px solid #CBC7B7; padding-top:6px; margin-top:10px; font-size:9.5px; color:#45524B; }

.bam-pv-titlepage{ text-align:center; margin-bottom:22px; }
.bam-pv-logo{ max-width:140px; max-height:80px; margin:0 auto 10px; display:block; }
.bam-print-view h1{ font-family:Georgia,serif; color:#16231F; font-size:26px; margin:0 0 8px; }
.bam-pv-groupname{ color:#45524B; font-size:13px; font-weight:700; margin:0 0 6px; }
.bam-pv-baseline{ color:#24534A; font-size:13px; font-style:italic; margin:0 0 6px; }
.bam-pv-businesscase{ color:#45524B; font-size:13px; margin:0; }

.bam-print-view h2{ font-family:Georgia,serif; color:#fff; background:#24534A; font-size:19px; font-weight:700; letter-spacing:.02em; margin:26px 0 14px; padding:11px 14px; border-radius:6px; }
.bam-print-view h2:first-of-type{ margin-top:0; }
.bam-pv-pagebreak{ break-before:page; }


.bam-pv-objwrap{ break-inside:avoid; }
/* table-layout:fixed + explicit column widths, same fix as the action table:
   without it, long header text (e.g. "Optimaal 2029") makes the table wider
   than the printable page in auto-layout mode, and everything past the page
   edge — including the closing right border — is simply cut off when printed. */
.bam-pv-objtable{ width:100%; table-layout:fixed; border-collapse:collapse; margin-bottom:10px; }
/* 25% + 6×12.5% = exactly 100% — a repeating fraction like 12.667% sums to
   just over 100%, and that fraction-of-a-percent overflow is enough for a
   fixed-layout table to render wider than its own box, clipping the right
   border when printed. Round numbers that add up exactly avoid this. */
.bam-pv-objtable col.bam-obj-col-goal{ width:25%; }
.bam-pv-objtable col.bam-obj-col-val{ width:12.5%; }
.bam-pv-objtable th, .bam-pv-objtable td{ border:1px solid #CBC7B7; padding:5px 7px; font-size:11.5px; text-align:left; word-wrap:break-word; overflow-wrap:break-word; }
.bam-pv-objtable th{ background:#DCE6E1; color:#14332C; }

/* minmax(0,1fr), not plain 1fr: a plain 1fr track still won't shrink below
   the item's min-content size, so one long unbroken word in an action can
   force all 4 columns wider than the page, cutting off the last column's
   right border — the same overflow class as the table above. */
.bam-pv-kap-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.bam-pv-kap-block{ border:1px solid #24534A; border-radius:8px; padding:8px 10px; break-inside:avoid; background:#DCE6E1; overflow-wrap:break-word; word-wrap:break-word; }
.bam-pv-kap-head{ font-weight:700; font-size:11.5px; color:#14332C; margin-bottom:4px; overflow-wrap:break-word; word-wrap:break-word; }
.bam-pv-kap-block ul{ font-size:11px; overflow-wrap:break-word; word-wrap:break-word; }
.bam-pv-pre{ white-space:pre-wrap; font-size:12.5px; margin:0 0 6px; overflow-wrap:break-word; }
.bam-pv-imp-legend{ font-size:10.5px; color:#45524B; margin:0 0 12px; }
.bam-pv-muted{ color:#45524B; font-size:11px; font-style:italic; }

.bam-pv-block-list{ margin-bottom:14px; break-inside:avoid; }
.bam-pv-block-list h4{ font-size:13px; color:#24534A; margin:0 0 4px; }
.bam-pv-actiontable{ width:100%; border-collapse:collapse; table-layout:fixed; }
.bam-pv-actiontable col.bam-col-domain{ width:19%; }
.bam-pv-actiontable col.bam-col-action{ width:41%; }
.bam-pv-actiontable col.bam-col-importance{ width:22%; }
.bam-pv-actiontable col.bam-col-owner{ width:18%; }
.bam-pv-actiontable th{ font-size:10px; text-transform:uppercase; letter-spacing:.03em; text-align:left; color:#45524B; border-bottom:1px solid #24534A; padding:3px 6px 5px; }
.bam-pv-actiontable td{ font-size:11.5px; padding:5px 6px; border-bottom:1px solid #EFE1C6; vertical-align:top; text-align:left; word-wrap:break-word; }
.bam-pv-actiontable td:first-child, .bam-pv-actiontable th:first-child{ padding-left:0; font-style:italic; color:#45524B; }

.bam-pv-disclaimer{ margin-top:26px; padding-top:12px; border-top:1px solid #CBC7B7; text-align:center; font-size:9.5px; color:#45524B; }
.bam-pv-disclaimer p{ margin:0 0 6px; }
.bam-pv-disclaimer a{ color:#24534A; }

/* ---------- Analyse-sectie (enkel in het volledig rapport) ---------- */
.bam-pv-analyse-wrap{ display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
/* Vaste breedte/hoogte i.p.v. .bam-stage's aspect-ratio/flex-afhankelijke
   sizing — die veronderstelt een flex-container binnen .bam-app en geeft
   hier, buiten .bam-app, geen betrouwbare afmeting op elk papierformaat. */
.bam-pv-analyse-circle{ width:220px; height:220px; flex:none; }
.bam-pv-analyse-circle svg{ width:100%; height:100%; display:block; }
/* flex:1 alone still won't shrink below the cards' min-content size — a long
   unbroken string (a pasted reference, a URL) in Vaststellingen/Onderbouwing
   can then push .bam-pv-analyse-cards wider than the printable page, cutting
   off its right border. min-width:0 lets it shrink; overflow-wrap on the
   card/paragraphs forces the long word itself to wrap instead. Same overflow
   class as the other print-view fixes documented in CLAUDE.md. */
.bam-pv-analyse-cards{ flex:1 1 260px; min-width:0; }
.bam-pv-analyse-card{ margin-bottom:10px; padding:8px 10px; border:1px solid #CBC7B7; border-radius:8px; break-inside:avoid; overflow-wrap:break-word; word-wrap:break-word; }
.bam-pv-analyse-head{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; }
.bam-pv-analyse-head h4{ font-size:12.5px; font-weight:700; color:#24534A; margin:0; }
.bam-pv-analyse-badge{ flex:none; font-size:10px; font-weight:700; color:#fff; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.bam-pv-analyse-card p{ font-size:11.5px; margin:0 0 3px; overflow-wrap:break-word; word-wrap:break-word; }
