/* Beheerpagina: lichtgrijs vlak met witte kaders (asymmetrische hoeken), witte kop met logo
   en dunne magenta lijn, net als de spelerspagina. */
body.admin { background: var(--ground); min-height: 100%; }
.a-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 13px 24px; /* vrije ruimte rond het logo */
  background: var(--surface);
  border-top: 3px solid var(--brand);
  box-shadow: 0 2px 14px rgba(65, 64, 66, 0.12);
}
.a-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.a-brand .brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; padding-left: 16px; }
/* "beheer" als magenta omlijnde pill, zoals het telefoonnummer op de Plainwater-site */
.a-brand .brand small {
  font-family: var(--font); font-size: 0.55em; font-weight: 700; line-height: 1.2;
  color: var(--brand-strong);
  padding: 2px 10px; border: 1.5px solid var(--brand); border-radius: 999px;
}
.a-header .row { gap: 2px; }
.a-header .button.ghost { color: var(--ink); }
@media (max-width: 640px) {
  .a-header { position: static; padding: 12px 16px; } /* op de telefoon niet meeschuiven: de kop is daar hoog */
  .a-brand .brand { white-space: normal; font-size: 1rem; flex-wrap: wrap; gap: 4px 8px; }
}

.a-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 20px 24px; align-items: start; }
.a-main.a-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .a-main { grid-template-columns: 1fr; padding: 12px 16px; } }

.a-list { display: grid; gap: 12px; position: sticky; top: 96px; }
@media (max-width: 900px) { .a-list { position: static; } }
.a-rounds { display: grid; gap: 8px; }
.a-round {
  display: flex; gap: 8px; align-items: center;
  background: var(--surface); padding: 12px 12px 12px 14px; cursor: pointer;
  border-radius: 0 var(--radius) 0 var(--radius);
  box-shadow: inset 0 0 0 2px transparent, 3px 4px 12px rgba(65, 64, 66, 0.08);
  transition: box-shadow 0.15s ease;
}
.a-round:hover { box-shadow: inset 0 0 0 2px var(--line), 3px 4px 12px rgba(65, 64, 66, 0.08); }
.a-round.active { box-shadow: inset 0 0 0 2px var(--brand), 3px 5px 14px rgba(236, 0, 140, 0.14); }
.a-round-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-round-order { display: grid; }
.a-round-order button { min-width: 24px; min-height: 24px; padding: 2px 6px; font-size: 0.7rem; color: var(--ink-soft); }
.a-small { font-size: 0.78rem; }

