table.gegevens {
  border-collapse: collapse;
}
table.baanrec tr:nth-child(1) th {
  font-weight: 700;
  text-align: left;
}
table.ajax tr:first-child th {
  font-weight: 700;
  text-align: left;
}
table.gegevens tr td {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 14px;
  line-height: 20px;
  vertical-align: top;
}
td.vet {
  font-weight: 600;
  color: red;
}

td.blauw {
  font-weight: 600;
  color: #2405E9;
}

table.gegevens tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
h4 {
  font-weight: 600;
}
table.keuze {
  border-collapse: collapse;
}
table.baanrangkeuze {
  width: 810px;
}
table.clubrangkeuze {
  width: 880px;
}
table.atleetkeuze {
  width: 957px;
}
table.uitslagenkeuze, table.uitslag {
  width: 766px;
}
table.uitslagenkeuze tr td label {
  font-weight: 600;
}
table.estarangkeuze, div.estarangkeuze {
  width: 721px;
}
div.estarangkeuze p {
  line-height: 20px;
}
table.keuze tr td {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px 20px 8px 20px;
  font-size: 14px;
}
table.clubrang tr td:first-child,table.clubrang tr th:first-child {
  width: 200px;
  text-align: left;
}
table.clubrang tr td:nth-child(2),table.clubrang tr th:nth-child(2) {
  width: 175px;
  text-align: left;
}
table.clubrang tr td:nth-child(3),table.clubrang tr th:nth-child(3) {
  width: 220px;
  text-align: left;
}
table.clubrang tr td:nth-child(4), table.clubrang tr th:nth-child(4) {
  width: 34px;
  text-align: center;
}
table.clubrang tr td:nth-child(5),table.clubrang tr th:nth-child(5) {
  width: 100px;
  text-align: left;
}
table.clubrang tr td:nth-child(6),table.clubrang tr th:nth-child(6) {
  width: 55px;
  text-align: center;
}
table.estarang tr td:first-child {
  width: 25px;
}
table.estarang tr td:nth-child(2) {
  width: 200px;
}
table.estarang tr td:nth-child(3) {
  width: 85px;
}
table.estarang tr td:nth-child(4) {
  width: 125px;
}
table.estarang tr td:nth-child(5) {
  width: 40px;
}
table.estarang tr td:nth-child(6) {
  width: 150px;
}
table.estarang tr td {
  vertical-align: top;
}
table.baanrang tr td:first-child {
  width: 30px;
}
table.baanrang tr td:nth-child(2) {
  width: 200px;
}
table.baanrang tr td:nth-child(3) {
  width: 90px;
}
table.baanrang tr td:nth-child(4) {
  width: 140px;
}
table.baanrang tr td:nth-child(5) {
  width: 54px;
}
table.baanrang tr td:nth-child(6) {
  width: 34px;
}
table.baanrang tr td:nth-child(7) {
  width: 150px;
}
table.atleet tr td:first-child {
  width: 140px;
}
table.atleet tr td:nth-child(2) {
  width: 356px;
}
table.atleet tr td:nth-child(3) {
  width: 110px;
}
table.atleet tr td:nth-child(4) {
  width: 40px;
}
table.atleet tr td:nth-child(5) {
  width: 135px;
}
table.atleet tr td:nth-child(6) {
  width: 80px;
}
table.pr tr td:first-child {
  width: 180px;
}
table.pr tr td:nth-child(2) {
  width: 140px;
}
table.pr tr td:nth-child(3) {
  width: 302px;
}
table.pr tr td:nth-child(4) {
  width: 120px;
}
table.pr tr td:nth-child(5) {
  width: 135px;
}
table.pr tr td:nth-child(6) {
  width: 80px;
}
table.uitslag tr td:first-child {
  width: 210px;
}
table.uitslag tr td:nth-child(2) {
  width: 170px;
}
table.uitslag tr td:nth-child(3) {
  width: 100px;
}
table.uitslag tr td:nth-child(4) {
  width: 60px;
  text-align: center;
}
table.uitslag tr td:nth-child(5) {
  width: 50px;
  text-align: center
}
table.uitslag tr td:nth-child(6) {
  width: 80px;
}
table.looprang tr td:first-child {
  width: 5px;
}
table.looprang tr td:nth-child(2) {
  width: 20px;
}
table.looprang tr td:nth-child(3) {
  width: 220px;
}
table.looprang tr td:nth-child(4) {
  width: 200px;
}
table.looprang tr td:nth-child(5) {
  width: 70px;
}
table.looprang tr td:nth-child(6) {
  width: 200px;
}
table.loopuitslag tr td:first-child {
  width: 210px;
}
table.loopuitslag tr td:nth-child(2) {
  width: 120px;
}
table.loopuitslag tr td:nth-child(3) {
  width: 100px;
}
table.loopuitslag tr td:nth-child(4) {
  width: 160px;
}
table.loopuitslag tr td:nth-child(5) {
  width: 80px;
}
table.loopatleet tr td:first-child {
  width: 130px;
}
table.loopatleet tr td:nth-child(2) {
  width: 300px;
}
table.loopatleet tr td:nth-child(3) {
  width: 70px;
}
table.loopatleet tr td:nth-child(4) {
  width: 80px;
}
table.loopatleet tr td:nth-child(5) {
  width: 50px;
}
table.loopatleet tr td:nth-child(6) {
  width: 135px;
}
table.loopatleet tr td:nth-child(7) {
  width: 80px;
}

