/* ==========================================================================
   AFBOUWR — Uniforme stijl v3.3
   Van toepassing op:
     • afbouwr.nl                    (hub)
     • metalstud.afbouwr.nl          (Metalstud Wand)
     • systeemplafond.afbouwr.nl     (Systeemplafond)

   Gebruik:
   Fase 1:  <link rel="stylesheet" href="style.css?v=3.0">
   Fase 2:  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/afbouwr/shared@main/style.css">
   ========================================================================== */

/* ── FONT IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  /* Achtergrond */
  --bg:           #F8F7F4;
  --surface:      #FFFFFF;
  --surface-2:    #F2F1ED;

  /* Tekst */
  --ink:          #1C2B3A;
  --ink-2:        #57564F;
  --ink-3:        #9B9A93;

  /* Accent groen */
  --accent:       #1F6B45;
  --accent-light: #EDF4EF;
  --accent-dark:  #174D32;

  /* Fout / gevaar / waarschuwing */
  --error:        #D94F4F;
  --error-light:  #FEF2F2;
  --warning:      #C8571B;

  /* Oppervlakken */
  --surface-hover: #FAFAF8;

  /* Randen */
  --border:       #E5E3DC;
  --border-2:     #CECCBF;

  /* Status badges */
  --live-bg:   #DCF0E5; --live-ink:   #1A5C38;
  --soon-bg:   #F5F0E8; --soon-ink:   #8A6A30;
  --plan-bg:   #F0F0EE; --plan-ink:   #7A7A72;
  --future-bg: #F3EEF8; --future-ink: #5E3B82;
  --now-bg:    #DDEEFF; --now-ink:    #1A3F7A;

  /* Typografie */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --mono:         'SF Mono', 'Fira Code', 'Menlo', monospace;

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;

  /* Schaduwen */
  --shadow:    0 2px 12px rgba(28,43,58,.08), 0 1px 3px rgba(28,43,58,.04);
  --shadow-lg: 0 8px 32px rgba(28,43,58,.10), 0 2px 8px rgba(28,43,58,.05);

  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Breakpoints — referentie
     Let op: CSS-variabelen zijn niet bruikbaar in @media-queries.
     Gebruik de px-waarden direct in @media; synchroniseer met deze tokens.
     --bp-lg  →  800px  tablet:       grids worden 2-koloms
     --bp-md  →  640px  mobiel:       header stapelt, navigatie verborgen
     --bp-sm  →  480px  klein mobiel: alles 1-koloms
  */
  --bp-lg: 800px;
  --bp-md: 640px;
  --bp-sm: 480px;

  /* Lay-out breedtes */
  --width-max: 1200px;  /* maximale inhoudsbreedte app/hub wrapper */
}

/* ── BASE ── */
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtiele ruis-textuur */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ==========================================================================
   TYPOGRAFIE
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Calculator titels gebruiken body font (compacter) */
.card-title,
.table-header h3,
.section-sub,
.results-group-title,
.handmatig-titel {
  font-family: var(--font);
}

h1 em, h2 em { font-style: italic; color: var(--accent); }

p { font-size: .93rem; color: var(--ink-2); line-height: 1.65; font-weight: 300; }

code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--surface-2);
  padding: .1em .4em;
  border-radius: 4px;
}

/* ==========================================================================
   NAVIGATIE
   ========================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(248,247,244,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: .45rem;
}

.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: .85rem; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.nav-back {
  font-size: .82rem; color: var(--ink-2); text-decoration: none;
  display: flex; align-items: center; gap: .35rem;
  transition: color .15s, gap .15s;
}
.nav-back:hover { color: var(--ink); gap: .5rem; }

.nav-back-row {
  display: flex; align-items: center; gap: 1.5rem;
}

.nav-account-link {
  font-size: .82rem; color: var(--ink-2); text-decoration: none;
  padding: 4px 12px; border: 1.5px solid var(--border); border-radius: 20px;
  transition: color .15s, border-color .15s;
}
.nav-account-link:hover { color: var(--ink); border-color: var(--ink-3); }
.nav-account-link.ingelogd { border-color: var(--accent); color: var(--accent); }

body.has-nav { padding-top: 56px; }

/* ==========================================================================
   APP WRAPPER — gedeeld door alle calculatoren
   ========================================================================== */

