/*Song overview: labelled fields, a status strip of the parts, and small charts*/
.ov {
	--st-none: transparent;
	--st-invited: #4a5574;
	--st-sent: #6f86bf;
	--st-takes: var(--accent);
	--st-full: color-mix(in srgb, var(--ok) 60%, var(--bg));
	--st-final: var(--ok);
	display: flex;
	flex-direction: column;
	gap: var(--s5);
}

/*Headline: groups of fields*/
.ov-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4) var(--s5);
}
.ov-group-name,
.ov-block-name {
	margin: 0 0 var(--s2);
	font: 600 0.8rem var(--font);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.ov-fields {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
}
.ov-fields .pv-stat {
	min-width: 96px;
}

/*Status colours, shared by the strip, legend and funnel*/
.ov-st-none {
	background: var(--st-none);
	box-shadow: inset 0 0 0 1px var(--line);
}
.ov-st-invited { background: var(--st-invited); }
.ov-st-sent { background: var(--st-sent); }
.ov-st-takes { background: var(--st-takes); }
.ov-st-full { background: var(--st-full); }
.ov-st-final { background: var(--st-final); }

/*The parts in time order*/
.ov-strip {
	position: relative;
	height: 40px;
}
.ov-seg {
	position: absolute;
	top: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	min-width: 3px;
	padding: 0;
	border: none;
	border-radius: 3px;
	box-sizing: border-box;
	overflow: hidden;
	cursor: pointer;
}
button.ov-seg {
	outline: 1px solid var(--bg);
	outline-offset: -1px;
}
button.ov-seg:hover {
	filter: brightness(1.18);
}
button.ov-seg:focus-visible {
	outline: 2px solid var(--text);
}
.ov-seg.is-off,
.ov-swatch.is-off {
	background: repeating-linear-gradient(135deg, var(--bg-sunk) 0 4px, var(--line-soft) 4px 8px);
	cursor: default;
}
.ov-seg.ov-st-none {
	box-shadow: inset 0 0 0 1px var(--line);
	background: var(--bg-sunk);
}
.ov-seg-n {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 3px;
	border-radius: 9px;
	background: var(--part, var(--line));
	color: var(--part-ink);
	font: 600 0.72rem/1 var(--font-mono);
}
.ov-ticks {
	position: relative;
	height: 1.1rem;
	margin-top: 2px;
	font: 0.72rem var(--font-mono);
	color: var(--text-muted);
}
.ov-ticks span {
	position: absolute;
	transform: translateX(-50%);
}
.ov-ticks span:first-child {
	transform: none;
}
.ov-legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2) var(--s4);
	margin-top: var(--s2);
	font-size: 0.85rem;
	color: var(--text-muted);
}
.ov-key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ov-key b {
	color: var(--text);
	font: 600 0.85rem var(--font-mono);
}
.ov-swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

/*Two blocks side by side*/
.ov-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s5);
	align-items: start;
}
.ov-grid-wide {
	grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
}
@media (max-width: 900px) {
	.ov-grid,
	.ov-grid-wide {
		grid-template-columns: 1fr;
	}
}
.ov-block {
	min-width: 0;
	padding-top: var(--s3);
	border-top: 1px solid var(--line-soft);
}
.ov-sub {
	margin: var(--s3) 0 var(--s2);
	font: 400 0.85rem var(--font);
	color: var(--text-muted);
}
.ov-small {
	font-size: 0.8rem;
	color: var(--text-muted);
}

/*Horizontal bars: name, track, value*/
.ov-bars {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ov-bar-row {
	display: grid;
	grid-template-columns: 7.5rem 1fr 4.5rem;
	align-items: center;
	gap: var(--s3);
	font-size: 0.9rem;
}
.ov-bar-track {
	height: 12px;
	border-radius: 2px;
	background: var(--bg-sunk);
	overflow: hidden;
}
.ov-bar-fill {
	display: block;
	height: 100%;
	box-shadow: none;
}
.ov-bar-fill.is-plain {
	background: var(--blue);
}
.ov-bar-value {
	font: 600 0.85rem var(--font-mono);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/*Takes per day*/
.ov-cols {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 120px;
	padding-top: 1rem;
	border-bottom: 1px solid var(--line);
}
.ov-col {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	flex: 1 1 0;
	height: 100%;
}
.ov-col:hover .ov-col-bar {
	filter: brightness(1.2);
}
.ov-col-bar {
	width: 100%;
	max-width: 28px;
	min-height: 0;
	border-radius: 2px 2px 0 0;
	background: var(--accent);
}
.ov-col-v {
	font: 0.7rem var(--font-mono);
	color: var(--text-muted);
	margin-bottom: 2px;
}
.ov-axis {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	font: 0.72rem var(--font-mono);
	color: var(--text-muted);
}

/*People*/
.ov-table-wrap {
	max-height: 480px;
	overflow: auto;
}
.ov-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.ov-table th {
	position: sticky;
	top: 0;
	background: var(--bg-raised);
	font: 600 0.78rem var(--font);
	color: var(--text-muted);
	text-align: left;
}
.ov-table th,
.ov-table td {
	padding: 5px var(--s2);
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}
.ov-table .ov-num {
	text-align: right;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}
.ov-table .is-warn {
	color: var(--danger);
}
.ov-table tr.is-quiet .ov-who {
	color: var(--text);
}
.ov-who {
	max-width: 16rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ov-when {
	color: var(--text-muted);
	white-space: nowrap;
}
.ov-chip {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 18px;
	margin-right: 3px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--part);
	color: var(--part-ink);
	font: 600 0.72rem/1 var(--font-mono);
}

/*The overview's place in the step strip: an icon, then a gap before step 1*/
.step-icon svg {
	display: block;
}
.step-gap {
	flex: none;
	width: 1px;
	margin: var(--s2) var(--s2);
	background: var(--line);
}
.step-overview {
	flex: 0 0 auto;
}