table.baanrangkeuze label, table.clubrangkeuze label, table.estarangkeuze label, table.baanrec label, table.atleetkeuze label {
  font-weight: 600;
}
table.clubrangkeuze input, table.estarangkeuze input {
  margin-left: 25px;
}
input[type=button] {
  margin: auto;
  width: 58px;
  height: 30px;
  background: white;
  border-width: 2px;
  border-color: #252056;
  border-radius: 30px;
  text-shadow: none;
  box-shadow: none;
  font-size: 16px;
  color: #252056;
  text-transform: uppercase;
}
input[type=button]:hover {
  color: white;
  background-color: #252056;
}
table.uitslag tr td.wedstrijd,table.loopuitslag tr td.wedstrijd {
  font-weight: 600;
  font-size: 18px;
}
table.uitslag td.categorie,table.loopuitslag td.categorie {
  padding-left: 20px;
  font-weight: 600;
  font-size: 15px;
}
table.uitslag tr td,table.loopuitslag tr td {
  vertical-align: top;
}
nav.hoofdmenu a {
  display: block;
  width: 125px;
  height: 30px;
  line-height: 30px;
  text-decoration: none;
  color: #252056;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
  margin-left: 5px;
  border: 3px solid #252056;
  background-color: #FFF;
  border-radius: 20px;
}
nav.hoofdmenu a:hover {
  background-color: #252056;
  color: #FFF;
}

