/**
 * Booking Stats (VX) widget styles.
 *
 * Master-palette driven: every colour derives from a small set of CSS variables, so a
 * one-click preset (or a single palette change) re-themes the whole dashboard. Layout +
 * sizing live here; typography FAMILY is deliberately left to inherit (the theme's font)
 * unless the admin sets the Style-tab typography control.
 *
 * Scoping: everything is under `.vxb-booking-stats` and every colour resolves from our
 * own variables, so the widget's look wins over the theme/Elementor Kit globals while
 * still following the active preset. Contrast is kept safe on light AND dark presets by
 * mixing tints against the surface colour rather than hardcoding light/dark values.
 */

.vxb-booking-stats[v-cloak] {
	display: none;
}

/* Flatten the UA 3D button bevel with zero specificity, so any real border wins. */
:where( .vxb-booking-stats button ) {
	border: 0;
}

/* ── Base variables = the "Minimal" preset. Presets below override these. ── */
.vxb-booking-stats {
	--vxb-text: #1f2937;
	--vxb-muted: #6b7280;
	--vxb-border: #e5e7eb;
	--vxb-bg-soft: #f9fafb;
	--vxb-bg: #ffffff;
	--vxb-accent: var( --ts-accent-1, #1f7a54 );
	--vxb-on-accent: #ffffff;
	--vxb-radius: 12px;

	/* Derived surfaces (overridable per-element from the Style tab). */
	--vxb-card-bg: var( --vxb-bg );
	--vxb-kpi-bg: var( --vxb-bg-soft );
	--vxb-chart: var( --vxb-accent );
	--vxb-gap: 12px;

	/* Trend deltas + tooltip. */
	--vxb-up: #1d9e75;
	--vxb-down: #e24b4a;
	--vxb-tip-bg: var( --vxb-bg );
	--vxb-tip-text: var( --vxb-text );

	/* Status hues (shared with the pills + donut). */
	--vxb-completed: #1e7e45;
	--vxb-pending: #b45309;
	--vxb-canceled: #b42318;
	--vxb-refunded: var( --vxb-muted );

	--vxb-st-completed-bg: color-mix( in srgb, var( --vxb-completed ) 14%, var( --vxb-bg ) ); --vxb-st-completed-fg: var( --vxb-completed );
	--vxb-st-pending-bg: color-mix( in srgb, var( --vxb-pending ) 14%, var( --vxb-bg ) );     --vxb-st-pending-fg: var( --vxb-pending );
	--vxb-st-canceled-bg: color-mix( in srgb, var( --vxb-canceled ) 14%, var( --vxb-bg ) );   --vxb-st-canceled-fg: var( --vxb-canceled );
	--vxb-st-refunded-bg: color-mix( in srgb, var( --vxb-muted ) 12%, var( --vxb-bg ) );      --vxb-st-refunded-fg: var( --vxb-muted );
	--vxb-st-neutral-bg: color-mix( in srgb, var( --vxb-muted ) 12%, var( --vxb-bg ) );       --vxb-st-neutral-fg: var( --vxb-muted );

	display: flex;
	flex-direction: column;
	gap: var( --vxb-gap );
	position: relative;
	color: var( --vxb-text );
}

/* ── STYLE PRESETS (same family as the other VX widgets). ── */
.vxb-preset-soft .vxb-booking-stats {
	--vxb-accent: #1d9e75;
	--vxb-bg: #fbfaf7;
	--vxb-bg-soft: #f3efe8;
	--vxb-text: #33302a;
	--vxb-muted: #8c8579;
	--vxb-border: #ece6db;
	--vxb-radius: 16px;
}
.vxb-preset-bold .vxb-booking-stats {
	--vxb-accent: #534ab7;
	--vxb-bg: #ffffff;
	--vxb-bg-soft: #f1f0fb;
	--vxb-text: #1c1830;
	--vxb-muted: #6f6a86;
	--vxb-border: #e2e0f0;
	--vxb-radius: 18px;
}
.vxb-preset-midnight .vxb-booking-stats {
	--vxb-accent: #8f86e6;
	--vxb-on-accent: #14121f;
	--vxb-bg: #1b1d24;
	--vxb-bg-soft: #23262f;
	--vxb-text: #eef0f5;
	--vxb-muted: #9aa1b1;
	--vxb-border: #313542;
	--vxb-completed: #5dcaa5;
	--vxb-pending: #efaf52;
	--vxb-canceled: #e86a6a;
	--vxb-up: #5dcaa5;
	--vxb-down: #e86a6a;
	--vxb-radius: 12px;
}
.vxb-preset-activity-rush .vxb-booking-stats {
	--vxb-accent: #c0fa1e;
	--vxb-on-accent: #121416;
	--vxb-bg: #1c1e22;
	--vxb-bg-soft: #25272d;
	--vxb-text: #fafafa;
	--vxb-muted: #a1a4aa;
	--vxb-border: #30333a;
	--vxb-completed: #5dcaa5;
	--vxb-pending: #efaf52;
	--vxb-canceled: #f0616a;
	--vxb-up: #a6e22e;
	--vxb-down: #f0616a;
	--vxb-radius: 12px;
}

/* On dark presets, mix status tints against black so they read as subtle fills. */
.vxb-preset-midnight .vxb-booking-stats,
.vxb-preset-activity-rush .vxb-booking-stats {
	--vxb-st-completed-bg: color-mix( in srgb, var( --vxb-completed ) 22%, var( --vxb-bg ) );
	--vxb-st-pending-bg: color-mix( in srgb, var( --vxb-pending ) 22%, var( --vxb-bg ) );
	--vxb-st-canceled-bg: color-mix( in srgb, var( --vxb-canceled ) 22%, var( --vxb-bg ) );
}

/* ── DENSITY ── */
.vxb-density-compact .vxb-booking-stats {
	--vxb-gap: 8px;
}

/* ── Header + titles ── */
.vxb-bs-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.vxb-bs-titles h2 {
	margin: 0 0 2px;
	color: var( --vxb-text );
	line-height: 1.2;
}
.vxb-bs-sub {
	margin: 0;
	color: var( --vxb-muted );
	font-size: 13px;
}
.vxb-bs-range {
	margin: 3px 0 0;
	color: var( --vxb-muted );
	font-size: 12.5px;
}

/* ── Filter chips ── */
.vxb-bs-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.vxb-booking-stats .vxb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	font: inherit;
	font-size: 13px;
	color: var( --vxb-text );
	background: var( --vxb-bg );
	border: 1px solid var( --vxb-border );
	border-radius: var( --vxb-radius );
	box-sizing: border-box;
	max-width: 100%;
	cursor: pointer;
}
.vxb-booking-stats .vxb-chip:focus {
	outline: none;
	border-color: var( --vxb-accent );
}
.vxb-chip-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
	background-size: 12px;
}
.vxb-chip-accent {
	background: color-mix( in srgb, var( --vxb-accent ) 12%, var( --vxb-bg ) );
	border-color: color-mix( in srgb, var( --vxb-accent ) 40%, var( --vxb-border ) );
	color: color-mix( in srgb, var( --vxb-accent ) 78%, var( --vxb-text ) );
	font-weight: 500;
}
.vxb-daterow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.vxb-date-sep {
	color: var( --vxb-muted );
}
.vxb-date {
	color-scheme: light;
}
.vxb-preset-midnight .vxb-booking-stats .vxb-date,
.vxb-preset-activity-rush .vxb-booking-stats .vxb-date {
	color-scheme: dark;
}
.vxb-booking-stats .vxb-export {
	background: var( --vxb-accent );
	border-color: var( --vxb-accent );
	color: var( --vxb-on-accent );
	font-weight: 500;
}
.vxb-booking-stats .vxb-export:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ── Body wrapper (loading) ── */
.vxb-bs-body {
	display: flex;
	flex-direction: column;
	gap: var( --vxb-gap );
	transition: opacity 0.15s ease;
}
.vxb-bs-body.vxb-pending {
	opacity: 0.55;
	pointer-events: none;
}
.vxb-bs-empty {
	background: var( --vxb-card-bg );
	border: 1px solid var( --vxb-border );
	border-radius: var( --vxb-radius );
	padding: 40px 20px;
	text-align: center;
	color: var( --vxb-muted );
}