.app-wrapper {
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 24px) 60px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-icon {
  width: 42px; height: 42px;
  background: var(--ink); color: white;
  font-size: 18px;
  display: grid; place-items: center;
  border-radius: 10px; flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }

.brand-eyebrow {
  font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .1em;
  line-height: 1;
}

.brand h1 {
  font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.1;
}

.brand-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; font-weight: 300; }

/* ==========================================================================
   PROJECTNAAM INVOER
   ========================================================================== */

.header-rechts {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}

.project-invoer { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }

.project-invoer label {
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .6px;
}

.project-invoer input {
  height: 38px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  color: var(--ink); background: var(--surface);
  width: 280px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.project-invoer input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,107,69,.12);
}

.project-invoer input::placeholder { color: var(--ink-3); font-weight: 400; }

.btn-reset {
  height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--error); background: white; color: var(--error);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.btn-reset:hover { background: var(--error-light); }

/* ==========================================================================
   KAARTEN
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 20px; color: var(--ink);
}

.section-sub {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px; padding-top: 18px;
  border-top: 1px solid var(--border);
}

.card-actions {
  margin-top: 20px; display: flex; align-items: center; gap: 12px;
}

/* ==========================================================================
   FORM GRID & INVOER
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .4px;
}

/* Uniforme input */
.form-group input,
.form-group select,
.input-field {
  height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,107,69,.12);
}

.form-group input::placeholder,
.input-field::placeholder { color: var(--ink-3); }

/* Inline validatiefouten */
.form-group input.invalid,
.form-group select.invalid {
  border-color: var(--error) !important;
}
.form-group input.invalid:focus,
.form-group select.invalid:focus {
  box-shadow: 0 0 0 3px rgba(217,79,79,.15);
}
.field-error-msg {
  font-size: 11px;
  color: var(--error);
  line-height: 1.3;
}

/* Select pijl */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9A93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* Afgeleide waarde (readonly display) */
.form-group.derived .derived-value {
  height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-light);
  display: flex; align-items: center;
  font-family: var(--mono);
}

/* Input mode radio (systeemplafond) */
.input-mode-toggle {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 0; padding-bottom: 0; border: none;
}

.radio-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--ink);
  font-family: var(--font); font-weight: 400;
}
.radio-label input[type="radio"] {
  width: 15px; height: 15px; cursor: pointer; accent-color: var(--accent);
}

/* Extra opties */
.extra-opties { margin-top: 20px; }
.extra-opties.hidden { display: none; }

/* ==========================================================================
   GEDEELDE CALCULATOR PATRONEN
   ========================================================================== */

/* Compacte keuze-knoppen (systeemtype, kleur, variant) */
.btn-group-compact {
  display: flex;
  gap: 10px;
  width: fit-content;
  margin-top: 4px;
}
.btn-group-compact .btn {
  flex: none;
  height: 38px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  min-width: 130px;
}
.btn-group-compact .btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-group-compact .btn:hover:not(.active) {
  border-color: var(--border-2);
}

