/**
 * Aluminum Pricing – Print catalog layout
 */

/* Screen-only print header (hidden until print) */
.alp-print-header {
	display: none;
}

/* Print button styles live in style.css for screen; kept minimal here */

@media print {
	@page {
		margin: 1.2cm 1cm;
		size: A4;
	}

	/* Isolate pricing catalog on the page */
	body * {
		visibility: hidden !important;
	}

	body .alp-pricing-wrap,
	body .alp-pricing-wrap * {
		visibility: visible !important;
	}

	body .alp-pricing-wrap {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		color: #000 !important;
		box-shadow: none !important;
	}

	/* Print header: logo + timestamp */
	.alp-print-header {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 1.25rem;
		padding-bottom: 0.75rem;
		border-bottom: 3px solid #c82026;
		page-break-after: avoid;
	}

	.alp-print-logo {
		max-height: 52px;
		max-width: 200px;
		width: auto;
		height: auto;
	}

	.alp-print-company {
		font-size: 1.25rem;
		font-weight: 700;
		color: #011c40;
	}

	.alp-print-meta {
		text-align: left;
		direction: rtl;
		font-size: 0.8rem;
		color: #333;
	}

	.alp-print-meta strong {
		display: block;
		color: #011c40;
	}

	/* Hide interactive / web-only UI */
	.alp-print-toolbar,
	.alp-filters-sidebar,
	.alp-btn-order,
	.alp-btn-sheet-chart,
	.alp-btn-ingot-chart,
	.alp-btn-reset,
	.alp-loading-overlay,
	.alp-no-print {
		display: none !important;
	}

	.alp-sheets-layout {
		display: block !important;
	}

	.alp-section {
		page-break-inside: avoid;
		margin-bottom: 1.5rem;
	}

	.alp-section-header {
		border-right: none !important;
		border-bottom: 2px solid #011c40;
		padding: 0 0 0.5rem 0 !important;
		margin-bottom: 0.75rem;
	}

	.alp-title {
		color: #011c40 !important;
		font-size: 1.1rem !important;
	}

	.alp-pricing-table {
		width: 100% !important;
		font-size: 9pt !important;
	}

	.alp-pricing-table thead {
		background: #011c40 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.alp-pricing-table thead th {
		color: #fff !important;
		padding: 0.4rem 0.35rem !important;
		border: none !important;
	}

	.alp-pricing-table tbody td {
		padding: 0.35rem !important;
		border: none !important;
		color: #000 !important;
	}

	.alp-pricing-table tbody tr:nth-child(even) {
		background: #f2f4f7 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.alp-change-up {
		color: #0d5c38 !important;
	}

	.alp-change-down {
		color: #a51a1f !important;
	}

	a[href]::after {
		content: none !important;
	}
}