/* ── KPI cards ── */
.vxb-kpis {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 10px;
}
.vxb-kpi {
	background: var( --vxb-kpi-bg );
	border-radius: var( --vxb-radius );
	padding: 13px 15px;
	min-width: 0;
	overflow: visible;
}
.vxb-kpi-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var( --vxb-muted );
}
.vxb-kpi-value {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 5px 0 2px;
	color: var( --vxb-text );
	line-height: 1.15;
}
.vxb-kpi-delta {
	font-size: 12px;
	color: var( --vxb-muted );
}
.vxb-kpi-delta.vxb-up { color: var( --vxb-up ); }
.vxb-kpi-delta.vxb-down { color: var( --vxb-down ); }

/* ── Info tooltip ── */
.vxb-info {
	position: relative;
	display: inline-flex;
	color: var( --vxb-muted );
	cursor: help;
	line-height: 1;
}
.vxb-info:hover,
.vxb-info:focus {
	color: var( --vxb-accent );
	outline: none;
}
.vxb-tip {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.12s ease;
	position: absolute;
	bottom: calc( 100% + 8px );
	left: 0;
	width: 220px;
	max-width: 60vw;
	padding: 9px 11px;
	background: var( --vxb-tip-bg );
	color: var( --vxb-tip-text );
	border: 1px solid var( --vxb-border );
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.18 );
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
	text-transform: none;
	letter-spacing: 0;
	z-index: 50;
	pointer-events: none;
}
.vxb-info:hover .vxb-tip,
.vxb-info:focus .vxb-tip {
	visibility: visible;
	opacity: 1;
}
/* Keep the tooltip on-screen near the right edge of a row. */
.vxb-kpi:last-child .vxb-tip,
.vxb-cards-3 > .vxb-card:last-child .vxb-tip {
	left: auto;
	right: 0;
}

