/* bureau-objecttypes.css — S2b: B3 Objecttypes (lijst, formulier) en B4 Icoonkiezer. Eigen klassen (ot-*), geen afhankelijkheid van kaart.css. */

/* ---- marker-voorbeeld: witte schijf 32 px, glyph 18 px in --kaart-object (zelfde maten als de kaart) ---- */
.ot-marker { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.25); color: var(--kaart-object); }
.ot-marker svg { width: 18px; height: 18px; display: block; }
.ot-marker-klein { width: 28px; height: 28px; }
.ot-marker-klein svg { width: 16px; height: 16px; }
.ot-marker-leeg { border-style: dashed; background: var(--kleur-vlak); }

/* ---- lijn-/vlakstaal ---- */
.ot-staal { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 32px; flex: none;
  border-radius: var(--radius); background: #e8ecdf; border: 1px solid var(--kleur-rand); overflow: hidden; }
.ot-staal svg { width: 100%; height: 100%; display: block; }
.ot-staal-groot { width: 96px; height: 60px; }

/* ---- lijst ---- */
.ot-item { gap: var(--r-3); }
.ot-item .tekst { flex: 1; min-width: 0; }

/* ---- formulier ---- */
.ot-form-kop { display: flex; gap: var(--r-4); align-items: flex-start; }
.ot-form-kop .groei { flex: 1; min-width: 0; }
.ot-live { display: flex; flex-direction: column; align-items: center; gap: var(--r-1); min-width: 96px; padding: var(--r-2);
  border-radius: var(--radius-kaart); background: var(--kleur-vlak); border: 1px solid var(--kleur-rand); }
.ot-live .ot-marker.ot-staal-groot { width: 40px; height: 40px; }
.ot-live .ot-marker.ot-staal-groot svg { width: 22px; height: 22px; }
.ot-live-naam { font-size: var(--maat-mini); color: var(--kleur-tekst); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ot-geometrie { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r-2); }
.ot-geometrie .knop { display: flex; flex-direction: column; align-items: center; gap: var(--r-1); min-height: 64px; padding: var(--r-2); }
.ot-geometrie .knop[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ot-geometrie .knop:disabled { opacity: .45; cursor: not-allowed; }
.ot-geom-icoon svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ot-icoon-knop { display: flex; align-items: center; gap: var(--r-3); width: 100%; min-height: var(--tikdoel); padding: var(--r-2) var(--r-3);
  border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); color: var(--kleur-tekst); font: inherit; text-align: left; cursor: pointer; }
.ot-icoon-knop:hover { background: var(--kleur-vlak-hover); }
.ot-icoon-knop .groei { flex: 1; }

.ot-kleuren { display: flex; gap: var(--r-2); flex-wrap: wrap; }
.ot-kleur { width: 36px; height: 36px; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.ot-kleur span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.ot-kleur[aria-pressed="true"] { border-color: var(--accent); }
.ot-kleur[data-kleur="#3a3a3a"] span { background: #3a3a3a; }
.ot-kleur[data-kleur="#7a5c3a"] span { background: #7a5c3a; }
.ot-kleur[data-kleur="#2f6fb3"] span { background: #2f6fb3; }
.ot-kleur[data-kleur="#2f7d32"] span { background: #2f7d32; }
.ot-kleur[data-kleur="#b8860b"] span { background: #b8860b; }
.ot-kleur[data-kleur="#8e5aa8"] span { background: #8e5aa8; }
.ot-kleur[data-kleur="#f66d32"] span { background: #f66d32; }
.ot-kleur[data-kleur="#c0392b"] span { background: #c0392b; }

/* ---- B4 icoonkiezer (modal): op de telefoon bijna schermvullend, raster scrollt binnen de modal ---- */
.ot-kiezer-achtergrond { padding: var(--r-2); }
.ot-kiezer { display: flex; flex-direction: column; max-width: 560px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px);
  padding: var(--r-3) var(--r-3) calc(var(--r-3) + env(safe-area-inset-bottom)); }
.ot-kiezer-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--r-2); }
.ot-kiezer-kop h2 { margin: 0; font-size: var(--maat-h3); }
.ot-kiezer .ot-zoek { margin-top: var(--r-2); }
.ot-chips { display: flex; gap: var(--r-1); overflow-x: auto; padding: var(--r-2) 0; flex: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ot-chips::-webkit-scrollbar { display: none; }
.ot-chips .chip { white-space: nowrap; cursor: pointer; font: inherit; font-size: var(--maat-mini); font-weight: 500; min-height: 32px; padding: 0 var(--r-3); }
.ot-chips .chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: transparent; }
.ot-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--r-1); overflow-y: auto; flex: 1; min-height: 160px;
  padding: 2px; align-content: start; }
@media (min-width: 600px) { .ot-raster { grid-template-columns: repeat(6, 1fr); } }
.ot-cel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: var(--r-1) 2px;
  border: 2px solid transparent; border-radius: var(--radius-kaart); background: transparent; color: var(--kleur-tekst); font: inherit; cursor: pointer; }
.ot-cel:hover { background: var(--kleur-vlak-hover); }
.ot-cel[aria-selected="true"] { border-color: var(--accent); background: var(--kleur-vlak); }
.ot-cel svg { width: 24px; height: 24px; display: block; color: var(--kaart-object); }
.ot-cel span { font-size: 11px; line-height: 1.2; text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kleur-tekst-2); }
.ot-leeg { grid-column: 1 / -1; padding: var(--r-4); text-align: center; }
.ot-kiezer-voet { flex: none; border-top: 1px solid var(--kleur-rand); padding-top: var(--r-2); margin-top: var(--r-2); }
.ot-voorbeeld { display: flex; align-items: center; gap: var(--r-3); min-height: 36px; }
.ot-voorbeeld-naam { font-size: var(--maat-klein); }
.ot-kiezer .knoppen { margin-top: var(--r-2); }
