/* Uitwerkingenportaal — design-standaard 'Bijlagen/percelen'-stijl (CLAUDE.md)
   Zelfstandige, compacte uitvoering van de pv-card/mdoc-bouwstenen. */
:root {
  --color-surface-0: #f3f5f7;
  --color-surface-1: #ffffff;
  --color-surface-2: #f6f8fa;
  --color-border: #dde3e8;
  --color-border-light: #eef1f4;
  --color-text: #2d3e4f;
  --color-text-dim: #6b7a88;
  --accent: #2d5e5b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--color-surface-0); color: var(--color-text); font-size: 14px; }

.btn { border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface-1); color: var(--color-text); padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--ghost { background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }

.pv-card { background: var(--color-surface-1); border: 1px solid var(--color-border-light); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); padding: 16px; }

/* Login */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card h1 span { display: block; font-size: 13px; font-weight: 400; color: var(--color-text-dim); margin-top: 2px; }
.login-card input { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 9px; font-size: 15px; font-family: inherit; }
.fout { color: #c0392b; font-size: 13px; min-height: 18px; }

/* App-frame */
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--color-surface-1); border-bottom: 1px solid var(--color-border-light); position: sticky; top: 0; }
.topbar strong { font-size: 17px; }
.topbar .wie { font-size: 12.5px; color: var(--color-text-dim); }
.topbar .spacer { flex: 1; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }

/* Kaarten + rijen (mdoc-patroon) */
.mdoc-card { margin-bottom: 14px; }
.mdoc-card__titel { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.mdoc-sub { font-size: 12.5px; color: var(--color-text-dim); margin-bottom: 8px; }
.mdoc-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--color-border-light); cursor: pointer; }
.mdoc-row:last-child { border-bottom: none; }
.mdoc-row:hover { background: var(--color-surface-2); }
.mdoc-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mdoc-row__meta { font-size: 12.5px; color: var(--color-text-dim); white-space: nowrap; }
.mdoc-leeg { font-size: 13px; color: var(--color-text-dim); padding: 8px 0; }
.chev { color: var(--color-text-dim); }

/* Status-pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--groen { background: #e6f6ee; color: #1a7f37; }
.pill--blauw { background: #e8f0fe; color: #1d4ed8; }
.pill--grijs { background: #eef1f4; color: #6b7a88; }
.pill--rood  { background: #fdecea; color: #c0392b; }
.pill--amber { background: #fef3c7; color: #92400e; }

/* Detail: blokken-tabel */
.blok-rij { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border-light); }
.blok-rij:last-child { border-bottom: none; }
.blok-rij .naam { flex: 1; min-width: 0; font-weight: 600; }
.blok-rij .conf { font-variant-numeric: tabular-nums; width: 44px; text-align: right; }
.blok-detail { font-size: 12.5px; color: var(--color-text-dim); margin: 2px 0 6px; padding-left: 2px; }
.warn { color: #92400e; }
.terug { margin-bottom: 12px; }
