/* ═══════════════════════════════════════════════════════════════════════════
   FairHospitality — documentenfiche (1.60.0).
   Zelfstandig: draait op drie pagina's, dus geen afhankelijkheid van app.css.
   ═══════════════════════════════════════════════════════════════════════════ */
.fh-docs-overlay {
  position: fixed; inset: 0; z-index: 100010;   /* boven het logiesformulier (99999) */
  background: rgba(36, 59, 46, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fh-docs-fiche {
  background: #fff; border-radius: 14px; width: 100%; max-width: 680px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22); overflow: hidden; color: #243b2e;
}
.fh-docs-fiche *, .fh-docs-fiche *::before, .fh-docs-fiche *::after { box-sizing: border-box; }

/* ── kop ─────────────────────────────────────────────────────────────────── */
.fh-docs-kop {
  background: linear-gradient(135deg, #1c7a3d, #155e2f); color: #fff;
  padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fh-docs-kop b { font-size: 15px; }
.fh-docs-sub { display: block; font-size: 11.5px; opacity: .85; margin-top: 1px; }
.fh-docs-sluit {
  background: rgba(255, 255, 255, .16); color: #fff; border: none; border-radius: 8px;
  width: 28px; height: 28px; font-size: 14px; cursor: pointer; line-height: 1; flex: 0 0 auto;
}
.fh-docs-sluit:hover { background: rgba(255, 255, 255, .3); }
.fh-docs-kopknoppen { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.fh-docs-help {
  background: rgba(255, 255, 255, .16); color: #fff; border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1;
  font-family: inherit;
}
.fh-docs-help:hover { background: rgba(255, 255, 255, .3); }
.fh-docs-help[aria-expanded="true"] { background: #fff; color: #155e2f; }

/* ── helppaneel ──────────────────────────────────────────────────────────── */
.fh-docs-help-paneel {
  background: #f4f9f6; border: 1px solid #cfe0d6; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.fh-docs-help-titel {
  font-size: 12px; font-weight: 700; color: #155e2f; margin-top: 10px;
}
.fh-docs-help-titel:first-child { margin-top: 0; }
.fh-docs-help-tekst {
  font-size: 12px; color: #41544a; line-height: 1.55; margin-top: 2px; max-width: 68ch;
}

/* ── body ────────────────────────────────────────────────────────────────── */
.fh-docs-body { padding: 16px 18px 18px; }
.fh-docs-uitleg { font-size: 12.5px; color: #5b6f63; margin: 0 0 12px; line-height: 1.5; max-width: 62ch; }
.fh-docs-leeg, .fh-docs-fout {
  font-size: 12.5px; color: #5b6f63; padding: 14px; text-align: center;
  border: 1px dashed #dde6e2; border-radius: 10px;
}
.fh-docs-fout { color: #8a1f1a; background: #fdecea; border-style: solid; border-color: #e8b4b0; }

/* ── lijst ───────────────────────────────────────────────────────────────── */
.fh-docs-lijst { border: 1px solid #dde6e2; border-radius: 10px; overflow: hidden; }
.fh-docs-lijst:empty { border: none; }
.fh-docs-rij { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; }
.fh-docs-rij + .fh-docs-rij { border-top: 1px solid #eef2f0; }
.fh-docs-rij:hover { background: #fafcfa; }
.fh-docs-ic { flex: 0 0 auto; font-size: 14px; line-height: 1.5; }
.fh-docs-mid { flex: 1; min-width: 0; }
.fh-docs-titelrij { display: flex; align-items: center; gap: 5px; }
.fh-docs-naam {
  font-size: 13px; font-weight: 600; color: #243b2e; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.fh-docs-naam:hover { color: #155e2f; text-decoration: underline; }
.fh-docs-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.fh-docs-meta-t { font-size: 11px; color: #5b6f63; }
.fh-docs-meta-t.sug  { color: #1f5f8b; }
.fh-docs-meta-t.warn { color: #8a5b12; }
.fh-docs-meta-t.ok2  { color: #155e2f; }
.fh-docs-badge {
  font-size: 10.5px; background: #eef2f0; color: #5b6f63;
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.fh-docs-badge.ok { background: #eaf5ee; color: #155e2f; }
.fh-docs-status { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 3px; }

/* ── tags ────────────────────────────────────────────────────────────────── */
.fh-docs-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.fh-docs-tag {
  font-size: 10.5px; border-radius: 999px; padding: 1px 8px;
  background: #e9f1f7; color: #1f5f8b; border: 1px solid #c3d9e8;
}
.fh-docs-tag.voorstel { background: #fdf7e3; color: #8a5b12; border-color: #eddba8; }
.fh-docs-tagknop {
  font-size: 10.5px; border: 1px solid #dde6e2; background: #fff; color: #5b6f63;
  border-radius: 6px; padding: 1px 7px; cursor: pointer; font-family: inherit;
}
.fh-docs-tagknop:hover { border-color: #b9d8c2; color: #155e2f; }
.fh-docs-tagknop.stil { border-color: transparent; }

/* ── knoppen in de rij ───────────────────────────────────────────────────── */
.fh-docs-mini, .fh-docs-del {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: #a9b5ae; font-size: 12px; padding: 0 3px; line-height: 1.4; flex: 0 0 auto;
}
.fh-docs-mini:hover { color: #155e2f; }
.fh-docs-del:hover { color: #b3261e; }

/* ── toevoegen ───────────────────────────────────────────────────────────── */
.fh-docs-add { border-top: 1px solid #dde6e2; margin-top: 14px; padding-top: 12px; }
.fh-docs-addkop {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: #5b6f63; font-weight: 700; margin-bottom: 8px;
}
.fh-docs-addrij { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.fh-docs-addrij + .fh-docs-addrij { margin-top: 7px; }
.fh-docs-inp, .fh-docs-sel {
  padding: 7px 10px; border: 1px solid #dde6e2; border-radius: 9px;
  font-size: 12.5px; font-family: inherit; color: #243b2e; background: #fff; min-width: 0;
}
.fh-docs-inp { flex: 1; min-width: 150px; }
.fh-docs-inp.kort { flex: 0 0 150px; }
.fh-docs-sel { flex: 0 0 150px; }
.fh-docs-of { font-size: 11.5px; color: #5b6f63; }
.fh-docs-btn {
  border: none; border-radius: 9px; padding: 7px 13px; font-size: 12.5px;
  font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.fh-docs-btn.p { background: #1c7a3d; color: #fff; }
.fh-docs-btn.s { background: #fff; color: #155e2f; border: 1px solid #b9d8c2; }
.fh-docs-btn:disabled { background: #f2f5f3; color: #a9b5ae; border: 1px solid #dde6e2; cursor: not-allowed; }
.fh-docs-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  background: #eaf5ee; color: #155e2f; border: 1px solid #b9d8c2; border-radius: 999px; padding: 3px 5px 3px 10px;
}
.fh-docs-chipweg {
  background: none; border: none; cursor: pointer; color: #155e2f; font-size: 11px; padding: 0 3px; font-family: inherit;
}
.fh-docs-hint { font-size: 11.5px; color: #8a5b12; margin-top: 7px; min-height: 1em; }

/* Leesstand (1.64.5): waarom er geen knoppen staan. */
.fh-docs-belet {
  margin: 10px 0 2px; padding: 9px 12px; border-radius: 8px;
  background: #f6f7f9; border: 1px solid #e3e6ea; color: #5a6472; font-size: 12.5px;
}

/* ── labelkiezer (1.62.0) ────────────────────────────────────────────────── */
.fh-docs-kiezer {
  border: 1px solid #cfe0d6; background: #f4f9f6; border-radius: 10px;
  padding: 10px 12px; margin-top: 7px;
}
.fh-docs-kiezer-kop { font-size: 11.5px; font-weight: 700; color: #155e2f; margin-bottom: 7px; }
.fh-docs-kiezer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 3px 10px;
}
.fh-docs-kiezer-item {
  display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #41544a; cursor: pointer;
}
.fh-docs-kiezer-item input { margin: 0; }
.fh-docs-kiezer-voet { display: flex; gap: 7px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.fh-docs-kiezer-voet .fh-docs-inp.kort { flex: 1 1 160px; }

@media (max-width: 640px) {
  .fh-docs-overlay { padding: 0; }
  .fh-docs-fiche { max-width: none; border-radius: 0; min-height: 100vh; }
  .fh-docs-sel, .fh-docs-inp.kort { flex: 1 1 100%; }
}
