/* ============================================================
   ZekerZZP — gedeelde stijlen voor de factureer-suite
   (Facturen, Offertes, Urenregistratie, BTW-overzicht)
   ============================================================ */

.fact-page { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.fact-hero { margin-bottom: 1.75rem; }
.fact-hero h1 { margin: 0.35rem 0 0.6rem; }
.fact-hero .intro { max-width: 60ch; }
.limiet-info {
  display: inline-block; margin-top: 0.85rem; padding: 0.45rem 0.85rem;
  background: var(--green-soft); color: var(--green-deep);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.fact-abo-cta { margin-top: 0.9rem; }
.ubl-tag { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.4rem; border-radius: 6px;
  background: var(--gold); color: #3a2a00; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.pro-tag { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.4rem; border-radius: 6px;
  background: var(--green-deep); color: #fff; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.kor-waarschuwing {
  margin: 0.7rem 0 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm, 10px);
  background: #fff7e6; border: 1px solid #f0d28a; color: #7a5a12;
  font-size: 0.85rem; line-height: 1.45;
}

/* ---------- Sub-navigatie (Facturen · Offertes · Uren · BTW) ---------- */
.fact-subnav {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 auto 1.6rem;
  max-width: 1180px; padding: 0.35rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft);
  width: fit-content;
}
.fact-subnav a {
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.fact-subnav a:hover { color: var(--ink); background: var(--green-soft); }
.fact-subnav a[aria-current="page"] { background: var(--green); color: #fff; }
/* Accent-knop "Abonnementen": staat rechts en valt op (koopactie). */
.fact-subnav .subnav-cta {
  margin-left: 0.5rem; background: var(--coral, #ff6b47); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 71, 0.3);
}
.fact-subnav .subnav-cta:hover { background: #f4502a; color: #fff; }
@media (max-width: 560px) {
  .fact-subnav { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .fact-subnav .subnav-cta { margin-left: 0.4rem; }
}

.fact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .fact-grid { grid-template-columns: minmax(0, 1fr); } }

.fact-kaart {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.4rem; margin-bottom: 1.5rem;
}
.fact-kaart h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.fact-kaart h3 { font-size: 0.95rem; margin: 1.2rem 0 0.6rem; color: var(--muted); }

.profiel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.profiel-head h2 { margin: 0; }
.profiel-sub { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
/* Hint alleen tonen zolang de kaart ingeklapt is. */
.fact-kaart:has(#profielBody:not([hidden])) .profiel-sub { display: none; }
.profiel-toggle {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: var(--radius-sm); padding: 0.4rem 0.8rem; font: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
}

.veld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.veld-grid .breed { grid-column: 1 / -1; }
@media (max-width: 520px) { .veld-grid { grid-template-columns: 1fr; } }

.veld { display: flex; flex-direction: column; gap: 0.3rem; }
.veld span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.veld input, .veld textarea, .veld select {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 0.92rem;
  background: #fff; color: var(--ink);
}
.veld textarea { resize: vertical; min-height: 64px; }
.veld input:focus, .veld textarea:focus, .veld select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft);
}

.logo-rij { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-preview-box {
  width: 96px; height: 56px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden;
}
.logo-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-knoppen { display: flex; flex-direction: column; gap: 0.4rem; }
.logo-upload-label {
  display: inline-block; cursor: pointer; padding: 0.5rem 0.9rem;
  border: 1px solid var(--green); color: var(--green-deep); background: var(--green-soft);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
}
.logo-upload-label input { display: none; }

/* Regels-tabel */
.regels-tabel { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 0.5rem; }
.regels-tabel th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); padding: 0 0.4rem 0.4rem; font-weight: 700;
}
.regels-tabel th.col-num, .regels-tabel td.regel-totaal-cel { text-align: right; }
.regels-tabel td { padding: 0.25rem 0.4rem; vertical-align: middle; }
.regels-tabel input, .regels-tabel select {
  width: 100%; padding: 0.45rem 0.5rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 0.88rem; background: #fff;
}
.regels-tabel .regel-aantal, .regels-tabel .regel-prijs { text-align: right; }
.col-omschrijving { width: 42%; }
.col-aantal { width: 14%; }
.col-prijs { width: 18%; }
.col-btw { width: 14%; }
.col-totaal { width: 16%; }
.col-actie { width: 32px; }
.regel-totaal { font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.regel-verwijder {
  border: none; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 0.3rem;
}
.regel-verwijder:hover { color: var(--red); }

.editor-acties { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* Live preview */
.preview-kolom { position: sticky; top: 5.5rem; }
@media (max-width: 900px) { .preview-kolom { position: static; } }
.preview-titel { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin: 0 0 0.6rem; }

.fp-paper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 2rem 2rem 1.6rem; font-size: 0.875rem;
  color: #2a2f2d; line-height: 1.5;
}
.fp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: 1.4rem; border-bottom: 2px solid var(--fp-accent, #0d9b72); }
.fp-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.fp-logo { display: block; height: 52px; width: auto; max-width: 200px; object-fit: contain; object-position: left bottom; }
.fp-bedrijfsnaam { font-size: 1.2rem; font-weight: 800; color: var(--fp-accent, #0d9b72); letter-spacing: -0.01em; }
.fp-titel { text-align: right; flex: 0 0 auto; }
.fp-factuur-woord { font-size: 1.6rem; font-weight: 800; color: var(--fp-accent, #0d9b72); letter-spacing: 0.06em; line-height: 1; margin-bottom: 0.4rem; }
.fp-nummer { font-weight: 700; font-size: 0.9rem; color: #2a2f2d; }
.fp-datum { color: #8a938f; font-size: 0.78rem; margin-top: 0.1rem; }
.fp-adressen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 1.4rem; line-height: 1.5; }
.fp-label { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fp-accent, #0d9b72); font-weight: 700; margin-bottom: 0.4rem; }
.fp-leeg { color: #c2c8c4; font-style: italic; }
.fp-tabel { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; }
.fp-tabel th { padding: 0.5rem 0.6rem; text-align: left; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8a938f; font-weight: 700; border-bottom: 2px solid var(--fp-accent, #0d9b72); }
.fp-tabel td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #eef1ef; vertical-align: top; }
.fp-tabel tbody tr:last-child td { border-bottom: 1px solid #eef1ef; }
.fp-num { text-align: right; white-space: nowrap; }
.fp-onder { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; align-items: start; justify-content: space-between; }
.fp-betaal { font-size: 0.82rem; color: #5a6360; line-height: 1.6; white-space: nowrap; flex: 0 1 auto; }
.fp-betaal p { margin: 0 0 0.4rem; }
.fp-opmerking { margin-top: 0.5rem; white-space: pre-wrap; }
.fp-kor { margin-top: 0.5rem; font-style: italic; color: #5a6360; }
.fp-qr-slot { margin-top: 0.85rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.fp-qr { width: 104px; height: 104px; display: block; }
.fp-qr-label { font-size: 0.72rem; color: #8a938f; }
.fp-locked { text-align: center; padding: 2.8rem 1.5rem; }
.fp-locked-icon { font-size: 2.2rem; }
.fp-locked h3 { margin: 0.6rem 0 0.4rem; color: var(--ink); }
.fp-locked p { color: var(--muted); max-width: 34ch; margin: 0 auto 1.1rem; }
#editorKaart.is-vergrendeld { opacity: 0.6; }
#editorKaart.is-vergrendeld .veld span { color: var(--muted); }
.fp-totalen { background: #f7faf8; border-radius: 10px; padding: 0.85rem 1rem; flex: 0 0 auto; min-width: 200px; }
.fp-tot-rij { display: flex; justify-content: space-between; gap: 1.2rem; padding: 0.25rem 0; font-size: 0.85rem; color: #4a514e; }
.fp-tot-eind { border-top: 1.5px solid var(--fp-accent, #0d9b72); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 800; font-size: 1.05rem; color: var(--fp-accent, #0d9b72); }
.fp-voettekst { margin-top: 1.8rem; padding-top: 0.9rem; border-top: 1px solid #eef1ef; font-size: 0.75rem; color: #9aa39f; text-align: center; line-height: 1.5; }

/* Historie (facturen + offertes) */
.factuur-kaart {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.9rem; align-items: center;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: 0.6rem;
}
.factuur-kaart-info { display: flex; flex-direction: column; }
.factuur-kaart-info strong { font-size: 0.95rem; }
.factuur-kaart-info span { font-size: 0.8rem; color: var(--muted); }
.factuur-kaart-bedrag { font-weight: 700; white-space: nowrap; }
.factuur-status { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.82rem; background: #fff; }
.factuur-kaart-acties { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.factuur-kaart-acties .ghost-button { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.danger-button { color: var(--red); border-color: rgba(196, 61, 50, 0.3); }
.factuur-kaart.is-laat { border-color: #e6b8a6; box-shadow: inset 3px 0 0 #e07a3f; }
.factuur-laat { display: inline-block; margin-left: 0.4rem; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #b4431f; background: #fbe4da; padding: 0.08rem 0.42rem; border-radius: 999px; vertical-align: middle; }
.factuur-bekeken { display: inline-block; margin-left: 0.4rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; color: var(--green-deep); background: var(--green-soft); padding: 0.08rem 0.42rem; border-radius: 999px; vertical-align: middle; }
@media (max-width: 640px) {
  .factuur-kaart { grid-template-columns: 1fr 1fr; }
  .factuur-kaart-acties { grid-column: 1 / -1; }
}
.empty-state { color: var(--muted); padding: 0.5rem 0; }

/* Keuze-modal: hele offerte / aanbetaling / slotfactuur */
.keuze-modal-backdrop {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 1rem;
  background: rgba(18, 32, 27, 0.55); backdrop-filter: blur(4px);
}
.keuze-modal-backdrop[hidden] { display: none; }
.keuze-modal-card {
  width: min(460px, calc(100vw - 2rem)); display: grid; gap: 0.9rem; padding: 1.5rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  box-shadow: 0 18px 48px rgba(18, 32, 27, 0.18);
}
.keuze-modal-card h2 { margin: 0; }
.keuze-modal-card > p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.keuze-opties { display: grid; gap: 0.6rem; }
.keuze-optie {
  display: flex; flex-direction: column; gap: 0.15rem; text-align: left;
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font: inherit;
}
.keuze-optie strong { font-size: 0.95rem; color: var(--ink); }
.keuze-optie span { font-size: 0.8rem; color: var(--muted); }
.keuze-optie.is-actief { border-color: var(--green); background: var(--green-soft); }
.keuze-optie.is-actief strong { color: var(--green-deep); }
.keuze-optie:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.keuze-percentage input { max-width: 8rem; }
.keuze-acties { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.2rem; }
.historie-uitleg {
  margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: #fff7e6; border: 1px solid #f0d28a; color: #7a5a12;
  font-size: 0.85rem; line-height: 1.5;
}

/* Paywall */
.fact-paywall {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center; margin-bottom: 1.5rem;
}
.fact-paywall h2 { color: #fff; margin: 0 0 0.6rem; }
.fact-paywall p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 1.2rem; }
.paywall-knoppen { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.paywall-knoppen button, .paywall-knoppen a {
  padding: 0.7rem 1.3rem; border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer; border: none; text-decoration: none; display: inline-block;
}
.paywall-maand { background: #fff; color: var(--green-deep); }
.paywall-jaar { background: var(--gold); color: #3a2a00; }
.plannen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; margin: 0 auto; max-width: 900px; }
.plan-kaart { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; }
.plan-kaart.is-aanbevolen { box-shadow: 0 0 0 3px var(--gold); }
.plan-kaart h3 { margin: 0 0 0.2rem; color: var(--ink); }
.fact-paywall .plan-prijs { font-size: 1.7rem; font-weight: 800; color: var(--green-deep); margin: 0 0 0.9rem; max-width: none; }
.fact-paywall .plan-prijs small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.plan-lijst { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.plan-lijst li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; color: #3a4340; }
.plan-lijst li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan-badge { position: absolute; top: -0.7rem; right: 0.9rem; background: var(--gold); color: #3a2a00; font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.plan-knop { padding: 0.7rem 1rem; border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer; border: none; background: var(--green); color: #fff; width: 100%; }
.plan-knop-rand { background: #fff; color: var(--green-deep); border: 1px solid var(--line); }
.plan-knop-pro { background: var(--gold); color: #3a2a00; }
.paywall-trust { margin-top: 1.3rem; font-size: 0.9rem; color: rgba(255,255,255,0.92); font-weight: 600; }
.paywall-alles { margin-top: 0.6rem; font-size: 0.9rem; }
.tekst-link { background: none; border: none; color: #fff; text-decoration: underline; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.plan-periode { display: inline-flex; gap: 0.2rem; background: rgba(255,255,255,0.16); border-radius: 999px; padding: 0.25rem; margin: 0 auto 1.4rem; }
.plan-periode-knop { border: none; background: transparent; color: #fff; font: inherit; font-weight: 700; padding: 0.4rem 1.1rem; border-radius: 999px; cursor: pointer; }
.plan-periode-knop.is-actief { background: #fff; color: var(--green-deep); }
@media (max-width: 760px) { .plannen { grid-template-columns: 1fr; } }

/* ---------- Urenregistratie ---------- */
.uren-tabel { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.uren-tabel th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); padding: 0 0.4rem 0.5rem; font-weight: 700;
}
.uren-tabel th.num, .uren-tabel td.num { text-align: right; }
.uren-tabel td { padding: 0.45rem 0.4rem; border-top: 1px solid var(--line); vertical-align: middle; font-size: 0.9rem; }
.uren-tabel .uren-leeg td { border-top: none; color: var(--muted); }
.uren-gefactureerd { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green-deep); background: var(--green-soft); padding: 0.08rem 0.42rem; border-radius: 999px; }
.uren-totaalbalk { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: flex-end; margin-top: 1rem; font-size: 0.95rem; }
.uren-totaalbalk strong { color: var(--green-deep); }
@media (max-width: 640px) {
  .uren-tabel thead { display: none; }
  .uren-tabel, .uren-tabel tbody, .uren-tabel tr, .uren-tabel td { display: block; width: 100%; }
  .uren-tabel tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.6rem; padding: 0.3rem 0.5rem; }
  .uren-tabel td { border: none; padding: 0.2rem 0; }
  .uren-tabel td.num { text-align: left; }
}

/* ---------- BTW-overzicht ---------- */
.btw-disclaimer {
  margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: #fff7e6; border: 1px solid #f0d28a; color: #7a5a12; font-size: 0.9rem; line-height: 1.5;
}
.btw-jaarkiezer { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.btw-jaarkiezer select { max-width: 160px; }
.btw-tabel { width: 100%; border-collapse: collapse; }
.btw-tabel th, .btw-tabel td { padding: 0.6rem 0.7rem; text-align: right; font-size: 0.9rem; }
.btw-tabel th:first-child, .btw-tabel td:first-child { text-align: left; }
.btw-tabel thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--line); }
.btw-tabel tbody td { border-bottom: 1px solid var(--line); }
.btw-tabel tbody tr:hover { background: var(--green-soft); }
.btw-tabel tfoot td { font-weight: 800; border-top: 2px solid var(--green); color: var(--green-deep); }
.btw-kwartaal-naam { font-weight: 700; }
.btw-leeg { color: var(--muted); padding: 1rem 0; }
@media (max-width: 640px) {
  .btw-tabel th, .btw-tabel td { padding: 0.45rem 0.35rem; font-size: 0.82rem; }
}

/* ---------- Publieke betaalpagina (factuur.html) ---------- */
.pub-page { max-width: 600px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.pub-merk { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }
.pub-merk img { max-height: 48px; max-width: 180px; object-fit: contain; }
.pub-merk .pub-bedrijf { font-size: 1.25rem; font-weight: 800; color: var(--pub-accent, var(--green-deep)); }
.pub-kaart {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.6rem; margin-bottom: 1.2rem;
}
.pub-kop { border-top: 4px solid var(--pub-accent, var(--green)); border-radius: var(--radius) var(--radius) 0 0; }
.pub-titel { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin: 0 0 0.2rem; }
.pub-nummer { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pub-bedrag { font-size: 2.6rem; font-weight: 800; color: var(--pub-accent, var(--green-deep)); line-height: 1.1; margin: 0.6rem 0 0.2rem; }
.pub-verval { color: var(--muted); font-size: 0.95rem; }
.pub-verval.is-laat { color: #b4431f; font-weight: 700; }
.pub-status { display: inline-block; margin-top: 0.8rem; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; }
.pub-status.betaald { background: var(--green-soft); color: var(--green-deep); }
.pub-status.open { background: #fff7e6; color: #7a5a12; }

.pub-kaart h2 { font-size: 1.05rem; margin: 0 0 0.9rem; }
.pub-iban-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  background: #f7faf8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; }
.pub-iban-rij .label { font-size: 0.78rem; color: var(--muted); }
.pub-iban-rij .val { font-weight: 700; font-size: 1rem; }
.pub-kopieer { border: 1px solid var(--green); background: var(--green-soft); color: var(--green-deep);
  border-radius: var(--radius-sm); padding: 0.4rem 0.8rem; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.pub-qr-blok { text-align: center; margin-top: 0.9rem; }
.pub-qr-blok img { width: 188px; height: 188px; }
.pub-qr-blok p { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.pub-acties { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pub-afspraak-rij { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.pub-afspraak-rij input[type="date"] { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.pub-melding { margin-top: 0.7rem; font-size: 0.9rem; }
.pub-regels { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.3rem; }
.pub-regels th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0 0.4rem 0.4rem; }
.pub-regels td { padding: 0.4rem 0.4rem; border-top: 1px solid var(--line); }
.pub-regels .num { text-align: right; white-space: nowrap; }
.pub-vraag { text-align: center; color: var(--muted); font-size: 0.92rem; }
.pub-vraag a { color: var(--green-deep); font-weight: 700; }
.pub-foot { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 1.5rem; }
.pub-foot a { color: var(--muted); }
.pub-laden, .pub-fout { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* Print: alleen het document (factuur/offerte), netjes over meerdere pagina's. */
@media print {
  .topbar, .nav-panel, .fact-hero, .fact-subnav, #facturenPaywall, #offertesPaywall, .fact-kaart, .site-footer { display: none !important; }
  .fact-page { padding: 0 !important; max-width: none !important; width: auto !important; }
  .fact-grid { display: block !important; }
  .preview-kolom { position: static !important; }
  .preview-titel { display: none !important; }
  #factuurPreview, #offertePreview { position: static !important; }
  .fp-paper { border: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; font-size: 10pt; }
  .fp-tabel tr { break-inside: avoid; }
  .fp-onder { break-inside: avoid; }
  @page { margin: 16mm; size: A4; }
}
