/* Huurcontracten (Arthur 26/10/2026): huurders per academiejaar, het formulier, instellingen.
   Alleen tokens (tokens.css) voor letters en kleuren; de tabel scrolt in zijn eigen kader (tblwrap), nooit de pagina. */
.hc { display: grid; gap: 16px; min-width: 0; }
.hc-balk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hc-balk .hc-tel { margin-left: auto; }
.hc-upload { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.hc-msg:empty { display: none; }
.hc-import { display: block; }
.hc-import p { margin: 0; }
.hc-import ul { margin: 6px 0 0; padding-left: 1.2em; }

/* per academiejaar */
.hc-jaar { padding: 0; overflow: hidden; }
.hc-jaar > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.hc-jaar > summary::-webkit-details-marker { display: none; }
.hc-jaar > summary h3 { margin: 0; font-size: var(--t-l); }
.hc-jaar > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3); transform: rotate(45deg); align-self: center; }
.hc-jaar[open] > summary::after { transform: rotate(-135deg); }
.hc-wrap { position: relative; overflow-x: auto; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
.hc-tabel { min-width: 860px; }
.hc-tabel td, .hc-tabel th { vertical-align: top; }
.hc-tabel td, .hc-tabel th, .hc-tabel small { text-align: left; }
.hc-tabel tbody th { border-bottom: 1px solid var(--surface-3); padding: 7px 12px; }
.hc-tabel thead th.r { text-align: right; }
.hc-tabel small { display: block; }
.hc-tabel td.r, .hc-tabel th.r, .hc-tabel td.r small { text-align: right; }
.hc-tabel th[scope="row"] { font-weight: 600; text-align: left; color: var(--text); background: none; text-transform: none; letter-spacing: 0; font-size: var(--t-m); }
.hc-kamer b { font-size: var(--t-ml); }
.hc-periode { min-width: 9em; }
.hc-naam > span { display: block; }
.hc-contact { white-space: nowrap; margin-left: -6px; }
.hc-geheimen { display: grid; gap: 2px; }
.hc-contact .btn { min-height: 32px; padding: 2px 6px; border-color: transparent; background: transparent; }
.hc-geheim { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-oog { min-height: 28px; padding: 2px 4px; }
.hc-rijacties { white-space: nowrap; text-align: right; }
.hc-rijacties .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; }
.hc-rijacties .quiet { padding: 2px 6px; }
.hc-tabel tr.hc-nieuw { background: var(--ok-bg); }
.hc-tabel tr.hc-nieuw > td, .hc-tabel tr.hc-nieuw > th, .hc-tabel tr.hc-nieuw small { background: transparent; }
.hc-leeg p { margin: 0; }

/* het formulier */
.hc-form, .hc-instform { display: grid; gap: 12px; }
.hc-form-kop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hc-form-kop h3 { margin: 0; }
.hc-groep { border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 12px 12px; margin: 0; min-width: 0; }
.hc-groep legend { padding: 0 6px; font-weight: 600; font-size: var(--t-m); color: var(--text-2); }
.hc-velden { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; min-width: 0; }
.hc-veld { display: grid; gap: 4px; font-size: var(--t-m); min-width: 0; }
.hc-veld > span { color: var(--text-2); }
.hc-veld input, .hc-veld select, .hc-veld textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.hc-breed { grid-column: 1 / -1; }
.hc-meer .hc-groep + .hc-groep { margin-top: 12px; }
.hc-vink { display: inline-flex; gap: 8px; align-items: center; font-size: var(--t-m); }
/* vinkjes (Welke sleutels) en de knopjes 1x/2x/3x huur naast de waarborg (Bart 28/10) */
.hc-meerkeuze { border: 0; padding: 0; margin: 0; }
.hc-meerkeuze legend { padding: 0; margin-bottom: 4px; color: var(--text-2); font-weight: 400; font-size: var(--t-m); }
.hc-meerkeuze > div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hc-veld .hc-vink input { width: 20px; height: 20px; flex: none; }
.hc-borg { display: flex; gap: 4px; align-items: center; min-width: 0; }
.hc-borg input { flex: 1 1 4em; }
.hc-borg button { flex: none; min-height: 32px; padding: 2px 6px; white-space: nowrap; font-size: var(--t-s); }
@media (min-width: 761px) { .hc-veld-borg { grid-column: span 2; } }

@media (max-width: 760px) {
  /* op de gsm: elke huurder een blokje (kamer + naam, dan de gegevens met hun label, dan de knoppen) */
  .hc-tabel { min-width: 0; }
  .hc-tabel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hc-tabel, .hc-tabel tbody { display: block; }
  .hc-tabel tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .hc-tabel td, .hc-tabel th[scope="row"] { display: block; padding: 0; border: 0; }
  .hc-tabel td[data-label] { grid-column: 1 / -1; display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; text-align: left; }
  .hc-tabel td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: var(--t-s); }
  .hc-tabel td.hc-kamer { grid-row: 1; }
  .hc-tabel .hc-rijacties { grid-column: 1 / -1; text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
  .hc-tabel td[data-label] small { grid-column: 2; }
  .hc-tabel td.r, .hc-tabel td.r small { text-align: left; }
  .hc-balk .hc-tel { margin-left: 0; width: 100%; }
  .hc-velden { grid-template-columns: 1fr; }
  .hc-groep { padding: 6px 8px 10px; }
}
