/* CRM-schermen in Livewire (OPS-448), huisstijl Opstal (#00B4FF / #0046A0 / #000046). Geen inline stijlen in de views (CSP).
   Sinds OPS-512 wijzen de oude variabelen naar de tokens in ontwerp.css (dat bestand laadt eerst); de schil staat in crm-schil.css. */
:root { --p: var(--merk-600); --licht: var(--merk-400); --ink: var(--inkt-900); --bg: var(--inkt-50); --rood: var(--gevaar-700); --groen: var(--goed-700); --rand: var(--inkt-200); }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg); line-height: 1.5; }
.overslaan { position: absolute; left: -999px; }
.overslaan:focus { left: 8px; top: 8px; background: #fff; padding: 8px; }
/* Alleen voor schermlezers (zoals in crm-projecten.css), bv. de kop van een kolom met knoppen (OPS-501, axe td-has-header) */
.alleen-lezer { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbalk { display: flex; align-items: center; gap: 24px; background: #fff; padding: 8px 16px; border-bottom: 1px solid var(--rand); }
.topbalk ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.topbalk a[aria-current="page"] { font-weight: bold; }
.inhoud { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
h1 { margin: 0 0 4px; }
h2 { margin: 0 0 8px; font-size: 18px; }
.uitleg { color: #475467; margin: 0 0 16px; }
a { color: var(--p); }
.kaart { background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 16px; margin: 0 0 16px; overflow-x: auto; }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.tabs button { margin: 0; }
.tabs button[aria-pressed="true"] { background: var(--p); color: #fff; }
label { display: block; font-weight: bold; margin: 0 0 4px; }
.veld { margin: 0 0 12px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.breed { grid-column: 1 / -1; }
input[type="text"], input[type="search"], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--inkt-400); border-radius: 8px; font-size: 16px; font-family: inherit; }
input[type="checkbox"] { width: auto; margin-right: 6px; }
.rij-keuze { display: flex; align-items: center; font-weight: normal; margin: 0 0 4px; }
/* Beheer → Instellingen (OPS-503): schakelaars als label met vinkje, per instelling een eigen blok. */
.schakelaar { display: flex; align-items: flex-start; gap: 6px; font-weight: normal; margin: 0 0 4px; }
.schakelaar input[type="checkbox"] { margin-top: 4px; }
.instelling { padding: 6px 0; border-bottom: 1px solid var(--rand); }
.instelling .klein { margin: 2px 0 0; }
.instelling fieldset { border: 0; margin: 0; padding: 0; }
.instelling legend { padding: 0; margin: 0 0 4px; }
button, .knop { min-height: 40px; padding: 8px 14px; border: 1px solid var(--p); border-radius: 8px; background: #fff; color: var(--p); font-size: 15px; cursor: pointer; }
button.primair { background: var(--p); color: #fff; }
button.gevaar { border-color: var(--rood); color: var(--rood); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--merk-500); outline-offset: 2px; }
.acties { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
th { white-space: nowrap; }
td input[type="text"], td select { min-width: 90px; }
tr.inactief td { color: #667085; }
.melding { background: #ecfdf3; color: var(--groen); padding: 8px 12px; border-radius: 8px; margin: 0 0 16px; }
.fout { color: var(--rood); margin: 4px 0 0; font-size: 14px; }
.waarschuwing { background: #fff4e5; border: 1px solid #f79009; padding: 8px 12px; border-radius: 8px; margin: 0 0 12px; }
.klein { font-size: 13px; color: #475467; font-weight: normal; }
.lijst-kaal { list-style: none; margin: 0; padding: 0; display: block; }
.bij { font-size: 12px; background: var(--bg); border-radius: 6px; padding: 1px 6px; }
/* Plannen en het inplanvak (OPS-468): twee kolommen, de lijst met een eigen scrollbalk; op een smal scherm onder elkaar. */
.topbalk { flex-wrap: wrap; }
.topbalk ul { flex-wrap: wrap; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fout.blok { background: #fef3f2; padding: 8px 12px; border-radius: 8px; margin: 0 0 16px; }
.fout-tekst { color: var(--rood); }
.plan-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.plan-lijst input[type="search"] { margin: 4px 0 8px; }
.plan-scroll { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.plan-groep summary { cursor: pointer; padding: 8px 4px 4px; font-weight: bold; }
.plan-groep + .plan-groep { border-top: 1px solid var(--rand); margin-top: 4px; }
.plan-item { border-radius: 10px; }
.plan-item.aan { background: #eef6ff; }
.plan-keuze { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--rand); border-radius: 8px; background: transparent; color: var(--ink); margin: 2px 0; }
.plan-keuze:hover { background: var(--bg); }
.plan-keuze strong, .plan-keuze small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-keuze small { color: #475467; }
.dienst-energielabel { border-left-color: #067647; }
.dienst-taxatie { border-left-color: var(--p); }
.dienst-woningpresentatie { border-left-color: #b54708; }
.plan-opties { border: 1px solid var(--rand); background: #fff; border-radius: 10px; padding: 12px; margin: 4px 0 10px; }
.raster.smal { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.label { display: block; font-weight: bold; margin: 0 0 4px; }
.plan-dagen { list-style: none; margin: 8px 0 0; padding: 0; }
.plan-dagen li { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rand); align-items: flex-start; }
.plan-dag { width: 84px; flex: none; padding-top: 8px; }
.plan-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-slots button { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.plan-slots button[aria-pressed="true"] { outline: 3px solid var(--licht); outline-offset: 1px; }
.pil { display: inline-block; font-size: 12px; border-radius: 999px; padding: 1px 8px; background: var(--bg); color: var(--ink); font-weight: bold; }
.pil-goed { background: #ecfdf3; color: var(--groen); }
.pil-fout { background: #fef3f2; color: var(--rood); }
.pil-info { background: #eef6ff; color: var(--p); }
.route { list-style: none; margin: 8px 0 0; padding: 0; }
.route li { display: flex; gap: 12px; padding: 8px; border-top: 1px solid var(--rand); }
.route li small { display: block; color: #475467; font-size: 13px; font-weight: normal; }
.route-tijd { width: 72px; flex: none; font-weight: bold; }
.route-nieuw { background: #eef6ff; border-radius: 10px; }
.route-bezet { color: #475467; }
.botsing { background: #fff4e5; border: 1px solid #f79009; padding: 12px; border-radius: 8px; margin: 12px 0 0; }
.botsing p { margin: 0 0 8px; }
.acties-onder { align-self: end; }
input[type="date"], input[type="time"] { width: 100%; padding: 8px 10px; border: 1px solid var(--inkt-400); border-radius: 8px; font-size: 16px; font-family: inherit; }
@media (max-width: 760px) {
  .plan-raster { grid-template-columns: minmax(0, 1fr); }
  .plan-scroll { max-height: 55vh; }
  .inhoud { margin: 12px auto; padding: 0 8px; }
}
/* Inloggen (OPS-328): één kaart in het midden, de knop als primaire link. */
.login-kaart { max-width: 480px; margin: 48px auto; padding: 24px; }
.login-kaart form { display: grid; gap: 8px; margin: 0 0 16px; }
.login-kaart input[type="text"], .login-kaart select { width: 100%; }
a.knop { display: inline-flex; align-items: center; text-decoration: none; }
a.knop.primair { background: var(--p); color: #fff; }
.login-kaart .qr svg { width: 192px; height: 192px; }
.login-kaart .codes { columns: 2; font-family: monospace; }
.topbalk form { margin: 0 0 0 auto; }
