/* WettelijkeRente.net — sitespecifieke opmaak (na /_content/IFlow.Gedeeld/css/basis.css geladen).
   Desktop-first; zelfde breakpoints als basis.css. */

/* ---------- Homepage: percentages in de hero en snel rekenen ---------- */

.rate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rate-card {
  display: flex; flex-direction: column; gap: 2px; padding: 20px 22px;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  transition: background .15s, border-color .15s;
}
.rate-card:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.rate-card__label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-light); }
.rate-card__value { font-size: 46px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rate-card__meta { font-size: 15px; color: rgba(255, 255, 255, .8); }
.rate-card__next { margin-top: 8px; font-size: 14px; color: var(--gold-light); }

.quick-calc {
  background: var(--surface); color: var(--ink); border-radius: 14px; padding: 24px;
  box-shadow: var(--shadow-lg); display: grid; gap: 14px;
}
.quick-calc__title { font-size: 20px; margin: 0; }
.quick-calc__more { margin: 0; font-size: 14px; text-align: center; }

/* ---------- Infopagina's ---------- */

.rate-highlight {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 24px; box-shadow: var(--shadow);
}
.rate-highlight > div { display: flex; flex-direction: column; }
.rate-highlight__label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.rate-highlight__value { font-size: 44px; line-height: 1.1; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.rate-highlight__value--sm { font-size: 28px; color: var(--gold); }
.rate-highlight__meta { color: var(--muted); }
.rate-highlight__next { padding-left: 24px; border-left: 1px solid var(--line); }
.rate-highlight .btn { margin-left: auto; }

.table--rates tr.is-current td { background: var(--brand-50); font-weight: 700; }
.table--rates tr.is-future td { background: var(--gold-50); }
.table--rates { max-width: 100%; }

/* ---------- Rekenmodule ---------- */

/* align-items: end — loopt een label over twee regels, dan blijven de velden even hoog en op één lijn
   (anders rekt de grid het veld ernaast uit en wordt de select hoger). */
.calc__contract { display: grid; grid-template-columns: 220px 220px; gap: 16px; margin-top: 16px; align-items: end; }
.calc__end { display: flex; align-items: end; gap: 20px; }
.calc__end .field { width: 220px; }
.calc__end .calc__hint { margin-bottom: 12px; }

.claims { display: grid; gap: 10px; }
.claims__head, .claim {
  display: grid; grid-template-columns: 28px 200px 180px minmax(0, 1fr) 40px; gap: 12px; align-items: center;
}
.claims__head { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 2px; }
.claims__head small { font-weight: 400; color: var(--muted); }
.claims__head .claims__nr { text-align: center; }
.claim__nr { font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.claim__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.claim__field { min-width: 0; }
.claim__remove {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.claim__remove:hover { background: var(--error-50); color: var(--error); }
.claim__remove[hidden] { display: block !important; visibility: hidden; }
/* Knoppen onder de vorderingen: gelijkwaardig, uitgelijnd met de kolom Hoofdsom (28px nummer + 12px gap). */
.claims__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-left: 40px; }
.claims__actions .btn svg { flex: none; }
#import-toggle[aria-expanded="true"] { background: var(--brand-50); border-color: var(--brand); }
.import__status { margin: 0 0 0 4px; font-size: 14px; color: var(--ok); }
.import__status:empty { display: none; }

/* Plakpaneel: over de volle breedte onder de knoppen. */
.import {
  margin-top: 14px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #faf7f7;
}
.import__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.import__title { margin: 0; font-size: 17px; }
.import__close {
  width: 36px; height: 36px; margin: -6px -8px -6px 0; border: 0; border-radius: 50%; background: none;
  color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.import__close:hover { background: var(--brand-50); color: var(--brand); }
/* Drie delen onder elkaar (uitleg, voorbeeld, plakvak), gescheiden door een dun lijntje. */
.import__part + .import__part { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.import__steps {
  counter-reset: stap; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  font-size: 15px; color: var(--ink-2);
}
.import__steps li { counter-increment: stap; position: relative; padding-left: 34px; min-height: 24px; margin: 0; }
.import__steps li::before {
  content: counter(stap); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand);
  font: 700 13px/22px var(--font); text-align: center;
}
.import__steps kbd {
  font: 600 12px var(--font); padding: 1px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; background: var(--surface);
}
.import__label { margin: 0 0 10px; }
.import__label .field__label { margin-right: 8px; }
.import__note { font-size: 14px; color: var(--muted); }
.import__note strong { color: var(--ink-2); }
/* Voorbeeld als klein Excelblad: kolomletters, rijnummers en rasterlijnen. */
.import__sheet { border-collapse: collapse; font-size: 14px; background: var(--surface); }
.import__sheet th, .import__sheet td { border: 1px solid #ddd5d7; padding: 4px 14px; text-align: left; white-space: nowrap; }
.import__sheet th { background: #f3eeee; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; padding: 2px 8px; }
.import__sheet thead th { min-width: 110px; }
.import__sheet thead th:first-child, .import__sheet tbody th { min-width: 32px; }
.import__sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.import__sheet-head td { font-weight: 600; color: var(--ink-2); }
.import__input { display: grid; gap: 6px; }
textarea.import__text { tab-size: 4; min-height: 190px; resize: vertical; background: var(--surface); font-variant-numeric: tabular-nums; }
.import__example { border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.import__example th, .import__example td { padding: 4px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.import__example th { background: #f3eeee; font-size: 13px; color: var(--muted); }
.import__example th small { font-weight: 400; }
.import__example .num { text-align: right; font-variant-numeric: tabular-nums; }
.import__example tr:last-child td { border-bottom: 0; }
.import__preview { margin-top: 16px; }
.import__summary { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.import__hint { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.import__bad { color: var(--error); }
p.import__bad { margin: 0 0 8px; font-size: 14px; }
.import__scroll { max-height: 280px; overflow: auto; }
.import__scroll-x { overflow-x: auto; }
.import__result { width: 100%; }
/* Omschrijving krijgt de resterende ruimte, zodat bedrag en datum compact naast elkaar blijven. */
.import__result th:last-child, .import__result td:last-child { width: 100%; white-space: normal; }
.import__skipped td { color: var(--muted); white-space: normal; }
.import__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ======================================================================
   Kleinere schermen
   ====================================================================== */

@media (max-width: 860px) {
  .import__steps { flex-direction: column; gap: 8px; }
}

@media (max-width: 720px) {
  .rate-card__value { font-size: 36px; }
  .rate-highlight { gap: 16px; }
  .rate-highlight__next { padding-left: 16px; }
  .rate-highlight .btn { margin-left: 0; width: 100%; }
  .calc__contract { grid-template-columns: 1fr 1fr; }
  .calc__end { flex-direction: column; align-items: stretch; gap: 4px; }
  .calc__end .field { width: 100%; }
  .claims__head { display: none; }
  .claim {
    grid-template-columns: 1fr 1fr; gap: 10px; position: relative;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  }
  .claim__nr { grid-column: 1 / -1; text-align: left; color: var(--ink); }
  .claim__nr::before { content: "Vordering "; }
  .claim__field--desc { grid-column: 1 / -1; }
  .claim__label { position: static; width: auto; height: auto; clip: auto; display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
  .claim__remove { position: absolute; top: 6px; right: 6px; }
  .claims__actions { padding-left: 0; }
  .import { padding: 14px; }

  .table--rates .badge { margin-left: 0; display: table; margin-top: 2px; }
}

@media (max-width: 480px) {
  .rate-cards { grid-template-columns: 1fr; }
  .claim { grid-template-columns: 1fr; }
  .claims__actions .btn { flex: 1 1 100%; }
}
