/* DIN 509 size-table page (design: Rabo, 2026-11-10). Load after branding.css, styles.css, site.css, langswitch.css. */
/* DIN 509 maattabelpagina — table-page.css
   Laden ná branding.css, styles.css, site.css, langswitch.css.
   Pagina-specifiek; bestaande shared CSS niet wijzigen. */

.dt-page { line-height: 1.5; }
.dt-page a:focus-visible,
.dt-page button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Header: zelfde verloop als de calculator, iets ruimer voor een documentpagina */
.dt-page header {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
  padding: 1rem 1.25rem 1.15rem;
  text-align: center;
}
.dt-page header .gd-brand-mark { opacity: .9; }
.dt-page header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: .35rem;
  line-height: 1.25;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .dt-page header h1 { font-size: 1.45rem; }
}
.dt-page header .dt-lead {
  font-size: .95rem;
  opacity: .9;
  margin: .4rem auto 0;
  max-width: 40rem;
}

@media (min-width: 1100px) {
  .dt-page header { padding: .7rem 1.5rem 1rem; }
  .dt-page header h1 { font-size: 1.5rem; }
}

/* Inhoudskolom: ruimer dan de 900px van styles.css, tabel moet op 1366 passen */
.dt-wrap {
  max-width: 1180px;
  margin: 1.25rem auto 2rem;
  padding: 0 1.25rem;
}

