:root {
  --bg: #071520;
  --panel: #102735;
  --panel2: #163647;
  --text: #f4fbff;
  --muted: #a9c2d0;
  --accent: #4dc3ff;
  --ok: #43d17a;
  --warning: #f2b84b;
  --danger: #f35b67;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
body > header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: #081d2a;
  border-bottom: 2px solid var(--accent);
}
body > header h1 { margin: 0; font-size: 27px; }
body > header span { color: var(--muted); }
#clock { font-size: 23px; font-weight: bold; }
.layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: 12px;
  padding: 12px;
  min-height: calc(100vh - 76px);
}
.column { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--panel);
  border: 1px solid #245069;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,.22);
}
.card h2 {
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--accent);
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-heading h2 { margin: 0; }
.action-link {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: #04121b;
  font-weight: bold;
  text-decoration: none;
}
.incident-new-button {
  display: block;
  margin: 0 0 10px;
  padding: 11px;
  border-radius: 8px;
  background: var(--danger);
  color: white;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}
.dashboard-incident {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
}
.incident-select-button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.incident-select-button:hover { color: #126b8a; }
.incident-detail-button {
  padding: 5px 7px;
  border: 1px solid #8aa3ad;
  border-radius: 6px;
  color: #294f60;
  background: rgba(255, 255, 255, .75);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}
.incident-handle-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #86d6a5;
  border-radius: 7px;
  background: #176b3a;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.incident-handle-button:hover { background: #21854a; }
.incident-handle-button:disabled { cursor: wait; opacity: .55; }
.dashboard-incident.selected-for-log {
  outline: 3px solid rgba(18, 107, 138, .3);
  border-color: #126b8a;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.metric {
  padding: 10px;
  background: var(--panel2);
  border-radius: 8px;
}
.metric small { display: block; color: var(--muted); }
.metric strong { font-size: 22px; }
.unit, .event, .log-line, .ship, .post {
  padding: 9px;
  margin-bottom: 7px;
  border-radius: 8px;
  background: var(--panel2);
}
.status-available { border-left: 5px solid var(--ok); }
.status-responding { border-left: 5px solid var(--warning); }
.status-on-scene { border-left: 5px solid var(--accent); }
.status-out-of-service { border-left: 5px solid #6b7280; opacity: .72; }
.unit-group h3 {
  margin: 12px 0 7px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}
.unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, .85fr);
  gap: 8px;
  align-items: center;
}
.unit-status-select { padding: 6px; font-size: 13px; }
#units { max-height: 430px; overflow-y: auto; padding-right: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
form { display: grid; gap: 7px; margin-top: 10px; }
input, select, button {
  width: 100%;
  border: 1px solid #37667e;
  border-radius: 7px;
  padding: 9px;
  font: inherit;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #37667e;
  border-radius: 7px;
  padding: 9px;
  background: #0b202d;
  color: var(--text);
  font: inherit;
}
label { color: var(--muted); font-size: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select { background: #0b202d; color: var(--text); }
button {
  background: var(--accent);
  color: #04121b;
  font-weight: bold;
  cursor: pointer;
}
#map {
  min-height: 430px;
  height: min(52vh, 580px);
  border-radius: 10px;
  background: #0b2e42;
}
.map-status {
  color: var(--muted);
  margin-top: 8px;
  min-height: 20px;
}
.leaflet-container {
  color: #12212b;
  font-family: Arial, Helvetica, sans-serif;
}
.ais-vessel-marker {
  --vessel-colour: #7a858c;
  --vessel-size: 20px;
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  box-sizing: border-box;
  place-items: center;
  background: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7));
  transform-origin: center center;
}
.ais-vessel-marker .vessel-symbol {
  display: block;
  width: var(--vessel-size);
  height: var(--vessel-size);
  overflow: visible;
  transform-box: fill-box;
  transform-origin: center center;
  transition: width .2s ease, height .2s ease, transform .2s linear;
}
.ais-vessel-marker .vessel-symbol polygon {
  fill: var(--vessel-colour);
  stroke: #062f3d;
  stroke-width: 2.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ais-vessel-marker.position-stale {
  opacity: .72;
}
.ais-vessel-marker.position-stale .vessel-symbol polygon {
  fill: transparent;
  stroke: var(--vessel-colour);
  stroke-dasharray: 3 2;
}
.ais-vessel-marker.steenbank-planned::after {
  position: absolute;
  inset: -3px;
  border: 2px dashed #e12736;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: drop-shadow(0 0 1px #fff);
}
.ais-vessel-tooltip {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,.95),
     1px -1px 0 rgba(255,255,255,.95),
    -1px  1px 0 rgba(255,255,255,.95),
     1px  1px 0 rgba(255,255,255,.95);
}
.ais-vessel-tooltip::before { display: none; }
#logboek { max-height: 220px; overflow-y: auto; }
.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 12px;
  padding: 12px;
}
.logbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 12px;
  padding: 12px;
}
.single-page { display: grid; gap: 12px; padding: 12px; }
.incident-operations-page {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr);
  gap: 12px;
  padding: 12px;
}
.incident-operations-main { display: grid; align-content: start; gap: 12px; min-width: 0; }
.incident-operations-logbook { min-width: 0; }
.incident-operations-logbook > .card { position: sticky; top: 12px; }
.quick-incident-form {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(150px, .7fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}
.quick-incident-form label { display: grid; gap: 5px; }
.quick-incident-form .quick-description { grid-column: 1 / -1; }
.quick-incident-form textarea { resize: vertical; }
.quick-incident-form button { width: auto; }
.form-feedback { min-height: 1.2em; margin: 4px 0 0; color: var(--muted); }
.quick-incident-form .form-feedback { grid-column: 1 / -1; }
.workspace-logbook-status { margin: 0 0 8px; color: var(--muted); font-weight: 700; }
.workspace-logbook { max-height: calc(100vh - 285px); min-height: 260px; overflow-y: auto; }
.workspace-log-entry { padding: 9px 2px; border-bottom: 1px solid var(--border); }
.workspace-log-entry small { color: var(--muted); }
.workspace-log-entry p { margin: 3px 0 0; }
.workspace-log-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.workspace-log-form label { display: grid; gap: 5px; }
.workspace-log-form button { width: auto; }
@media (max-width: 980px) {
  .incident-operations-page { grid-template-columns: 1fr; }
  .incident-operations-logbook > .card { position: static; }
  .workspace-logbook { max-height: 420px; }
}
@media (max-width: 700px) {
  .incident-operations-page { padding: 8px; }
  .quick-incident-form { grid-template-columns: 1fr 1fr; }
  .quick-incident-form .quick-location,
  .quick-incident-form .quick-description,
  .quick-incident-form .form-feedback { grid-column: 1 / -1; }
  .quick-incident-form button { grid-column: 1 / -1; width: 100%; }
  .incident-overview-card .filter-row { grid-template-columns: 1fr; }
  .incident-overview-card .filter-row button { width: 100%; }
  .workspace-log-form { grid-template-columns: 1fr; }
  .workspace-log-form button { width: 100%; }
}
.form-page { max-width: 760px; margin: 0 auto; padding: 12px; }
.filter-row { grid-template-columns: minmax(220px, 1fr) 220px auto; align-items: end; }
.filter-row button { width: auto; }
.priority-dot { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; }
.incident-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.incident-tabs button { width: auto; background: var(--panel2); color: var(--text); }
.incident-tabs button.active { background: var(--accent); color: #04121b; }
.incident-detail-grid { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-grid label { display: grid; gap: 5px; }
.form-grid .wide { grid-column: 1 / -1; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }
#incident-map { height: 420px; border-radius: 10px; background: #0b2e42; }
.incident-detail-page .incident-workspace {
  width: min(1320px, 100%);
  gap: 14px;
  padding: 14px;
}
.incident-detail-page .incident-tabs {
  position: sticky;
  top: 80px;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid #a9b7be;
  border-radius: 9px;
  background: rgba(238, 243, 245, .96);
  box-shadow: 0 4px 14px rgba(22, 39, 49, .12);
  backdrop-filter: blur(8px);
}
.incident-detail-page .incident-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #48606c;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}
.incident-detail-page .incident-tabs button span {
  color: #718994;
  font-size: 17px;
}
.incident-detail-page .incident-tabs button:hover {
  background: #dce7eb;
}
.incident-detail-page .incident-tabs button.active {
  color: #fff;
  background: #34598a;
  box-shadow: 0 2px 6px rgba(27, 63, 92, .28);
}
.incident-detail-page .incident-tabs button.active span { color: #fff; }
.incident-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.incident-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 4px 3px;
  color: #263c49;
  background: transparent;
  border: 0;
}
.incident-panel-header small,
.incident-card-heading small {
  color: #157a9d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.incident-panel-header h2 {
  margin: 2px 0 0;
  color: #263c49;
  font-size: 21px;
}
.incident-panel-header p {
  max-width: 520px;
  margin: 0;
  color: #60727e;
  font-size: 12px;
  text-align: right;
}
.incident-detail-page .incident-detail-grid { gap: 14px; }
.incident-detail-page .card {
  padding: 18px;
  border-color: #b2c0c7;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(22, 39, 49, .09);
}
.incident-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid #d7e0e4;
}
.incident-card-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: #34598a;
  font-size: 11px;
  font-weight: 850;
}
.incident-card-heading h2 {
  margin: 2px 0 0 !important;
  font-size: 16px !important;
}
.incident-detail-page .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.incident-detail-page .form-grid label,
.incident-detail-page form > label {
  color: #4d626d;
  font-size: 11px;
  font-weight: 700;
}
.incident-detail-page input,
.incident-detail-page select,
.incident-detail-page textarea {
  margin-top: 4px;
  border-radius: 5px;
}
.incident-detail-page textarea { line-height: 1.45; }
.incident-detail-page form > button[type="submit"] {
  width: auto;
  min-width: 180px;
  margin-top: 12px;
  padding: 9px 15px;
}
.incident-log-layout {
  display: grid;
  grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 12px;
}
.incident-note-card {
  position: sticky;
  top: 150px;
}
.incident-command-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}
.incident-command-help code {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text);
  background: var(--panel2);
  font-weight: 800;
}
.incident-timeline-card #incident-log {
  display: grid;
  gap: 8px;
}
.incident-detail-page .timeline-entry {
  margin: 0;
  border: 1px solid #d4dfe3;
  border-left-width: 4px;
  border-radius: 6px;
  background: #f5f8f9;
}
.incident-location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
}
.incident-detail-page #incident-map {
  height: min(62vh, 600px);
  min-height: 420px;
  border: 1px solid #aab9c0;
  border-radius: 7px;
}
.incident-location-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  border-radius: 7px;
  color: #29424f;
  background: #e8eff2;
  text-align: center;
}
.incident-location-summary > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: #34598a;
  font-size: 25px;
}
.incident-location-summary small {
  color: #60727e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.incident-location-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.incident-empty-state {
  display: grid;
  place-items: center;
  min-height: 330px;
  text-align: center;
}
.incident-empty-state > span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #34598a;
  background: #e1ebef;
  font-size: 32px;
}
.incident-empty-state h2 { margin: 8px 0 0 !important; }
.incident-empty-state p {
  max-width: 390px;
  margin: 0;
  color: #60727e;
}

.incident-attachments-card {
  display: grid;
  gap: 12px;
}
.collapsible-card-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.collapse-card-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 10px;
  justify-self: end;
  white-space: nowrap;
}
.collapse-card-button > span:first-child {
  font-size: 17px;
  line-height: 1;
}
#incident-general-fields[hidden] { display: none; }
.incident-photo-button {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 2px dashed rgba(0, 174, 239, .55);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0, 174, 239, .08);
  cursor: pointer;
  text-align: center;
}
.incident-photo-button > span { font-size: 30px; }
.incident-photo-button strong { font-size: 16px; }
.incident-photo-button small { color: var(--muted); }
#incident-photo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
#incident-photo-form.uploading {
  opacity: .6;
  pointer-events: none;
}
.incident-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.incident-attachment {
  display: grid;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(108, 166, 202, .2);
  border-radius: 10px;
  background: var(--panel2);
  text-decoration: none;
}
.incident-attachment img,
.incident-attachment-file {
  display: grid;
  width: 100%;
  height: 150px;
  object-fit: cover;
  place-items: center;
}
.incident-attachment-file { font-size: 40px; }
.incident-attachment > span:last-child {
  display: grid;
  gap: 2px;
  padding: 8px;
}
.incident-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.incident-attachment small { color: var(--muted); }