/* Kleur-swatch in knop */
.kleur-swatch {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.kleur-swatch-wit   { background: var(--surface);  border: 1.5px solid var(--border-2); }
.kleur-swatch-zwart { background: var(--ink);      border: 1.5px solid var(--ink); }

/* Radio-keuze kolom */
.radio-rij {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}
.radio-rij label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.radio-rij input[type="radio"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Verticale ruimte tussen blokken binnen een invoerkaart */
.input-card .form-grid + .form-grid,
.input-card .form-grid + .invoer-rij,
.input-card .invoer-rij + .form-grid,
.input-card .sectie-scheiding + .form-grid,
.input-card .sectie-scheiding + .invoer-rij {
  margin-top: 20px;
}

/* Spacing tussen form-groups in de account-kaart */
/*
.card .form-group + .form-group {
  margin-top: 16px;
}
*/

/* Invoer-rij: omschrijving + methode + maten op één rij */
.invoer-rij {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* Vrij invoerveld dat na een select verschijnt (bijv. merk-anders) */
.input-sub {
  display: none;
  margin-top: 8px;
}
.input-sub.visible {
  display: block;
}

/* Sectie-scheiding met extra marge (boven materiaalspecificatie) */
.sectie-scheiding-lg {
  margin: 20px 0 16px;
}

/* Tfoot hint-cel (bijv. 'zie totaaloverzicht ↓') */
.tfoot-hint {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
}

/* ==========================================================================
   SPECS GRID (metalstud — vaste kolom-indeling)
   ========================================================================== */

.specs-grid { display: flex; flex-direction: column; gap: 14px; }

.specs-rij { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.specs-rij-2col { grid-template-columns: repeat(2, 1fr); }
.specs-rij-1col { grid-template-columns: 1fr; max-width: 220px; }
#gips-select-groep { grid-template-columns: repeat(4, 1fr); }

/* VU inline */
.vu-inline { display: flex; gap: 8px; align-items: center; }
.vu-inline select,
.vu-inline input {
  flex: 1; height: 40px; padding: 0 10px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none;
  transition: border-color .15s; appearance: none; -webkit-appearance: none;
}
.vu-inline select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9A93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.vu-inline select:focus,
.vu-inline input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,107,69,.12); }

.label-optioneel { display: flex; align-items: center; gap: 8px; }
.optioneel-tag {
  font-size: 10px; font-weight: 600; color: var(--ink-3);
  background: var(--bg); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .4px;
}
.form-group-span { grid-column: 1 / -1; }

/* Sectie scheiding */
.sectie-scheiding {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 4px; color: var(--ink-3);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .7px;
}
.sectie-scheiding::before,
.sectie-scheiding::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ==========================================================================
   KNOPPEN
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s, opacity .15s, background .15s;
  line-height: 1;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent); color: var(--surface); border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(31,107,69,.22);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(31,107,69,.32); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--surface); color: var(--accent); border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-light); }

.btn-dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-dark:hover { opacity: .85; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--ink-2); }

/* Systeem-keuze knoppen (systeemplafond) */
.button-group { display: flex; gap: 10px; width: 100%; }
.button-group .btn {
  flex: 1; height: 42px;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: 14px;
}
.button-group .btn.active {
  background: var(--ink); color: white; border-color: var(--ink);
}
.button-group .btn:hover:not(.active) { border-color: var(--border-2); }
/* btn-system alias */
.btn-system { /* inherits .btn + .button-group .btn */ }

/* Calc status */
.calc-status { font-size: 13px; color: var(--ink-3); transition: color .2s; }
.calc-status.calculating { color: var(--warning); }
.calc-status.ready       { color: var(--accent); }
.calc-status.error       { color: var(--error); }

/* Maten */
.btn-sm { font-size: .8rem; height: 34px; padding: 0 12px; }
.btn-lg { font-size: .9rem; height: 44px; padding: 0 22px; }
.btn-full { width: 100%; }

/* Delete knop in tabel */
.btn-delete,
.btn-delete-room {
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 15px;
  padding: 3px 7px; border-radius: 4px;
  transition: color .15s, background .15s; line-height: 1;
}
.btn-delete:hover,
.btn-delete-room:hover { color: var(--error); background: rgba(217,79,79,.08); }

/* Tabel acties balk */
.table-actions {
  display: flex; gap: 12px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ==========================================================================
   RESULTATEN SECTIE
   ========================================================================== */

.results-section { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.totalen-card { border-width: 2px; }

.table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.table-header-actions {
  display: flex; align-items: center; gap: 6px;
}

.table-header h3 {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}

.tag {
  font-size: 11px; font-weight: 500; color: var(--ink-3);
  background: var(--bg); padding: 2px 8px;
  border-radius: 20px; border: 1px solid var(--border);
  letter-spacing: .3px; text-transform: uppercase;
}

.table-count { font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   TABEL
   ========================================================================== */

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  padding: 10px 16px;
  text-align: right;
  font-size: 11px; font-weight: 600;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th:first-child { text-align: left; }

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2); text-align: right; font-weight: 300;
}
tbody td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-hover); }

.empty-row td {
  text-align: center; color: var(--ink-3);
  padding: 28px 16px; font-size: 13px;
}

