/* Empire of Tribes — "Melden" (public/js/melden.js) en de meldingen op /account en /beheer.
   Los bestand, want het formulier staat op drie soorten pagina's (spel, centrale site, homepage) met elk een eigen
   stylesheet. Kleuren uit de huisstijl "Klei & Koper" (docs/huisstijl/palet-1.json). */

.fb-dialog {
  --fb-primary: #A3441C; --fb-primary-l: #B8572A; --fb-primary-d: #6E2C12;
  --fb-ink: #2A1C12; --fb-soft: #694E36; --fb-parch: #F4E8D2; --fb-parch-2: #E9D6B4; --fb-border: #B49A66;
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 2px solid var(--fb-primary-d); border-radius: 6px;
  background: var(--fb-parch); color: var(--fb-ink);
  font-size: 15px; line-height: 1.45; /* lettertype van de pagina */
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.fb-dialog::backdrop { background: rgba(26, 17, 11, .7); }
.fb-form { padding: 16px 18px 18px; display: grid; gap: 12px; }
.fb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--fb-parch-2); padding-bottom: 8px; }
.fb-top h2 { margin: 0; font-size: 20px; line-height: 1.2; color: var(--fb-primary-d); }
.fb-x { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--fb-ink); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 4px; }
.fb-x:hover { background: var(--fb-parch-2); }

.fb-kinds { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-kinds legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.fb-kind { position: relative; display: flex; width: 100%; box-sizing: border-box; cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-kind span { flex: 1 1 auto; display: grid; gap: 2px; height: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1px solid var(--fb-border); border-radius: 4px; background: #fff8ec; }
.fb-kind small { color: var(--fb-soft); font-size: 12.5px; line-height: 1.25; }
.fb-kind input:checked + span { border-color: var(--fb-primary); background: #fbe3cf; box-shadow: inset 0 0 0 1px var(--fb-primary); }
.fb-kind input:focus-visible + span { outline: 3px solid var(--fb-primary-l); outline-offset: 2px; }

.fb-field { display: grid; gap: 4px; font-weight: 700; }
.fb-field small { font-weight: 400; color: var(--fb-soft); }
.fb-field input, .fb-field textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--fb-ink); background: #fff;
  border: 1px solid var(--fb-border); border-radius: 4px; padding: 8px 10px; width: 100%; box-sizing: border-box; min-height: 44px;
}
.fb-field textarea { resize: vertical; }
.fb-field input:focus, .fb-field textarea:focus { outline: 2px solid var(--fb-primary-l); outline-offset: 0; }
/* Honeypot voor bots (bezoekers): buiten beeld, niet bereikbaar met tab, niet voorgelezen. */
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.fb-meta { font-size: 13.5px; color: var(--fb-soft); }
.fb-meta summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.fb-meta ul { margin: 4px 0 0; padding-left: 18px; }
.fb-meta b { color: var(--fb-ink); font-weight: 600; word-break: break-word; }
.fb-error { margin: 0; color: #8E1B10; font-weight: 700; min-height: 1em; }
.fb-error:empty { display: none; }
.fb-done { margin: 0; }
.fb-done a { color: var(--fb-primary-d); text-decoration: underline; }

.fb-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.fb-btn { font: inherit; font-weight: 600; font-size: 15px; min-height: 44px; padding: 8px 18px; border-radius: 4px; cursor: pointer; }
.fb-primary { color: #fff; border: 1px solid var(--fb-primary-d); background: linear-gradient(180deg, var(--fb-primary-l), var(--fb-primary)); }
.fb-primary:disabled { opacity: .6; cursor: wait; }
.fb-secondary { color: var(--fb-ink); border: 1px solid var(--fb-border); background: var(--fb-parch-2); }
.fb-btn:focus-visible, .fb-x:focus-visible { outline: 3px solid var(--fb-primary-l); outline-offset: 2px; }

@media (max-width: 760px) {
  .fb-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border-width: 0; }
  .fb-kinds { grid-template-columns: 1fr; }
  .fb-actions .fb-btn { flex: 1 1 auto; }
}

/* ---------------- knop "Melden" in menu's en voetteksten ---------------- */
.fb-open { cursor: pointer; }
.ms-report { font-weight: 700; }

/* ---------------- /account en /beheer ---------------- */
.fb-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.fb-s-nieuw { background: #E8A93A; color: #2A1A0C; }
.fb-s-bekeken { background: #E9D6B4; color: #2A1C12; border-color: #B49A66; }
.fb-s-bezig { background: #3E9C8D; color: #0E2622; }
.fb-s-opgelost { background: #2E6B3A; color: #fff; }
.fb-s-afgewezen { background: #6B5A4C; color: #fff; }
.fb-k { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6E2C12; }
.fb-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 10px; }
.fb-filters label { display: grid; gap: 2px; font-size: 13px; font-weight: 700; }
.fb-filters select { min-height: 36px; }
.fb-list tr.is-open td { background: #fbe3cf; }
.fb-list .fb-row-title { font: inherit; font-weight: 700; color: #6E2C12; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.fb-detail { border: 2px solid #A3441C; border-radius: 6px; padding: 12px 14px; margin-top: 12px; background: #fff8ec; scroll-margin-top: 80px; }
.fb-detail h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid #DCC39A; border-radius: 4px; padding: 8px 10px; margin: 4px 0 10px; }
.fb-meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 13.5px; margin: 0 0 10px; }
.fb-meta-list dt { font-weight: 700; }
.fb-meta-list dd { margin: 0; overflow-wrap: anywhere; }
.fb-edit { display: grid; gap: 8px; }
.fb-edit textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .fb-list tr { display: block; border-bottom: 1px solid #c9ad72; padding: 4px 0; }
  .fb-list th { display: none; }
  .fb-list td { display: block; border: 0; padding: 2px 6px; }
  .fb-list td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: #694E36; }
  .fb-list .fb-row-title { min-height: 44px; }
  .fb-filters select { min-height: 44px; }
  .fb-meta-list { grid-template-columns: 1fr; }
  .fb-meta-list dd { margin-bottom: 6px; }
}
