/* FaciliCalc — huisstijl gelijk aan Faciliscan StartStop (admin): marineblauw, goud, Bootstrap 5 */
:root {
  --brand: #1E3A8A; --brand-dark: #172554; --brand-light: #DBEAFE;
  --accent: #C9A96A; --accent-dark: #A8894F;
  --action: #3B82F6; --action-dark: #2563EB;
  --success: #22C55E; --warning: #F59E0B; --error: #EF4444;
  --bg: #F8FAFC; --text: #0F172A; --muted: #6B7280; --line: #E4E4E7;
}
body { background: var(--bg); color: var(--text); }
.brand-bar { background: var(--brand); color: #fff; padding: .55rem 1rem; border-bottom: 3px solid var(--accent); }
.brand-bar .brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.brand-bar img { height: 26px; width: auto; }
.brand-bar .nav-link { color: rgba(255,255,255,.85); padding: .35rem .8rem; border-radius: .375rem; }
.brand-bar .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.brand-bar .nav-link.active { color: #fff; background: rgba(255,255,255,.18); }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.card { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card-header { background: #fff; font-weight: 600; }
.page-wide { max-width: 1700px !important; }
.summary-strip { position: sticky; top: .5rem; z-index: 5; }
.page { max-width: 1240px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.muted { color: var(--muted); }
.small-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table > :not(caption) > * > * { padding: .45rem .6rem; }
.table thead th { background: #F1F5F9; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #475569; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total-row td { font-weight: 700; background: #F8FAFC; }
.status-badge { font-weight: 600; }
.st-concept { background: #E2E8F0; color: #334155; } .st-calculatie { background: var(--brand-light); color: var(--brand); }
.st-prijsopgave { background: #FEF3C7; color: #92400E; } .st-offerte { background: #EDE9FE; color: #5B21B6; }
.st-geaccepteerd { background: #DCFCE7; color: #166534; } .st-afgewezen { background: #FEE2E2; color: #991B1B; } .st-gearchiveerd { background: #F1F5F9; color: #64748B; }

/* workflow-stappen */
.stepper { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.stepper .step { flex: 1 0 auto; min-width: 104px; border: 1px solid var(--line); background: #fff; border-radius: .5rem; padding: .4rem .55rem; cursor: pointer; text-align: left; font-size: .8rem; line-height: 1.2; }
.stepper .step .n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #E2E8F0; color: #334155; font-size: .7rem; font-weight: 700; margin-right: .3rem; }
.stepper .step.done .n { background: var(--success); color: #fff; }
.stepper .step.active { border-color: var(--brand); background: var(--brand-light); font-weight: 600; box-shadow: inset 0 -3px 0 var(--brand); }
.stepper .step.active .n { background: var(--brand); color: #fff; }
.stepper .step.warn .n { background: var(--warning); color: #fff; }
.stepper .step:focus-visible { outline: 3px solid rgba(59,130,246,.45); }

/* werkdagen */
.day-chips { display: inline-grid; grid-template-columns: repeat(5, 32px); gap: 3px; }   /* ma–vr op de eerste rij, za/zo daaronder */
.day-chip { min-width: 0; padding: .2rem 0; border: 1px solid #CBD5E1; border-radius: .375rem; background: #fff; font-size: .78rem; cursor: pointer; text-align: center; user-select: none; }
.day-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.day-chip[disabled] { opacity: .45; cursor: not-allowed; }
.src-badge { font-size: .7rem; font-weight: 600; padding: .15rem .45rem; border-radius: 999px; }
.src-auto { background: #DCFCE7; color: #166534; } .src-manual { background: #FEF3C7; color: #92400E; }
.summary-card { position: sticky; top: 1rem; }
.kpi { border: 1px solid var(--line); background: #fff; border-radius: .5rem; padding: .6rem .8rem; }
.kpi .v { font-size: 1.35rem; font-weight: 700; } .kpi .l { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.formula { font-size: .78rem; color: var(--muted); }
.login-wrap { max-width: 400px; margin: 10vh auto; }
input.is-invalid, select.is-invalid { border-color: var(--error); }
.table-actions .btn { padding: .1rem .4rem; }
@media (max-width: 768px) { .page { padding: .75rem .5rem 3rem; } .summary-card { position: static; } }
@media print { .brand-bar, .stepper, .no-print { display: none !important; } }

/* werkzaamheden per ruimte */
.task { padding: .2rem 0; }
.task.on { background: #F8FAFC; border-left: 3px solid var(--action); padding: .3rem .5rem; margin: .15rem 0; border-radius: .25rem; }
.task label { cursor: pointer; }

/* groeperen per ruimte */
.group-row { background: #E8EEF7; cursor: pointer; user-select: none; }
.group-row:hover { background: #DCE6F4; }
.group-row td { border-top: 2px solid #CBD5E1; }
.group-toggle { display: inline-block; width: 1rem; color: var(--brand); }

/* werkrooster: compacte, gelijke kolommen; kop en waarde links uitgelijnd onder elkaar */
.rooster { width: auto; }
.rooster th, .rooster td { white-space: nowrap; text-align: left; min-width: 150px; padding-right: 1.5rem; }
.group-head { cursor: pointer; user-select: none; }
.group-head:hover { background: #F1F5F9; }
.group-head.is-collapsed { border-bottom: 0; }
