/*
   The match report (match-report.js): the game's stats, its score bands, and
   the scoresheet of the legs picked beside their heatmap, each part under a line as
   Player stats' everyone.
   Loaded in order with the others (see index.html): a later rule wins. */

.report-body {
	max-width: calc(120 * var(--m));
}

.report-filled[hidden],
.report-none[hidden] {
	display: none;
}

.report-none {
	text-align: center;
}

.report-part {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: calc(2 * var(--m));
}

.report-part + .report-part {
	padding-top: calc(2 * var(--m));
	border-top: 1px solid var(--text-muted);
}

.report-part .stats-scroll {
	max-width: 100%;
}

.report-game {
	margin: 0 0 calc(0.5 * var(--m));
	text-align: center;
	font-size: calc(4 * var(--m));
	font-weight: 600;
	color: var(--checkout);
}

.report-heading {
	margin: 0 0 calc(1.5 * var(--m));
	font-size: calc(3.4 * var(--m));
	font-weight: 600;
}

/* Which legs: as Game history's controls, the kind on the left and the leg or the range's ends beside it. */
.report-pick {
	justify-content: center;
	max-width: 100%;
	margin-bottom: calc(1.5 * var(--m));
}

.report-pick[hidden],
.report-one[hidden],
.report-range[hidden] {
	display: none;
}

.report-range {
	display: flex;
	align-items: center;
	gap: calc(1.5 * var(--m));
}

/* The scoresheet beside the heatmap; upright, one under the other. */
.report-leg {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: calc(1 * var(--m)) calc(4 * var(--m));
	max-width: 100%;
}

.report-sheet .report-score {
	padding-right: calc(0.6 * var(--m));
	text-align: right;
}

.report-sheet .report-left {
	padding-left: calc(0.6 * var(--m));
	text-align: left;
	color: var(--text-muted);
}

.report-sheet tbody th {
	text-align: right;
	color: var(--text-muted);
}

.report-sheet .report-totals {
	border-top: 1px solid var(--text-muted);
}

.report-sheet .report-totals th {
	text-align: left;
	color: var(--text-soft);
}

/* With several legs, a line naming each over its rows. */
.report-sheet .report-leg-title th {
	padding-top: calc(1.5 * var(--m));
	text-align: left;
	color: var(--checkout);
	font-weight: 600;
}

.report-sheet .report-leg-title span {
	color: var(--text-muted);
	font-weight: 400;
}