@media (max-width: 760px) {
  .incident-photo-button {
    min-height: 112px;
    touch-action: manipulation;
  }
  .incident-attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .incident-attachment img,
  .incident-attachment-file {
    height: 120px;
  }
}
.standard-incident-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.incident-location-picker { min-width: 0; }
#new-incident-map {
  width: 100%;
  height: min(45vh, 390px);
  min-height: 280px;
  border: 1px solid #9baab2;
  border-radius: 6px;
  background: #dce8ed;
}
#new-map-feedback {
  margin: 6px 0 0;
  color: #60727e;
  font-size: 12px;
}
.patient-count-control {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}
.ehbo-contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 4px;
}
.ehbo-contact-actions button {
  min-width: 0;
  padding-inline: 8px;
  border-width: 1px;
  color: #fff;
  box-shadow: 0 2px 5px rgba(24, 45, 56, .2);
}
.ehbo-contact-actions [data-contact-type="ambulance"] {
  border-color: #8f1f2b;
  background: #c93643;
}
.ehbo-contact-actions [data-contact-type="ambulance"]:hover:not(:disabled) {
  background: #a92734;
}
.ehbo-contact-actions [data-contact-type="huisarts"] {
  border-color: #17643b;
  background: #23834b;
}
.ehbo-contact-actions [data-contact-type="huisarts"]:hover:not(:disabled) {
  background: #196b3c;
}
.ehbo-contact-actions [data-contact-type="dishoek"] {
  border-color: #244775;
  background: #34598a;
}
.ehbo-contact-actions [data-contact-type="dishoek"]:hover:not(:disabled) {
  background: #284972;
}
#contact-feedback {
  min-height: 18px;
  margin: 4px 0 10px;
  color: #536873;
}
.patient-count-control label { flex: 0 1 180px; }
.patient-count-control button { width: auto; }
.patient-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #b6c5cc;
  border-radius: 6px;
  background: #edf2f4;
}
.patient-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.patient-card-heading h3 { margin: 0; }
.patient-card-heading label { min-width: 190px; }
.patient-section {
  margin: 8px 0;
  border: 1px solid #c3d0d6;
  border-radius: 5px;
  background: #f8fafb;
}
.patient-section summary {
  padding: 9px 10px;
  color: #29424f;
  font-weight: 800;
  cursor: pointer;
}
.patient-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 10px;
}
.patient-general-section .patient-field-grid {
  grid-template-columns:
    minmax(0, 2fr) minmax(70px, .7fr)
    minmax(90px, 1fr) minmax(110px, 1.3fr);
}
@media (max-width: 620px) {
  .patient-general-section .patient-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.incident-detail-page .patient-field-grid {
  gap: 5px;
}
.incident-detail-page .patient-field-grid label {
  gap: 2px;
  font-size: 10px;
}
.incident-detail-page .patient-field-grid textarea {
  height: 28px;
  min-height: 28px;
  padding: 4px 7px;
  overflow-y: hidden;
  font-size: 11px;
  line-height: 1.2;
}
.patient-field-grid label,
.patient-structured > label,
.patient-open {
  display: grid;
  gap: 4px;
}
.patient-card textarea {
  min-width: 0;
  resize: vertical;
}
.missing-person-card {
  margin: 10px 0;
  padding: 0;
}
.missing-person-card > summary {
  padding: 10px 12px;
  color: #29424f;
  font-weight: 800;
  cursor: pointer;
}
.missing-person-fields { padding: 4px 12px 12px; }
.missing-section {
  margin: 0 12px 10px;
  padding: 10px;
  border: 1px solid #d3dde2;
  border-radius: 6px;
  background: #fff;
}
.missing-section h4 {
  margin: 0 0 8px;
  color: #17658a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.missing-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.missing-section-signalement .missing-section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.missing-section-grid label { display: grid; gap: 3px; min-width: 0; }
.missing-environment-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(85px, 1fr));
  gap: 6px;
}
.missing-environment-choice button {
  min-height: 34px;
  border: 2px solid #7f99a6;
  background: #edf3f6;
  color: #29424f;
  font-weight: 800;
}
.missing-environment-choice button.selected {
  border-color: #087fb5;
  background: #087fb5;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(8, 127, 181, .18);
}
.accident-choice-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.accident-choice-layout fieldset {
  min-width: 0;
  padding: 12px;
  border: 1px solid #c3d0d6;
  border-radius: 7px;
}
.accident-choice-layout legend {
  padding: 0 5px;
  color: #29424f;
  font-weight: 800;
}
.incident-choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.incident-choice-buttons button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  min-height: 76px;
  padding: 10px 12px;
  border: 3px solid #9aadb6;
  border-radius: 9px;
  background: #f4f7f8;
  color: #29424f;
  text-align: left;
  box-shadow: 0 2px 5px rgba(16, 43, 56, .12);
}
.incident-choice-buttons .choice-icon {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 30px;
  line-height: 1;
  text-align: center;
}
.incident-choice-buttons strong {
  align-self: end;
  font-size: 15px;
  line-height: 1.1;
}
.incident-choice-buttons small {
  align-self: start;
  margin-top: 3px;
  font-size: 10px;
  opacity: .82;
}
.incident-detail-page .incident-choice-buttons button[data-choice-value="Water"] {
  border-color: #075985;
  background-color: #0284c7;
  color: #fff;
}
.incident-detail-page .incident-choice-buttons button[data-choice-value="Land"] {
  border-color: #166534;
  background-color: #2f8a46;
  color: #fff;
}
.incident-detail-page .incident-choice-buttons button[data-choice-value="Letsel"] {
  border-color: #991b1b;
  background-color: #dc2626;
  color: #fff;
}
.incident-detail-page .incident-choice-buttons button[data-choice-value="Materieel"] {
  border-color: #9a3412;
  background-color: #ea7a16;
  color: #fff;
}
.incident-detail-page .incident-choice-buttons button.selected,
.incident-detail-page .incident-choice-buttons button.selected:hover:not(:disabled) {
  border-color: #fff;
  background-color: #123f57;
  color: #fff;
  box-shadow:
    0 0 0 3px #123f57,
    0 5px 12px rgba(10, 32, 44, .35);
}
.incident-detail-page .incident-choice-buttons button:hover:not(:disabled) {
  filter: brightness(.88);
  background-color: #176b91;
}
.incident-report {
  display: grid;
  gap: 12px;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 14px;
}
.incident-copy-card {
  display: grid;
  gap: 8px;
}
#incident-report-text {
  width: 100%;
  min-height: 310px;
  padding: 12px;
  border: 1px solid #9fb2ba;
  border-radius: 5px;
  color: #142f3b;
  background: #f7fafb;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}
#copy-incident-status {
  color: #17673b;
  font-size: 10px;
  font-weight: 800;
}
.incident-report-heading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.incident-report-heading > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 5px;
  background: #e6eef1;
}
.incident-report-heading small,
.incident-report-log time {
  color: #59707b;
  font-size: 10px;
  font-weight: 700;
}
.report-section p {
  white-space: pre-wrap;
}
.incident-report-log {
  display: grid;
  gap: 6px;
}
.incident-report-log section {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border-left: 4px solid #26718d;
  background: #edf3f5;
}
.incident-report-log p {
  margin: 3px 0 0;
}
.incident-involved-units {
  display: grid;
  gap: 5px;
}
.incident-involved-units > small {
  color: #536873;
  font-size: 9px;
  font-weight: 800;
}
#incident-involved-units {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 36px;
  align-items: center;
  padding: 7px;
  border: 1px solid #b9c9cf;
  border-radius: 5px;
  background: #edf3f5;
}
.involved-unit-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: #176b91;
  font-size: 10px;
  font-weight: 800;
}
@media print {
  .incident-report-command { display: none; }
  .incident-report { width: 100%; padding: 0; }
  .incident-copy-card { display: none; }
  .incident-report .card {
    break-inside: avoid;
    border: 1px solid #aaa;
    box-shadow: none;
  }
}

/* De donkere header gebruikt backdrop-filter en vormt daardoor een eigen
   stacking context. Houd die volledige laag boven de operationele balk en
   dashboardkaarten zolang het navigatiemenu kan uitklappen. */
.dashboard-page .command-bar {
  position: relative;
  z-index: 6000;
  overflow: visible;
}

.dashboard-page .dashboard-header-tools,
.dashboard-page .dashboard-menu {
  z-index: 6001;
  overflow: visible;
}

.dashboard-page .dashboard-menu-panel {
  z-index: 6002;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf2f3;
  color: #17252b;
}
.auth-panel {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  background: #fff;
  border: 1px solid #c7d2d6;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(18, 42, 51, .16);
}
.auth-panel form, .account-form { display: grid; gap: 14px; }
.auth-panel label, .account-form label { display: grid; gap: 5px; }
.auth-panel input, .account-form input, .account-form select { width: 100%; }
.account-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}
.account-role-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}
.account-role-control select { min-width: 120px; }
.account-role-control button { white-space: nowrap; }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; } }

/* Zoekgebied: 30/70 operationele werkruimte. */
.search-area-page { min-height: 100dvh; }
.search-area-safety {
  margin: 10px 12px 0;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid #da9a22;
  border-radius: 10px;
  background: #704a08;
  font-size: 12px;
  line-height: 1.4;
}
.search-area-layout {
  display: grid;
  grid-template-columns: minmax(310px, 30fr) minmax(520px, 70fr);
  min-height: calc(100dvh - 145px);
  padding: 10px 12px 14px;
  gap: 12px;
}
.search-area-sidebar { min-width: 0; }
.search-area-form { display: grid; gap: 9px; }
.search-area-form .card { padding: 12px; }
.search-area-form h2 { margin: 0 0 9px; font-size: 15px; }
.search-area-form label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 750; }
.search-area-form input,
.search-area-form select {
  width: 100%; min-width: 0; padding: 8px; color: var(--text);
  border: 1px solid rgba(110, 160, 195, .4); border-radius: 7px;
  background: var(--panel2);
}
.search-area-form label:has(input[type="checkbox"]),
.search-source-heading label { display: inline-flex; align-items: center; gap: 5px; }
.search-area-form input[type="checkbox"], .search-area-form input[type="radio"] { width: auto; }
.search-coordinate-grid, .search-manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.search-manual-grid .wide { grid-column: 1 / -1; }
.search-duration, .search-source-data {
  display: grid; padding: 8px; border-radius: 8px; background: var(--panel2);
}
.search-duration strong { font-size: 17px; }
.search-duration span, .search-source-data span { color: var(--muted); font-size: 10px; }
.search-source-heading { display: flex; align-items: center; gap: 9px; margin: 10px 0 6px; }
.search-source-heading strong { margin-right: auto; color: var(--accent); }
.search-data-missing, .search-inline-warning {
  margin: 8px 0 0; padding: 8px; border-radius: 7px; color: #6d4600; background: #ffe4a4;
}
.search-quality { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-weight: 850; }
.search-quality.insufficient { color: #fff; background: #a82d39; }
.search-area-form ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.search-calculate { min-height: 44px; color: #fff; border: 0; border-radius: 9px; background: #007eaf; font-weight: 850; cursor: pointer; }
.search-result h2 { color: #e5a72f; }
.search-map-card { position: relative; min-width: 0; padding: 0; overflow: hidden; }
#search-area-map { height: calc(100dvh - 215px); min-height: 570px; }
.search-layer-panel {
  position: absolute; z-index: 700; top: 78px; right: 12px; display: grid;
  width: 190px; padding: 10px; gap: 5px; color: var(--text);
  border: 1px solid rgba(110, 160, 195, .45); border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.search-layer-panel label { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.search-probability-controls {
  position: absolute; z-index: 700; right: 12px; bottom: 12px; display: flex;
  align-items: center; gap: 5px; padding: 7px; color: var(--text); border-radius: 8px; background: var(--panel);
}
.search-probability-controls button { padding: 6px 9px; }
.search-probability-controls label { font-size: 10px; }
@media (max-width: 899px) {
  .search-area-layout { grid-template-columns: 1fr; }
  .search-map-card { grid-row: 1; }
  #search-area-map { height: 62dvh; min-height: 430px; }
  .search-layer-panel { top: 70px; right: 8px; }
}
@media (max-width: 480px) {
  .search-coordinate-grid, .search-manual-grid { grid-template-columns: 1fr; }
  .search-manual-grid .wide { grid-column: auto; }
  .search-layer-panel { width: 165px; }
  .search-probability-controls { left: 8px; right: 8px; justify-content: center; }
}

.dashboard-page .day-checklist-dialog {
  width: min(570px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  color: var(--text);
  border: 1px solid rgba(92, 155, 197, .5);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 8, 22, .55);
}

.dashboard-page .day-checklist-dialog::backdrop {
  background: rgba(0, 10, 24, .72);
  backdrop-filter: blur(4px);
}

.dashboard-page .day-checklist-dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.dashboard-page .day-checklist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .day-checklist-heading small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-page .day-checklist-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.dashboard-page .day-checklist-close {
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 auto;
  color: var(--text);
  border: 1px solid rgba(128, 180, 211, .3);
  border-radius: 9px;
  background: var(--panel2);
  font-size: 23px;
  cursor: pointer;
}

.dashboard-page .day-checklist-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-page #day-checklist-items {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

.dashboard-page #day-checklist-items label {
  display: grid;
  min-height: 48px;
  padding: 10px 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(128, 180, 211, .25);
  border-radius: 10px;
  background: var(--panel2);
  cursor: pointer;
}

.dashboard-page #day-checklist-items input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.dashboard-page #day-checklist-items span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-page .day-checklist-error {
  padding: 9px 11px;
  color: #fff !important;
  border-radius: 8px;
  background: #a82d39;
}

.dashboard-page .day-checklist-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-page .day-checklist-actions button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(128, 180, 211, .35);
  border-radius: 9px;
  color: var(--text);
  background: var(--panel2);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-page .day-checklist-actions button[type="submit"] {
  color: #fff;
  border-color: #008bc0;
  background: #007eaf;
}

.dashboard-page .day-checklist-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .dashboard-page .day-checklist-dialog form {
    padding: 15px;
  }

  .dashboard-page .day-checklist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Dashboardkop: compacte navigatie met behoud van alle bestaande acties. */
.dashboard-page .dashboard-header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.dashboard-page .dashboard-header-tools > .day-status-button {
  min-width: 112px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-page .dashboard-header-tools > .day-status-button.open {
  background: #23834b;
}

.dashboard-page .dashboard-header-tools > .day-status-button.closed {
  background: #a82d39;
}

.dashboard-page .dashboard-header-clock {
  display: grid;
  width: 190px;
  min-width: 190px;
  min-height: 44px;
  padding: 5px 12px;
  place-items: center;
  border: 1px solid #42606f;
  border-radius: 7px;
  color: #e8f3f7;
  background: #294756;
  line-height: 1.05;
  text-align: center;
}

.dashboard-page .dashboard-header-clock strong {
  color: #fff;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.dashboard-page .dashboard-header-clock small {
  color: #bcd0d9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-page .dashboard-menu {
  position: relative;
  flex: 0 0 auto;
}

.dashboard-page .dashboard-menu-toggle {
  display: grid;
  width: 46px;
  height: 44px;
  padding: 9px 10px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(118, 170, 210, .45);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.dashboard-page .dashboard-menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 2px;
  color: inherit;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.dashboard-page .dashboard-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.dashboard-page .dashboard-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.dashboard-page .dashboard-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.dashboard-page .dashboard-menu-panel {
  position: absolute;
  z-index: 5000;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(310px, calc(100vw - 20px));
  min-width: 270px;
  max-height: calc(100dvh - 85px);
  padding: 8px;
  grid-template-columns: 1fr;
  gap: 5px;
  overflow-y: auto;
  border: 1px solid rgba(118, 170, 210, .45);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 20, 40, .34);
}

.dashboard-page .dashboard-menu-panel[hidden] {
  display: none;
}

.dashboard-page .dashboard-menu-panel > *,
.dashboard-page .dashboard-menu-panel > a,
.dashboard-page .dashboard-menu-panel > button,
.dashboard-page .dashboard-menu-panel #clock {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex-basis: auto;
  justify-content: center;
  text-align: center;
}

.dashboard-page .dashboard-menu-panel > a,
.dashboard-page .dashboard-menu-panel > button {
  min-height: 36px;
  white-space: normal;
}

.dashboard-page .dashboard-menu-panel #clock {
  min-height: 44px;
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-header-tools {
    gap: 5px;
  }

  .dashboard-page .dashboard-header-clock {
    width: auto;
    min-width: 104px;
    min-height: 40px;
    padding: 4px 7px;
  }

  .dashboard-page .dashboard-header-clock strong {
    font-size: 14px;
  }

  .dashboard-page .dashboard-header-clock small {
    max-width: 112px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }

  .dashboard-page .dashboard-header-tools > .day-status-button {
    min-width: 96px;
    min-height: 40px;
    padding: 5px 7px;
    white-space: normal;
  }

  .dashboard-page .dashboard-menu-panel {
    position: fixed;
    top: 68px;
    right: 8px;
    left: 8px;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - 76px);
  }
}

/* Uitgebreid weer: actuele radar en onweersverwachting. */
.weather-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.extended-weather-page .weather-menu {
  position: relative;
  flex: 0 0 auto;
}

.extended-weather-page .weather-menu-toggle {
  display: grid;
  width: 44px;
  height: 42px;
  padding: 9px 10px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(118, 170, 210, .45);
  border-radius: 9px;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.extended-weather-page .weather-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.extended-weather-page .weather-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.extended-weather-page .weather-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.extended-weather-page .weather-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.extended-weather-page .weather-menu-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  padding: 7px;
  gap: 4px;
  border: 1px solid rgba(118, 170, 210, .45);
  border-radius: 11px;
  background: var(--panel, #102c46);
  box-shadow: 0 14px 32px rgba(0, 24, 48, .28);
}

.extended-weather-page .weather-menu-panel[hidden] {
  display: none;
}

.extended-weather-page .weather-menu-panel a,
.extended-weather-page .weather-menu-panel button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.weather-radar-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.weather-radar-card .card-heading {
  min-height: 68px;
  padding: 12px 16px;
}

.weather-radar-card h2 {
  margin: 1px 0 0;
}

.weather-radar-live,
.weather-radar-forecast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.weather-radar-live {
  color: #075b38;
  background: #c9f5df;
}

.weather-radar-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a866;
  box-shadow: 0 0 0 3px rgba(22, 168, 102, .17);
}

.weather-radar-forecast {
  color: #754500;
  background: #ffedbd;
}

.weather-radar-frame {
  position: relative;
  height: clamp(330px, 42vh, 500px);
  border-top: 1px solid var(--border-color, rgba(100, 140, 180, .25));
  background: #dfe9f0;
}

.weather-radar-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .weather-radar-grid {
    grid-template-columns: 1fr;
  }

  .weather-radar-frame {
    height: min(440px, 62vh);
    min-height: 320px;
  }
}