tfoot tr { background: var(--surface-2); border-top: 2px solid var(--border); }
tfoot td {
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; text-align: right;
}
tfoot td.totaal-label { color: var(--ink); font-weight: 600; text-align: left; }
tfoot td.totaal-val   { color: var(--ink); font-family: var(--mono); }

tr.totaal-categorie-header td {
  background: var(--surface-2); color: var(--ink-2);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  padding: 7px 16px; text-align: left !important;
}

tr.extra-rij td { color: var(--ink-2); font-style: italic; }
tr.extra-rij td:first-child { font-style: normal; color: var(--ink); }

/* Affiliate links in tabellen */
.affiliate-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: inherit;
}
.affiliate-link:hover { text-decoration: underline; }

.num { font-family: var(--mono); }

/* Select in tabel */
table select {
  padding: 6px 26px 6px 10px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: white; color: var(--ink);
  font-size: 13px; cursor: pointer;
  font-family: var(--font); transition: border-color .15s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9A93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  width: 100%;
}
table select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,107,69,.1); }

/* ==========================================================================
   HANDMATIG INVOER
   ========================================================================== */

.handmatig-invoer {
  padding: 16px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.handmatig-titel {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .6px;
}

.handmatig-rij {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.handmatig-label {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  width: 72px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .4px;
}

.handmatig-rij input,
.handmatig-rij .handmatig-select {
  height: 38px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none; flex: 1; min-width: 80px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.handmatig-rij .input-breed { flex: 3; min-width: 140px; }
.handmatig-rij .handmatig-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9A93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px; flex: 0 0 90px;
}
.handmatig-rij input:focus,
.handmatig-rij .handmatig-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,107,69,.12);
}


.invoer-of-scheiding {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 12px; font-weight: 500; padding-left: 62px;
}
.invoer-of-scheiding::before,
.invoer-of-scheiding::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.handmatig-actie { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.handmatig-hint  { font-size: 12px; color: var(--ink-3); }
.handmatig-hint em { font-style: italic; }

/* Mobiele lijstweergave voor handmatig toegevoegde materialen — desktop verborgen */
.handmatig-lijst-mobiel { display: none; }

.invoer-scheiding { height: 1px; background: var(--border); margin: 12px 0; }

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 20px;
  white-space: nowrap;
}
.badge-live    { background: var(--live-bg);   color: var(--live-ink); }
.badge-soon    { background: var(--soon-bg);   color: var(--soon-ink); }
.badge-planned { background: var(--plan-bg);   color: var(--plan-ink); }
.badge-future  { background: var(--future-bg); color: var(--future-ink); }
.badge-now     { background: var(--now-bg);    color: var(--now-ink); }
.badge-done    { background: var(--live-bg);   color: var(--live-ink); }

/* ==========================================================================
   HUB LAYOUT (afbouwr.nl landingspagina)
   ========================================================================== */

/* ── Hub wrapper ── */
.hub-wrapper {
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 24px);
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}

.hero-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}

/* ── Hub secties ── */
.hub-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.hub-section + .hub-section {
  border-top: 1px solid var(--border);
}

.hub-section-head {
  margin-bottom: 24px;
}

.hub-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.hub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ── Calculator kaarten grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}

.tool-card.inactive {
  pointer-events: none;
  opacity: .72;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.tool-card.live .tool-icon {
  background: var(--accent-light);
  border-color: rgba(31,107,69,.15);
}

.tool-title {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.25;
  flex: 1;
}

.tool-desc {
  font-size: .83rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tool-meta {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

.tool-arrow {
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Roadmap ── */
.roadmap-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.roadmap-info { flex: 1; }

.roadmap-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.roadmap-desc {
  font-size: .78rem;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 300;
}

/* ── Bug melden ── */
.bug-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
}

.bug-card > p {
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.65;
  font-weight: 300;
}

.bug-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.bug-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bug-form .form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.bug-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}

.bug-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,107,69,.12);
}

.bug-form textarea::placeholder {
  color: var(--ink-3);
}

.bug-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bug-status {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: none;
}

.bug-status.visible {
  display: block;
}

