:root {
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9dee3;
  --project: #0b6e99;
}

html, body, #map {
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

#panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgb(0 0 0 / 25%);
  box-sizing: border-box;
  left: 12px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 12px 14px;
  position: absolute;
  top: 12px;
  width: 320px;
}

h1 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 10px;
}

h2 {
  font-size: 13px;
  margin: 12px 0 4px;
}

fieldset {
  border: 0;
  margin: 0 0 10px;
  padding: 0;
}

legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  padding: 0;
}

fieldset label {
  display: block;
}

.keuze {
  display: flex;
  gap: 12px;
}

.kerncijfers {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.kerncijfer {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}

.kerncijfer strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.kerncijfer span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.kerncijfer .verschil {
  color: var(--ink);
  font-weight: 600;
}

#bewerk-paneel[hidden], #bewerk-reset[hidden] {
  display: none;
}

.knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

button.klein {
  background: #fff;
  border: 1px solid #7b8794;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 3px 7px;
}

button.klein:hover:not(:disabled) {
  background: #eef1f4;
}

button.klein:disabled {
  color: #9aa5b1;
  cursor: default;
}

button.klein[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.bewerk-status {
  color: var(--ink);
  font-weight: 600;
}

.bewerk-status.fout {
  color: #b42318;
}

.bewerk-lijst {
  font-size: 12px;
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.bewerk-lijst li {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.bewerk-lijst span {
  display: block;
  margin-bottom: 3px;
}

.bewerk-lijst button {
  margin-right: 4px;
}

.legende {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.legende li {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 3px;
}

.legende .staal {
  border: 1px solid rgb(0 0 0 / 20%);
  border-radius: 3px;
  box-sizing: border-box;
  flex: none;
  height: 14px;
  width: 22px;
}

.legende .aandeel {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.kleur {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}

.kleur select {
  display: block;
  font: inherit;
  margin-top: 2px;
  width: 100%;
}

details {
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

table {
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 6px;
  width: 100%;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 3px 4px 3px 0;
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.getal {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.noot {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}

.noot:empty {
  display: none;
}

.celinfo div {
  white-space: nowrap;
}

.maplibregl-popup-content {
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 8px 10px;
}

@media (max-width: 600px) {
  #panel {
    bottom: 52px;
    left: 8px;
    max-height: 42%;
    top: auto;
    width: calc(100% - 16px);
  }
}
