/* mod_time_schedule 1.0.0 */
.tms { --tms-navy: var(--time-navy, #050060); --tms-ice: #dff1f8; --tms-line: #b9e3ee; --tms-sep: #e2eef3; --tms-teal: #4aa3b5;
  --tms-blue: #1d3fe0; --tms-muted: #5c6280; color: var(--tms-navy); }
.tms-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 0 0 22px; }
.tms-tabs { display: flex; border-bottom: 2px solid var(--tms-sep); min-width: min(100%, 320px); }
.tms-tab { padding: 10px 16px 12px; font-family: var(--time-font-display, 'Fredoka', inherit); font-weight: 700; font-size: 1.05rem; color: var(--tms-navy) !important;
  text-decoration: none !important; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tms-tab.is-active { border-bottom-color: var(--tms-teal); }
.tms-tab:hover, .tms-tab:focus-visible { color: var(--tms-blue) !important; }
.tms-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.tms-filters[hidden] { display: none; }
.tms-filter { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin: 0; }
.tms-filter > span { font-size: .95rem; }
.tms-filter select { min-width: 190px; font: inherit; font-weight: 600; color: var(--tms-navy); background-color: #fff; border: 1.5px solid #8fb0e0;
  border-radius: 8px; padding: 9px 12px; }

.tms-table { border: 1px solid var(--tms-line); border-radius: 14px; overflow: hidden; background: #fff; }
.tms-head, .tms-row { display: grid; grid-template-columns: minmax(150px, 1.15fr) minmax(220px, 2.4fr) minmax(110px, .9fr) 28px; gap: 8px 24px; align-items: center; padding: 18px 26px; }
.tms-head { background: var(--tms-ice); font-weight: 700; padding-top: 16px; padding-bottom: 16px; }
.tms-row { border-top: 1px solid var(--tms-sep); color: inherit !important; text-decoration: none !important; transition: background .15s; }
.tms-row[hidden] { display: none; }
.tms-row.is-link:hover, .tms-row.is-link:focus-visible { background: #f4fafc; }
.tms-row.is-link:hover .tms-arrow { transform: translateX(3px); }
.tms-group { display: flex; flex-direction: column; gap: 4px; }
.tms-name { font-family: var(--time-font-display, 'Fredoka', inherit); font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.tms-level { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; }
.tms-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(5, 0, 96, .35); flex: none; }
.tms-slots { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 5px 8px; align-items: baseline; }
.tms-slot { display: contents; }
.tms-slot > * { transition: opacity .15s; }
.tms-slot.is-dim > * { opacity: .3; }
.tms-slots > .tms-day, .tms-slots > .tms-times, .tms-slots > .tms-note { grid-column: 1 / -1; }
.tms-day { font-weight: 700; }
.tms-times { display: flex; flex-wrap: wrap; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.tms-sep { color: var(--tms-muted); }
.tms-note { color: var(--tms-muted); font-size: .85rem; }
.tms-note.is-cta { color: var(--tms-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tms-pool { font-weight: 700; }
.tms-arrow { color: var(--tms-blue); display: flex; justify-content: flex-end; transition: transform .15s; }
.tms-empty { margin: 14px 4px; color: var(--tms-muted); }
.tms-panel[hidden] { display: none; }

/* gsm: elke groep een kaartje */
@media (max-width: 760px) {
  .tms-tools { flex-direction: column; align-items: stretch; }
  .tms-tabs { min-width: 0; }
  .tms-tab { flex: 1 1 0; text-align: center; }
  .tms-filters { margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .tms-filters:has(> .tms-filter:only-child) { grid-template-columns: 1fr; }
  .tms-filter select { min-width: 0; width: 100%; }
  .tms-table { border: 0; border-radius: 0; overflow: visible; background: none; display: flex; flex-direction: column; gap: 12px; }
  .tms-head { display: none; }
  .tms-row { position: relative; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 44px 16px 16px; border: 1px solid var(--tms-line); border-radius: 14px; background: #fff; }
  .tms-group, .tms-pool, .tms-slots { grid-column: 1 / -1; }
  .tms-pool { justify-self: start; font-size: .85rem; background: var(--tms-ice); padding: 3px 10px; border-radius: 999px; }
  .tms-pool:empty { display: none; }
  .tms-slots { padding-top: 10px; border-top: 1px dashed var(--tms-sep); }
  .tms-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .tms-row.is-link:hover .tms-arrow { transform: translate(3px, -50%); }
}

/* ===== 1.1.0 — plaats per dag ===== */
.tms-place { color: var(--tms-muted); font-size: .88em; }

/* ===== 1.1.0 — per-pagina-weergave (tabel op de groepspagina's) ===== */
.tms--group { margin: 0 0 1.2em; }
.tms-gheading { margin: 0 0 .5em; }
.tms-gtable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--tms-line); border-radius: 14px; overflow: hidden; background: #fff; margin: 0; }
.tms-gtable th, .tms-gtable td { text-align: left; vertical-align: top; padding: 12px 18px; border: 0 !important; border-top: 1px solid var(--tms-sep) !important; background: none; }
.tms-gtable thead th { background: var(--tms-ice); border-top: 0 !important; font-weight: 700; }
.tms-gtable tbody th { font-weight: 700; width: 34%; white-space: nowrap; }
.tms-gtable--multi tbody th { width: 26%; }
.tms-gtable td { font-variant-numeric: tabular-nums; }
.tms-gt { display: block; }
.tms-gtable .tms-place { display: block; }
.tms-gline { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 10px; padding: 1px 0; }
.tms-gline + .tms-gline { margin-top: 4px; }
.tms-glabel { display: inline-flex; align-items: center; gap: 8px; }
.tms-gchoose { display: block; color: var(--tms-muted); font-size: .9em; margin-bottom: 2px; }
.tms-combos { margin: 0; padding-left: 1.3em; }
.tms-combos li { padding: 1px 0; }
.tms-gpool { white-space: nowrap; }
.tms-gnote { margin: 8px 4px 0; color: var(--tms-muted); font-size: .9em; }
@media (max-width: 600px) {
  .tms-gtable th, .tms-gtable td { padding: 10px 12px; }
  .tms-gtable tbody th { white-space: normal; }
  .tms-gtable--multi thead { display: none; }
  .tms-gtable--multi, .tms-gtable--multi tbody, .tms-gtable--multi tr, .tms-gtable--multi th, .tms-gtable--multi td { display: block; width: auto !important; }
  .tms-gtable--multi tbody tr + tr { border-top: 1px solid var(--tms-line); }
  .tms-gtable--multi tbody th { border-top: 0 !important; padding-bottom: 2px; }
  .tms-gtable--multi tbody td { border-top: 0 !important; padding-top: 4px; }
  .tms-gtable--multi td.tms-gpool { padding-top: 0; color: var(--tms-muted); }
  .tms-gline { grid-template-columns: 82px minmax(0, 1fr); }
}

/* ===== 1.2.0 — badmutsen ===== */
.tms-cap-ico { flex: none; display: inline-block; vertical-align: middle; }
.tms-level .tms-cap-ico { margin: -2px 0; }
.tms-head.has-cap, .tms-row.has-cap { grid-template-columns: minmax(150px, 1.1fr) minmax(110px, .75fr) minmax(220px, 2.2fr) minmax(110px, .9fr) 28px; }
.tms-capcol { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tms-row.has-cap .tms-level { display: none; }
@media (max-width: 760px) {
  .tms-head .tms-capcol, .tms-row .tms-capcol { display: none; }
  .tms-row.has-cap .tms-level { display: inline-flex; }
  .tms-head.has-cap, .tms-row.has-cap { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 1.3.2 — overzicht in een volle SP Page Builder-rij: zelfde breedte en marges als de zwembadensectie ===== */
.tms:not(.tms--group) { box-sizing: border-box; max-width: 1418px; margin: 0 auto; padding: 28px 34px 40px; }
@media (max-width: 760px) { .tms:not(.tms--group) { padding: 18px 14px 28px; } }

/* ===== 1.5.0 — groepspagina's als kaart(en) in plaats van een tabel ===== */
.tms--cards { margin: 0 0 1.4em; }
.tms--cards .tms-cgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tms--cards.is-single .tms-cgrid { grid-template-columns: minmax(0, 620px); }
.tms-card { background: #fff; border: 1px solid var(--tms-line); border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 10px 28px rgba(5, 0, 96, .07); margin: 0; }
.tms-chead { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--tms-sep); }
.tms-ctitle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--time-heading, var(--time-font-display, inherit)); font-weight: 800; font-size: 1.12rem; line-height: 1.2; color: var(--tms-navy); }
.tms-cico { color: var(--tms-teal); flex: none; }
.tms-cpool { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--tms-navy); background: var(--tms-ice); padding: 4px 10px; border-radius: 999px; }
.tms-cdays, .tms-ccombos { display: grid; gap: 10px; }
.tms-cday { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.tms-cdayname { font-weight: 700; }
.tms-cpills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tms-pill { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #eef7fb; border: 1px solid #d6ecf4; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; line-height: 1.35; white-space: nowrap; color: var(--tms-navy); }
.tms-pill b { font-weight: 800; margin-right: 2px; }
.tms-cplace { font-size: .82rem; color: var(--tms-muted); }
.tms-cplus { color: var(--tms-muted); font-weight: 700; }
.tms-clabel { font-size: .82rem; font-weight: 700; color: var(--tms-muted); text-transform: uppercase; letter-spacing: .06em; }
.tms-ccombo { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; }
.tms-cnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tms-navy); color: #fff; font-size: .78rem; font-weight: 800; }
.tms-csummary { display: grid; gap: 4px; }
.tms-cnote { margin: 12px 0 0; font-size: .88rem; color: var(--tms-muted); }
@media (max-width: 600px) {
  .tms-card { padding: 16px 14px 14px; border-radius: 16px; }
  .tms-cday { grid-template-columns: 1fr; gap: 4px; }
  .tms-pill { font-size: .9rem; }
}