/* Uitgebreide weerpagina. */
.extended-weather-main {
  display: grid;
  gap: 14px;
  width: min(1700px, 100%);
  margin: 0 auto;
  padding: 14px;
}
.extended-weather-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.extended-weather-summary h2 { margin: 2px 0 0; }
#weather-extended-status { color: var(--muted); font-size: 12px; }
.weather-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
}
.weather-day-card { min-width: 150px; padding: 13px; }
.weather-day-card > time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: capitalize;
}
.weather-day-symbol { display: block; margin: 9px 0 3px; font-size: 31px; }
.weather-day-temperature { display: flex; align-items: baseline; gap: 8px; }
.weather-day-temperature strong { font-size: 25px; }
.weather-day-temperature span { color: var(--muted); font-size: 17px; }
.weather-day-card dl { display: grid; gap: 5px; margin: 10px 0 0; }
.weather-day-card dl div { display: flex; justify-content: space-between; gap: 8px; }
.weather-day-card dt { color: var(--muted); font-size: 9px; }
.weather-day-card dd { margin: 0; font-size: 10px; font-weight: 800; text-align: right; }
.weather-hourly-wrap { max-height: calc(100dvh - 390px); overflow: auto; }
.weather-hourly-table th { position: sticky; top: 0; z-index: 2; }
.weather-hourly-table td { white-space: nowrap; }
.weather-hourly-table td:first-child { min-width: 145px; }
.weather-hour-day { display: block; color: var(--accent); font-size: 9px; font-weight: 850; text-transform: capitalize; }
.weather-hour-symbol { font-size: 20px; text-align: center; }
.weather-table-arrow { display: inline-block; color: var(--accent); font-size: 19px; transform-origin: center; }
@media (max-width: 899px) {
  .extended-weather-main { padding: 8px; }
  .weather-day-grid { grid-template-columns: repeat(7, minmax(180px, 1fr)); }
  .weather-hourly-wrap { max-height: none; }
  .extended-weather-summary { align-items: flex-start; flex-direction: column; }
}

/* Compact operationeel overzicht onder de dashboardheader. */
.dashboard-page .operational-bar {
  display: grid;
  grid-template-columns: .75fr .6fr .6fr 2fr .65fr;
  width: calc(100% - clamp(16px, 1.4vw, 30px));
  min-height: 44px;
  margin: 4px auto 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(126, 170, 200, .35);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
}
.dashboard-page .operational-item {
  display: flex;
  min-width: 0;
  padding: 4px clamp(8px, .65vw, 12px);
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid rgba(126, 170, 200, .25);
}
.dashboard-page .operational-item:first-child { border-left: 0; }
.dashboard-page .operational-tide,
.dashboard-page .operational-current,
.dashboard-page .operational-wind {
  padding-inline: clamp(6px, .45vw, 9px);
}
.dashboard-page .operational-tide {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.operational-tide-next {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  min-width: 0;
  min-height: 38px;
  gap: 2px;
  align-items: center;
  align-content: center;
  overflow: hidden;
  padding-right: 8px;
}
.operational-tide-next strong {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(11px, .78vw, 14px);
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operational-tide-extreme {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  overflow: hidden;
}
.operational-tide-extreme strong {
  flex: 0 1 auto;
}
.operational-tide-extreme time {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(11px, .78vw, 14px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.operational-tide-next #operational-tide-countdown {
  margin: 0;
  overflow: visible;
  color: var(--muted);
  font-size: clamp(8px, .55vw, 10px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.operational-tide-next #operational-tide-countdown b {
  display: block;
  margin-top: 1px;
  color: var(--accent);
  font-size: clamp(15px, 1.08vw, 20px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1;
}
.operational-tide-next #operational-tide-countdown.stale b {
  color: var(--warning);
}
.operational-tide-chart {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding-left: 8px;
  box-sizing: border-box;
  overflow: hidden;
  border-left: 1px solid rgba(126, 170, 200, .35);
}
.operational-tide-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.operational-tide-curve {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.operational-tide-chart circle { fill: var(--accent); }
.operational-tide-chart text {
  fill: var(--muted);
  text-anchor: middle;
  font-family: Arial, Helvetica, sans-serif;
}
.operational-tide-chart .tide-chart-type {
  fill: var(--text);
  font-size: 12px;
  font-weight: 950;
}
.operational-tide-chart .tide-chart-time {
  fill: var(--text);
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.operational-tide-chart .tide-chart-current line {
  stroke: var(--text);
  stroke-width: .8;
  stroke-dasharray: 2 2;
  opacity: .65;
}
.operational-tide-chart .tide-chart-current circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2;
}
.operational-tide-chart .tide-chart-current text {
  fill: var(--text);
  font-size: 11px;
  font-weight: 950;
}
.dashboard-page .operational-label {
  margin-bottom: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(7px, .55vw, 9px);
  font-weight: 800;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.operational-tide-main,
.operational-ship-main,
.operational-current-main,
.operational-wind-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.operational-tide-main strong,
.operational-ship-main strong,
.operational-current-main strong,
.operational-wind-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(12px, .9vw, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operational-tide-main time {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#operational-tide-countdown,
#operational-ship-countdown,
#operational-ship-dimensions {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(9px, .65vw, 11px);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operational-current {
  color: var(--text);
}
.operational-current-main,
.operational-wind-main { gap: 7px; }
.operational-direction-arrow,
.operational-wind-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(24px, 1.65vw, 31px);
  height: clamp(24px, 1.65vw, 31px);
  align-items: center;
  justify-content: center;
  transform-origin: center;
}
.operational-direction-arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 3px rgba(0, 174, 239, .35));
}
.operational-direction-arrow path { fill: var(--accent); }
.operational-speed {
  margin-top: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: clamp(11px, .78vw, 14px);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operational-current.unavailable {
  color: var(--muted);
}
.operational-current.unavailable .operational-speed { color: var(--muted); }
#operational-ship-countdown {
  color: var(--accent);
  font-weight: 850;
}
.operational-ship[data-focus-mmsi],
.operational-next-ship[data-focus-mmsi],
.voyage-item[data-focus-mmsi] {
  cursor: pointer;
}
.operational-ship[data-focus-mmsi]:hover,
.operational-ship[data-focus-mmsi]:focus-visible,
.voyage-item[data-focus-mmsi]:hover,
.voyage-item[data-focus-mmsi]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(0, 174, 239, .1);
}
.operational-ship {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, .8vw, 15px);
}
.operational-ship-primary,
.operational-next-ship {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
}
.operational-next-ship {
  padding-left: clamp(8px, .7vw, 13px);
  border-left: 1px solid rgba(126, 170, 200, .25);
}
.operational-next-ship[hidden] { display: none !important; }
.operational-next-ship strong,
#operational-next-ship-distance {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operational-next-ship-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}
.operational-next-ship-main strong { min-width: 0; }
#operational-next-ship-ges {
  flex: 0 1 auto;
  max-width: 54%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.operational-next-ship strong {
  color: var(--text);
  font-size: clamp(11px, .8vw, 14px);
}
#operational-next-ship-distance {
  color: var(--accent);
  font-size: clamp(9px, .65vw, 11px);
  font-weight: 850;
}
.operational-next-ship[data-focus-mmsi]:hover,
.operational-next-ship[data-focus-mmsi]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(0, 174, 239, .1);
}
.voyage-history-warning {
  display: inline-flex;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d71920;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}