/* ── Adaptive per-type strip ── */
.vxb-adaptive {
	background: var( --vxb-card-bg );
	border: 1px solid var( --vxb-border );
	border-radius: var( --vxb-radius );
	padding: 13px 15px;
}
.vxb-adaptive-head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 11px;
}
.vxb-type-tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 9px;
	border-radius: 20px;
	background: color-mix( in srgb, var( --vxb-accent ) 14%, var( --vxb-bg ) );
	color: color-mix( in srgb, var( --vxb-accent ) 80%, var( --vxb-text ) );
}
.vxb-adaptive-name {
	font-size: 13px;
	font-weight: 500;
	color: var( --vxb-text );
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vxb-adaptive-kpis {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 120px, 1fr ) );
	gap: 8px;
}
.vxb-kpi-sm {
	background: var( --vxb-kpi-bg );
	padding: 10px 12px;
}
.vxb-kpi-sm .vxb-kpi-value {
	font-size: 19px;
	margin-top: 3px;
}
.vxb-kpi-sm .vxb-kpi-label {
	font-size: 10.5px;
}

/* ── Cards ── */
.vxb-card {
	background: var( --vxb-card-bg );
	border: 1px solid var( --vxb-border );
	border-radius: var( --vxb-radius );
	padding: 14px 16px;
	min-width: 0;
}
.vxb-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}
.vxb-card-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var( --vxb-text );
}
.vxb-card-note {
	font-size: 11px;
	color: var( --vxb-muted );
}
.vxb-card-export {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: inherit;
	font-size: 11.5px;
	background: none;
	color: var( --vxb-accent );
	cursor: pointer;
	padding: 2px 4px;
}
.vxb-card-export:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Trend chart */
.vxb-chart-wrap {
	position: relative;
	height: 220px;
}
.vxb-chart-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}

/* Three-up breakdown row */
.vxb-cards-3 {
	display: grid;
	grid-template-columns: 1.15fr 1fr 0.9fr;
	gap: var( --vxb-gap );
}

