/* SEMANU OPS — ERP Business Analyse Wizard (eigen overlay) */

/* Inline-variant (gemount in een tab op de projectpagina) */
.ba-inline { border: 1px solid #E5E5E7; border-radius: 14px; overflow: hidden; background: #F7F7F8; }
.ba-inline .ba-head { border-radius: 0; }
.ba-inline .ba-body { min-height: 60vh; }

/* Launch-kaart in de projectdetail */
.ba-launch-sub { margin: 0 0 12px; font-size: 13px; color: #5C5C5E; line-height: 1.45; }

/* Projectpagina: volledige pagina i.p.v. gecentreerde pop-up.
   Start ná de zijbalk (232px) zodat de navigatie zichtbaar/consistent blijft. */
.dash-modal--page { align-items: stretch; justify-content: stretch; left: 232px; }
.dash-modal--page .dash-modal-backdrop { display: none; }
@media (max-width: 880px) { .dash-modal--page { left: 0; } }
.dash-modal--page .dash-modal-panel {
  max-width: none !important; width: 100%; height: 100%; max-height: 100%;
  border-radius: 0; background: #F5F5F4; box-shadow: none; animation: none;
  display: flex; flex-direction: column;
}
.dash-modal--page .dash-modal-head { background: #fff; flex: 0 0 auto; }
.dash-modal--page .dash-modal-body {
  flex: 1; min-height: 0; overflow-y: auto;
  max-width: 1480px; width: 100%; margin: 0 auto; padding: 18px 32px 80px;
}

/* Terug-link */
.proj-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #5C5C5E; text-decoration: none; margin: 0 0 12px; }
.proj-back:hover { color: #0A0A0A; }

/* Header eyebrow + meta-grid */
.proj-eyebrow { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #FF5A1F; }
.proj-header { position: relative; }
.proj-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #ECECEE; }
.proj-meta-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proj-meta-cell .k { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #8E8E93; }
.proj-meta-cell .v { font-size: 14px; font-weight: 600; color: #0A0A0A; overflow: hidden; text-overflow: ellipsis; }

/* Tabs in platform-stijl (binnen de projectpagina) */
.dash-modal--page .proj-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid #E5E5E7; }
.dash-modal--page .proj-tab-btn { background: none; border: none; border-bottom: 2px solid transparent;
  padding: 11px 16px; font-size: 14px; font-weight: 600; color: #8E8E93; cursor: pointer; white-space: nowrap; }
.dash-modal--page .proj-tab-btn:hover { color: #0A0A0A; }
.dash-modal--page .proj-tab-btn.is-active { color: #0A0A0A; border-bottom-color: #FF5A1F; }

/* Offertes & facturen-lijst */
.proj-fin-row { display: grid; grid-template-columns: 90px 1fr 110px 110px 110px; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #F0F0F1; font-size: 13.5px; }
.proj-fin-row:last-child { border-bottom: none; }
.proj-fin-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; text-align: center; }
.proj-fin-q { background: #EEF4FF; color: #1D4ED8; }
.proj-fin-i { background: #FEF3C7; color: #92591A; }
.proj-fin-title { font-weight: 600; color: #0A0A0A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-fin-status { color: #5C5C5E; }
.proj-fin-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.proj-fin-date { text-align: right; color: #8E8E93; }
@media (max-width: 720px) {
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
  .proj-fin-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .proj-fin-date, .proj-fin-status { display: none; }
}

.ba-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; }
.ba-overlay[hidden] { display: none; }
.ba-backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.45); }
.ba-panel {
  position: relative; margin: auto; width: min(1180px, 96vw); height: min(92vh, 980px);
  background: #F7F7F8; border-radius: 16px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.30);
}

/* Head */
.ba-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; background: white; border-bottom: 1px solid #E5E5E7; }
.ba-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #FF5A1F; }
.ba-title { margin: 2px 0 4px; font-size: 19px; font-weight: 700; color: #0A0A0A; }
.ba-head-meta { margin: 0; font-size: 13px; color: #5C5C5E; }
.ba-domain-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.ba-domain-lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8E8E93; }
.ba-domain-sel { border: 1px solid #E5E5E7; border-radius: 7px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: #0A0A0A; background: #FFF4EF; cursor: pointer; }
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.28);
.ba-domain-sel:focus { outline: none; border-color: #FF5A1F;   box-shadow: 0 0 0 3px var(--accent-glow, rgba(255, 90, 31, 0.12));
}
.ba-risk-pill { display: inline-block; background: #FEF2F2; color: #B91C1C; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.ba-head-right { display: flex; align-items: center; gap: 14px; }
.ba-save-ind { font-size: 12px; color: #15803D; min-width: 70px; text-align: right; }
.ba-save-ind[data-state="bad"] { color: #DC2626; }
.ba-close { border: none; background: transparent; font-size: 26px; line-height: 1; color: #8E8E93; cursor: pointer; }
.ba-close:hover { color: #0A0A0A; }

/* Body split */
.ba-body { flex: 1; display: flex; min-height: 0; }
.ba-loading, .ba-error { padding: 24px; color: #5C5C5E; }
.ba-error { color: #DC2626; }

/* Nav */
.ba-nav { width: 290px; flex: 0 0 290px; background: #FFFFFF; border-right: 1px solid #E5E5E7; overflow-y: auto; padding: 14px 12px; }
.ba-nav-title { margin: 4px 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E8E93; }
.ba-nav-item { display: block; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 9px 10px; margin-bottom: 4px; cursor: pointer; }
.ba-nav-item:hover { background: #F4F5F7; }
.ba-nav-item.is-active { background: #FFF4EF; border-color: #FFD3C2; }
.ba-nav-item.is-off { opacity: .45; }
.ba-nav-name { display: block; font-size: 13.5px; font-weight: 600; color: #0A0A0A; margin-bottom: 6px; }
.ba-nav-bar { display: block; height: 4px; background: #ECECEE; border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.ba-nav-bar-fill { display: block; height: 100%; background: #FF5A1F; border-radius: 3px; }
.ba-nav-sub { display: flex; align-items: center; justify-content: space-between; }
.ba-nav-pct { font-size: 11px; color: #8E8E93; font-variant-numeric: tabular-nums; }
.ba-badge { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.ba-badge-niet_gestart { background: #F1F1F2; color: #6B7280; }
.ba-badge-bezig { background: #FEF3C7; color: #92591A; }
.ba-badge-afgewerkt { background: #DCFCE7; color: #15803D; }
.ba-add-dept { width: 100%; margin-top: 8px; border: 1px dashed #C7C7CC; background: transparent; border-radius: 9px; padding: 9px; font-size: 13px; color: #5C5C5E; cursor: pointer; }
.ba-add-dept:hover { border-color: #FF5A1F; color: #FF5A1F; }

/* Main */
.ba-main { flex: 1; overflow-y: auto; padding: 22px 26px; }
.ba-empty { color: #8E8E93; }
.ba-dept-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ba-dept-head-main h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #0A0A0A; }
.ba-enable { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #5C5C5E; }
.ba-btn { border: 1px solid #E5E5E7; background: white; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ba-btn:hover { border-color: #B4B2A9; }
.ba-btn-primary { background: var(--accent-solid, #CC4516); border-color: #FF5A1F; color: white; }
.ba-btn-primary:hover { background: #E64A12; }

.ba-form.is-locked { opacity: .96; }
.ba-form.is-locked .ba-in, .ba-form.is-locked textarea { background: #FAFAFA; }

/* Geïnterviewden-tabs (meerdere personen per departement) */
.ba-iv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #ECECEE; }
.ba-iv-chip { border: 1px solid #E5E5E7; background: white; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: #3C3C3E; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-iv-chip:hover { border-color: #FF5A1F; color: #FF5A1F; }
.ba-iv-chip.is-active { background: var(--accent-solid, #CC4516); border-color: #FF5A1F; color: white; }
.ba-iv-add { border: 1px dashed #C7C7CC; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #5C5C5E; cursor: pointer; }
.ba-iv-add:hover { border-color: #FF5A1F; color: #FF5A1F; }

/* Interview-meta */
.ba-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; background: white; border: 1px solid #E5E5E7; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ba-f2 { display: flex; flex-direction: column; gap: 4px; }
.ba-f2-lbl { font-size: 11px; font-weight: 600; color: #8E8E93; text-transform: uppercase; letter-spacing: .03em; }

/* Maturiteit */
.ba-maturity { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF4EF; border: 1px solid #FFD3C2; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.ba-maturity-lbl { font-size: 12px; font-weight: 700; color: #B23A0E; text-transform: uppercase; letter-spacing: .03em; }
.ba-maturity-row { display: flex; gap: 6px; }
.ba-mat { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #E5C3B4; background: white; font-weight: 700; cursor: pointer; color: #5C5C5E; }
.ba-mat:hover { border-color: #FF5A1F; }
.ba-mat.is-on { background: var(--accent-solid, #CC4516); border-color: #FF5A1F; color: white; }
.ba-maturity-cur { font-size: 13px; color: #B23A0E; font-weight: 600; }

/* Vragen */
.ba-questions { display: flex; flex-direction: column; gap: 4px; }
.ba-q { background: white; border: 1px solid #E5E5E7; border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.ba-q.is-req { border-left: 3px solid #FFB59B; }
.ba-q-lbl { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ba-q-text { font-size: 14.5px; font-weight: 600; color: #0A0A0A; line-height: 1.4; }
.ba-req-star { color: #FF5A1F; }
.ba-q-hint { margin: 4px 0 9px; font-size: 12.5px; color: #8E8E93; line-height: 1.45; font-style: italic; }
.ba-in { width: 100%; padding: 8px 11px; border: 1px solid #E5E5E7; border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit; background: white; }
.ba-in:focus { outline: none; border-color: #FF5A1F; box-shadow: 0 0 0 3px rgba(255,90,31,.10); }
textarea.ba-in { resize: vertical; line-height: 1.45; }
.ba-in-unit { display: flex; align-items: center; gap: 8px; }
.ba-unit { font-size: 13px; color: #8E8E93; white-space: nowrap; }
.ba-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ba-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #3C3C3E; }

/* Risico-vlag */
.ba-risk { border: 1px solid #E5E5E7; border-radius: 7px; padding: 4px 8px; font-size: 12px; cursor: pointer; background: white; flex: 0 0 auto; }
.ba-risk-risk { border-color: #FCA5A5; color: #B91C1C; background: #FEF2F2; }
.ba-risk-high { border-color: #DC2626; color: white; background: #DC2626; }

/* Tabel */
.ba-table-wrap { overflow-x: auto; }
.ba-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ba-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #8E8E93; padding: 4px 6px; font-weight: 600; }
.ba-table td { padding: 2px 4px; }
.ba-td-in { padding: 6px 8px; font-size: 13px; }
.ba-table-x { width: 30px; }
.ba-rowdel { border: none; background: transparent; color: #DC2626; font-size: 18px; cursor: pointer; line-height: 1; }
.ba-add-row, .ba-add-q { margin-top: 8px; border: 1px dashed #C7C7CC; background: transparent; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; color: #5C5C5E; cursor: pointer; }
.ba-add-row:hover, .ba-add-q:hover { border-color: #FF5A1F; color: #FF5A1F; }
.ba-add-q { display: block; width: 100%; margin: 4px 0 16px; padding: 9px; }

/* Bijlagen */
.ba-attach-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ba-attach-btn { border: 1px solid #E5E5E7; background: white; border-radius: 7px; padding: 4px 10px; font-size: 12px; color: #5C5C5E; cursor: pointer; }
.ba-attach-btn:hover { border-color: #FF5A1F; color: #FF5A1F; }
.ba-attach-sec { background: white; border: 1px solid #E5E5E7; border-radius: 12px; padding: 13px 16px; margin: 14px 0; }
.ba-attach-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8E8E93; }
.ba-attach-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ba-attach-empty { font-size: 12.5px; color: #B0B0B5; }
.ba-chip { display: inline-flex; align-items: center; gap: 6px; background: #EEF4FF; border: 1px solid #C7D7FE; border-radius: 999px; padding: 3px 5px 3px 11px; font-size: 12px; color: #1D4ED8; max-width: 260px; }
.ba-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-chip-x { border: none; background: transparent; color: #1D4ED8; cursor: pointer; font-size: 15px; line-height: 1; }

/* Notities */
.ba-notes { margin-top: 16px; }
.ba-notes label { display: block; font-size: 11px; font-weight: 600; color: #8E8E93; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.ba-notes textarea { width: 100%; padding: 10px 12px; border: 1px solid #E5E5E7; border-radius: 10px; font-family: inherit; font-size: 14px; line-height: 1.45; resize: vertical; box-sizing: border-box; }
.ba-notes textarea:focus { outline: none; border-color: #FF5A1F; box-shadow: 0 0 0 3px rgba(255,90,31,.10); }

@media (max-width: 860px) {
  .ba-nav { width: 200px; flex-basis: 200px; }
  .ba-meta { grid-template-columns: 1fr; }
}
