/* Bookings page (Data side). Only what the shared styles in app.css / club.css do not already cover. */

/* KPI row: seven tiles on one line when there is room, otherwise wrap evenly */
.clubbk-kpis{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media (min-width:1280px){.clubbk-kpis{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media (max-width:520px){.clubbk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.clubbk-kpis .kpi:first-child{grid-column:1/-1}}

/* the line under each figure wraps here so the change vs the period before is never cut off */
.clubbk-kpis .kpi .d{white-space:normal;line-height:1.35}
.clubbk-kpis .kpi .delta{margin-left:0;margin-right:4px}

/* cards sit in the two-column club grid (app.css gives .card a 12-column span meant for the finance grid) */
.clubbk-grid .card{grid-column:auto}
.clubbk-grid .card.span2{grid-column:1/-1}
.clubbk-grid .tbl-wrap td,.clubbk-grid .tbl-wrap th{white-space:nowrap}

/* utilisation heat grid: days down and hours across; .tall (phones) swaps them */
.clubbk-heat{position:relative}
.clubbk-hg{display:grid;grid-template-columns:38px repeat(15,minmax(0,1fr));gap:3px}
.clubbk-heat.tall .clubbk-hg{grid-template-columns:46px repeat(7,minmax(0,1fr))}
.clubbk-hg .l{font-size:var(--fs-xs);color:var(--muted);display:flex;align-items:center;font-variant-numeric:tabular-nums}
.clubbk-hg .l.top{justify-content:center;padding-bottom:2px}
.clubbk-hg .c{height:38px;border-radius:6px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:var(--fs-s);font-weight:500;font-variant-numeric:tabular-nums;color:var(--fg);cursor:default;min-width:0;outline:0}
.clubbk-heat.tall .clubbk-hg .c{height:28px;font-size:var(--fs-xs)}
.clubbk-hg .c.hi{color:var(--accent-ink)}
.clubbk-hg .c.na{color:var(--muted);background:var(--fill)}
.clubbk-hg .c.pk{box-shadow:inset 0 0 0 2px var(--fg)}
.clubbk-hg .c:hover,.clubbk-hg .c:focus-visible{box-shadow:inset 0 0 0 2px var(--fg),0 0 0 2px var(--surface),0 0 0 4px var(--accent)}
.clubbk-heat .tip{min-width:190px}
.clubbk-hl{align-items:center;margin-top:10px}
.clubbk-hl i.ramp{width:90px;height:9px;border-radius:3px;margin:0 6px;background:linear-gradient(90deg,var(--surface-2),color-mix(in oklab,var(--accent) 92%,var(--surface-2)))}
.clubbk-hl i.pk{width:13px;height:13px;border-radius:4px;background:transparent;box-shadow:inset 0 0 0 2px var(--fg)}

/* court by court: club heading above each group of bars */
.clubbk-sub{display:flex;align-items:center;font-size:var(--fs-s);font-weight:600;margin:12px 0 6px}
.clubbk-sub:first-child{margin-top:0}
.clubbk-sub small{margin-left:auto;font-weight:400;color:var(--muted);font-size:var(--fs-xs)}
.clubbk-grid .bar-row{grid-template-columns:minmax(64px,auto) minmax(0,3fr) minmax(70px,auto)}

/* who is playing: two-part share bars and a row of small facts */
.clubbk-split{margin-bottom:14px}
.clubbk-split .t{font-size:var(--fs-s);font-weight:600;margin-bottom:6px}
.clubbk-split .bar{display:flex;gap:2px;height:12px;border-radius:4px;overflow:hidden;background:var(--surface-3)}
.clubbk-split .bar i{display:block;height:100%}
.clubbk-split .cap{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:var(--fs-xs);color:var(--fg-2);margin-top:5px;font-variant-numeric:tabular-nums}
.clubbk-split .cap b{color:var(--fg);font-weight:600}
.clubbk-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding-top:12px}
.clubbk-facts b{display:block;font-size:17px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.clubbk-facts span{font-size:var(--fs-xs);color:var(--muted)}

