* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; color: #111827; background: #F3F4F6; }
.verborgen { display: none !important; }
.kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: #0B1F33; color: #fff; }
.kop h1 { margin: 0; font-size: 24px; }
.kop h1 span { font-weight: 400; color: #93C5FD; }
#kop-rechts { display: flex; align-items: center; gap: 14px; }
.mqtt { font-weight: 700; }
.mqtt.aan::before, .mqtt.uit::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.mqtt.aan::before { background: #22C55E; } .mqtt.uit::before { background: #EF4444; }
main { max-width: 1300px; margin: 0 auto; padding: 20px; }
.kaart { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kaart.smal { max-width: 420px; margin: 40px auto; }
.kaart h2 { margin: 0 0 12px; font-size: 22px; }
.kaart h3 { margin: 20px 0 10px; font-size: 19px; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1.5px solid #D1D5DB; border-radius: 10px; width: 100%; min-height: 48px; background: #fff; }
textarea { min-height: 80px; }
input[type=checkbox] { width: 26px; height: 26px; min-height: 0; vertical-align: middle; margin: 0 10px 0 0; }
input[type=range] { padding: 0; border: none; }
.knop { font: inherit; font-weight: 800; min-height: 48px; padding: 8px 18px; border-radius: 10px; border: 1.5px solid #D1D5DB; background: #fff; color: #111827; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.knop:hover { border-color: #2563EB; }
.knop:disabled { opacity: .45; cursor: not-allowed; }
.knop.groen { background: #0F6E56; border-color: #0F6E56; color: #fff; }
.knop.rood { background: #fff; border-color: #DC2626; color: #B91C1C; }
.knop.licht { background: transparent; color: #fff; border-color: #64748B; }
.knop.groot { min-width: 64px; min-height: 56px; font-size: 24px; }
form .knop { margin-top: 14px; }
.rij { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rij input { flex: 1 1 260px; width: auto; }
.rij .knop { margin-top: 0; }
.fout { color: #B91C1C; font-weight: 700; min-height: 1.2em; }
.uitleg { color: #4B5563; line-height: 1.5; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { font: inherit; font-weight: 800; min-height: 50px; padding: 8px 22px; border-radius: 12px; border: 1.5px solid #E5E7EB; background: #fff; cursor: pointer; }
.tab.actief { background: #DBEAFE; border-color: #93C5FD; color: #1E3A8A; }
.melding { padding: 12px 16px; border-radius: 10px; font-weight: 700; background: #DCFCE7; color: #14532D; }
.melding.rood { background: #FEE2E2; color: #7F1D1D; }
.balk { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.balk input { max-width: 420px; }
.tellers { color: #4B5563; font-weight: 700; }
.tabel-kaart { background: #fff; border-radius: 14px; overflow-x: auto; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #F3F4F6; white-space: nowrap; }
th { font-size: 15px; color: #6B7280; background: #F9FAFB; }
tbody tr.klik { cursor: pointer; }
tbody tr.klik:hover td, tbody tr.gekozen td { background: #EFF6FF; }
.stip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #9CA3AF; }
.stip.aan { background: #16A34A; } .stip.uit { background: #DC2626; }
.label { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.label.groen { background: #DCFCE7; color: #14532D; } .label.grijs { background: #E5E7EB; color: #374151; } .label.rood { background: #FEE2E2; color: #7F1D1D; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.stand { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { text-align: center; background: #F9FAFB; border: 1.5px solid #E5E7EB; border-radius: 14px; padding: 12px; }
.team b { display: block; font-size: 52px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.team .rij { justify-content: center; margin-top: 8px; }
.gegevens { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.gegevens dt { color: #6B7280; } .gegevens dd { margin: 0; font-weight: 600; }
.logboek { max-height: 360px; overflow-y: auto; }
.logboek td { white-space: normal; }
.sleutel { margin-top: 16px; padding: 14px; border: 2px solid #FCD34D; background: #FFFBEB; border-radius: 12px; }
.sleutel code { display: block; font-size: 16px; word-break: break-all; margin: 8px 0; padding: 10px; background: #fff; border-radius: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 600px) { main { padding: 10px; } .kop { padding: 12px; } }