/* Bars (top listings) */
.vxb-bars {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vxb-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	margin: 6px 0;
}
.vxb-bar-name {
	width: 120px;
	flex: 0 0 auto;
	color: var( --vxb-muted );
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vxb-bar-track {
	flex: 1 1 auto;
	height: 8px;
	background: var( --vxb-kpi-bg );
	border-radius: 6px;
	overflow: hidden;
	min-width: 0;
}
.vxb-bar-fill {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var( --vxb-chart );
}
.vxb-bar-val {
	flex: 0 0 auto;
	min-width: 52px;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var( --vxb-text );
}

/* Segmented channel bar + mini table */
.vxb-seg {
	display: flex;
	height: 10px;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 12px;
	background: var( --vxb-kpi-bg );
}
.vxb-seg-part {
	height: 100%;
}
.vxb-mini-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}
.vxb-mini-table th {
	text-align: left;
	font-weight: 400;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --vxb-muted );
	padding: 0 4px 6px;
}
.vxb-mini-table td {
	padding: 6px 4px;
	border-top: 1px solid var( --vxb-border );
	color: var( --vxb-text );
	white-space: nowrap;
}
.vxb-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.vxb-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	margin-right: 6px;
	vertical-align: middle;
}

/* Donut + legend */
.vxb-donut-wrap {
	position: relative;
	height: 150px;
	display: flex;
	justify-content: center;
}
.vxb-donut-wrap canvas {
	max-height: 150px;
}
.vxb-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	font-size: 11px;
	color: var( --vxb-muted );
}
.vxb-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.vxb-cancel-rate {
	margin-top: 8px;
	text-align: center;
	font-size: 11px;
	color: var( --vxb-muted );
}