/* ── Hub footer ── */
.hub-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.hub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hub-footer-logo {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hub-footer-copy {
  font-size: .75rem;
  color: var(--ink-3);
  font-weight: 300;
}

.footer-mail {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .75rem;
  transition: color .15s;
}
.footer-mail:hover { color: var(--ink); }

/* Verouderd — behouden voor compatibiliteit */
.section-hub {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative; z-index: 1;
}

.divider {
  max-width: 1160px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.section-head { margin-bottom: 2.25rem; }

.section-eyebrow {
  display: block; font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .55rem;
}

.section-title-hub {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; letter-spacing: -.01em; line-height: 1.2;
}

.section-desc {
  margin-top: .5rem; font-size: .88rem; color: var(--ink-2);
  line-height: 1.65; font-weight: 300; max-width: 480px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer { display: none; } /* calculator footer verborgen */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
  position: relative; z-index: 1;
}

.site-footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: .4rem;
}

.footer-copy { font-size: .75rem; color: var(--ink-3); margin-top: .2rem; font-weight: 300; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }

/* ==========================================================================
   HULPKLASSEN
   ========================================================================== */

.hidden     { display: none !important; }
.text-muted  { color: var(--ink-3); }
.text-accent { color: var(--accent); }

hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ==========================================================================
   ANIMATIES
   ========================================================================== */

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.anim-up   { animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; }
.anim-up-1 { animation: fadeUp .5s .08s cubic-bezier(.4,0,.2,1) both; }
.anim-up-2 { animation: fadeUp .5s .16s cubic-bezier(.4,0,.2,1) both; }
.anim-up-3 { animation: fadeUp .5s .24s cubic-bezier(.4,0,.2,1) both; }
.anim-up-4 { animation: fadeUp .5s .32s cubic-bezier(.4,0,.2,1) both; }
.anim-up-5 { animation: fadeUp .5s .40s cubic-bezier(.4,0,.2,1) both; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 800px) { /* --bp-lg */
  .specs-rij              { grid-template-columns: 1fr 1fr; }
  #gips-select-groep      { grid-template-columns: 1fr 1fr; }
  .specs-rij-1col         { max-width: 100%; }
  .invoer-rij             { grid-template-columns: 1fr 1fr; }
  .btn-group-compact      { width: 100%; }
  .btn-group-compact .btn { flex: 1; min-width: 0; }
}

@media (max-width: 640px) { /* --bp-md */
  .form-grid              { grid-template-columns: 1fr 1fr; }
  .card                   { padding: 16px; }
  .app-header             { padding: 16px 0 14px; }
  .header-inner           { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-rechts          { align-items: flex-start; width: 100%; }
  .project-invoer         { align-items: flex-start; width: 100%; }
  .project-invoer input   { width: 100%; }
  .nav-links              { display: none; }
  .site-footer-inner      { flex-direction: column; align-items: flex-start; }
  .table-header           { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 600px) { /* hub-specifiek */
  .tools-grid       { grid-template-columns: 1fr; }
  .bug-form-row     { grid-template-columns: 1fr; }
  .hub-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) { /* --bp-sm */
  .form-grid              { grid-template-columns: 1fr; }
  .specs-rij              { grid-template-columns: 1fr; }
  #gips-select-groep      { grid-template-columns: 1fr; }
  .invoer-rij             { grid-template-columns: 1fr; }
  .button-group           { flex-direction: column; }
  .button-group .btn      { width: 100%; }
  .table-actions          { flex-direction: column; }
  .table-actions .btn     { width: 100%; }
  .handmatig-rij          { flex-direction: column; align-items: stretch; }
  .handmatig-label        { width: auto; }
  .handmatig-rij .handmatig-select { flex: unset; width: 100%; }

  /* Kleinere font-size in tabellen op mobiel */
  table                   { font-size: 12px; }
  thead th                { font-size: 10px; }
  tbody td:first-child    { font-weight: 400; }

  /* Handmatig toegevoegde materialen: lijstweergave */
  .handmatig-lijst-mobiel { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .handmatig-item {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 10px 12px;
  }
  .handmatig-item-naam   { flex: 1; font-size: 14px; }
  .handmatig-item-detail { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
  .handmatig-item-delete {
    min-width: 36px; height: 36px; background: none;
    border: 1.5px solid var(--border); border-radius: var(--r-sm);
    color: var(--ink-2); font-size: 14px; cursor: pointer;
  }
  .handmatig-item-delete:active { background: var(--surface-2); }
  /* Verberg delete-knoppen in totaaloverzicht op mobiel */
  tr.extra-rij .btn-delete,
  tr.extra-rij .btn-delete-room { display: none; }
}

/* ==========================================================================
   ACCOUNT PAGINA
   ========================================================================== */

.account-status {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.account-status-succes { background: #e6f4ec; color: #1a6637; border: 1px solid #a8d5b5; }
.account-status-fout   { background: #fdecea; color: #9b2020; border: 1px solid #f5afa8; }

.account-email {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.account-hint {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 16px;
  line-height: 1.6;
}

/* Account wrapper (restricts width on large screens) */
.account-wrapper {
  max-width: 560px;
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* Auth tabs (Inloggen / Registreren) */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ink-5);
}
.auth-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Auth card (inloggen / registreren kaart) */
.auth-card {
  margin-bottom: 0;
}

/* Wachtwoord vergeten — subtiele tekstknop naast primaire actie */
.ww-vergeten-link {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  font-weight: 400;
  line-height: 1;
  align-self: center;
  white-space: nowrap;
}
.ww-vergeten-link:hover { color: var(--ink); text-decoration: underline; }

/* Informatietekst in reset-kaart */
.reset-info {
  font-size: 14px;
  color: var(--ink-2, var(--ink-3));
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Profiel weergave (avatar + naam + email) */
.profiel-weergave {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profiel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profiel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profiel-naam {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.profiel-email {
  font-size: 13px;
  color: var(--ink-3);
}
.profiel-bedrijf {
  font-size: 13px;
  color: var(--ink-3);
}

/* 2-column form grid */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.form-grid-2col input,
.form-grid-2col select {
  min-width: 0;
}
@media (max-width: 420px) {
  .form-grid-2col { grid-template-columns: 1fr; }
}

/* Hero welkomstbericht (homepage, ingelogd) */
.hero-welkom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--surface-2, #f5f5f3);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
}
.hero-welkom-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.hero-welkom-link:hover { text-decoration: underline; }

/* ==========================================================================
   INFO / FAQ SECTIE
   ========================================================================== */

.info-sectie {
  max-width: var(--app-max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-blok h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.info-blok p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.info-blok ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-blok ul li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.faq-lijst {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-lijst dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.faq-lijst dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

@media (max-width: 600px) {
  .info-sectie { padding: 28px 16px 48px; gap: 28px; }
  .info-blok h2 { font-size: 15px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  /* ── Reset achtergrond ── */
  body, body::before { background: white; }
  body::before       { display: none; }

  /* ── Verberg alles wat niet afgedrukt hoeft ── */
  .nav,
  .site-footer,
  .no-print,
  .input-card,
  .card-actions,
  .table-actions,
  .sectie-scheiding,
  .btn,
  .btn-reset,
  .btn-delete,
  .btn-delete-room,
  .handmatig-invoer,
  .results-section .table-card:not(.overzicht-card):not(.totalen-card) { display: none !important; }

  /* ── Layout ── */
  .app-wrapper   { max-width: 100%; padding: 0; }
  .main-content  { padding: 0; gap: 12px; }

  /* ── Koptekst: toon alleen projectnaam ── */
  .app-header            { border-bottom: 2px solid #000; padding: 12px 0; margin-bottom: 16px; }
  .header-inner          { justify-content: space-between; align-items: baseline; }
  .brand-eyebrow         { display: none; }
  .header-rechts         { gap: 0; }
  .project-invoer        { display: flex; align-items: baseline; gap: 8px; }
  .project-invoer label  { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; display: block; }
  .project-invoer input  { border: none; font-size: 16px; font-weight: 700; padding: 0; pointer-events: none; background: transparent; width: auto; min-width: 200px; }

  /* ── Tabelkaarten ── */
  .table-card            { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; margin-bottom: 14px; page-break-inside: avoid; }
  .table-header          { padding: 10px 16px; }
  .table-header h3       { font-size: 13px; }
  .table-wrapper         { overflow: visible; }
  table                  { font-size: 11px; }
  th, td                 { padding: 5px 8px; }

  /* ── Paginamarges ── */
  @page { margin: 18mm 16mm; }
}