/* Breadcrumb: onder de header, op lichte achtergrond (contrast) */
.dt-bc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .9rem;
  color: #475569;
}
.dt-bc li { display: flex; align-items: center; gap: .35rem; }
.dt-bc a {
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .15rem;
  text-underline-offset: .15em;
}
.dt-bc a:hover { text-decoration: underline; }
.dt-bc [aria-current="page"] { color: #0f172a; font-weight: 600; }
.dt-bc .dt-bc-sep { color: #94a3b8; user-select: none; }


.dt-intro {
  font-size: 1.02rem;
  color: #1e293b;
  max-width: 48rem;
  margin: 0 0 1.1rem;
}
.dt-intro p { margin: 0 0 .55rem; }
.dt-intro p:last-child { margin-bottom: 0; }

/* Actiebalk: hoofdknop + kopiëren/CSV */
.dt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .75rem;
  margin: 0 0 1rem;
}
.dt-cta-hint { flex: 1 1 100%; font-size: .85rem; color: #475569; margin: 0; }

.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.dt-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.dt-btn-primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.dt-btn-primary:hover { background: #1d4ed8; color: #fff; }

.dt-btn-sec {
  background: #fff;
  color: #1d4ed8;
  border-color: #2563eb;
}
@media (hover: hover) {
  .dt-btn-sec:hover { background: #2563eb; color: #fff; }
}

.dt-copy-status {
  font-size: .85rem;
  color: #065f46;
  min-height: 1.2em;
  margin: 0;
}
.dt-copy-status:empty { display: none; }
.dt-copy-status.is-fail { color: #b91c1c; }

/* Skip link */
.dt-skip {
  position: absolute;
  left: .75rem;
  top: .5rem;
  z-index: 10;
  background: #fff;
  color: #1d4ed8;
  padding: 0 .75rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.dt-skip:focus { transform: none; outline: 2px solid #2563eb; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

/* ===== Tabel: variant A, horizontaal scrollen + sticky eerste kolom ===== */
.dt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin: 0 0 1rem;
  max-width: 100%;
}
.dt-swipe {
  display: none;
  font-size: .85rem;
  color: #475569;
  margin: 0 0 .45rem;
}
@media (max-width: 700px) {
  .dt-view-scroll .dt-swipe { display: block; }
}

.dt-table {
  width: 100%;
  min-width: 52rem; /* niet inkrimpen op smalle schermen: horizontaal scrollen */
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
  line-height: 1.35;
  color: #0f172a;
}
.dt-view-cards .dt-table { min-width: 0; }
.dt-table-title {
  font-size: .9rem;
  font-weight: 650;
  color: #334155;
  margin: 0 0 .45rem;
  line-height: 1.4;
}
.dt-table caption.ls-vh { padding: 0; }
.dt-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 2px solid #1e3a5f;
  padding: .55rem .55rem;
  white-space: nowrap;
}
.dt-table thead th.dt-th-text { text-align: left; }
.dt-table thead .dt-th-group {
  background: #e2e8f0;
  border-bottom: 1px solid #94a3b8;
  font-size: .75rem;
  letter-spacing: .02em;
  color: #334155;
  white-space: normal;
}
.dt-table thead .dt-th-sub { color: #475569; font-size: .7rem; display: block; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: .1rem; }
.dt-table .dt-sym { font-style: italic; font-weight: 700; font-size: .95rem; color: #0f172a; }
.dt-table .dt-unit { font-weight: 500; color: #475569; font-style: normal; }

.dt-table tbody th,
.dt-table tbody td {
  padding: .55rem .6rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.dt-table tbody th {
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  background: #fff;
  color: #0f172a;
}
.dt-table tbody tr:nth-child(odd) th,
.dt-table tbody tr:nth-child(odd) td { background: #fff; }
.dt-table tbody tr:nth-child(even) th,
.dt-table tbody tr:nth-child(even) td { background: #f8fafc; }
.dt-table tbody tr:hover th,
.dt-table tbody tr:hover td { background: #eff6ff; }
.dt-table tbody td { text-align: right; }

/* Sticky eerste kolom (diameter) — variant A */
.dt-view-scroll .dt-table tbody th,
.dt-view-scroll .dt-table thead th.dt-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 4px 0 8px -4px rgba(15, 23, 42, .18);
}
.dt-view-scroll .dt-table thead th.dt-sticky { z-index: 3; background: #f1f5f9; }


/* Serie 1: geen kleur-alleen-onderscheid; voorkeur staat in de notitie. Cijfer + (pref.) */
.dt-series { text-align: center !important; font-weight: 650; white-space: nowrap; }
.dt-load { text-align: left !important; white-space: nowrap; }
.dt-series-val { white-space: nowrap; }
.dt-pref { font-size: .8rem; font-weight: 700; color: #334155; margin-left: .1em; }

/* ===== Variant B: gestapelde kaarten (zelfde <table>, andere CSS) ===== */
body.dt-view-cards { overflow-x: hidden; }
.dt-view-cards { overflow-x: hidden; }
@media (max-width: 700px) {
  .dt-view-cards .dt-scroll {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .dt-view-cards .dt-table,
  .dt-view-cards .dt-table tbody { display: block; width: 100%; max-width: 100%; }
  .dt-view-cards .dt-table thead { display: none; }
  .dt-view-cards .dt-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin: 0 0 .85rem;
    padding: .35rem 0 .45rem;
  }
  .dt-view-cards .dt-table tbody tr:nth-child(even),
  .dt-view-cards .dt-table tbody tr:hover { /* reset zebra; kaart heeft eigen vlak */ }
  .dt-view-cards .dt-table tbody th,
  .dt-view-cards .dt-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    text-align: right;
    background: transparent !important;
    border-bottom: 1px solid #f1f5f9;
    padding: .45rem .9rem;
    white-space: normal;
    position: static;
    box-shadow: none;
  }
  .dt-view-cards .dt-table tbody th {
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: .15rem;
  }
  .dt-view-cards .dt-table tbody td::before {
    content: attr(data-label);
    text-align: left;
    font-weight: 650;
    color: #334155;
    font-variant-numeric: normal;
  }
  .dt-view-cards .dt-table tbody .dt-load,
  .dt-view-cards .dt-table tbody .dt-series { text-align: right !important; }
  .dt-view-cards .dt-pref { display: inline; }
}

/* Notities onder de tabel */
.dt-notes {
  font-size: .9rem;
  color: #334155;
  max-width: 52rem;
  margin: 0 0 1.15rem;
}
.dt-notes p { margin: 0 0 .45rem; }
.dt-notes a {
  color: #1d4ed8;
  font-weight: 650;
  text-underline-offset: .15em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.dt-src { color: #475569; font-size: .85rem; }
.dt-disclaimer {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: #475569;
}


/* ===== Print: bestaande class no-print blijft gelden (styles.css). Extra regels. ===== */
@media print {
  .dt-page header {
    background: none !important;
    color: #000 !important;
    padding: 0 0 .5rem;
    text-align: left;
    border-bottom: 1px solid #cbd5e1;
  }
  .dt-page header h1 { font-size: 1.15rem; color: #000; max-width: none; margin: .2rem 0 0; }
  .dt-page header .dt-lead,
  .dt-page header .gd-brand-mark { display: none; }
  .dt-wrap { max-width: 100%; margin: 0; padding: 0; }
  .dt-bc { font-size: .8rem; margin-bottom: .5rem; }
  .dt-bc a, .dt-bc a:visited { color: #000; text-decoration: none; min-height: 0; }
  .dt-intro { font-size: .85rem; margin-bottom: .4rem; }
  .dt-intro p { margin-bottom: .3rem; }
  .dt-table-title { margin-bottom: .3rem; }
  .dt-disclaimer, .site-footer { font-size: .75rem; margin-top: .6rem; }
  .site-footer { padding-top: .5rem; }
  .dt-actions, .dt-skip { display: none !important; }
  .dt-scroll {
    overflow: visible;
    box-shadow: none;
    border: 1px solid #94a3b8;
    background: #fff;
  }
  .dt-table { font-size: 8.2pt; width: 100%; }
  .dt-table thead { display: table-header-group; }
  .dt-table tfoot { display: table-footer-group; }
  .dt-table thead th,
  .dt-view-scroll .dt-table thead th.dt-sticky,
  .dt-view-scroll .dt-table tbody th {
    position: static;
    box-shadow: none;
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .dt-table tbody th, .dt-table tbody td { padding: .28rem .32rem; }
  .dt-table tbody tr { break-inside: avoid; }
  .dt-notes a[href]::after { content: none; }
  .dt-notes a { min-height: 0; color: #000; }
  .dt-view-cards .dt-table,
  .dt-view-cards .dt-table thead,
  .dt-view-cards .dt-table tbody,
  .dt-view-cards .dt-table tbody tr,
  .dt-view-cards .dt-table tbody th,
  .dt-view-cards .dt-table tbody td {
    display: table;
    width: 100%;
  }
  .dt-view-cards .dt-table { display: table; }
  .dt-view-cards .dt-table thead { display: table-header-group; position: static; width: auto; height: auto; clip: auto; clip-path: none; margin: 0; overflow: visible; }
  .dt-view-cards .dt-table tbody { display: table-row-group; }
  .dt-view-cards .dt-table tbody tr { display: table-row; border: 0; box-shadow: none; margin: 0; padding: 0; }
  .dt-view-cards .dt-table tbody th,
  .dt-view-cards .dt-table tbody td {
    display: table-cell;
    text-align: right;
  }
  .dt-view-cards .dt-table tbody th { text-align: left; }
  .dt-view-cards .dt-table tbody td::before { content: none; }
}

@page { size: A4 landscape; margin: 10mm; }

/* ===== Build additions (Salo, 2026-11-10) ===== */
/* hidden must win over .dt-btn display:inline-flex: without JS the copy/CSV buttons stay hidden */
.dt-btn[hidden] { display: none !important; }
@media print {
  .dt-notes { max-width: none; font-size: .78rem; margin-bottom: .4rem; }
  .dt-notes p { margin: 0 0 .2rem; }
  .dt-notes a { display: inline; min-height: 0; }
  .dt-src { font-size: .74rem; }
  .dt-disclaimer { margin-top: .4rem; }
  .dt-intro { max-width: none; }
  .dt-bc { margin-bottom: .3rem; }
  .dt-scroll { margin-bottom: .5rem; }
  .site-footer { margin-top: .3rem !important; padding: .3rem 0 0 !important; }
  body.dt-page { min-height: 0; }   /* styles.css body min-height:100vh adds an empty 2nd sheet */
}