/* Recent bookings table */
.vxb-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.vxb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}
.vxb-table th {
	text-align: left;
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --vxb-muted );
	padding: 0 10px 8px;
	white-space: nowrap;
}
.vxb-table td {
	padding: 9px 10px;
	border-top: 1px solid var( --vxb-border );
	color: var( --vxb-text );
	white-space: nowrap;
}
.vxb-cell-listing {
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vxb-chtag {
	font-size: 11.5px;
	color: var( --vxb-muted );
}
.vxb-table-foot {
	margin-top: 10px;
	font-size: 11px;
	color: var( --vxb-muted );
}
.vxb-mini-empty {
	padding: 18px 4px;
	text-align: center;
	font-size: 12px;
	color: var( --vxb-muted );
}

/* Status pills */
.vxb-pill {
	display: inline-block;
	font-size: 11px;
	padding: 2px 9px;
	border-radius: 20px;
	background: var( --vxb-st-neutral-bg );
	color: var( --vxb-st-neutral-fg );
	white-space: nowrap;
}
.vxb-st-completed { background: var( --vxb-st-completed-bg ); color: var( --vxb-st-completed-fg ); }
.vxb-st-pending   { background: var( --vxb-st-pending-bg );   color: var( --vxb-st-pending-fg ); }
.vxb-st-canceled  { background: var( --vxb-st-canceled-bg );  color: var( --vxb-st-canceled-fg ); }
.vxb-st-refunded  { background: var( --vxb-st-refunded-bg );  color: var( --vxb-st-refunded-fg ); }

/* ── Mobile filters: inline on desktop, bottom-sheet on mobile ── */
.vxb-filters,
.vxb-filters-body {
	display: contents;
}
.vxb-filters-head,
.vxb-filters-apply,
.vxb-filters-backdrop,
.vxb-filters-toggle {
	display: none;
}

@media ( max-width: 860px ) {
	.vxb-cards-3 {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 600px ) {
	.vxb-bs-head {
		align-items: flex-start;
	}
	.vxb-bs-filters {
		width: 100%;
	}
	.vxb-kpis {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	/* Filters collapse into a bottom sheet triggered by the Filters button. */
	.vxb-booking-stats .vxb-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		height: 38px;
		padding: 0 14px;
		font: inherit;
		font-size: 13px;
		color: var( --vxb-text );
		background: var( --vxb-bg );
		border: 1px solid var( --vxb-border );
		border-radius: var( --vxb-radius );
		cursor: pointer;
	}

	.vxb-filters {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100060;
		max-height: 85vh;
		overflow-y: auto;
		padding: 18px 18px calc( 18px + env( safe-area-inset-bottom, 0px ) );
		background: var( --vxb-modal-bg, var( --vxb-bg ) );
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -12px 40px rgba( 0, 0, 0, 0.25 );
		transform: translateY( 100% );
		transition: transform 0.25s ease;
	}
	.vxb-filters.vxb-filters-open {
		transform: translateY( 0 );
	}
	.vxb-filters-body {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin: 14px 0;
	}
	.vxb-filters-body .vxb-chip,
	.vxb-daterow {
		width: 100%;
		height: 46px;
	}
	.vxb-daterow {
		height: auto;
	}
	.vxb-filters-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.vxb-filters-head strong {
		font-size: 15px;
		color: var( --vxb-text );
	}
	.vxb-filters-close {
		font-size: 26px;
		line-height: 1;
		background: none;
		color: var( --vxb-muted );
		cursor: pointer;
		padding: 0 4px;
	}
	.vxb-filters-apply {
		display: block;
		width: 100%;
		height: 46px;
		background: var( --vxb-accent );
		color: var( --vxb-on-accent );
		border-radius: var( --vxb-radius );
		font: inherit;
		font-weight: 500;
		cursor: pointer;
	}
	.vxb-filters-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100055;
		background: rgba( 0, 0, 0, 0.45 );
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
 * CLASS TIMETABLE DASHBOARD
 *
 * Shown instead of the per-type metrics, which measure time rather than seats.
 * Fill rate is the organising number, so it gets a bar on every row: a column
 * of percentages is read one value at a time, a column of bars is read at a
 * glance, and "which of my classes is struggling" is a glance question.
 *
 * Three colour bands, not a gradient — the underlying counts (a handful of
 * classes) don't support finer precision, and a band is something a vendor can
 * actually name: quiet, healthy, full.
 * ═══════════════════════════════════════════════════════════════════════════ */
.vxb-booking-stats .vxb-cs-tables {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) );
	gap: var( --vxb-gap );
	margin-bottom: var( --vxb-gap );
}

.vxb-booking-stats .vxb-cs-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vxb-booking-stats .vxb-cs-t th {
	font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .04em;
	color: var( --vxb-muted ); font-weight: 500; text-align: right;
	padding: 0 0 7px; white-space: nowrap;
}
.vxb-booking-stats .vxb-cs-t th:first-child { text-align: left; }
.vxb-booking-stats .vxb-cs-t td {
	padding: 8px 0; border-top: 1px solid var( --vxb-border );
	text-align: right; font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}
.vxb-booking-stats .vxb-cs-t td:first-child { text-align: left; }
.vxb-booking-stats .vxb-cs-name {
	color: var( --vxb-text ); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vxb-booking-stats .vxb-cs-n { width: 4.5rem; }
.vxb-booking-stats .vxb-cs-f { width: 6.5rem; }
.vxb-booking-stats .vxb-cs-pct { display: block; }
.vxb-booking-stats .vxb-cs-bar {
	display: block; height: 5px; margin-top: 4px; border-radius: 3px;
	background: var( --vxb-bg-soft ); overflow: hidden;
}
.vxb-booking-stats .vxb-cs-bar > span { display: block; height: 100%; border-radius: 3px; }
.vxb-booking-stats .is-low  { background: #e24b4a; }
.vxb-booking-stats .is-mid  { background: #ef9f27; }
.vxb-booking-stats .is-high { background: #1d9e75; }

/* The demand grid. Only the hours that actually run classes appear as rows. */
.vxb-booking-stats .vxb-cs-grid { display: flex; flex-direction: column; gap: 3px; }
.vxb-booking-stats .vxb-cs-grow {
	display: grid; grid-template-columns: 3.2rem repeat( 7, 1fr ); gap: 3px; align-items: center;
}
.vxb-booking-stats .vxb-cs-gh {
	font-size: 0.6875rem; color: var( --vxb-muted ); text-align: center;
	font-variant-numeric: tabular-nums;
}
.vxb-booking-stats .vxb-cs-ghead .vxb-cs-gh { padding-bottom: 2px; }
.vxb-booking-stats .vxb-cs-grow .vxb-cs-gh:first-child { text-align: left; }
.vxb-booking-stats .vxb-cs-gc {
	border-radius: 4px; padding: 6px 0; text-align: center;
	font-size: 0.6875rem; font-variant-numeric: tabular-nums;
	color: var( --vxb-text );
}

/* ONE HUE, RISING INTENSITY — darker means fuller.
 *
 * Traffic lights belong in the tables, where the question is "how is this class
 * doing?" and red is a verdict. The grid asks "WHEN am I busy?", which is a
 * pattern question: a studio with quiet mornings lit up entirely red, which
 * read as an error rather than a shape — and red-for-low also fights the
 * heat-map convention where red means MORE.
 *
 * The tint tops out below full strength so the label stays legible on it in
 * both light and dark palettes, whatever accent the theme supplies. */
/* Applied to BOTH the cells and the legend swatches — scoping these to .vxb-cs-gc
   alone left the legend as five blank boxes, which explained nothing. */
.vxb-booking-stats .vxb-cs-gc.is-i0, .vxb-booking-stats .vxb-cs-lgs.is-i0 { background: color-mix( in srgb, var( --vxb-accent ) 10%, var( --vxb-bg-soft ) ); }
.vxb-booking-stats .vxb-cs-gc.is-i1, .vxb-booking-stats .vxb-cs-lgs.is-i1 { background: color-mix( in srgb, var( --vxb-accent ) 24%, var( --vxb-bg-soft ) ); }
.vxb-booking-stats .vxb-cs-gc.is-i2, .vxb-booking-stats .vxb-cs-lgs.is-i2 { background: color-mix( in srgb, var( --vxb-accent ) 38%, var( --vxb-bg-soft ) ); }
.vxb-booking-stats .vxb-cs-gc.is-i3, .vxb-booking-stats .vxb-cs-lgs.is-i3 { background: color-mix( in srgb, var( --vxb-accent ) 52%, var( --vxb-bg-soft ) ); }
.vxb-booking-stats .vxb-cs-gc.is-i4, .vxb-booking-stats .vxb-cs-lgs.is-i4 { background: color-mix( in srgb, var( --vxb-accent ) 68%, var( --vxb-bg-soft ) ); }

/* An hour with no class is not zero demand — it is no offer. Kept visibly
   different from a genuine 0%, and explained in the legend. */
.vxb-booking-stats .vxb-cs-gc.is-none,
.vxb-booking-stats .vxb-cs-lgs.is-none {
	background: transparent;
	box-shadow: inset 0 0 0 1px var( --vxb-border );
}

.vxb-booking-stats .vxb-cs-legend {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	margin-top: 10px; font-size: 0.6875rem; color: var( --vxb-muted );
}
.vxb-booking-stats .vxb-cs-lg,
.vxb-booking-stats .vxb-cs-lgn { display: inline-flex; align-items: center; gap: 5px; }
.vxb-booking-stats .vxb-cs-lgs { width: 15px; height: 10px; border-radius: 2px; }
.vxb-booking-stats .vxb-cs-lgt { color: var( --vxb-muted ); }

/* Needs attention: the rule sits in the header so the panel explains itself. */
.vxb-booking-stats .vxb-cs-rule { font-size: 0.6875rem; color: var( --vxb-muted ); }
.vxb-booking-stats .vxb-cs-watch { list-style: none; margin: 0; padding: 0; }
.vxb-booking-stats .vxb-cs-watch li {
	display: flex; gap: 9px; align-items: flex-start; padding: 8px 0;
	border-top: 1px solid var( --vxb-border );
}
.vxb-booking-stats .vxb-cs-watch li:first-child { border-top: 0; }
.vxb-booking-stats .vxb-cs-wdot {
	width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 6px;
}
.vxb-booking-stats .vxb-cs-watch li.is-quiet .vxb-cs-wdot { background: #e24b4a; }
.vxb-booking-stats .vxb-cs-watch li.is-full .vxb-cs-wdot { background: #1d9e75; }
.vxb-booking-stats .vxb-cs-wtext { min-width: 0; }
.vxb-booking-stats .vxb-cs-wtext strong { display: block; font-size: 0.8125rem; font-weight: 500; color: var( --vxb-text ); }
.vxb-booking-stats .vxb-cs-wnum { display: block; font-size: 0.75rem; color: var( --vxb-muted ); margin-top: 1px; }
