/**
 * Print and PDF output.
 *
 * Payroll teams genuinely need to print a timesheet, so the printed page drops
 * the form, the site chrome and the affiliate slot, and keeps the breakdown
 * table and the workings.
 */

@media print {
	.wt-form,
	.wt-options,
	.wt-no-print,
	.wt-actions,
	nav,
	header,
	footer,
	aside,
	.site-header,
	.site-footer {
		display: none !important;
	}

	.wt-result {
		margin: 0;
		padding: 0;
		border-top: 0;
	}

	.wt-result__figures {
		gap: 0.5rem;
	}

	.wt-figure {
		border: 1px solid #000;
		background: none;
		padding: 0.5rem;
	}

	.wt-figure__value {
		font-size: 1.25rem;
	}

	.wt-breakdown {
		page-break-inside: avoid;
	}

	.wt-breakdown th,
	.wt-breakdown td {
		border-bottom: 1px solid #999;
		padding: 0.3rem 0.4rem;
	}

	/* Collapsed details would hide the workings on paper. */
	.wt-workings[open],
	.wt-workings {
		display: block;
	}

	.wt-workings summary {
		list-style: none;
		font-weight: 700;
	}

	.wt-caveats,
	.wt-disclaimer {
		font-size: 10pt;
		page-break-inside: avoid;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	@page {
		margin: 15mm;
	}
}

@media print {
	.wt-toolnav,
	.wt-crumbs,
	.wt-affiliate,
	.wt-sitefoot,
	.wt-hub__grid {
		display: none !important;
	}

	.wt-byline {
		border-top: 1px solid #999;
		font-size: 10pt;
	}
}
