.print-only {
	display: none;
}

#reportPrintRoot {
	display: none;
}

.reportPrintToolbar {
	display: none;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 100%;
	padding: 0 12px 8px;
}

.reportPrintButton {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--Neutral600, #aeb4bc);
	border-radius: 6px;
	background: var(--Neutral0, #fff);
	color: var(--Neutral900, #02021f);
	font: inherit;
	cursor: pointer;
}

.reportPrintButton:hover {
	background: var(--Neutral300, #eef0f2);
}

@media print {
	@page {
		size: A4 landscape;
		margin: 12mm;
	}

	html,
	body {
		width: auto !important;
		min-width: 0 !important;
		height: auto !important;
		background: #fff !important;
	}

	body > * {
		display: none !important;
	}

	body > #reportPrintRoot {
		display: block !important;
	}

	#reportPrintRoot {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		color: #111 !important;
	}

	.print-only {
		display: block !important;
	}

	.no-print,
	.reportPrintAppearanceControl,
	#reportPrintRoot .buttonsNewLayout,
	#reportPrintRoot button,
	#reportPrintRoot input[type='button'],
	#reportPrintRoot input[type='submit'],
	#reportPrintRoot input[type='reset'],
	#reportPrintRoot input[type='image'],
	#reportPrintRoot svg[onclick],
	#reportPrintRoot img[onclick] {
		display: none !important;
	}

	.reportPrintHeader {
		box-sizing: border-box;
		width: 100%;
		margin: 0 0 10mm;
		padding: 0 0 5mm;
		border-bottom: 1px solid #777;
		color: #111 !important;
		font-family: Arial, sans-serif;
		text-align: left;
	}

	.reportPrintHeaderBrand {
		margin-bottom: 2mm;
		font-size: 18pt;
		font-weight: 700;
		color: #1d4f91 !important;
	}

	.reportPrintHeader h1 {
		margin: 0 0 3mm;
		font-size: 16pt;
		line-height: 1.2;
	}

	.reportPrintHeaderMeta {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4mm;
		font-size: 9pt;
	}

	#reportPrintRoot form,
	#reportPrintRoot table,
	#reportPrintRoot svg,
	#reportPrintRoot img {
		max-width: 100% !important;
	}

	#reportPrintRoot .reportPrintPageUnit {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		break-inside: avoid-page !important;
		page-break-inside: avoid !important;
		break-after: page !important;
		page-break-after: always !important;
	}

	#reportPrintRoot .reportPrintChartPage {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: flex-start !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	#reportPrintRoot .reportPrintChartPage > * {
		box-sizing: border-box !important;
		max-width: 100% !important;
	}

	#reportPrintRoot .reportPrintChartPage canvas {
		display: block !important;
		width: min(100%, var(--report-print-canvas-width, 248mm)) !important;
		height: auto !important;
		max-width: 248mm !important;
		max-height: 155mm !important;
		margin: 0 auto !important;
		object-fit: contain;
		aspect-ratio: var(--report-print-canvas-ratio, auto);
	}

	#reportPrintRoot .reportPrintChartGroup {
		width: 100% !important;
		max-width: 100% !important;
		break-inside: auto !important;
		page-break-inside: auto !important;
	}

	#reportPrintRoot .reportPrintTablePage {
		overflow: visible !important;
	}

	#reportPrintRoot .reportPrintScaledGrid {
		width: var(--report-print-grid-width) !important;
		max-width: none !important;
		margin: 0 auto !important;
		overflow: visible !important;
		zoom: var(--report-print-grid-scale);
	}

	#reportPrintRoot .reportPrintScaledGrid .gridbox,
	#reportPrintRoot .reportPrintScaledGrid .xhdr,
	#reportPrintRoot .reportPrintScaledGrid .objbox,
	#reportPrintRoot .reportPrintScaledGrid table {
		max-width: none !important;
		overflow: visible !important;
	}

	#reportPrintRoot form,
	#reportPrintRoot select,
	#reportPrintRoot input,
	#reportPrintRoot textarea {
		color: #111 !important;
		background: #fff !important;
	}

	#reportPrintRoot select,
	#reportPrintRoot input:not([type='checkbox']):not([type='radio']),
	#reportPrintRoot textarea {
		border: 1px solid #999 !important;
	}

	#reportPrintRoot table {
		border-collapse: collapse;
	}

	#reportPrintRoot thead {
		display: table-header-group;
	}

	#reportPrintRoot tr,
	#reportPrintRoot img,
	#reportPrintRoot canvas,
	#reportPrintRoot .chart-container,
	#reportPrintRoot .highcharts-container {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	/* Podział stron może wypaść pomiędzy kafelkami, ale nigdy w ich środku. */
	#reportPrintRoot .kokpit_summary_row,
	#reportPrintRoot .kokpit_summary_card,
	#reportPrintRoot .portfolio_summary_card,
	#reportPrintRoot .kokpit_portfolio_card,
	#reportPrintRoot .kokpitPortfelDetails,
	#reportPrintRoot .kokpitWykresy,
	#reportPrintRoot #kokpitPortfel,
	#reportPrintRoot .chartCointainerDiv,
	#reportPrintRoot .chartNewLauout,
	#reportPrintRoot div#formOpcjeRaportu,
	#reportPrintRoot form#formOpcjeRaportu,
	#reportPrintRoot form#formOpcjeRaportuBlue {
		break-inside: avoid-page !important;
		page-break-inside: avoid !important;
	}

	#reportPrintRoot a {
		color: inherit !important;
		text-decoration: none !important;
	}

	#reportPrintRoot * {
		box-shadow: none !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