/* AI invoer */
@media (max-width: 640px) {

  /* ---------- Filterbalk ranglijsten ---------- */
table.baanrangkeuze,
table.baanrangkeuze tbody,
table.baanrangkeuze tr,
table.baanrangkeuze td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

table.baanrangkeuze td { padding: 6px 10px; }

table.baanrangkeuze select {
  width: 100%;
  font-size: 16px;
  padding: 10px;
}

table.baanrangkeuze input[type=radio] { transform: scale(1.3); margin: 8px 5px 8px 10px; }
table.baanrangkeuze label { font-size: 16px; width: 55px;}

/* Printer- en CSV-icoon naast elkaar */
table.baanrangkeuze td:last-child {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
table.baanrangkeuze td:last-child br { display: none !important; }
table.baanrangkeuze td:last-child a { display: block; }
table.baanrangkeuze td:last-child img {
  display: none;
  height: 32px;
  width: auto;
}

  /* ---------- Filterbalk atleet prestatie ---------- */
table.atleetkeuze,
table.atleetkeuze tbody,
table.atleetkeuze tr,
table.atleetkeuze td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

table.atleetkeuze td { padding: 6px 10px; }

table.atleetkeuze select {
  width: 100%;
  font-size: 16px;
  padding: 10px;
}

table.atleetkeuze input[type=radio] { transform: scale(1.3); margin: 8px 5px 8px 10px; }
table.atleetkeuze label { font-size: 16px; width: 55px;}

/* Printer- en CSV-icoon naast elkaar */
table.atleetkeuze td:last-child {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
table.atleetkeuze td:last-child br { display: none !important; }
table.atleetkeuze td:last-child a { display: block; }
table.atleetkeuze td:last-child img {
  display: none;
  height: 32px;
  width: auto;
}

  /* ---------- Resultaten als kaartjes ---------- */
  #lijsten br { display: none; }
  #lijsten .estafettenaam br { display: inline; }

  table.gegevens,
  table.gegevens tbody { display: block; width: 100%; }

  table.gegevens { margin-bottom: 16px; }

  table.gegevens tr {
    display: grid;
    grid-template-columns: 2.2em 1fr auto;
    column-gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
  }

  table.gegevens td { display: block; padding: 0; border: 0; }
  table.gegevens td:empty { display: none; }   /* lege cellen weg */

  /* regel 1: positie, naam, prestatie */
  table.gegevens td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: bold; }
  table.gegevens td:nth-child(2) { grid-column: 2; grid-row: 1; }
  table.gegevens td:nth-child(3) { grid-column: 3; grid-row: 1; text-align: right; font-weight: bold; white-space: nowrap; justify-self: end;}

  /* regel 2: categorie links, wind rechts */
  table.gegevens td:nth-child(4) { grid-column: 2; grid-row: 2; }
  table.gegevens td:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; justify-self: end;}

  /* regel 3: plaats links, jaar rechts */
  table.gegevens td:nth-child(7) { grid-column: 2; grid-row: 3; }
  table.gegevens td:nth-child(6) { grid-column: 3; grid-row: 3; text-align: right; justify-self: end;}

  table.gegevens td:nth-child(n+4) { font-size: 13px; color: #666; }

  /* Kopregel met de naam van het onderdeel: blauw over de volle breedte */
table.gegevens tr:has(> th) {
  display: block;       /* geen grid voor de kopregel */
  padding: 0;
  border: 0;
}

table.gegevens th {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  background: #0066cc;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  text-align: left;
}

/* ---------- Resultaten atleetpagina baan ---------- */
table.gegevens.atleet tr {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "datum     datum  prestatie"
    "wedstrijd wedstrijd plaats"
    "categorie categorie kmh";
  column-gap: 12px;
  row-gap: 2px;
}

table.gegevens.atleet td {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  position: static;
  float: none;
}

/* regel 1: datum links, prestatie rechts */
table.gegevens.atleet td:nth-child(1) { grid-area: datum; font-weight: bold; font-size: 15px; color: inherit; }
table.gegevens.atleet td:nth-child(3) { grid-area: prestatie; text-align: right; font-weight: bold; font-size: 15px; color: inherit; white-space: nowrap; }

/* regel 2: wedstrijd op een eigen regel */
table.gegevens.atleet td:nth-child(2) { grid-area: wedstrijd; font-size: 13px; color: #666; }

/* regel 3: categorie, plaats (1e, 13e) en snelheid */
table.gegevens.atleet td:nth-child(5) { grid-area: categorie; font-size: 13px; color: #666; }
table.gegevens.atleet td:nth-child(4) { grid-area: plaats; font-size: 13px; color: #666; text-align: right; }
table.gegevens.atleet td:nth-child(6) { grid-area: kmh; font-size: 13px; color: #666; text-align: right; white-space: nowrap; }

table.gegevens.atleet td:nth-child(5) {
  text-align: left;
  justify-self: start;   /* ook links binnen de gridcel */
}

/* ---------- Resultaten atleetpagina weg/veld ---------- */
table.gegevens.loopatleet tr {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "datum   afstand  prestatie"
    "wedstrijd wedstrijd plaats"
    "categorie categorie kmh";
  column-gap: 12px;
  row-gap: 2px;
}

table.gegevens.loopatleet td {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  position: static;
  float: none;
  white-space: nowrap;
}

/* regel 1: datum links, prestatie rechts */
table.gegevens.loopatleet td:nth-child(1) { grid-area: datum; font-weight: bold; font-size: 15px; color: inherit; justify-self: start;}
table.gegevens.loopatleet td:nth-child(2) { grid-area: wedstrijd; font-size: 15px; color: #666; justify-self: start;}
table.gegevens.loopatleet td:nth-child(3) { grid-area: afstand; font-size: 15px; color: #666; text-align: left; }
table.gegevens.loopatleet td:nth-child(4) { grid-area: prestatie; text-align: right; font-weight: bold; font-size: 15px; color: inherit; justify-self: end;}
table.gegevens.loopatleet td:nth-child(5) { grid-area: plaats; font-size: 13px; color: #666; justify-self: end; }
table.gegevens.loopatleet td:nth-child(6) { grid-area: categorie; font-size: 13px; color: #666; text-align:left;  justify-self: start;  }
table.gegevens.loopatleet td:nth-child(7) { grid-area: kmh; font-size: 13px; color: #666; text-align: right; justify-self: end; }


/* ---------- Alleen Pr's (table.gegevens.pr) ---------- */
table.gegevens.pr,
table.gegevens.pr tbody { display: block; width: 100%; }

table.gegevens.pr tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "onderdeel  prestatie"
    "wedstrijd  wedstrijd"
    "datum      categorie";
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

table.gegevens.pr td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #666;
  font-weight: normal;
  text-align: left;
}
table.gegevens.pr td:empty { display: none; }

/* regel 1: onderdeel links, prestatie rechts */
table.gegevens.pr td:nth-child(1) { grid-area: onderdeel; font-size: 15px; font-weight: bold; color: inherit; }
table.gegevens.pr td:nth-child(4) { grid-area: prestatie; font-size: 15px; font-weight: bold; color: inherit; text-align: right; white-space: nowrap; }

/* regel 2: wedstrijd op een eigen regel */
table.gegevens.pr td:nth-child(3) { grid-area: wedstrijd; }

/* regel 3: datum links, categorie rechts */
table.gegevens.pr td:nth-child(2) { grid-area: datum; }
table.gegevens.pr td:nth-child(5) { grid-area: categorie; text-align: right; }

/* ---------- Filterbalk clubrecords ---------- */
table.keuze.clubrangkeuze,
table.keuze.clubrangkeuze > tbody,
table.keuze.clubrangkeuze > tbody > tr,
table.keuze.clubrangkeuze > tbody > tr > td {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
}
table.keuze.clubrangkeuze > tbody > tr > td { padding: 6px 10px !important; text-align: left !important; }

table.keuze.clubrangkeuze label { font-size: 16px; }
table.keuze.clubrangkeuze label[for="knaucat"] { display: block; margin-bottom: 4px; }
table.keuze.clubrangkeuze input[type="radio"] { transform: scale(1.3); margin: 8px 6px 8px 10; }
table.keuze.clubrangkeuze td:first-child label { margin-right: 14px; }
table.keuze.clubrangkeuze select { width: 100%; font-size: 16px; padding: 10px; }

/* ---------- Resultaten clubrecords ---------- */
#lijsten h3 { margin: 12px 10px 8px; font-size: 18px; }

table.gegevens.clubrang,
table.gegevens.clubrang tbody { display: block; width: 100%; }

/* kolomkoppen verbergen: elk kaartje is zelfverklarend */
table.gegevens.clubrang tbody > tr:first-child { display: none; }

table.gegevens.clubrang tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "onderdeel onderdeel"
    "prestatie wind"
    "naam      naam"
    "plaats    jaar";
  row-gap: 2px;
  padding: 0 0 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

table.gegevens.clubrang td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #666;
  text-align: left;
}
table.gegevens.clubrang td:empty { display: none; }

/* blauwe balk: onderdeel */
table.gegevens.clubrang td:nth-child(1) {
  grid-area: onderdeel;
  background: #0066cc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 10px;
  margin-bottom: 4px;
}

/* prestatie links, wind rechts */
table.gegevens.clubrang td:nth-child(3) { grid-area: prestatie; font-size: 15px; font-weight: bold; color: inherit; justify-self: start; text-align: left;}
table.gegevens.clubrang td:nth-child(6) { grid-area: wind; text-align: right; white-space: nowrap; justify-self: end;}

/* naam (bij estafettes staan de namen onder elkaar) */
table.gegevens.clubrang td:nth-child(2) { grid-area: naam; font-size: 15px; color: inherit; justify-self: start; text-align: left;}

/* plaats links, jaar rechts */
table.gegevens.clubrang td:nth-child(5) { grid-area: plaats; text-align: left; justify-self: start;}
table.gegevens.clubrang td:nth-child(4) { grid-area: jaar; text-align: right; text-align: right; justify-self: end;}

/* records van dit jaar (klasse "vet") blijven vet */
table.gegevens.clubrang td.vet:not(:nth-child(1)) { font-weight: bold; color: red; }

/* ---------- Resultaten baanrecords ---------- */
#lijsten h3 { margin: 12px 10px 8px; font-size: 18px; }

table.gegevens.baanrec,
table.gegevens.baanrec tbody { display: block; width: 100%; }

/* kolomkoppen verbergen: elk kaartje is zelfverklarend */
table.gegevens.baanrec tbody > tr:first-child { display: none; }

table.gegevens.baanrec tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
    "onderdeel onderdeel"
    "prestatie wind"
    "naam      naam"
    "plaats    datum";
  row-gap: 2px;
  padding: 0 0 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

table.gegevens.baanrec td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #666;
  text-align: left;
}
table.gegevens.baanrec td:empty { display: none; }

/* blauwe balk: onderdeel */
table.gegevens.baanrec td:nth-child(1) {
  grid-area: onderdeel;
  background: #0066cc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 10px;
  margin-bottom: 4px;
}

/* prestatie links, wind rechts */
table.gegevens.baanrec td:nth-child(3) { grid-area: wind;  text-align: right; white-space: nowrap;}
table.gegevens.baanrec td:nth-child(6) { grid-area: datum; text-align: right; font-weight: 100; }

/* naam (bij estafettes staan de namen onder elkaar) */
table.gegevens.baanrec td:nth-child(2) { grid-area: prestatie; font-size: 15px; font-weight: bold; color: inherit;  }

/* plaats links, jaar rechts */
table.gegevens.baanrec td:nth-child(5) { grid-area: plaats; justify-self: start;}
table.gegevens.baanrec td:nth-child(4) { grid-area: naam; font-size: 15px; color: inherit;  }

/* records van dit jaar (klasse "vet") blijven vet */
table.gegevens.baanrec td.vet:not(:nth-child(1)) { font-weight: bold; color: red; }

/* ---------- Estafette: rijen met 5 cellen ---------- */
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  grid-template-areas:
    "pos  namen     prestatie"
    ".    categorie jaarplaats";
  column-gap: 8px;
  row-gap: 2px;
}

table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td {
  width: auto !important;
  min-width: 0;
  box-sizing: border-box;
}

/* regel 1 */
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(1) { grid-area: pos; font-weight: bold; }
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(2) { grid-area: namen; }
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(3) {
  grid-area: prestatie;
  justify-self: end;
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

/* regel 2 */
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(4) {
  grid-area: categorie;
  justify-self: start;
  text-align: left;
}
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(5) {
  grid-area: jaarplaats;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

/* kleine tekst voor categorie en jaar/plaats */
table.gegevens.baanrang tr:has(> td:nth-child(5):last-child) > td:nth-child(n+4) {
  font-size: 14px;
  color: #666;
}

/*-----------------Uitslagen wedstrijden baan ---------------*/
/* ---------- Filterbalk uitslagen ---------- */
table.keuze.uitslagenkeuze,
table.keuze.uitslagenkeuze > tbody { display: block !important; width: 100% !important; }

table.keuze.uitslagenkeuze > tbody > tr {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100% !important;
  box-sizing: border-box;
}

table.keuze.uitslagenkeuze > tbody > tr > td {
  display: block !important;
  width: auto !important;
  padding: 6px 10px !important;
  box-sizing: border-box;
  text-align: left !important;
}

/* maand en jaar naast elkaar */
table.keuze.uitslagenkeuze > tbody > tr > td:nth-child(1),
table.keuze.uitslagenkeuze > tbody > tr > td:nth-child(2) { flex: 1 1 40%; }

/* knop over de volle breedte */
table.keuze.uitslagenkeuze > tbody > tr > td:nth-child(3) { flex: 1 1 100%; }

table.keuze.uitslagenkeuze label { font-size: 16px; }
table.keuze.uitslagenkeuze select { width: 100%; font-size: 16px; padding: 10px; }
table.keuze.uitslagenkeuze input[type="submit"] { width: 100%; font-size: 16px; padding: 10px; }

/* ---------- Resultaten uitslagen baan---------- */
table.gegevens.uitslag,
table.gegevens.uitslag tbody { display: block; width: 100%; }

table.gegevens.uitslag { margin-bottom: 16px; }
table.gegevens.uitslag + br { display: none; }

table.gegevens.uitslag tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "naam      prestatie"
    "onderdeel wind"
    "plaats kmh";
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

table.gegevens.uitslag td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #666;
  text-align: left;
}
table.gegevens.uitslag td:empty { display: none; }

/* naam en prestatie op regel 1, onderdeel eronder */
table.gegevens.uitslag td:nth-child(1) { grid-area: naam; font-size: 15px; font-weight: bold; color: inherit; }
table.gegevens.uitslag td:nth-child(2) { grid-area: onderdeel; font-size: 16px; justify-self: start;}
table.gegevens.uitslag td:nth-child(3) {
  grid-area: prestatie;
  text-align: right;
  font-size: 15px;
  font-weight: bold;
  color: inherit;
  white-space: nowrap;
  justify-self: end;
}
table.gegevens.uitslag td:nth-child(4) { grid-area: wind; font-size: 13px; justify-self: end;}
table.gegevens.uitslag td:nth-child(5) { grid-area: plaats; font-size: 13px;justify-self: start;}
table.gegevens.uitslag td:nth-child(6) { grid-area: kmh; font-size: 13px; justify-self: end;}

/* wedstrijd: blauwe balk over de volle breedte */
table.gegevens.uitslag tr:has(> td.wedstrijd),
table.gegevens.uitslag tr:has(> td.categorie) {
  display: block;
  padding: 0;
  border: 0;
}

table.gegevens.uitslag td.wedstrijd {
  display: block;
  background: #0066cc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.35;
  padding: 10px;
  text-align: left;
}

/* categorie: lichtblauwe balk */
table.gegevens.uitslag td.categorie {
  display: block;
  background: #e6f0fa;
  color: #0066cc;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 10px;
  text-align: left;
}

/* ---------- Resultaten uitslagen weg/veld---------- */
table.gegevens.loopuitslag,
table.gegevens.loopuitslag tbody { display: block; width: 100%; }

table.gegevens.loopuitslag { margin-bottom: 16px; }
table.gegevens.loopuitslag + br { display: none; }

table.gegevens.loopuitslag tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "naam      prestatie"
    "categorie kmh"
    "plaats plaats";
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

table.gegevens.loopuitslag td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #666;
  text-align: left;
}
table.gegevens.loopuitslag td:empty { display: none; }

/* naam en prestatie op regel 1, onderdeel eronder */
table.gegevens.loopuitslag td:nth-child(1) { grid-area: naam; font-size: 15px; font-weight: bold; color: inherit; }
table.gegevens.loopuitslag td:nth-child(3) { grid-area: onderdeel; font-size: 16px; justify-self: start; text-align: left;}
table.gegevens.loopuitslag td:nth-child(2) {
  grid-area: prestatie;
  text-align: right;
  font-size: 15px;
  font-weight: bold;
  color: inherit;
  white-space: nowrap;
  justify-self: end;
}
table.gegevens.loopuitslag td:nth-child(3) { grid-area: plaats; font-size: 13px;text-align: right; justify-self: end;}
table.gegevens.loopuitslag td:nth-child(4) { grid-area: categorie; font-size: 15px; justify-self:start; text-align: left;}
table.gegevens.loopuitslag td:nth-child(5) { grid-area: kmh; font-size: 13px; justify-self: end; text-align: right;}

/* wedstrijd: blauwe balk over de volle breedte */
table.gegevens.loopuitslag tr:has(> td.wedstrijd),
table.gegevens.loopuitslag tr:has(> td.categorie) {
  display: block;
  padding: 0;
  border: 0;
}

table.gegevens.loopuitslag td.wedstrijd {
  display: block;
  background: #0066cc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.35;
  padding: 10px;
  text-align: left;
}

/* categorie: lichtblauwe balk */
table.gegevens.loopuitslag td.categorie {
  display: block;
  background: #e6f0fa;
  color: #0066cc;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 10px;
  text-align: left;
}
}