/* Regionaal totaaloverzicht — aanvullingen op de gedeelde Volley Stars-stijl. */
.alle-levels { --level: var(--vs-orange); }
.alle-levels .wrap { padding-bottom: 28px; }
.totaal-general-logo { width: 48px; height: 48px; object-fit: contain; background: #fff; }
.alle-levels .sec-title { margin-top: 10px; font-size: 13px; letter-spacing: .045em; }
.alle-levels .sec-title .hint { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.totaal-bottom-nav button { cursor: pointer; }
.totaal-menu-logo { object-fit: contain; border-radius: 0 !important; }
.alle-levels .app-menu [data-total-mode] { min-height: 42px; padding-block: 8px; }
.alle-levels .app-menu [data-total-mode][aria-current="page"] { background: var(--vs-orange-soft); color: var(--vs-navy); box-shadow: inset 3px 0 var(--vs-orange); }

/* Eigen keuzepanelen: vertrouwde vorm, met toetsenbordfocus en typen om te zoeken. */
.alle-levels .totaal-filter { display: grid; min-height: 48px; padding: 4px 7px; background-image: none; }
.totaal-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
.totaal-teamzoek { margin-top: 7px; }
.totaal-teamzoek .totaal-filter { width: 100%; }
.totaal-keuze { position: relative; min-width: 0; }
.totaal-keuze-knop { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 27px; padding: 2px 1px; border: 0; background: transparent; color: var(--vs-navy); font: 600 11px/1.25 Poppins, sans-serif; text-align: left; cursor: pointer; }
.totaal-keuze-knop > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.totaal-keuze-pijl { width: 7px; height: 7px; flex: 0 0 auto; margin: -3px 3px 0 0; border-right: 2px solid #5A6078; border-bottom: 2px solid #5A6078; transform: rotate(45deg); }
.totaal-keuze-knop[aria-expanded="true"] .totaal-keuze-pijl { margin-top: 3px; transform: rotate(225deg); }
.totaal-keuze-knop:focus-visible { outline: 2px solid var(--vs-orange); outline-offset: 2px; border-radius: 5px; }
.totaal-keuze-panel { position: absolute; top: calc(100% + 4px); left: -7px; z-index: 80; width: max(100%, 210px); max-width: min(330px, calc(100vw - 30px)); padding: 6px; border: 1px solid #C9CDD9; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(27, 28, 66, .2); }
.totaal-keuze-panel[hidden] { display: none; }
.totaal-filters > :nth-child(3n) .totaal-keuze-panel { left: auto; right: -7px; }
.totaal-keuze-zoek { display: block; padding: 2px 2px 6px; }
.totaal-keuze-zoek input, .totaal-team-input input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #BFC5D5; border-radius: 8px; background: #fff; font-size: 12px; }
.totaal-keuze-opties { display: grid; max-height: min(300px, 50dvh); overflow: auto; overscroll-behavior: contain; }
.totaal-keuze-opties button { min-height: 38px; padding: 7px 9px; border: 0; border-radius: 7px; background: #fff; color: var(--vs-navy); font: 500 12px Poppins, sans-serif; text-align: left; cursor: pointer; }
.totaal-keuze-opties button[aria-selected="true"] { background: var(--vs-orange-soft); color: #8A410F; font-weight: 700; }
.totaal-keuze-opties button:hover, .totaal-keuze-opties button:focus-visible { outline: none; background: var(--vs-navy-soft); }
.totaal-teamzoek .totaal-keuze-panel { left: 0; width: 100%; max-width: none; }
.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; }

/* Alleen Switch is een secundaire keuze en blijft daarom bewust klein. */
.alle-levels .totaal-vink { min-height: 26px; margin-top: 5px; padding: 2px 8px 2px 4px; font-size: 10px; }
.alle-levels .totaal-vink input { width: 13px; height: 13px; }
.alle-levels .totaal-sort:empty { display: none; }

/* Zaalkeuze met sorteer- en papierformaat op één regel. */
.totaal-zaal-kies { padding: 6px 8px; border: 1px solid #C9CDD9; border-radius: 10px; background: #fff; }
.totaal-zaal-kies .totaal-keuze-panel { left: -8px; width: calc(100% + 16px); }
.totaal-zaal-regel { display: flex; align-items: center; gap: 3px; margin-top: 6px; color: #5A6078; font-size: 10px; font-weight: 600; white-space: nowrap; }
.totaal-zaal-regel .sorteer-knop { min-width: 42px; min-height: 29px; margin-left: 0; padding: 3px 8px; }
.totaal-zaal-scheid { margin-left: auto; }
.totaal-team-input { display: block; margin-top: 7px; }

/* Eén kaartcomponent voor Wedstrijden én Per zaal. */
.alle-levels .wedstrijd-kaart { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; align-items: stretch; min-height: 82px; margin-bottom: 7px; padding: 9px 10px 9px 9px; border: 1px solid #DCE0EA; border-left: 4px solid var(--vs-orange); border-radius: 12px; background: #fff; box-shadow: 0 2px 7px rgba(39, 40, 91, .04); cursor: pointer; }
.alle-levels .wedstrijd-kaart.is-extern { border-left-color: #AEB4C4; }
.wedstrijd-kaart:focus-visible { outline: 2px solid var(--vs-navy); outline-offset: 2px; }
.wedstrijd-tijd { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-width: 0; padding: 2px 0; }
.wedstrijd-tijd strong { color: var(--vs-navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.wedstrijd-tijd span { max-width: 100%; overflow: hidden; color: #5A6078; font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.wedstrijd-ploegen { display: grid; gap: 6px; min-width: 0; }
.wedstrijd-ploeg { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 7px; align-items: center; min-width: 0; }
.wedstrijd-ploeg .club-logo { width: 33px; height: 22px; flex-basis: 33px; border: 0; }
.wedstrijd-ploeg > div { display: grid; min-width: 0; }
.wedstrijd-ploeg strong { overflow: hidden; color: var(--vs-navy); font-size: 12px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.wedstrijd-ploeg span { overflow: hidden; color: #5A6078; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.wedstrijd-score { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; min-width: 42px; color: var(--vs-navy); text-align: right; }
.wedstrijd-score strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wedstrijd-score span { margin-top: 2px; color: #5A6078; font-size: 9px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wedstrijd-score em { margin-top: auto; padding: 2px 5px; border-radius: 999px; background: #FDECEC; color: #A11B1B; font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.wedstrijd-kaart.is-afgelast { border-color: #E7B8B8; border-left-color: #C64747; background: #FFF8F8; }
.wedstrijd-kaart.is-afgelast .wedstrijd-ploegen { opacity: .62; }
.wedstrijd-kaart.is-afgelast .wedstrijd-tijd strong { text-decoration: line-through; }
.admin-mode .wedstrijd-kaart.is-edited { box-shadow: inset 0 0 0 1px var(--vs-teal); }

.totaal-toolbar { margin: 7px 0 9px; }
#contextPrint { border-color: #E6B98F; background: #FFF6EE; }

/* Beheer blijft in dezelfde compacte dialoog en gebruikt dezelfde keuzepanelen. */
.region-beheer .totaal-keuze { width: 100%; padding: 5px 9px; border: 1px solid #BFC5D5; border-radius: 9px; background: #fff; }
.region-beheer .totaal-keuze-panel { left: 0; width: 100%; }
.region-beheer .form-actions { padding: 0; }
.receipt-check { display: flex; align-items: center; gap: 7px; min-height: 38px; margin: 3px 0 9px; font-size: 11px; font-weight: 600; }
.receipt-check input { width: 17px; height: 17px; accent-color: var(--vs-orange); }
.team-terugtrek { margin-top: 12px; padding-top: 2px; border-top: 1px solid #DCE0EA; }
.team-actie-preview { min-height: 36px; margin: 2px 0 8px; padding: 7px 9px; border-radius: 8px; background: #FFF5EC; color: #7E3C0E; font-size: 10px; line-height: 1.4; }
.team-acties { display: grid !important; grid-template-columns: 1fr 1fr; }

@media (max-width: 360px) {
    .totaal-general-logo { width: 42px; height: 42px; }
    .alle-levels .wedstrijd-kaart { grid-template-columns: 47px minmax(0, 1fr) auto; gap: 6px; padding-inline: 7px; }
    .wedstrijd-ploeg { grid-template-columns: 28px minmax(0, 1fr); gap: 5px; }
    .wedstrijd-ploeg .club-logo { width: 28px; height: 19px; }
    .wedstrijd-score { min-width: 36px; }
    .totaal-zaal-regel .sorteer-knop { min-width: 37px; padding-inline: 6px; font-size: 10px; }
}

@media print {
    .sticky-top, .bottom-nav, .totaal-controls, #alleHallTools, .totaal-toolbar, .team-dag-beheer, .footer { display: none !important; }
    .alle-levels { padding: 0; background: #fff; }
    .alle-levels .wrap { max-width: none; padding: 0; }
    .wedstrijd-kaart { break-inside: avoid; box-shadow: none; }
}

/* De tweede regel gebruikt dezelfde kolommen: zaal/level en veld/poule. */
.alle-levels .wedstrijd-kaart { grid-template-columns: 48px minmax(0, 1fr) 66px 30px auto; gap: 6px; }
.wedstrijd-ploegen, .wedstrijd-zaal, .wedstrijd-veld { grid-template-rows: 1fr 1fr; }
.wedstrijd-zaal, .wedstrijd-veld { display: grid; align-items: center; gap: 6px; min-width: 0; color: #50566E; font-size: 10px; }
.wedstrijd-zaal > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wedstrijd-veld strong { color: var(--vs-navy); font-size: 12px; }
.wedstrijd-score { justify-content: center; min-width: 30px; }
.wedstrijd-score strong { font-weight: 700; font-size: 13px; }
@media (max-width: 440px) {
    .alle-levels .wedstrijd-kaart { grid-template-columns: 40px minmax(0, 1fr) 56px 25px auto; gap: 5px; padding-inline: 6px; }
    .wedstrijd-ploeg { grid-template-columns: 23px minmax(0, 1fr); gap: 4px; }
    .wedstrijd-ploeg .club-logo { width: 23px; height: 19px; }
    .wedstrijd-ploeg strong { font-size: 11px; }
    .wedstrijd-zaal, .wedstrijd-veld { font-size: 9px; }
    .wedstrijd-score { min-width: 25px; }
    .wedstrijd-score span { max-width: 38px; white-space: normal; }
}

/* v0.75: compacte regionale weergave, onafhankelijk van de leveltabellen. */
.alle-levels .header-left .totaal-general-logo { width: 64px; height: 42px; max-width: none; object-fit: contain; border-radius: 0; background: transparent; }
.alle-levels .totaal-filter { min-height: 42px; }
.alle-levels .totaal-filter-key { font-size: 10px; line-height: 1.2; }
.alle-levels .totaal-keuze-knop { font-size: 12px; min-height: 25px; }
.alle-levels .totaal-team-input input, .alle-levels .totaal-keuze-zoek input { font: 400 16px/1.2 Poppins, sans-serif; min-height: 38px; padding: 7px 10px; }
.alle-levels .totaal-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 10px; padding: 7px 9px; }
.alle-levels .totaal-print-formats { display: flex; align-items: center; gap: 4px; margin-right: auto; color: #50566e; font-size: 11px; }
.alle-levels .totaal-print-formats[hidden] { display: none; }
.alle-levels .totaal-print-formats button { min-width: 34px; min-height: 30px; margin: 0; padding: 3px 7px; font-size: 11px; }
.alle-levels .totaal-toolbar .share-icons { gap: 5px; flex-wrap: nowrap; }
.alle-levels .totaal-toolbar .share-icons button { width: 35px; height: 35px; min-width: 35px; min-height: 35px; padding: 5px; }
#alleHallPrintActions { display: contents; }
.alle-levels .wedstrijd-kaart { grid-template-columns: 39px minmax(0,1fr) 76px 25px 30px; gap: 6px; min-height: 70px; padding: 8px; align-items: stretch; }
.alle-levels .wedstrijd-tijd { justify-content: flex-start; padding-top: 3px; }
.alle-levels .wedstrijd-tijd strong { font-size: 12px; font-weight: 600; }
.alle-levels .wedstrijd-ploegen { grid-template-rows: 1fr 1fr; gap: 7px; }
.alle-levels .wedstrijd-ploeg { grid-template-columns: 24px minmax(0,1fr); gap: 5px; }
.alle-levels .wedstrijd-ploeg .club-logo { width: 24px; height: 22px; min-width: 24px; flex-basis: 24px; margin: 0; border: 0; }
.alle-levels .wedstrijd-ploeg strong { font: 600 12px/1.3 Poppins,sans-serif; white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.alle-levels .wedstrijd-zaal, .alle-levels .wedstrijd-veld, .alle-levels .wedstrijd-score { display: grid; grid-template-rows: 1fr 1fr; align-items: center; gap: 7px; font-size: 11px; line-height: 1.3; }
.alle-levels .wedstrijd-zaal > span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.alle-levels .wedstrijd-poule { color: var(--vs-navy); font-weight: 500; white-space: nowrap !important; }
.alle-levels .wedstrijd-veld strong { font-size: 12px; font-weight: 600; }
.alle-levels .wedstrijd-score { min-width: 0; justify-content: stretch; }
.alle-levels .wedstrijd-score strong { font: 600 12px/1.3 Poppins,sans-serif; }
.alle-levels .wedstrijd-score span { margin: 0; max-width: none; font: 400 9px/1.3 Poppins,sans-serif; white-space: normal; }
.alle-levels .wedstrijd-score em { grid-column: 1; font-size: 8px; padding: 1px; }
.alle-levels .totaal-bottom-nav .nav-inner { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.alle-levels .totaal-bottom-nav .nav-tab { min-width: 0; padding: 6px 1px; font-size: 10px; }
.alle-levels .poule-kaart { padding: 12px; }
.alle-levels .poule-kop { gap: 5px; font-size: 12px; }
.alle-levels .poule-naam { font-size: 14px; }
.alle-levels .poule-teams { font-size: 13px; line-height: 1.7; }
.alle-levels .poule-speeldagen { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; font-size: 11px; }
.alle-levels .poule-speeldag { gap: 4px; min-width: 0; }
.alle-levels .poule-speeldag-zaal { white-space: normal; }
.alle-levels .poule-teams .is-match { background: #fff0df; border-radius: 4px; color: #87430c; font-weight: 600; }
@media (max-width: 380px) {
  .alle-levels .wedstrijd-kaart { grid-template-columns: 35px minmax(0,1fr) 65px 21px 27px; gap: 4px; padding: 7px 6px; }
  .alle-levels .wedstrijd-ploeg { grid-template-columns: 20px minmax(0,1fr); gap: 4px; }
  .alle-levels .wedstrijd-ploeg .club-logo { width: 20px; min-width: 20px; height: 20px; }
  .alle-levels .wedstrijd-ploeg strong { font-size: 11px; }
  .alle-levels .wedstrijd-zaal { font-size: 10px; }
}
@media (min-width: 600px) {
  .alle-levels .wedstrijd-kaart { grid-template-columns: 45px minmax(0,1fr) 130px 36px 55px; }
  .alle-levels .wedstrijd-ploeg strong { font-size: 13px; }
}
/* Respecteer verborgen tabs/acties ook wanneer gedeelde stijlen display instellen. */
.alle-levels [hidden] { display: none !important; }

/* Compacte filters en dezelfde teamkeuze in zaal en poules. */
.alle-levels .totaal-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.55fr) !important; }
.alle-levels .totaal-filters-teams { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.55fr) !important; margin-top: 6px; }
.alle-levels .totaal-team-autocomplete { position: relative; max-width: 420px; }
.alle-levels .totaal-team-input input { font-size: 16px; line-height: 1.15; height: 36px; min-height: 36px; padding: 5px 9px; }
.alle-levels .totaal-team-input input::placeholder { font-size: 12px; }
.totaal-team-suggesties { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 220px; overflow-y: auto; border: 1px solid #bbc1d1; border-radius: 9px; background: #fff; box-shadow: 0 5px 16px #27285b20; }
.totaal-team-suggesties button { display: block; width: 100%; min-height: 34px; padding: 7px 10px; border: 0; background: #fff; color: #27285b; text-align: left; font: 500 12px/1.3 Poppins,sans-serif; }
.totaal-team-suggesties button:hover, .totaal-team-suggesties button:focus { background: #fff0df; }
#alleTitleActions { flex: 0 0 auto; }
.totaal-switch-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.totaal-switch-toggle input { width: 16px; height: 16px; accent-color: #ee6a1b; }
.totaal-switch-toggle img { object-fit: contain; }
.totaal-title-print { width: 34px; height: 34px; padding: 3px; border: 1px solid #dddfea; border-radius: 8px; background: white; }
.alle-levels .sec-title { gap: 6px; }
.alle-levels .sec-title .hint { margin-left: auto; }

/* Tablet en laptop: benut de werkruimte zonder opgeblazen mobiele kaarten. */
@media screen and (min-width: 760px) {
  .alle-levels .wrap, .alle-levels .header { max-width: 1120px; padding-inline: 24px; }
  .alle-levels .sec-title { font-size: 15px; }
  .alle-levels .sec-title .hint { font-size: 13px; }
  .alle-levels .totaal-keuze-knop { font-size: 14px; min-height: 30px; }
  .alle-levels .totaal-filter-key { font-size: 11px; }
  .alle-levels .totaal-filter { padding: 6px 10px; }
  .alle-levels .totaal-bottom-nav .nav-inner { max-width: 820px; }
  .alle-levels .totaal-bottom-nav .nav-tab { display: flex; flex-direction: row; justify-content: center; gap: 9px; padding: 9px 12px; font-size: 13px; }
  .alle-levels .totaal-bottom-nav .nav-icon { margin: 0; }
  .alle-levels .wedstrijd-kaart { grid-template-columns: 55px minmax(220px, 380px) minmax(110px,1fr) 44px 65px; min-height: 76px; gap: 10px; padding: 10px 14px; }
  .alle-levels .wedstrijd-ploeg strong, .alle-levels .wedstrijd-tijd strong, .alle-levels .wedstrijd-veld strong { font-size: 14px; }
  .alle-levels .wedstrijd-zaal { font-size: 13px; }
  .alle-levels .poule-kaarten { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
  .alle-levels .poule-kaart { margin: 0; }
  .alle-levels #alleZaalKeuze { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .alle-levels .totaal-zaal-kies { flex: 1 1 280px; }
  .alle-levels #alleZaalKeuze .totaal-team-autocomplete { flex: 1 1 230px; }
  .alle-levels #alleZaalKeuze .totaal-team-input, .alle-levels .totaal-zaal-regel { margin-top: 0; }
}


.alle-levels .totaal-print-formats { flex-wrap: wrap; }
.totaal-print-label { margin-left: 7px; }

@media screen and (min-width: 760px) {
  .alle-levels .weekend-selector { margin-block: 10px; gap: 8px; }
  .alle-levels .sec-title { margin-block: 12px 8px; padding-bottom: 8px; }
  .alle-levels .totaal-toolbar { padding: 7px 10px; margin-block: 8px 12px; }
  .alle-levels .wedstrijd-kaart { grid-template-columns: 50px minmax(220px, 1fr) 150px 40px 56px; }
}

/* Dezelfde compacte exportbalk op telefoon, tablet en laptop. */
.alle-levels .totaal-toolbar { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.alle-levels .totaal-print-formats { flex-wrap: nowrap; white-space: nowrap; gap: 4px; }
.alle-levels .totaal-toolbar .share-icons { flex: 0 0 auto; }
.totaal-print-menu { width: min(340px, calc(100% - 28px)); padding: 16px; border: 1px solid #DCE0EA; border-radius: 16px; color: #27285B; background: #fff; box-shadow: 0 12px 40px #15162B40; }
.totaal-print-menu::backdrop { background: #15162B70; backdrop-filter: blur(2px); }
.totaal-print-menu-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.totaal-print-menu h2 { margin: 0; font-size: 16px; font-weight: 600; }
.totaal-print-menu-heading button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #27285B; font-size: 24px; }
.totaal-print-menu p { margin: 12px 0 7px; font-size: 12px; font-weight: 600; }
.totaal-print-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.totaal-print-sizes button { padding: 10px; border: 1px solid #D0D5E2; border-radius: 10px; background: #fff; color: #27285B; font: 600 14px Poppins, sans-serif; }
.totaal-print-sizes button.active { border-color: #F47721; background: #FFF3E8; }
.totaal-print-sizes span { display: block; font-size: 11px; font-weight: 400; }
.totaal-toolbar[hidden] { display: none !important; }
@media (max-width: 360px) {
  .alle-levels .totaal-toolbar { padding-inline: 6px; gap: 4px; }
  .alle-levels .totaal-print-formats { font-size: 10px; gap: 3px; }
  .alle-levels .totaal-print-formats button { min-width: 30px; padding-inline: 5px; }
  .alle-levels .totaal-toolbar .share-icons { gap: 3px; }
  .alle-levels .totaal-toolbar .share-icons button { width: 33px; min-width: 33px; }
}
@media print { .totaal-print-menu { display: none !important; } }

.alle-levels .totaal-toolbar .share-icons button[hidden] { display: none !important; }

/* v0.88 · Visuele icoongrootte en afmeldingen binnen de kaart. */

.alle-levels .wedstrijd-status { grid-column: 2 / -1; justify-self: end; max-width: 100%; padding: 2px 7px; border-radius: 6px; background: #FDECEC; color: #A11B1B; font: 700 9px/1.4 Poppins, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.alle-levels .wedstrijd-ploeg .is-afgemeld { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.alle-levels .wedstrijd-score { min-width: 0; }
.alle-levels .wedstrijd-score > strong { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
@media print { .alle-levels .wedstrijd-status { color: #000; border: 1px solid #777; background: none; } }

.alle-levels .wedstrijd-zaal > span:first-child { color: var(--vs-navy); font-weight: 500; font-size: inherit; }

/* v0.90 · Meer ruimte voor kiezen, minder dubbele labels. */
.alle-levels .team-dag-dialog[open] { display: flex; flex-direction: column; height: min(720px, 88dvh); max-height: calc(100dvh - 24px); overflow: hidden; }
.team-dag-dialog .alle-dialog-head { flex: 0 0 auto; padding: 10px 12px 8px; }
.team-dag-dialog .team-dag-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 12px 12px; }
.team-dag-dialog .team-dag-body > * { flex-shrink: 0; }
.team-dag-dialog .totaal-keuze-knop { min-height: 38px; font-size: 14px; }
.team-dag-dialog .totaal-keuze-panel { position: static; width: 100%; max-width: none; margin-top: 4px; box-shadow: none; padding: 5px; }
.team-dag-dialog .totaal-keuze-opties { max-height: clamp(120px, calc(88dvh - 260px), 440px); }
.team-dag-dialog .totaal-keuze-opties button { min-height: 40px; font-size: 13px; }
#teamDagTeamPanel [data-picker-option]:first-child { display: none; }
.team-dag-dialog .team-actie-preview:empty { display: none; }
.team-dag-dialog .team-dag-body .form-actions { margin-top: auto; padding-top: 10px; }

/* Teambeheer deelt de sorteerbalk, ook op mobiel. */
.alle-levels .totaal-toolbar .team-dag-beheer { flex: 0 0 auto; margin: 0; }
.alle-levels .totaal-toolbar .team-dag-beheer > button { white-space: nowrap; }
@media (max-width: 480px) {
  .alle-levels.admin-mode .totaal-toolbar:has(.team-dag-beheer:not([hidden])) .totaal-print-formats > span { display: none; }
  .alle-levels .totaal-toolbar .team-dag-beheer > button { padding-inline: 7px; font-size: 11px; }
}
@media (max-width: 360px) {
  .alle-levels .totaal-toolbar .team-dag-beheer > button { padding-inline: 5px; font-size: 10px; }
}

.alle-levels .wedstrijd-ploeg .wedstrijd-vervanger {
  display: block; margin-top: 3px; padding: 2px 4px;
  border-left: 2px solid #C65B15; background: #FFF3E8; color: #87400C;
  font: 500 10px/1.35 Poppins, sans-serif; white-space: normal; overflow-wrap: anywhere;
}
@media print {
  .alle-levels .wedstrijd-ploeg .wedstrijd-vervanger { color: #000; border-color: #000; }
}


/* Afgelast gebruikt de bestaande scorekolom, zonder extra kaartrij. */
.wedstrijd-teamtekst { min-width: 0; }
.alle-levels .wedstrijd-kaart.is-afgelast { grid-template-columns: 39px minmax(0, 1fr) 76px 25px 54px; }
.alle-levels .wedstrijd-score > .wedstrijd-status {
  grid-column: auto; align-self: center; justify-self: end;
  padding: 2px 4px; font: 700 9px/1.3 Poppins, sans-serif; white-space: nowrap;
}
@media screen and (min-width: 760px) {
  .alle-levels .wedstrijd-kaart.is-afgelast { grid-template-columns: 50px minmax(220px, 1fr) 150px 40px 56px; }
}

/* Detailkaart: invoertekst even groot als de teamkeuze. */
.alle-levels #alleDialogBody .alle-beheer .edit-input {
  font: 400 12px/1.4 Poppins, sans-serif;
  text-align: left;
}
.alle-levels #alleDialogBody .alle-beheer .form-actions button {
  font: 600 12px/1.4 Poppins, sans-serif;
}
.alle-levels #alleDialogBody input[type="time"]::-webkit-date-and-time-value {
  text-align: left;
}
.alle-levels #alleDialogBody input[type="time"]::-webkit-datetime-edit {
  display: inline-flex; padding: 0; text-align: left;
}

/* Eén set: wedstrijdpunten boven, gespeelde punten eronder. */
.alle-levels .wedstrijd-kaart:has(.wedstrijd-score.is-single-set) { grid-template-columns: 39px minmax(0, 1fr) 76px 25px 54px; }
.alle-levels .wedstrijd-score.is-single-set > strong,
.alle-levels .wedstrijd-score.is-single-set > span { white-space: nowrap; overflow-wrap: normal; }
@media screen and (min-width: 760px) {
  .alle-levels .wedstrijd-kaart:has(.wedstrijd-score.is-single-set) { grid-template-columns: 50px minmax(220px, 1fr) 150px 40px 56px; }
}

/* Setstanden onder elkaar, zonder puntjes of haakjes. */
.alle-levels .wedstrijd-score > span { white-space: pre; }
.alle-levels .wedstrijd-score > strong { white-space: nowrap; }