.a-editor, .a-placeholder {
  background: var(--surface);
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  box-shadow: 4px 6px 20px rgba(65, 64, 66, 0.1);
  padding: 22px 24px; display: grid; gap: 16px;
}
.a-editor h2 { font-size: 1.4rem; }
.a-editor h3 { font-size: 1.05rem; }
.a-placeholder { place-items: center; min-height: 40vh; }
.a-msg { font-weight: 600; color: var(--brand-deep); }
.a-msg.error { color: var(--warn); }
/* Waarschuwing in de statuskleur "waarschuwing" (afgeleid, niet in het handboek), met icoon */
.a-warn {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fef3d9; color: #6b4e00; font-size: 0.9rem;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
  padding: 10px 12px; box-shadow: inset 4px 0 0 #fab219;
}
.a-warn[data-ic]::before { background: #b07800; }

.a-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.a-form .a-wide { grid-column: 1 / -1; }
.a-form small { font-weight: 500; }
.a-form div.field { display: grid; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.a-form div.field .row { min-height: 46px; }
.a-form div.field .muted { font-weight: 400; color: var(--ink); }
.a-form div.field button { padding: 7px 14px; font-size: 0.85rem; }

.a-mapwrap { position: relative; border-radius: 0 var(--radius-lg) 0 var(--radius-lg); overflow: hidden; }
.a-map { height: 52vh; min-height: 320px; }
.a-search { position: absolute; top: 10px; left: 10px; right: 160px; z-index: 600; max-width: 520px; }
.a-search input { border-color: transparent; box-shadow: 3px 4px 14px rgba(65, 64, 66, 0.25); }
.a-search-results {
  margin-top: 6px; background: var(--surface); border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
  box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; display: grid;
}
.a-search-results button {
  background: none; color: var(--ink); text-align: left; justify-content: flex-start;
  font-weight: 500; border-radius: 0; padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.a-search-results button:hover { background: var(--surface-2); filter: none; color: var(--brand-strong); }
.a-search-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.a-search-row button { border-bottom: 0; }
.a-search-row button:first-child { flex: 1; min-width: 0; }
.a-search-results .a-search-area {
  flex: none; font-weight: 700; font-size: 0.8rem; color: var(--brand-strong);
  border-left: 1px solid var(--line); white-space: nowrap;
}
/* Werkbalk tijdens het tekenen van een gebied */
.a-drawbar {
  position: absolute; left: 10px; right: 10px; bottom: 44px; z-index: 650;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--surface); padding: 8px 10px;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm); box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 600;
}
.a-drawbar span { flex: 1; min-width: 200px; }
.a-drawbar button { padding: 7px 14px; font-size: 0.85rem; }
.a-check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.a-check input { width: auto; }
.a-layers { position: absolute; top: 10px; right: 10px; z-index: 600; display: flex; gap: 4px; }
.a-layers button {
  padding: 8px 12px; font-size: 0.8rem; background: var(--surface); color: var(--ink);
  box-shadow: 3px 4px 14px rgba(65, 64, 66, 0.25);
}
.a-layers button.active { background: var(--brand-strong); color: var(--brand-contrast); }
.a-maphelp {
  position: absolute; left: 10px; bottom: 10px; z-index: 600;
  background: rgba(88, 89, 91, 0.92); color: #fff; padding: 6px 12px;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm); font-size: 0.82rem; font-weight: 600;
}
.a-maphelp.moving { background: var(--warn); }

.a-locs { display: grid; gap: 8px; }
.a-loc {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  background: var(--surface-2); padding: 10px;
  border-radius: 0 var(--radius) 0 var(--radius);
  box-shadow: inset 0 0 0 2px transparent;
}
.a-loc.active { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand), 3px 5px 14px rgba(236, 0, 140, 0.12); }
/* Nummers grijs, de geselecteerde locatie magenta: net als de markers op de kaart */
.a-loc-num { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--ink); }
.a-loc.active .a-loc-num { background: var(--brand-strong); }
.a-loc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; }
.a-loc-fields input[data-f="name"] { font-weight: 700; }
.a-loc-fields input[data-f="note"] { grid-column: 1 / -1; }
.a-radius { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.a-radius input { width: 90px; padding: 6px 8px; }
.a-loc-actions { display: grid; grid-template-columns: repeat(2, 36px); gap: 4px; }
.a-loc-actions button { width: 36px; height: 36px; padding: 0; color: var(--ink-soft); }
.a-loc-actions button[data-act="remove"]:hover { color: var(--warn); }
.a-area-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
button.small { padding: 6px 12px; font-size: 0.8rem; }
@media (max-width: 640px) { .a-loc-fields { grid-template-columns: 1fr; } }

.a-danger { border-top: 1px solid var(--line); padding-top: 16px; }

.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th, .a-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table th { font-size: 0.8rem; color: var(--ink-soft); }
.a-table tbody tr:nth-child(even) { background: var(--surface-2); }
.a-table input { min-width: 160px; }

.a-denied { display: grid; place-items: center; min-height: 70vh; padding: 16px; }
.a-denied .card { max-width: 420px; }

/* Verwijderen per spelersrij: rustig rood (geen volle rode knop per rij); de bevestiging volgt. */
button.danger-text { color: var(--warn); font-weight: 700; }
.a-session { gap: 10px; border: 2px solid var(--surface-3); }

/* Zoeken en filteren boven tabellen (spelers, pot met locaties) */
.a-filter { width: auto; min-width: 220px; padding: 7px 12px; }
#player-filter, #dy-map { width: auto; padding: 7px 10px; }
.a-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.a-table tr.a-off td { opacity: 0.5; }
.a-table input[type="checkbox"] { width: auto; min-width: 0; }
.a-gap-4 { gap: 4px; }
.a-round .row .chip + .chip { margin-left: 4px; }
/* Locaties van de dagronde van vandaag: alleen lezen */
#dy-today-locs .a-loc { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
#dy-today-locs .a-loc-num { display: grid; place-items: center; color: #fff; font-weight: 700; }