.voyage-history-warning {
  margin-left: 3px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  font-family: Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.voyage-history-warning[hidden] { display: none !important; }
.voyage-history-warning:hover,
.voyage-history-warning:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #b41118;
}
.wave-history-dialog {
  width: min(760px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
}
.wave-history-dialog::backdrop { background: rgba(0, 15, 25, .72); }
.wave-history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.wave-history-heading h2 { margin: 2px 0 0; font-size: 20px; }
.wave-history-heading small { color: var(--muted); }
.wave-history-heading button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
}
.wave-history-dialog > p { color: var(--muted); }
.wave-history-table-wrap { overflow-x: auto; }
.wave-history-dialog table { width: 100%; border-collapse: collapse; }
.wave-history-dialog th,
.wave-history-dialog td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.ais-vessel-marker.vessel-focus-pulse::before {
  position: absolute;
  inset: -8px;
  border: 3px solid #00aeef;
  border-radius: 50%;
  content: "";
  animation: vessel-focus-pulse 900ms ease-out 2;
  pointer-events: none;
}
@keyframes vessel-focus-pulse {
  from { opacity: 1; transform: scale(.55); }
  to { opacity: 0; transform: scale(1.45); }
}
.operational-category {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}
.operational-weather {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 3px 8px;
}
.operational-weather .operational-label,
.operational-weather .operational-data-status { grid-column: 1 / -1; }
#operational-temperature {
  color: var(--text);
  font-size: clamp(17px, 1.3vw, 23px);
  line-height: 1;
  white-space: nowrap;
}
.operational-uv {
  align-self: center;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.uv-low { color: #062b16; background: #4ade80; }
.uv-moderate { color: #302800; background: #facc15; }
.uv-high { color: #351500; background: #fb923c; }
.uv-very-high { color: #fff; background: #dc2626; }
.uv-extreme { color: #fff; background: #7e22ce; }
.uv-unknown { color: var(--muted); background: var(--panel2); }
.operational-data-status {
  min-height: 0;
  color: var(--warning);
  font-size: 7px;
}
.operational-wind-arrow .wind-arrow {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(var(--wind-rotation)) scale(var(--wind-scale));
  transform-origin: center;
}
.operational-wind-arrow .wind-arrow path { fill: currentColor; }
.dashboard-page .layout {
  height: calc(100dvh - 72px - 58px);
}

@media (max-width: 1050px) {
  .dashboard-page .operational-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }
  .dashboard-page .operational-item {
    border-top: 1px solid rgba(126, 170, 200, .25);
  }
  .dashboard-page .operational-item:nth-child(-n + 3) { border-top: 0; }
  .dashboard-page .operational-tide,
  .dashboard-page .operational-ship { border-left: 0; }
  .dashboard-page .operational-ship { grid-column: span 2; }
  .dashboard-page .layout {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .dashboard-page .operational-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 16px);
  }
  .dashboard-page .operational-ship {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: 0;
  }
  .dashboard-page .operational-weather {
    grid-column: 1 / -1;
    border-left: 0;
  }
  .dashboard-page .operational-label { font-size: 7px; }
  .operational-tide-main,
  .operational-current-main,
  .operational-wind-main { gap: 4px; }
}

[data-theme="light"] .dashboard-page .operational-bar {
  border-color: #c7ddf5;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 70, 140, .08);
}
[data-theme="light"] .dashboard-page .operational-item {
  border-color: #dceaf7;
}

/* Laat de browser de hoogte van header en operationele balk meten. Zo krijgt
   het hoofdgrid altijd exact de resterende schermhoogte, ook in tv-modus. */
@media (min-width: 1051px) {
  html:has(body.dashboard-page) {
    height: 100%;
    min-height: 0;
  }
  body.dashboard-page {
    display: grid;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }
  .dashboard-page .command-bar,
  .dashboard-page .operational-bar,
  .dashboard-page .layout {
    min-width: 0;
  }
  .dashboard-page .layout {
    height: auto !important;
    min-height: 0;
  }
}

/* Alleen de vaste vorm van de themaschakelaar; kleuren staan in themabestanden. */
.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid;
  border-radius: 999px;
}
.theme-switch .theme-option {
  width: auto;
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.theme-switch .theme-option span {
  margin-right: 2px;
  font-size: 10px;
}

.passage-scope-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(108, 166, 202, .22);
  border-radius: 9px;
  background: rgba(7, 25, 48, .72);
}
.passage-scope-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  color: #bfd0df;
  border-color: transparent;
  background: transparent;
  font-size: 10px;
}
.passage-scope-tabs button.active {
  color: #031521;
  background: var(--accent);
}
.passage-readonly-summary { margin-bottom: 8px; }
.passage-readonly-note {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: rgba(0, 174, 239, .08);
  font-size: 10px;
}

/* Exacte presentatie van de vier kaarten in de dashboard-linkerkolom. */
.dashboard-page .dashboard-left {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.dashboard-page .dashboard-left > .card {
  flex: 0 0 auto;
}
.dashboard-page .weather-card {
  min-height: 515px;
}
.dashboard-page .weather-card #weather {
  height: auto;
  transform: scale(var(--weather-fit-scale, 1));
  transform-origin: top left;
}
.dashboard-page .weather-console {
  display: grid;
  height: auto;
  grid-template-rows: repeat(6, auto);
  gap: 10px;
}
.dashboard-page .weather-temperature {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 3px 8px;
  border-bottom: 1px solid rgba(108, 166, 202, .16);
}
.dashboard-page .weather-temperature > strong {
  color: #fff;
  font-size: clamp(35px, 2.4vw, 48px);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
}
.dashboard-page .weather-extremes {
  display: grid;
  gap: 5px;
  padding-top: 1px;
}
.dashboard-page .weather-extremes span {
  display: grid;
  grid-template-columns: 34px auto;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.dashboard-page .weather-extremes small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dashboard-page .weather-wind {
  display: grid;
  min-height: 104px;
  padding: 8px 0 5px;
  place-items: center;
  align-content: center;
}
.dashboard-page .weather-wind .wind-arrow {
  display: block;
  width: clamp(44px, 3.4vw, 64px);
  height: clamp(44px, 3.4vw, 64px);
  overflow: visible;
  color: inherit;
  transform: rotate(var(--wind-rotation)) scale(var(--wind-scale));
  transform-origin: center;
  filter: drop-shadow(0 0 10px currentColor);
}
.dashboard-page .weather-wind .wind-arrow path { fill: currentColor; }
.dashboard-page .weather-wind .wind-force-0,
.dashboard-page .weather-wind .wind-force-1 { color: #95a2ae; }
.dashboard-page .weather-wind .wind-force-2,
.dashboard-page .weather-wind .wind-force-3 { color: #33aef3; }
.dashboard-page .weather-wind .wind-force-4,
.dashboard-page .weather-wind .wind-force-5 { color: #51d47b; }
.dashboard-page .weather-wind .wind-force-6 { color: #f5d84a; }
.dashboard-page .weather-wind .wind-force-7,
.dashboard-page .weather-wind .wind-force-8 { color: #ff9d2e; }
.dashboard-page .weather-wind .wind-force-9,
.dashboard-page .weather-wind .wind-force-10 { color: #ef4353; }
.dashboard-page .weather-wind .wind-force-11,
.dashboard-page .weather-wind .wind-force-12 { color: #b576ee; }
.dashboard-page .weather-wind > strong {
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .weather-wind > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-page .weather-wind-details {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(108, 166, 202, .16);
  border-radius: 8px;
  background: rgba(7, 25, 48, .55);
}
.dashboard-page .weather-wind-details > span,
.dashboard-page .weather-facts > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dashboard-page .weather-thunder {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.dashboard-page .weather-thunder strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .weather-thunder.thunder-green { background: rgba(28, 128, 69, .72); }
.dashboard-page .weather-thunder.thunder-yellow {
  color: #271f05;
  background: rgba(245, 216, 74, .92);
}
.dashboard-page .weather-thunder.thunder-orange { background: rgba(224, 112, 26, .88); }
.dashboard-page .weather-thunder.thunder-red { background: rgba(199, 43, 57, .9); }
.dashboard-page .weather-thunder.thunder-unknown { background: rgba(91, 111, 130, .58); }
.dashboard-page .weather-wind-details small,
.dashboard-page .weather-facts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.dashboard-page .weather-wind-details strong,
.dashboard-page .weather-facts strong {
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .weather-wind-forecast {
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(108, 166, 202, .16);
  border-radius: 8px;
  background: rgba(7, 25, 48, .42);
}
.dashboard-page .weather-wind-forecast > span {
  display: grid;
  grid-template-columns: 48px 22px 48px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 21px;
}
.dashboard-page .weather-wind-forecast small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}
.dashboard-page .weather-wind-forecast strong {
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .weather-wind-forecast em {
  overflow: hidden;
  color: #8ea8be;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-page .forecast-wind-arrow {
  display: inline-block;
  justify-self: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.dashboard-page .forecast-wind-arrow.wind-force-0,
.dashboard-page .forecast-wind-arrow.wind-force-1 { color: #95a2ae; }
.dashboard-page .forecast-wind-arrow.wind-force-2,
.dashboard-page .forecast-wind-arrow.wind-force-3 { color: #33aef3; }
.dashboard-page .forecast-wind-arrow.wind-force-4,
.dashboard-page .forecast-wind-arrow.wind-force-5 { color: #51d47b; }
.dashboard-page .forecast-wind-arrow.wind-force-6 { color: #f5d84a; }
.dashboard-page .forecast-wind-arrow.wind-force-7,
.dashboard-page .forecast-wind-arrow.wind-force-8 { color: #ff9d2e; }
.dashboard-page .forecast-wind-arrow.wind-force-9,
.dashboard-page .forecast-wind-arrow.wind-force-10 { color: #ef4353; }
.dashboard-page .forecast-wind-arrow.wind-force-11,
.dashboard-page .forecast-wind-arrow.wind-force-12 { color: #b576ee; }
.dashboard-page .weather-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}
.dashboard-page .weather-facts > span {
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(7, 25, 48, .48);
}
.dashboard-page .weather-source {
  display: none;
}
.dashboard-page .knmi-summary {
  display: grid;
  gap: 5px;
}
.dashboard-page .dashboard-left .warning-card { min-height: 112px; }
.dashboard-page .dashboard-left .water-card { min-height: 150px; }
.dashboard-page .dashboard-left .tide-card { min-height: 178px; }
.dashboard-page .knmi-summary strong {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}
.dashboard-page .knmi-summary span {
  color: rgba(255,255,255,.88);
  font-size: 11px;
}
.dashboard-page .knmi-warning {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.dashboard-page .knmi-warning strong {
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
}
.dashboard-page .knmi-warning p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dashboard-page .knmi-warning small {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  opacity: .9;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-page .water-card .metric small {
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dashboard-page .tide-card .event strong {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .tide-card .event span {
  color: #a9e6fb;
  font-size: 14px;
}
.incident-choice-buttons button.selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 18px;
  font-weight: 900;
}
.service-classification {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-classification fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #b8c7cd;
  border-radius: 7px;
}
.service-label-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.service-label-buttons button {
  min-height: 58px;
  border: 2px solid #6d8792;
  border-radius: 7px;
  color: #234452;
  background: #e8eff2;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.service-label-buttons button.selected {
  border-color: #126b8a;
  color: #fff;
  background: #126b8a;
  box-shadow: 0 0 0 3px rgba(18, 107, 138, .2);
}
@media (max-width: 700px) {
  .service-classification { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .accident-choice-layout { grid-template-columns: 1fr; }
}

.dashboard-page .dashboard-incident {
  border-width: 1px 1px 1px 5px;
}
.dashboard-page .dashboard-incident.incident-priority-1 {
  border-color: #b91c1c;
  background: #fee2e2;
}
.dashboard-page .dashboard-incident.incident-priority-2 {
  border-color: #ea580c;
  background: #ffedd5;
}
.dashboard-page .dashboard-incident.incident-priority-3 {
  border-color: #2563eb;
  background: #dbeafe;
}
.dashboard-page .dashboard-incident.incident-priority-4 {
  border-color: #64748b;
  background: #e2e8f0;
}
@media (max-width: 850px) {
  .missing-section-grid,
  .missing-section-signalement .missing-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.header-actions, .button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.button-row button { width: auto; }
.status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--panel2);
  text-transform: uppercase;
  font-size: 13px;
}
.timeline-entry {
  padding: 12px 14px;
  margin-bottom: 9px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel2);
}
.timeline-entry h3 { margin: 5px 0; }
.timeline-entry p { margin: 5px 0 0; white-space: pre-wrap; }
.timeline-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.severity-warning { border-left-color: var(--warning); }
.severity-critical { border-left-color: var(--danger); }
.history-main, .history-side { display: grid; gap: 12px; align-content: start; }
.statistics { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px; text-align: left; border-bottom: 1px solid #31566a; }
th { color: var(--muted); font-size: 13px; }
tbody tr[data-action] { cursor: pointer; }
tbody tr[data-action]:hover { background: var(--panel2); }
#history-map { height: 330px; border-radius: 10px; background: #0b2e42; }
@media (max-width: 1100px) {
  .layout, .history-layout, .logbook-layout { grid-template-columns: 1fr; }
  .statistics { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .filter-row { grid-template-columns: 1fr; }
}

/* Compacte operationele dashboardweergave. */
.dashboard-page {
  --bg: #061827;
  --panel: #f8fafb;
  --panel2: #edf2f4;
  --text: #1c2d38;
  --muted: #60727e;
  --accent: #157a9d;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, #12354b 0, #081f31 42%, #04131f 100%);
}
.dashboard-page .command-bar,
.operational-page .command-bar {
  min-height: 72px;
  padding: 9px 14px;
  color: #edf7fa;
  background: #34598a;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flag-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.flag-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.raised-flag {
  position: relative;
  display: block;
  width: 28px;
  height: 27px;
  border-left: 2px solid #dbe5e9;
}
.raised-flag::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #dbe5e9;
}
.raised-flag .flag-cloth {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 22px;
  height: 14px;
  border-radius: 1px 2px 2px 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.raised-flag.flag-empty .flag-cloth { display: none; }
.raised-flag.flag-red_yellow .flag-cloth {
  background: linear-gradient(to bottom, #dc2638 0 50%, #ffd52f 50% 100%);
}
.raised-flag.flag-yellow .flag-cloth { background: #ffd52f; }
.raised-flag.flag-red .flag-cloth { background: #dc2638; }
.raised-flag.flag-orange .flag-cloth { background: #ef7e22; }
.raised-flag.flag-purple .flag-cloth { background: #8e4bab; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 3px solid #55a8be;
  border-radius: 50%;
  color: #8ed3e3;
  font-weight: 800;
}
.brand small {
  display: block;
  color: #72b7c9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.dashboard-page .command-bar h1,
.operational-page .command-bar h1 { font-size: 19px; line-height: 1.1; }
.dashboard-page .command-bar span,
.operational-page .command-bar span { font-size: 11px; color: #a9bac4; }
.command-actions { display: flex; align-items: center; gap: 7px; }
.command-actions a, .command-actions #clock {
  padding: 7px 10px;
  border: 1px solid #42606f;
  border-radius: 16px;
  color: #e8f3f7;
  background: #294756;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.command-actions a { white-space: nowrap; }
.dashboard-page .command-actions .ais-history-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: max-content;
  padding-inline: 11px;
  border-color: #55a8be;
  background: #176b91;
  color: #fff;
}
.dashboard-page .command-actions .ais-history-link span {
  color: #8fe3f4;
  font-size: 12px;
  line-height: 1;
}
.dashboard-page .command-actions .ais-history-link:hover {
  background: #0f5778;
}
.command-actions #clock {
  display: grid;
  place-items: center;
  flex: 0 0 190px;
  width: 190px;
  min-width: 190px;
  min-height: 48px;
  padding: 5px 12px;
  border-radius: 7px;
  line-height: 1.05;
  text-align: center;
}
.command-actions #clock strong {
  color: #fff;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.command-actions #clock small {
  color: #bcd0d9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dashboard-page .layout {
  grid-template-areas: "left center right";
  grid-template-columns:
    minmax(230px, .82fr)
    minmax(520px, 2.25fr)
    minmax(285px, 1fr);
  gap: clamp(8px, .7vw, 15px);
  height: calc(100dvh - 72px);
  min-height: 0;
  padding: clamp(8px, .7vw, 15px);
  overflow: hidden;
}
.dashboard-page .dashboard-left { grid-area: left; }
.dashboard-page .dashboard-center { grid-area: center; }
.dashboard-page .dashboard-right { grid-area: right; }
.dashboard-page .column {
  gap: clamp(8px, .7vw, 15px);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #426779 transparent;
}
.dashboard-page .card {
  position: relative;
  padding: clamp(11px, .8vw, 15px);
  overflow: hidden;
  border: 1px solid #aab8bf;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff 0%, #f4f7f8 100%);
  box-shadow: 0 4px 14px rgba(0, 17, 29, .18);
}
.dashboard-page .card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #6fa0b4;
  content: "";
}
.dashboard-page .card h2 {
  margin-bottom: 10px;
  color: #263c49;
  font-size: clamp(14px, .9vw, 17px);
}
.section-kicker {
  margin-bottom: 2px;
  color: #72838d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-page .metric-grid,
.dashboard-page .weather-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dashboard-page .metric-wide { grid-column: 1 / -1; }
.dashboard-page .metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d4dfe3;
  border-radius: 6px;
  background: #edf3f5;
}
.dashboard-page .metric small {
  margin-bottom: 3px;
  color: #667a84;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}
.dashboard-page .metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: #1e3a48;
  font-size: clamp(13px, .85vw, 16px);
}
.dashboard-page .warning-card {
  color: #fff;
  border-left-width: 9px;
  transition: background-color .2s ease, border-color .2s ease;
}
.dashboard-page .warning-card.knmi-green { background: #28763d; border-color: #1c5b2e; }
.dashboard-page .warning-card.knmi-yellow { color: #2b260d; background: #f0d54f; border-color: #b49a16; }
.dashboard-page .warning-card.knmi-yellow h2,
.dashboard-page .warning-card.knmi-yellow .event { color: #2b260d; }
.dashboard-page .warning-card.knmi-orange { background: #d87321; border-color: #9e4a0b; }
.dashboard-page .warning-card.knmi-red { background: #bd3038; border-color: #801c22; }
.dashboard-page .warning-card.knmi-unknown { background: #63727b; border-color: #46535b; }
.dashboard-page .warning-card h2,
.dashboard-page .warning-card .event { color: #fff; }
.dashboard-page .warning-card .event { background: rgba(255,255,255,.1); }
.dashboard-page .compact-card .metric strong { font-size: 13px; }
.wind-value { display: flex; align-items: center; gap: 4px; }
.wind-arrow {
  display: inline-block;
  color: #157a9d;
  font-size: 21px;
  line-height: 1;
}
.tide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tide-grid .event { display: grid; gap: 2px; margin: 0; }
.tide-grid .event small { color: var(--muted); }
.tide-grid .event strong { font-size: 11px; }
.tide-grid .event span { font-size: 12px; font-weight: 800; }
.dashboard-page .card p { margin: 8px 0 0; font-size: 10px; }
.dashboard-page .map-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(8px, .65vw, 12px);
  border-color: #88a2ae;
  box-shadow: 0 5px 18px rgba(0, 15, 27, .25);
}
.dashboard-page .map-card .card-heading { margin: 0 2px 6px; }
.map-actions { display: flex; align-items: center; gap: 6px; }
.connection-badge {
  color: #186d3c;
  font-size: 10px;
  font-weight: 800;
}
.connection-badge.offline { color: #9d2731; }
.connection-badge.connecting { color: #b7791f; }
.dashboard-page .map-actions button {
  width: auto;
  padding: 6px 9px;
  color: #29424f;
  background: #fff;
  border-color: #a7b5bd;
  font-size: 10px;
}
.dashboard-page #map {
  flex: 1;
  height: clamp(320px, calc(100dvh - 440px), 700px);
  min-height: 320px;
  border: 1px solid #829aa6;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.dashboard-page .map-status { min-height: 14px; margin: 4px 2px 0; font-size: 10px; }
.voyage-strip {
  margin-top: 6px;
  padding: 7px;
  border: 1px solid #b2c0c7;
  border-radius: 5px;
  background: #edf2f4;
}
.voyage-strip-live {
  border-color: #82bda0;
  background: #e9f4ee;
}
.voyage-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.voyage-strip-heading h3 {
  margin: 0;
  color: #29424f;
  font-size: 11px;
  text-transform: uppercase;
}
.voyage-strip-heading a { color: #24576d; font-size: 10px; }
.voyage-strip-heading span {
  display: inline-flex;
  gap: 8px;
}
.voyage-items {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.voyage-item {
  flex: 0 0 clamp(260px, 30vw, 370px);
  padding: 6px 8px;
  border-left: 4px solid #287b9c;
  border-radius: 4px;
  background: #fff;
  color: #263c49;
  font-size: 10px;
}
.voyage-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.voyage-title strong { min-width: 0; }
.voyage-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}
.voyage-route-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid #e7a72d;
  border-radius: 999px;
  color: #fff7d6;
  background: #9a5a08;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.voyage-route-badge.eta-nadering,
.voyage-route-badge.eta-nadering_loodswissellijn,
.voyage-route-badge.eta-loodswissellijn_gepasseerd,
.voyage-route-badge.eta-eerste_eta_berekend {
  border-color: #7b8794;
  background: #64748b;
}
.voyage-route-badge.eta-vertraagt,
.voyage-route-badge.eta-loodswissel,
.voyage-route-badge.eta-loodsboot_gedetecteerd,
.voyage-route-badge.eta-loodsboot_nadert,
.voyage-route-badge.eta-loodsboot_langszij,
.voyage-route-badge.eta-loodswissel_actief,
.voyage-route-badge.eta-loodsboot_neemt_afstand {
  border-color: #f6ad55;
  background: #a95108;
}
.voyage-route-badge.eta-versnelling_gedetecteerd,
.voyage-route-badge.eta-vertrokken_na_loodswissel,
.voyage-route-badge.eta-loodswissel_afgerond,
.voyage-route-badge.eta-eta_herberekend,
.voyage-route-badge.eta-onderweg_naar_tellijn {
  border-color: #38bdf8;
  background: #0369a1;
}
.voyage-route-badge.eta-tellijn_gepasseerd {
  border-color: #4ade80;
  background: #15803d;
}
.voyage-route-badge.eta-verouderd,
.voyage-route-badge.eta-ongeldig { border-color: #f87171; background: #b91c1c; }
.ges-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 10px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.ges-cat-iii { background: var(--ok); color: #092719 !important; }
.ges-cat-ii { background: #f0d54f; color: #2b260d !important; }
.ges-cat-transition { background: #e27a22; color: #241306 !important; }
.ges-cat-i { background: var(--danger); color: #fff !important; }
.ges-popup-value {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.35;
}
.ges-no-data { background: #68757d; color: #fff !important; }
.voyage-item.connected { border-left-color: #16854c; }
.voyage-item strong, .voyage-item span, .voyage-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voyage-item span { color: #29424f; font-weight: 700; }
.voyage-item small { color: #60727e; }
.voyage-item .voyage-line-distance {
  color: var(--accent);
  font-weight: 800;
}
.voyage-item .voyage-eta strong { display: inline; color: inherit; }
.voyage-item .ges-badge {
  display: inline-block;
  overflow: visible;
  color: #fff;
  text-overflow: clip;
  white-space: nowrap;
}
.voyage-empty { padding: 6px; color: #60727e; font-size: 10px; }
.voyage-status { min-height: 12px; margin: 3px 2px 0; color: #60727e; font-size: 9px; }
.dashboard-page .center > .card:not(.map-card) { max-height: 145px; overflow: auto; }
.dashboard-page .center > .voyage-card {
  max-height: 190px;
  padding: 9px;
}
.dashboard-page .voyage-card .voyage-strip { margin-top: 0; }
.dashboard-page .voyage-card #ais[hidden] { display: none; }
.dashboard-page .action-link {
  padding: 5px 8px;
  color: #fff;
  background: #24576d;
  font-size: 10px;
}
.dashboard-page .incident-new-button {
  padding: 8px;
  margin-bottom: 7px;
  background: #236487;
  font-size: 11px;
}
.dashboard-page .unit,
.dashboard-page .event,
.dashboard-page .log-line,
.dashboard-page .ship {
  padding: 7px;
  margin-bottom: 5px;
  border: 1px solid #d2dde1;
  background: #edf3f5;
  font-size: 11px;
}
.dashboard-page .unit { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.dashboard-page .unit-status-select {
  padding: 4px;
  color: #263c49;
  background: #fff;
  font-size: 10px;
}
.dashboard-page .unit-group h3 { margin: 8px 0 4px; font-size: 10px; }
.dashboard-page #units {
  max-height: 190px;
  overflow: auto;
}
.compact-patrol-card {
  padding: 7px;
}
.compact-patrol-card > h2 {
  margin-bottom: 3px;
  font-size: 13px;
}
.compact-patrol-card .patrol-summary {
  gap: 3px;
  margin-bottom: 3px;
}
.compact-patrol-card .patrol-summary span {
  padding: 4px;
  font-size: 8px;
}
.compact-patrol-card .patrol-summary strong {
  display: inline;
  margin-right: 3px;
  font-size: 12px;
}
.compact-patrol-card .patrol-columns {
  gap: 3px;
}
.compact-patrol-card .patrol-column {
  padding: 4px;
}
.compact-patrol-card .patrol-column h3 {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2px;
  font-size: 9px;
}
.compact-patrol-card .patrol-start-control {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 3px;
}
.compact-patrol-card .patrol-start-control select,
.compact-patrol-card .patrol-column .patrol-start {
  min-height: 28px;
  font-size: 9px;
}
.compact-patrol-card .patrol-start-control select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 2px 18px 2px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-patrol-card .patrol-column .patrol-start {
  padding: 2px;
}
.compact-patrol-card .active-patrol {
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 3px;
}
.compact-patrol-card .active-patrol strong {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-patrol-card .patrol-duration {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
  text-align: left;
}
.compact-patrol-card .patrol-column .patrol-stop {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 20px;
}
.patrol-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}
.patrol-summary span {
  padding: 5px;
  border-radius: 4px;
  color: #29424f;
  background: #e4ecef;
  font-size: 8px;
  text-align: center;
}
.patrol-summary strong {
  display: block;
  color: #163f5a;
  font-size: 14px;
}
.patrol-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 5px;
  align-items: start;
}
.patrol-column {
  min-width: 0;
  padding: 5px;
  border: 1px solid #c4d0d6;
  border-radius: 5px;
  background: #edf2f4;
}
.patrol-column h3 {
  display: grid;
  gap: 2px;
  min-height: 32px;
  margin: 0 0 5px;
  color: #29424f;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}
.active-patrol {
  display: grid;
  gap: 3px;
  padding: 5px;
  margin-bottom: 5px;
  border-left: 3px solid var(--ok);
  border-radius: 4px;
  background: #fff;
}
.active-patrol strong { font-size: 9px; }
.patrol-duration {
  color: #29424f;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}
.patrol-start-control {
  display: grid;
  gap: 4px;
}
.patrol-start-control label {
  display: grid;
  gap: 2px;
  color: #60727e;
  font-size: 8px;
}
.patrol-start-control input,
.patrol-start-control select {
  min-width: 0;
  padding: 4px 2px;
  font-size: 8px;
}
.patrol-column .patrol-start,
.patrol-column .patrol-stop {
  padding: 4px 2px;
  font-size: 8px;
}
.patrol-column .patrol-stop {
  justify-self: end;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #fff;
  background: #a82d39;
  font-size: 17px;
  line-height: 20px;
}
.patrol-empty {
  display: block;
  color: #71818a;
  font-size: 8px;
  text-align: center;
}
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  min-width: 0;
  min-height: 34px;
  border: 1.5px solid #8299a5;
  border-radius: 6px;
  color: #203946;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(25, 50, 63, .08);
}
.dashboard-page input::placeholder,
.dashboard-page textarea::placeholder { color: #81929a; }
.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus,
.operational-page input:focus,
.operational-page select:focus,
.operational-page textarea:focus {
  outline: 3px solid rgba(21, 122, 157, .2);
  border-color: #157a9d;
  box-shadow: 0 0 0 1px #157a9d;
}
.dashboard-page form { margin-top: 6px; }
.dashboard-page form input,
.dashboard-page form select,
.dashboard-page form button,
.dashboard-page #day-action { padding: 6px; font-size: 11px; }
.dashboard-page .command-actions .day-status-button {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.dashboard-page .command-actions .day-status-button.open {
  background: #23834b;
}
.dashboard-page .command-actions .day-status-button.closed {
  background: #a82d39;
}
.dashboard-page #logboek { max-height: 130px; }
.dashboard-log-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}
.log-incident-context {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #5b91a8;
  border-radius: 6px;
  background: #dcecf2;
  color: #174c64;
  font-size: 10px;
}
.log-incident-context[hidden] { display: none; }
.log-incident-context button {
  width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 50%;
}
.dashboard-log-form label {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #536873;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}
.dashboard-log-form button {
  width: auto;
  min-height: 34px;
  padding-inline: 12px !important;
}
@media (min-width: 900px) and (max-width: 1199px) {
  .dashboard-page .command-bar { align-items: flex-start; gap: 8px; }
  .command-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dashboard-page .layout {
    grid-template-areas:
      "left center"
      "right center";
    grid-template-columns: clamp(235px, 28vw, 320px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .dashboard-page #map { height: clamp(360px, 54dvh, 640px); }
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .dashboard-page .layout {
    grid-template-columns:
      minmax(225px, .78fr)
      minmax(500px, 2fr)
      minmax(275px, 1fr);
  }
  .dashboard-log-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-log-form button { width: 100%; }
}
@media (max-width: 899px) {
  .dashboard-page .command-bar {
    align-items: flex-start;
    gap: 8px;
  }
  .command-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dashboard-page .layout {
    grid-template-areas: "center" "left" "right";
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: calc(100dvh - 72px);
    overflow: visible;
  }
  .dashboard-page .column { overflow: visible; }
  .dashboard-page #map {
    height: clamp(390px, 62dvh, 680px);
    min-height: 390px;
  }
  .patrol-columns { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .dashboard-page .card { overflow: visible; }
  .dashboard-log-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Meldkamerweergave dashboard — uitsluitend visuele overrides. */
.dashboard-page {
  --bg: #081b33;
  --panel: #102744;
  --panel2: #153252;
  --text: #f3f8fc;
  --muted: #9db2c8;
  --accent: #00aeef;
  background:
    radial-gradient(circle at 52% -15%, rgba(0, 174, 239, .16), transparent 35%),
    linear-gradient(145deg, #081b33 0%, #06162b 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.dashboard-page .command-bar {
  min-height: 72px;
  background: rgba(8, 27, 51, .94);
  border-bottom: 1px solid rgba(0, 174, 239, .42);
  box-shadow: 0 10px 35px rgba(0, 5, 15, .32);
  backdrop-filter: blur(18px);
}
.dashboard-page .brand-mark {
  border-color: var(--accent);
  color: #dff7ff;
  box-shadow: 0 0 24px rgba(0, 174, 239, .22);
}
.dashboard-page .brand small { color: #72d5f8; }
.dashboard-page .command-actions a,
.dashboard-page .command-actions #clock {
  border-color: rgba(128, 180, 211, .22);
  background: rgba(16, 39, 68, .82);
}
.dashboard-page .layout {
  grid-template-columns:
    minmax(250px, .86fr)
    minmax(650px, 2.35fr)
    minmax(365px, 1.2fr);
}
.dashboard-page .card {
  color: var(--text);
  border: 1px solid rgba(92, 155, 197, .24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(20, 52, 86, .96), rgba(12, 34, 62, .96));
  box-shadow: 0 12px 30px rgba(0, 8, 22, .24);
  backdrop-filter: blur(14px);
}
.dashboard-page .card::before {
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 174, 239, 0));
}
.dashboard-page .card h2,
.dashboard-page .card h3 {
  color: #f7fbff;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.dashboard-page .card h2 > span {
  margin-right: 5px;
  color: var(--accent);
}
.dashboard-page .metric,
.dashboard-page .event,
.dashboard-page .ship,
.dashboard-page .log-line,
.dashboard-page .patrol-column,
.dashboard-page .patrol-summary span {
  color: var(--text);
  border-color: rgba(108, 166, 202, .16);
  background: rgba(7, 25, 48, .62);
}
.dashboard-page .metric small,
.dashboard-page .event small,
.dashboard-page .ship small,
.dashboard-page .log-line small,
.dashboard-page .tide-grid .event small {
  color: var(--muted);
}
.dashboard-page .metric strong,
.dashboard-page .event strong,
.dashboard-page .event span,
.dashboard-page .patrol-column h3,
.dashboard-page .patrol-summary strong {
  color: var(--text);
}
.dashboard-page .weather-card { flex: 1.35; }
.dashboard-page .weather-card .weather-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "temperature temperature"
    "minimum maximum"
    "wind wind"
    "visibility rain"
    "uv uvmax";
}
.dashboard-page .weather-card .metric:nth-child(1) { grid-area: temperature; }
.dashboard-page .weather-card .metric:nth-child(2) { grid-area: minimum; }
.dashboard-page .weather-card .metric:nth-child(3) { grid-area: maximum; }
.dashboard-page .weather-card .metric:nth-child(4) {
  grid-area: wind;
  display: grid;
  min-height: 112px;
  place-items: center;
  text-align: center;
}
.dashboard-page .weather-card .metric:nth-child(5) { grid-area: visibility; }
.dashboard-page .weather-card .metric:nth-child(6) { grid-area: rain; }
.dashboard-page .weather-card .metric:nth-child(7) { grid-area: uv; }
.dashboard-page .weather-card .metric:nth-child(8) { grid-area: uvmax; }
.dashboard-page .weather-card .metric:first-child strong {
  color: #fff;
  font-size: clamp(28px, 2.1vw, 42px);
  font-variant-numeric: tabular-nums;
}
.dashboard-page .weather-card .wind-value {
  flex-wrap: wrap;
  justify-content: center;
  color: #dff7ff;
  font-size: 16px;
}
.dashboard-page .weather-card .wind-arrow {
  flex: 0 0 100%;
  color: #51d47b;
  font-size: clamp(46px, 4vw, 72px);
  filter: drop-shadow(0 0 9px rgba(81, 212, 123, .3));
}
.dashboard-page .warning-card {
  min-height: 96px;
  border-left-width: 1px;
}
.dashboard-page .warning-card::before { display: none; }
.dashboard-page .warning-card.knmi-green {
  background: linear-gradient(145deg, rgba(22, 112, 65, .96), rgba(13, 70, 43, .96));
  border-color: rgba(80, 222, 139, .4);
}
.dashboard-page .warning-card.knmi-yellow {
  background: linear-gradient(145deg, #e2c02d, #ab8e16);
}
.dashboard-page .warning-card.knmi-orange {
  background: linear-gradient(145deg, #db721c, #9c450b);
}
.dashboard-page .warning-card.knmi-red {
  background: linear-gradient(145deg, #c82e3a, #811b28);
}
.dashboard-page .warning-card.knmi-unknown {
  background: linear-gradient(145deg, #435b72, #293e55);
}
.dashboard-page .water-card .metric-grid { gap: 10px; }
.dashboard-page .water-card .metric {
  display: grid;
  min-height: 82px;
  align-content: center;
  text-align: center;
}
.dashboard-page .water-card .metric strong {
  color: #fff;
  font-size: clamp(22px, 1.8vw, 34px);
}
.dashboard-page .water-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
}
.dashboard-page .water-current-title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-page .water-current-main {
  display: flex;
  gap: 9px;
  align-items: center;
}
.dashboard-page .water-current-main > span:last-child {
  display: grid;
  min-width: 0;
}
.dashboard-page .water-current-main strong { font-size: 16px; }
.dashboard-page .water-current-main b { font-size: 21px; }
.dashboard-page .water-current-arrow {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
  transform-origin: center;
}
.dashboard-page .water-current-meta {
  display: block;
  color: var(--muted);
  text-align: right;
}
.dashboard-page .water-current-unavailable {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.dashboard-page .tide-card .tide-grid {
  position: relative;
  grid-template-columns: 1fr;
}
.dashboard-page .tide-card .event {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
}
.dashboard-page .tide-card .event::before {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.dashboard-page .tide-card .event:first-child::before { content: "↑"; }
.dashboard-page .tide-card .event:last-child::before { content: "↓"; }
.dashboard-page .tide-card .event small { grid-column: 2 / -1; }
.dashboard-page .tide-card .event strong { grid-column: 2; grid-row: 2; }
.dashboard-page .tide-card .event span { grid-column: 3; grid-row: 2; }
.dashboard-page .map-card {
  border-color: rgba(0, 174, 239, .3);
  background: linear-gradient(145deg, rgba(16, 39, 68, .98), rgba(9, 28, 52, .98));
}
.dashboard-page .map-actions button,
.dashboard-page .action-link {
  color: #eaf9ff;
  border-color: rgba(0, 174, 239, .42);
  background: rgba(0, 125, 174, .35);
}
.dashboard-page .connection-badge { color: #51d47b; }
.dashboard-page .voyage-strip {
  border-color: rgba(0, 174, 239, .22);
  background: rgba(5, 22, 43, .82);
}
.dashboard-page .voyage-strip-heading { align-items: flex-end; }
.dashboard-page .voyage-strip-heading h3 { color: #f7fbff; }
.dashboard-page .voyage-strip-heading small {
  color: var(--muted);
  font-size: 9px;
}
.dashboard-page .voyage-strip-heading a { color: #60d4ff; }
.dashboard-page .voyage-item {
  border: 1px solid rgba(108, 166, 202, .18);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  color: var(--text);
  background: rgba(16, 39, 68, .9);
}
.dashboard-page .voyage-item span { color: #d9e8f3; }
.dashboard-page .voyage-item small,
.dashboard-page .voyage-empty,
.dashboard-page .voyage-status { color: var(--muted); }
.dashboard-page .patrol-card #units {
  max-height: 255px;
}
.dashboard-page .patrol-summary { display: none; }
.dashboard-page .patrol-column {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  padding: 8px;
}
.dashboard-page .patrol-column h3 {
  min-height: 28px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(108, 166, 202, .15);
}
.dashboard-page .patrol-start-control { margin-top: auto; }
.dashboard-page .active-patrol {
  border-color: #51d47b;
  background: rgba(7, 25, 48, .75);
}
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  color: var(--text);
  border-color: rgba(108, 166, 202, .35);
  background: #091d36;
}
.dashboard-page .patrol-column .patrol-start,
.dashboard-page .incident-new-button,
.dashboard-page .dashboard-log-form button {
  color: #031521;
  background: var(--accent);
}
.dashboard-page .dashboard-incident {
  grid-template-columns: minmax(0, 1fr) auto 30px;
  border-left-width: 4px;
}
.dashboard-page .dashboard-incident.incident-priority-1 { border-left-color: #ef4353; }
.dashboard-page .dashboard-incident.incident-priority-2 { border-left-color: #ff9d2e; }
.dashboard-page .dashboard-incident.incident-priority-3 { border-left-color: #51d47b; }
.dashboard-page .incident-select-button { color: var(--text); }
.dashboard-page .incident-detail-button {
  color: #bfefff;
  border-color: rgba(0, 174, 239, .4);
  background: rgba(0, 174, 239, .12);
}
.dashboard-page #logbook-status {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-page .log-line {
  position: relative;
  margin-left: 7px;
  padding-left: 14px;
  border: 0;
  border-left: 1px solid rgba(0, 174, 239, .35);
  border-radius: 0;
  background: transparent;
}
.dashboard-page .log-line::before {
  position: absolute;
  top: 10px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #102744;
  content: "";
}

@media (min-width: 1600px) {
  .dashboard-page .layout {
    grid-template-columns: minmax(285px, .9fr) minmax(760px, 2.4fr) minmax(410px, 1.25fr);
  }
}

/* Televisie-/meldkamerstand: alle hoofdkaarten blijven binnen één scherm. */
@media (min-width: 1600px) and (min-height: 650px) {
  html:has(.dashboard-page),
  body.dashboard-page {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .command-bar {
    height: 88px;
    min-height: 88px;
    padding-block: 7px;
  }

  .dashboard-page .command-bar h1 {
    font-size: clamp(20px, 1.35vw, 27px);
  }

  .dashboard-page .command-actions {
    align-content: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .dashboard-page .command-actions > a,
  .dashboard-page .command-actions > button {
    width: auto;
    min-width: 0;
    padding-inline: 9px;
    white-space: nowrap;
  }

  .dashboard-page .command-actions #clock {
    flex-basis: 150px;
    width: 150px;
    min-width: 150px;
  }

  .dashboard-page .layout {
    grid-template-areas: "left center right";
    grid-template-columns:
      minmax(230px, .85fr)
      minmax(0, 2.3fr)
      minmax(280px, 1.1fr);
    grid-template-rows: minmax(0, 1fr);
    height: calc(100dvh - 88px);
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .column {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .dashboard-left {
    display: grid;
    grid-template-rows: minmax(320px, 1fr) 65px 95px 110px;
    gap: 10px;
    overflow: hidden;
  }

  .dashboard-page .dashboard-left > .card,
  .dashboard-page .weather-card {
    min-height: 0;
  }

  .dashboard-page .weather-card {
    overflow: hidden;
  }

  .dashboard-page .weather-console {
    gap: 5px;
  }

  .dashboard-page .weather-temperature {
    padding-bottom: 4px;
  }

  .dashboard-page .weather-wind {
    min-height: 66px;
    padding-block: 3px;
  }

  .dashboard-page .weather-wind .wind-arrow {
    width: clamp(36px, 2.6vw, 48px);
    height: clamp(36px, 2.6vw, 48px);
  }

  .dashboard-page .weather-wind > strong {
    margin-top: 2px;
    font-size: 17px;
  }

  .dashboard-page .weather-wind-details,
  .dashboard-page .weather-wind-forecast {
    gap: 3px;
    padding: 5px 7px;
  }

  .dashboard-page .weather-wind-forecast > span {
    min-height: 17px;
  }

  .dashboard-page .weather-facts {
    gap: 4px 7px;
  }

  .dashboard-page .weather-facts > span {
    padding: 4px 6px;
  }

  .dashboard-page .weather-thunder {
    min-height: 32px;
    padding: 5px 8px;
  }

  .dashboard-page .warning-card {
    min-height: 72px;
  }

  .dashboard-page .dashboard-center {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .dashboard-page .map-card {
    height: auto;
    min-height: 0;
  }

  .dashboard-page #map {
    height: auto;
    min-height: 0;
  }

  .dashboard-page .voyage-card {
    max-height: 150px;
  }

  .dashboard-page .dashboard-right {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, .9fr);
  }

  .dashboard-page .dashboard-right > .card {
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .dashboard-right > .card:nth-child(2),
  .dashboard-page .dashboard-right > .card:nth-child(3) {
    display: flex;
    flex-direction: column;
  }

  .dashboard-page #meldingen,
  .dashboard-page #logboek {
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page #units {
    max-height: 170px;
  }

  .dashboard-page .card {
    padding: clamp(9px, .65vw, 13px);
  }
}

/* Gedeelde operationele vormgeving voor alle onderliggende pagina's. */
.operational-page {
  --bg: #dfe5e8;
  --panel: #f8fafb;
  --panel2: #edf2f4;
  --text: #1c2d38;
  --muted: #60727e;
  --accent: #157a9d;
  min-height: 100vh;
  background: #dfe5e8;
}
.operational-page .command-bar { position: sticky; top: 0; z-index: 1000; }
.operational-page .command-actions a[aria-current="page"] {
  border-color: #74bed1;
  background: #16637e;
}
.operational-page .history-layout,
.operational-page .logbook-layout,
.operational-page .single-page {
  width: min(1500px, 100%);
  margin: 0 auto;
  gap: 8px;
  padding: 8px;
}
.operational-page .form-page {
  width: min(780px, 100%);
  padding: 16px 8px;
}
.operational-page .card {
  padding: clamp(12px, 1vw, 18px);
  border: 1px solid #aab8bf;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff 0%, #f5f8f9 100%);
  box-shadow: 0 3px 12px rgba(22, 39, 49, .12);
}
.operational-page .card h2 {
  margin-bottom: 9px;
  color: #263c49;
  font-size: 15px;
}
.operational-page .metric {
  border: 1px solid #d1dce1;
  background: #edf2f4;
}
.operational-page .metric small { color: #60727e; }
.operational-page .metric strong { color: #263c49; }
.operational-page input,
.operational-page select,
.operational-page textarea {
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  color: #263c49;
  background: #fff;
  border: 1.5px solid #879da8;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(25, 50, 63, .07);
}
.operational-page textarea {
  min-height: 86px;
  line-height: 1.45;
}
.operational-page input::placeholder,
.operational-page textarea::placeholder { color: #87969d; }
.operational-page label {
  color: #465d69;
  font-size: 12px;
  font-weight: 700;
}
.operational-page form label:not(.checkbox-label) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.operational-page button {
  min-height: 38px;
  color: #fff;
  background: #157a9d;
  border-color: #126581;
}
.operational-page button:hover:not(:disabled) { background: #126b8a; }
.operational-page button:active:not(:disabled) { transform: translateY(1px); }
.operational-page .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 13px;
}
.operational-page .form-grid .wide { grid-column: 1 / -1; }
.operational-page table {
  border: 1px solid #c2cfd5;
  background: #fff;
}
.operational-page th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: #e6edf0;
}
.operational-page td { padding: 10px; }
.operational-page tbody tr:nth-child(even) { background: #f4f7f8; }
.operational-page tbody tr:hover { background: #e8f0f3; }
.operational-page .action-link {
  color: #fff;
  background: #24576d;
}
.operational-page .incident-tabs {
  padding: 6px;
  border: 1px solid #9cabb3;
  border-radius: 7px;
  background: #f8fafb;
}
.operational-page .incident-tabs button {
  color: #29424f;
  background: #e5ecef;
  border-color: #b1c0c7;
}
.operational-page .incident-tabs button.active {
  color: #fff;
  background: #157a9d;
}
.operational-page .status-badge {
  color: #29424f;
  background: #e1eaee;
}
.operational-page .timeline-entry {
  background: #edf2f4;
  border-left-color: #157a9d;
}
.operational-page .timeline-entry.severity-warning {
  border-left-color: #d89922;
}
.operational-page .timeline-entry.severity-critical {
  border-left-color: #c93b47;
}
.operational-page th {
  color: #536873;
  background: #edf2f4;
}
.operational-page th,
.operational-page td { border-bottom-color: #cad6dc; }
.operational-page tbody tr[data-action]:hover { background: #e5edf1; }
.operational-page #history-map,
.operational-page #incident-map {
  border: 1px solid #9baab2;
  border-radius: 4px;
}
.operational-page .event,
.operational-page .log-line,
.operational-page .ship { background: #edf2f4; }
.passage-assessment { margin-top: 0; }
.passages-page .history-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(380px, .7fr);
}
.passages-page .history-main,
.passages-page .history-side,
.passages-page .card,
.passages-page .table-wrap {
  min-width: 0;
  max-width: 100%;
}
.passages-page .table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.passages-page table {
  min-width: 1120px;
  font-size: 10px;
}
.passage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.passage-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  color: #fff;
  background: #34598a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.passage-registration-status {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.passages-page #passage-list .passage-registration-status {
  width: 19px;
  height: 19px;
  font-size: 12px;
}
.passage-registration-status.completed {
  color: #fff;
  background: #23834b;
}
.passage-registration-status.pending {
  color: #41515a;
  background: #e9eef0;
  border: 1px solid #9cabb2;
}
.passages-page th,
.passages-page td {
  vertical-align: top;
  white-space: nowrap;
}
.passages-page thead th {
  padding: 6px 7px;
  font-size: 9px;
  line-height: 1.1;
}
.passages-page #passage-list td {
  padding: 5px 7px;
  line-height: 1.15;
}
.passages-page #passage-list .ges-badge {
  padding: 2px 5px;
  font-size: 7px;
}
.copy-table-main {
  width: 100%;
  padding: 12px;
}
.passage-copy-page .table-wrap {
  overflow: auto;
  max-height: calc(100vh - 230px);
}
.passage-copy-page table {
  min-width: 1700px;
  font-size: 11px;
}
.passage-copy-page th,
.passage-copy-page td {
  padding: 6px 8px;
  white-space: nowrap;
  border: 1px solid #c7d2d8;
}
.passage-copy-page thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dce8ed;
}
#copy-status {
  color: #17673b;
  font-size: 11px;
  font-weight: 700;
}
.lis-voyages-main {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
}
.lis-voyages-page .table-wrap {
  overflow-x: auto;
}
.lis-voyages-page table {
  min-width: 980px;
}
.lis-scope-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #536873;
  font-size: 9px;
  font-weight: 800;
}
.lis-scope-control select {
  min-height: 34px;
  padding: 5px 24px 5px 7px;
}
.lis-search-control input {
  width: min(310px, 42vw);
  min-height: 34px;
  padding: 6px 10px;
}
.lis-connected-voyage { cursor: pointer; }
.lis-connected-voyage:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: -2px;
}
.lis-voyages-page th,
.lis-voyages-page td {
  padding: 8px;
  white-space: nowrap;
}
.lis-ais-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dce3e6;
  color: #46565d;
  font-size: 9px;
  font-weight: 800;
}
.lis-ais-status.connected {
  background: #d5f2df;
  color: #17673b;
}
.lis-ais-status.passed {
  background: #d8e9ff;
  color: #0758a8;
}

/* Zelfstandige AIS-kaart met verticale Noord-reiskolom. */
body.ais-map-page {
  display: grid;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.standalone-ais-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: clamp(285px, 24vw, 390px) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}
.standalone-voyages,
.standalone-map-card {
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.standalone-voyages {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}
.standalone-voyage-list {
  display: flex;
  min-height: 0;
  gap: 7px;
  padding: 2px;
  overflow-y: auto;
  flex: 1 1 auto;
  flex-direction: column;
}
.standalone-voyage {
  display: flex;
  width: 100%;
  gap: 4px;
  padding: 10px;
  color: var(--text);
  border: 1px solid rgba(126, 170, 200, .35);
  border-radius: 9px;
  background: rgba(126, 170, 200, .08);
  text-align: left;
  flex: 0 0 auto;
  flex-direction: column;
}
.standalone-voyage:hover,
.standalone-voyage:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(0, 174, 239, .3);
  background: rgba(0, 174, 239, .12);
}
.standalone-voyage-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.standalone-voyage-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standalone-voyage > span:not(.standalone-voyage-heading) {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standalone-voyage .standalone-voyage-ges {
  color: var(--text);
  line-height: 1.35;
  white-space: normal;
}
.standalone-map-card {
  display: grid;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}
#standalone-ais-map {
  width: 100%;
  min-height: 0;
  border-radius: 0 0 10px 10px;
}
@media (max-width: 760px) {
  body.ais-map-page { height: auto; min-height: 100dvh; overflow: visible; }
  .standalone-ais-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(65dvh, 1fr);
  }
  .standalone-voyages { max-height: 36dvh; }
  .standalone-map-card { min-height: 65dvh; }
}
.announcement-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.announcement-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: #1c3d4a;
  font-size: 10px;
  font-weight: 800;
}
.announcement-choice label {
  position: relative;
  cursor: pointer;
}
.announcement-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.announcement-choice span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid #8fa7b1;
  border-radius: 4px;
  background: #edf2f4;
  color: #27444f;
  font-weight: 800;
}
.announcement-choice input:checked + span {
  border-color: #126b8a;
  background: #126b8a;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(18, 107, 138, .18);
}
.passages-page #passage-detail,
.passage-assessment,
.passage-assessment label {
  min-width: 0;
  max-width: 100%;
}
.assessment-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 7px;
}
.assessment-readonly > span {
  padding: 6px;
  border-radius: 4px;
  background: #edf2f4;
}
.assessment-readonly small,
.assessment-readonly strong { display: block; }
.assessment-readonly small { color: #60727e; font-size: 9px; }
.assessment-readonly strong { color: #29424f; font-size: 11px; }
.assessment-readonly .assessment-ges { grid-column: 1 / -1; }
.passage-assessment label {
  display: grid;
  gap: 3px;
  color: #536873;
  font-size: 10px;
}
.passage-assessment input,
.passage-assessment select,
.passage-assessment textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 6px;
  color: #263c49;
  background: #fff;
  font-size: 11px;
}
.passage-assessment textarea {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.assessment-status { min-height: 14px; color: #536873; }
@media (max-width: 1500px) {
  .passages-page .history-layout { grid-template-columns: minmax(0, 1fr); }
  .passages-page .history-side {
    grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  }
}
@media (max-width: 850px) {
  .passages-page .history-side { grid-template-columns: minmax(0, 1fr); }
  .assessment-readonly { grid-template-columns: minmax(0, 1fr); }
  .assessment-readonly .assessment-ges { grid-column: auto; }
}
.page-kicker {
  display: block;
  margin-bottom: 2px;
  color: #72b7c9 !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .standard-incident-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .incident-detail-page .incident-workspace { padding: 8px; }
  .incident-detail-page .incident-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .incident-detail-page .incident-tabs button:last-child {
    grid-column: 1 / -1;
  }
  .incident-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .incident-panel-header p { text-align: left; }
  .incident-detail-page .form-grid,
  .incident-log-layout,
  .incident-location-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .incident-note-card { position: static; }
  .incident-detail-page #incident-map {
    min-height: 330px;
  }
  .patient-count-control,
  .patient-card-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .ehbo-contact-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .operational-page .command-bar {
    position: static;
    align-items: flex-start;
    gap: 10px;
  }
  .operational-page .brand-mark { flex: 0 0 39px; }
  .operational-page .command-actions { justify-content: flex-end; flex-wrap: wrap; }
  .operational-page .command-actions a { padding: 6px 8px; }
}

/* Meldkamerstijl voor alle achterliggende operationele pagina's. */
.operational-page {
  --bg: #081b33;
  --panel: #102744;
  --panel2: #153252;
  --text: #f3f8fc;
  --muted: #9db2c8;
  --accent: #00aeef;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(0, 174, 239, .14), transparent 34%),
    linear-gradient(145deg, #081b33 0%, #06162b 100%);
  background-attachment: fixed;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.operational-page .command-bar {
  color: var(--text);
  background: rgba(8, 27, 51, .94);
  border-bottom: 1px solid rgba(0, 174, 239, .42);
  box-shadow: 0 10px 35px rgba(0, 5, 15, .32);
  backdrop-filter: blur(18px);
}
.operational-page .brand-mark {
  border-color: var(--accent);
  color: #dff7ff;
  box-shadow: 0 0 24px rgba(0, 174, 239, .22);
}
.operational-page .brand small,
.operational-page .page-kicker { color: #72d5f8 !important; }
.operational-page .command-bar h1 { color: #f7fbff; }
.operational-page .command-bar span { color: var(--muted); }
.operational-page .command-actions a,
.operational-page .command-actions button {
  color: #e8f7fc;
  border-color: rgba(128, 180, 211, .24);
  background: rgba(16, 39, 68, .84);
}
.operational-page .command-actions a:hover,
.operational-page .command-actions button:hover:not(:disabled),
.operational-page .command-actions a[aria-current="page"] {
  color: #fff;
  border-color: rgba(0, 174, 239, .68);
  background: rgba(0, 126, 177, .5);
}
.operational-page .history-layout,
.operational-page .logbook-layout,
.operational-page .single-page,
.operational-page .form-page,
.operational-page .lis-voyages-main,
.operational-page .copy-table-main,
.operational-page .incident-report {
  gap: 14px;
  padding: 14px;
}
.operational-page .card {
  color: var(--text);
  border: 1px solid rgba(92, 155, 197, .24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(20, 52, 86, .96), rgba(12, 34, 62, .96));
  box-shadow: 0 12px 30px rgba(0, 8, 22, .24);
  backdrop-filter: blur(14px);
}
.operational-page .card h2,
.operational-page .card h3,
.operational-page .incident-panel-header h2,
.operational-page .patient-card-heading h3 {
  color: #f7fbff;
}
.operational-page .card h2 {
  font-weight: 750;
  letter-spacing: .035em;
}
.operational-page .section-kicker,
.operational-page .incident-card-heading small,
.operational-page .incident-panel-header small {
  color: #62d5ff;
}
.operational-page p,
.operational-page .incident-panel-header p,
.operational-page .timeline-meta,
.operational-page .assessment-status,
.operational-page .voyage-status {
  color: var(--muted);
}
.operational-page .metric,
.operational-page .event,
.operational-page .log-line,
.operational-page .ship,
.operational-page .timeline-entry,
.operational-page .assessment-readonly > span,
.operational-page .incident-report-heading > div {
  color: var(--text);
  border-color: rgba(108, 166, 202, .18);
  background: rgba(7, 25, 48, .62);
}
.operational-page .metric small,
.operational-page .assessment-readonly small,
.operational-page .incident-report-heading small,
.operational-page .incident-report-log time {
  color: var(--muted);
}
.operational-page .metric strong,
.operational-page .assessment-readonly strong {
  color: #fff;
}
.operational-page input,
.operational-page select,
.operational-page textarea,
.operational-page .passage-assessment input,
.operational-page .passage-assessment select,
.operational-page .passage-assessment textarea {
  color: var(--text);
  border-color: rgba(108, 166, 202, .38);
  background: #091d36;
  box-shadow: inset 0 1px 2px rgba(0, 5, 16, .32);
}
.operational-page input::placeholder,
.operational-page textarea::placeholder { color: #7893ac; }
.operational-page label,
.operational-page .passage-assessment label,
.operational-page .lis-scope-control { color: #bfd0df; }
.operational-page input:focus,
.operational-page select:focus,
.operational-page textarea:focus {
  outline-color: rgba(0, 174, 239, .24);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(0, 174, 239, .12);
}
.operational-page button,
.operational-page .action-link,
.operational-page .passage-actions a {
  color: #031521;
  border-color: #00a1dc;
  background: var(--accent);
}
.operational-page button:hover:not(:disabled),
.operational-page .action-link:hover,
.operational-page .passage-actions a:hover {
  color: #021019;
  background: #41c9fa;
}
.operational-page .table-wrap {
  border: 1px solid rgba(108, 166, 202, .2);
  border-radius: 9px;
  background: rgba(5, 20, 40, .45);
}
.operational-page table {
  color: var(--text);
  border: 0;
  background: transparent;
}
.operational-page th {
  color: #bfefff;
  border-bottom-color: rgba(0, 174, 239, .34);
  background: #0b2340;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.operational-page td { border-bottom-color: rgba(108, 166, 202, .14); }
.operational-page tbody tr:nth-child(even) { background: rgba(38, 75, 111, .18); }
.operational-page tbody tr:hover,
.operational-page tbody tr[data-action]:hover { background: rgba(0, 174, 239, .12); }
.operational-page .status-badge,
.operational-page .lis-ais-status {
  color: #c9d8e5;
  background: rgba(108, 135, 158, .28);
}
.operational-page .lis-ais-status.connected {
  color: #baf5d0;
  background: rgba(36, 145, 80, .3);
}
.operational-page .incident-tabs {
  border-color: rgba(108, 166, 202, .22);
  background: rgba(7, 25, 48, .8);
  box-shadow: 0 8px 24px rgba(0, 8, 22, .25);
}
.operational-page .incident-tabs button {
  color: #bfd0df;
  border-color: transparent;
  background: transparent;
}
.operational-page .incident-tabs button:hover:not(:disabled) {
  color: #fff;
  background: rgba(0, 174, 239, .12);
}
.operational-page .incident-tabs button.active {
  color: #fff;
  background: rgba(0, 145, 202, .72);
}
.operational-page .incident-panel-header { color: var(--text); }
.operational-page .incident-card-heading {
  border-bottom-color: rgba(108, 166, 202, .2);
}
.operational-page .incident-card-heading > span {
  color: #031521;
  background: var(--accent);
}
.operational-page .incident-note-card,
.operational-page .patient-card,
.operational-page .patient-section,
.operational-page .incident-location-card,
.operational-page .incident-log-layout {
  color: var(--text);
  border-color: rgba(108, 166, 202, .2);
  background: rgba(7, 25, 48, .48);
}
.operational-page .patient-section summary { color: #c8e9f7; }
.operational-page .announcement-choice span {
  color: #c9d8e5;
  border-color: rgba(108, 166, 202, .35);
  background: #0b2340;
}
.operational-page .announcement-choice legend { color: #dcecf7; }
.operational-page .announcement-choice input:checked + span {
  color: #031521;
  border-color: var(--accent);
  background: var(--accent);
}
.operational-page #history-map,
.operational-page #incident-map,
.operational-page #new-incident-map {
  border-color: rgba(0, 174, 239, .35);
  background: #071b31;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, .08);
}
.operational-page .timeline-entry {
  position: relative;
  border-left-color: var(--accent);
}
.operational-page .timeline-entry::before {
  position: absolute;
  top: 14px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #102744;
  content: "";
}
.operational-page .passage-registration-status.pending {
  color: #aebfcd;
  border-color: rgba(108, 166, 202, .3);
  background: #16314d;
}
.operational-page #copy-status { color: #7ee7a6; }

/* Laatste responsive vangnet: vaste dashboardmaten mogen smalle schermen
   en onderliggende pagina's niet breder maken dan de viewport. */
@media (max-width: 899px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-page .command-bar,
  .operational-page .command-bar {
    position: static;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .dashboard-page .brand,
  .operational-page .brand,
  .dashboard-page .brand > div,
  .operational-page .brand > div {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-page .brand-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-page .command-actions,
  .operational-page .command-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-page .command-actions > *,
  .operational-page .command-actions > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-page .command-actions a,
  .dashboard-page .command-actions button,
  .operational-page .command-actions a,
  .operational-page .command-actions button {
    justify-content: center;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .dashboard-page .command-actions #clock {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .theme-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .layout,
  .operational-page .history-layout,
  .operational-page .logbook-layout,
  .operational-page .single-page,
  .operational-page .form-page,
  .operational-page .lis-voyages-main,
  .operational-page .copy-table-main,
  .operational-page .incident-report {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 8px;
  }

  .dashboard-page .layout {
    grid-template-areas: "center" "left" "right";
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .dashboard-page .column,
  .dashboard-page .card,
  .operational-page .history-main,
  .operational-page .history-side,
  .operational-page .card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-page .column,
  .dashboard-page .card {
    overflow: visible;
  }

  .dashboard-page .weather-card {
    min-height: 0;
  }

  .dashboard-page #map {
    height: clamp(320px, 56dvh, 560px);
    min-height: 320px;
  }

  .passages-page .history-layout,
  .passages-page .history-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .passages-page .card-heading,
  .passage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .passage-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .dashboard-page .command-actions,
  .operational-page .command-actions,
  .patrol-columns,
  .passage-scope-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .metric-grid,
  .dashboard-page .weather-grid,
  .water-metrics,
  .tide-grid,
  .statistics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page #map {
    height: 52dvh;
    min-height: 280px;
  }

  .voyage-item {
    flex-basis: min(280px, 88vw);
  }
}

/* Operationele kaartvolgorde op telefoon, onafhankelijk van desktopkolommen. */
@media (max-width: 899px) {
  .dashboard-page .layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-page .dashboard-left,
  .dashboard-page .dashboard-center,
  .dashboard-page .dashboard-right {
    display: contents;
  }

  .dashboard-page .voyage-card {
    order: 1;
    max-height: none;
    overflow: visible;
  }

  .dashboard-page .dashboard-right > .card:nth-child(2) { order: 2; }
  .dashboard-page .weather-card { order: 3; }
  .dashboard-page .water-card { order: 4; }
  .dashboard-page .tide-card { order: 5; }
  .dashboard-page .map-card { order: 6; }
  .dashboard-page .warning-card { order: 7; }
  .dashboard-page .patrol-card { order: 8; }
  .dashboard-page .dashboard-right > .card:nth-child(3) { order: 9; }
}

/* Deze regels staan bewust na de kaart-specifieke basisregels. */
@media (min-width: 1600px) and (min-height: 650px) {
  .dashboard-page .dashboard-left {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    overflow: hidden;
  }

  .dashboard-page .dashboard-left > .card {
    flex: initial;
    min-height: 0;
  }

  .dashboard-page .weather-card {
    min-height: 0;
  }

  .dashboard-page .weather-card h2 {
    font-size: 16px;
    line-height: 1.1;
  }

  .dashboard-page .weather-card #weather,
  .dashboard-page .weather-console {
    min-height: 0;
  }

  .dashboard-page .weather-console {
    grid-template-rows: auto auto auto auto auto minmax(27px, auto);
    gap: 3px;
  }

  .dashboard-page .weather-temperature {
    gap: 8px;
    padding: 0 2px 3px;
  }

  .dashboard-page .weather-temperature > strong {
    font-size: clamp(28px, 2vw, 38px);
  }

  .dashboard-page .weather-extremes {
    gap: 2px;
  }

  .dashboard-page .weather-extremes span {
    font-size: 11px;
  }

  .dashboard-page .weather-wind {
    min-height: 48px;
    padding: 1px 0;
  }

  .dashboard-page .weather-wind .wind-arrow {
    width: clamp(28px, 2vw, 38px);
    height: clamp(28px, 2vw, 38px);
  }

  .dashboard-page .weather-wind > strong {
    margin-top: 0;
    font-size: 15px;
    line-height: 1;
  }

  .dashboard-page .weather-wind > span {
    margin-top: 0;
    font-size: 10px;
    line-height: 1;
  }

  .dashboard-page .weather-wind-details,
  .dashboard-page .weather-wind-forecast {
    gap: 1px;
    padding: 3px 6px;
  }

  .dashboard-page .weather-wind-details small,
  .dashboard-page .weather-facts small {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dashboard-page .weather-wind-details strong,
  .dashboard-page .weather-facts strong {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dashboard-page .weather-wind-forecast > span {
    grid-template-columns: 42px 24px 42px minmax(0, 1fr);
    gap: 5px;
    min-height: 14px;
  }

  .dashboard-page .forecast-wind-arrow {
    width: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
  }

  .dashboard-page .weather-facts {
    gap: 3px 5px;
  }

  .dashboard-page .weather-facts > span {
    min-height: 25px;
    min-width: 0;
    padding: 2px 5px;
    overflow: hidden;
  }

  .dashboard-page .weather-thunder {
    min-height: 27px;
    padding: 3px 6px;
  }

  .dashboard-page .weather-thunder > span,
  .dashboard-page .weather-thunder strong {
    line-height: 1.2;
    white-space: nowrap;
  }

  .dashboard-page .weather-thunder strong {
    font-size: 12px;
  }

  .dashboard-page .dashboard-left .warning-card {
    min-height: 65px;
  }

  .dashboard-page .dashboard-left .water-card {
    min-height: 95px;
  }

  .dashboard-page .dashboard-left .tide-card {
    min-height: 110px;
  }

  .dashboard-page .dashboard-left > .card {
    padding: 8px 10px;
  }

  .dashboard-page .dashboard-left > .card h2 {
    margin-bottom: 5px;
  }

  .dashboard-page .water-card .metric-grid {
    gap: 5px;
  }

  .dashboard-page .water-card .metric {
    min-height: 50px;
    padding: 5px;
  }

  .dashboard-page .water-card .metric small {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .dashboard-page .water-card .metric strong {
    font-size: 20px;
  }

  .dashboard-page .water-current {
    margin-top: 5px;
    padding: 4px 6px;
  }

  .dashboard-page .water-current-title { font-size: 8px; }
  .dashboard-page .water-current-main strong { font-size: 12px; }
  .dashboard-page .water-current-main b { font-size: 15px; }
  .dashboard-page .water-current-arrow {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }
  .dashboard-page .water-current-meta { font-size: 8px; }

  .dashboard-page .tide-card .tide-grid {
    gap: 4px;
  }

  .dashboard-page .tide-card .event {
    gap: 3px 5px;
    padding: 5px;
  }

  .dashboard-page .tide-card .event strong {
    font-size: 13px;
  }

  .dashboard-page .tide-card .event span {
    font-size: 11px;
  }

  .dashboard-page .dashboard-left > .card {
    border: 1px solid rgba(92, 155, 197, .34);
    border-radius: 12px;
  }
}

/*
 * Lagere tv-viewports hebben na de browserbalk minder CSS-hoogte dan hun
 * fysieke resolutie. Schaal daarom alleen de weerinhoud, zodat geen enkele
 * onderste weerregel buiten de kaart wordt afgesneden.
 */
@media (min-width: 1600px) and (min-height: 650px) and (max-height: 799px) {
  .dashboard-page .weather-card #weather {
    width: 100%;
    zoom: 1;
  }

  .dashboard-page .weather-wind {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    min-height: 38px;
    justify-content: center;
    place-items: center start;
  }

  .dashboard-page .weather-wind .wind-arrow {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .dashboard-page .weather-wind > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .dashboard-page .weather-wind > span {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .dashboard-page .dashboard-left .warning-card {
    min-height: 60px;
  }

  .dashboard-page .dashboard-left .water-card {
    min-height: 78px;
  }

  .dashboard-page .dashboard-left .tide-card {
    min-height: 92px;
  }

  .dashboard-page .dashboard-left .water-card .metric {
    min-height: 38px;
    padding: 3px 4px;
  }

  .dashboard-page .dashboard-left .water-card .metric strong {
    font-size: 18px;
  }

  .dashboard-page .dashboard-left .tide-card .event {
    min-height: 27px;
    padding: 3px 5px;
  }
}

@media print {
  .operational-page.incident-report-page {
    color: #111;
    background: #fff;
  }
  .operational-page.incident-report-page .card {
    color: #111;
    border-color: #bbb;
    background: #fff;
    box-shadow: none;
  }
  .operational-page.incident-report-page .card h2,
  .operational-page.incident-report-page p,
  .operational-page.incident-report-page .incident-report-heading > div {
    color: #111;
    background: #fff;
  }
}

/* Definitieve menulaag na alle responsive regels. */
.dashboard-page .command-bar {
  position: relative;
  z-index: 6000;
  overflow: visible;
}

.dashboard-page .dashboard-header-tools,
.dashboard-page .dashboard-menu {
  position: relative;
  z-index: 6001;
  overflow: visible;
}

.dashboard-page .dashboard-menu-panel {
  z-index: 6002;
}
