/* admin/vodMigration.php: metric tiles, overall bar and two table cards on the white canvas. */
.rd-vod-migration {
	display: flex;
	flex-direction: column;
	gap: var(--uui-spacing-3xl);
	padding-block-end: var(--uui-spacing-6xl);
}

.rd-vod-migration-intro,
.rd-vod-migration-note {
	margin: var(--uui-spacing-xs) 0 0;
	color: var(--uui-text-tertiary);
}

.rd-vod-migration-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: var(--uui-spacing-xl);
}

.rd-vod-migration-overall {
	display: flex;
	flex-direction: column;
	gap: var(--uui-spacing-md);
}

.rd-vod-migration-overall > p {
	margin: 0;
}

/* Figma draws the bar 320px wide on its root (four attribute selectors); the page decides the width. */
.rd-vod-migration [data-uui-component="progress-bar"][progress][label] .uui-progress-bar__root {
	inline-size: 100%;
}

.rd-vod-migration-overall > uui-progress-bar {
	max-inline-size: 40rem;
}

/* The card header brings its own padding, so the surface adds none and the table runs edge to edge. */
.rd-vod-migration-card {
	--uui-surface-padding: 0;
	overflow: hidden;
}

/* uui-tabs takes its container's full width, so the toggle needs its own track. */
.rd-vod-migration-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--uui-spacing-xl);
	padding: var(--uui-spacing-lg) var(--uui-spacing-3xl);
	border-block-end: 1px solid var(--uui-border-secondary);
}

.rd-vod-migration-table {
	max-block-size: 70vh;
	overflow: auto;
}

.rd-vod-migration-table table {
	inline-size: 100%;
	/* separate: with collapse, Chrome lets scrolled rows show through above a sticky header. */
	border-collapse: separate;
	border-spacing: 0;
}

.rd-vod-migration-table th {
	position: sticky;
	inset-block-start: 0;
	/* Keeps the header above the rows that scroll under it. */
	z-index: 1;
	background: var(--uui-bg-secondary);
	color: var(--uui-text-tertiary);
	font-weight: 500;
}

.rd-vod-migration-table th,
.rd-vod-migration-table td {
	padding: var(--uui-spacing-lg);
	border-block-end: 1px solid var(--uui-border-secondary);
	text-align: start;
	vertical-align: middle;
	white-space: nowrap;
}

/* Up to nine columns: the inner gaps are tight, the outer edges keep the card header's inset. */
.rd-vod-migration-table :is(th, td):first-child {
	padding-inline-start: var(--uui-spacing-3xl);
}

.rd-vod-migration-table :is(th, td):last-child {
	padding-inline-end: var(--uui-spacing-3xl);
}

.rd-vod-migration-table .rd-vod-migration-number {
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.rd-vod-migration-name {
	min-inline-size: 11rem;
	max-inline-size: 32rem;
}

.rd-vod-migration-table .rd-vod-migration-name {
	white-space: normal;
}

.rd-vod-migration-name > span {
	display: block;
}

.rd-vod-migration-name > span:first-child {
	color: var(--uui-text-primary);
	font-weight: 500;
}

.rd-vod-migration-id {
	color: var(--uui-text-tertiary);
}

.rd-vod-migration-progress {
	inline-size: 10rem;
	min-inline-size: 10rem;
}

.rd-vod-migration-empty {
	color: var(--uui-text-tertiary);
}

/* Centred: the floating Campusbot sits over the bottom right corner. */
.rd-vod-migration-pages {
	display: flex;
	justify-content: center;
	gap: var(--uui-spacing-xl);
	align-items: center;
	padding: var(--uui-spacing-lg) var(--uui-spacing-3xl);
}

/* Sortable header: the selector icon says "click to sort", the arrow marks the active order. */
.rd-vod-migration-sort {
	display: inline-flex;
	align-items: center;
	gap: var(--uui-spacing-xs);
	color: inherit;
	text-decoration: none;
}

.rd-vod-migration-sort:hover,
.rd-vod-migration-sort-active {
	color: var(--uui-text-secondary);
}

.rd-vod-migration-sort .uui-icon {
	--uui-icon-size: 1rem;
	--uui-icon-url: url("/src/img/core27/icons/line/chevron-selector-vertical.svg");
}

.rd-vod-migration-sort-active .uui-icon {
	--uui-icon-url: url("/src/img/core27/icons/line/arrow-down.svg");
}

.rd-vod-migration-completions > span {
	display: block;
}
