/* Veilig mailen (spoor 42): balk in het opstelvenster en het tabblad. */
.vm-balk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 4px; padding: 8px 10px; border: 1px solid #d5e3d9; border-radius: 10px; background: #f3faf5; }
.vm-sch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #155b3d; cursor: pointer; min-height: 32px; }
.vm-sch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vm-knop { width: 36px; height: 20px; border-radius: 10px; background: #b9c7d3; position: relative; transition: background .15s; flex: none; }
.vm-knop::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.vm-sch input:checked + .vm-knop { background: #1d7a52; }
.vm-sch input:checked + .vm-knop::after { left: 18px; }
.vm-sch input:focus-visible + .vm-knop { outline: 2px solid #0b63e5; outline-offset: 2px; }
.vm-sch input:disabled + .vm-knop { opacity: .5; }
.vm-voorstel, .vm-waarsch, .vm-routes, .vm-opties { flex-basis: 100%; }
.vm-voorstel { padding: 8px 10px; border-radius: 8px; background: #fff7e0; border: 1px solid #efd7a6; color: #5e4005; font-size: 13.5px; }
.vm-waarsch { padding: 6px 10px; border-radius: 8px; background: #fbebd0; border: 1px solid #efd7a6; color: #5e4005; font-size: 13px; }
.vm-waarsch div + div { margin-top: 4px; }
.vm-klein { padding: 2px 8px; min-height: 0; font-size: 12px; margin-left: 6px; }
.vm-routes { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; border: 1px solid #c8d8e5; background: #fff; }
.vm-intern { border-color: #b9d3ea; color: #1f4e8c; }
.vm-tls { border-color: #a9d8bf; color: #155b3d; }
.vm-portaal { border-color: #e1cfa0; color: #6b4b06; }
.vm-opties { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.vm-opties label { display: flex; flex-direction: column; gap: 3px; }
.vm-opties .inp { min-width: 160px; }

.vm-tabblad { padding: 4px 2px 20px; }
.vm-twee { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 14px; align-items: start; }
.vm-lijst { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 220px); overflow: auto; }
.vm-rij { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid #dfe8ef; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.vm-rij:hover, .vm-rij.sel { border-color: #1d7a52; background: #f3faf5; }
.vm-rij:focus-visible { outline: 2px solid #0b63e5; outline-offset: 1px; }
.vm-nieuw { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #1d7a52; color: #fff; font-size: 11.5px; }
.vm-detail { background: #fff; border: 1px solid #dfe8ef; border-radius: 12px; padding: 14px 16px; }
.vm-detail h2 { margin: 0 0 4px; font-size: 18px; }
.vm-detail h3 { margin: 14px 0 6px; font-size: 14px; }
.vm-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vm-tab td { padding: 5px 6px; border-top: 1px solid #eef3f7; vertical-align: top; }
.vm-antw { border-left: 3px solid #1d7a52; padding: 6px 10px; margin: 6px 0; background: #f8fbf9; border-radius: 0 8px 8px 0; }
.vm-antw-t { white-space: pre-wrap; word-wrap: break-word; margin: 4px 0; }
.vm-log summary { cursor: pointer; margin-top: 10px; font-size: 13.5px; }
@media (max-width: 760px) { .vm-twee { grid-template-columns: 1fr; } .vm-lijst { max-height: none; } }
@media (prefers-color-scheme: dark) { html[data-thema="systeem"] .vm-balk, html[data-thema="donker"] .vm-balk { background: #12261c; border-color: #24533b; } }
