/* Backoffice: lijsten, periodieken en ingezonden foto's (naast editor.css) */
body.backoffice { background: var(--linnen); height: auto; min-height: 100%; display: block; }
.module { padding-top: 22px; }
.module.smal { max-width: 640px; }
.module-balk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.module-balk .rechts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.module-balk input[type=search] { flex: 1 1 260px; max-width: 460px; padding: 8px 14px; border: 1px solid var(--lijn); border-radius: 999px; background: var(--papier); }
.melding { min-height: 1.2em; color: var(--goed); font-weight: 700; margin: 6px 0; }
.melding.fout { color: var(--fout); }
.leeg-tekst { background: var(--papier); padding: 18px 20px; border-radius: 14px; }

.tabel-houder { overflow-x: auto; background: var(--papier); border-radius: 14px; box-shadow: var(--schaduw); }
table.lijst { width: 100%; border-collapse: collapse; font-size: 14px; }
.lijst th { text-align: left; padding: 11px 14px; color: var(--zacht); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
.lijst td { padding: 10px 14px; border-bottom: 1px solid #eee7d8; vertical-align: top; }
.lijst tbody tr[data-id] { cursor: pointer; }
.lijst tbody tr[data-id]:hover, .lijst tbody tr[data-id]:focus { background: #f6f1e5; outline: none; }

.dialoog.groot { width: min(780px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
.dialoog input:disabled, .dialoog textarea:disabled, .dialoog select:disabled { background: #f2eee5; color: var(--inkt); }
.dialoog select { padding: 9px 12px; border: 1px solid var(--lijn); border-radius: 10px; background: #fff; }
.vinkjes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vinkjes legend, .veld-label { font-size: 13px; font-weight: 700; color: var(--zacht); padding: 0; margin-bottom: 5px; display: block; }
.foto-veld img { max-width: 220px; max-height: 160px; border-radius: 8px; display: block; margin-bottom: 8px; }
.foto-knoppen { display: flex; gap: 8px; }
.html-balk { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--perkament); border-radius: 10px 10px 0 0; }
.html-balk button { border: 0; background: var(--papier); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.html-tekst { min-height: 200px; max-height: 45vh; overflow: auto; padding: 12px 14px; background: #fff; border: 1px solid var(--lijn); border-radius: 0 0 10px 10px; }
.html-tekst:focus { outline: 2px solid var(--blad); }
.html-tekst img { max-width: 240px; }

.instellingen { display: flex; flex-direction: column; gap: 10px; }
.instellingen h2 { margin: 16px 0 0; color: var(--mos); font-size: 18px; }
.instellingen label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--zacht); }
.instellingen input { padding: 9px 12px; border: 1px solid var(--lijn); border-radius: 10px; background: #fff; }
.instellingen .knop { align-self: flex-start; }

.ingezonden { display: grid; gap: 16px; }
.ingezonden-kaart { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 18px; background: var(--papier); padding: 16px; border-radius: 14px; box-shadow: var(--schaduw); }
.ingezonden-kaart img { width: 100%; border-radius: 8px; }
.ingezonden-velden { display: flex; flex-direction: column; gap: 8px; }
.ingezonden-velden label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--zacht); }
.ingezonden-velden input, .ingezonden-velden textarea { padding: 8px 11px; border: 1px solid var(--lijn); border-radius: 9px; background: #fff; }
.ingezonden-velden .twee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ingezonden-velden .dialoog-knoppen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.periodiek-lijst h2 { color: var(--mos); font-size: 18px; margin: 18px 0 8px; }
.periodiek-rij { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.periodiek-kaart { background: var(--papier); border-radius: 12px; box-shadow: var(--schaduw); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.periodiek-kaart > button:first-child { border: 0; background: none; text-align: left; padding: 6px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.periodiek-kaart small { color: var(--zacht); }
.periodiek-resultaten { background: var(--papier); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.periodiek-resultaten h2 { font-size: 15px; margin: 4px 0 8px; color: var(--mos); }
.periodiek-resultaten button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid #eee7d8; padding: 9px 2px; cursor: pointer; }
.periodiek-resultaten button span { display: block; font-size: 13px; color: var(--zacht); }

.lezer { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #33332d; }
.lezer[open] { display: flex; flex-direction: column; }
.lezer-balk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: var(--papier); }
.lezer-balk input[type=number] { width: 64px; padding: 5px 7px; border: 1px solid var(--lijn); border-radius: 8px; }
.lezer-mail { display: flex; gap: 6px; }
.lezer-mail input { padding: 6px 12px; border: 1px solid var(--lijn); border-radius: 999px; min-width: 190px; }
.lezer-doek { flex: 1; overflow: auto; text-align: center; padding: 12px; }
.lezer-doek canvas { background: #fff; max-width: 100%; }
.tegel small.tel { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--roest-donker); }

@media (max-width: 700px) {
  .ingezonden-kaart { grid-template-columns: 1fr; }
  .module-balk .rechts { margin-left: 0; }
}

/* Audit */
.pagina-titel { max-width: 1120px; margin: 22px auto -8px; padding: 0 16px; color: var(--mos); font-size: 24px; }
.sluit { min-width: 32px; min-height: 32px; }
.dialoog.breed { width: min(640px, calc(100vw - 24px)); }
.accounts li { flex-wrap: wrap; }
.accounts li > span:first-child { flex: 1 1 100%; }
.accounts select { flex: 1 1 200px; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--lijn); border-radius: 10px; background: #fff; }
.rij-form select { flex: 1 1 160px; min-width: 0; padding: 9px 10px; border: 1px solid var(--lijn); border-radius: 10px; background: #fff; }
.rij-form input { min-width: 0; }
.dialoog { overflow-x: hidden; }
