/*
 * Print baseline.
 *
 * Every operational module that ships a printable artifact (badges, quotes,
 * invoices, purchase orders, work orders, travelers, inspection records,
 * certificates of conformance, training records, audit reports, customer
 * reports, vendor / supplier documents) builds on these defaults. Module-
 * specific print CSS lives alongside the module template.
 *
 * Print is always a separate surface — never assume browser scaling will
 * make a screen layout produce a usable PDF.
 */

@page {
	size: Letter;
	margin: 0.75in;
}

@media print {

	* {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	html, body {
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-size: 10pt;
		line-height: 1.35;
	}

	a {
		color: #000 !important;
		text-decoration: none;
	}
	/* Reveal external URLs in print output for audit traceability. Skip
	   in-page anchors and javascript: links. */
	a[href]:not([href^="#"]):not([href^="javascript:"])::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #444 !important;
	}

	/* Chrome we never want on paper. */
	.eos-skip-link,
	.eos-header,
	.eos-footer,
	.eos-nav-primary,
	.eos-nav-toggle,
	.eos-os-shell__sidebar,
	.eos-os-shell__topbar,
	.eos-toast,
	.eos-no-print {
		display: none !important;
	}

	/* Table behavior. */
	table {
		page-break-inside: auto;
		border-collapse: collapse;
	}
	thead { display: table-header-group; }
	tfoot { display: table-footer-group; }

	tr,
	img,
	figure,
	.eos-signature-block,
	.eos-page-break-avoid {
		page-break-inside: avoid;
	}

	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
	}

	.eos-page-break-before { page-break-before: always; }
	.eos-page-break-after  { page-break-after: always; }
}
