/* ============================================================
   SWIXX SST — PRINT CSS
   Layout printa (boje, pozadine, page-breakovi) ide kroz inline
   styleove u HTML-u forme. Ovaj fajl: sakriva non-print elemente,
   resetira kontejner, ukida scrollbare na STEP 3/4 wrapperima,
   forsira da tabele s min-width 730/750 stanu na A4, i osigurava
   bijela slova na tamnim pozadinama.

   Raspored: stranica 1 = header + STEP 1/2, stranica 2 = STEP 3/4,
   stranica 3 = STEP 5 + reference + footer.
   ============================================================ */

@media print {

	/* Sakrij non-print elemente */
	#preheader, header, footer,
	.dontprint, .swixx_header, .swixx_footer,
	.cookie_consent_outer, .support_back {
		display: none !important;
	}

	/* Kontejner reset */
	html, body {
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
	}
	.grid-container, .grid-x, .grid-padding-x,
	.cell, section.content {
		max-width: 100% !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	#sst_holder {
		padding: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	/* Forsiraj boje/pozadine pri printu */
	* {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	/* Ukini scrollbar-ove (STEP 3/4 wrappers imaju inline overflow: auto) */
	#sst_holder, #sst_holder *,
	#sst_form, #sst_form > div, #sst_form > div > div,
	#sst_form table {
		overflow: visible !important;
	}

	/* STEP 3/4 inner tabele imaju min-width 750/730px — forsiraj
	   da stanu na A4 (useable širina ~700-740px). */
	#sst_holder table[style*="min-width: 750px"],
	#sst_holder table[style*="min-width:750px"],
	#sst_holder table[style*="min-width: 730px"],
	#sst_holder table[style*="min-width:730px"] {
		min-width: 0 !important;
		width: 100% !important;
	}
	#sst_holder table[style*="min-width: 750px"] td,
	#sst_holder table[style*="min-width:750px"] td,
	#sst_holder table[style*="min-width: 730px"] td,
	#sst_holder table[style*="min-width:730px"] td {
		font-size: 11px !important;
		padding: 3px !important;
	}

	/* Bijela slova na svim tamnim pozadinama.
	   Boje: STEP 1 #8586af, STEP 4 wrapper #61627c/#60627c,
	   STEP 4 HIGH/LOW #88a154, STEP 4 pill #590f36,
	   STEP 3 CONSIDER boxes #bebebe i #8b8d90.
	   Descendants s vlastitim background-om (npr. bijeli boxovi
	   unutar tamno-lila STEP 4) izuzeti su preko
	   :not([style*="background-color"]) da zadrže inline boju. */
	#sst_holder [style*="background-color: #8586af"],
	#sst_holder [style*="background-color:#8586af"],
	#sst_holder [style*="background-color: #61627c"],
	#sst_holder [style*="background-color:#61627c"],
	#sst_holder [style*="background-color: #60627c"],
	#sst_holder [style*="background-color:#60627c"],
	#sst_holder [style*="background-color: #88a154"],
	#sst_holder [style*="background-color:#88a154"],
	#sst_holder [style*="background-color: #590f36"],
	#sst_holder [style*="background-color:#590f36"],
	#sst_holder [style*="background-color: #bebebe"],
	#sst_holder [style*="background-color:#bebebe"],
	#sst_holder [style*="background-color: #8b8d90"],
	#sst_holder [style*="background-color:#8b8d90"] {
		color: #ffffff !important;
	}
	#sst_holder [style*="background-color: #8586af"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#8586af"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #61627c"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#61627c"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #60627c"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#60627c"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #88a154"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#88a154"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #590f36"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#590f36"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #bebebe"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#bebebe"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color: #8b8d90"] *:not(input):not([style*="background-color"]),
	#sst_holder [style*="background-color:#8b8d90"] *:not(input):not([style*="background-color"]) {
		color: #ffffff !important;
	}

	/* Bijeli border na checkbox-ima u STEP 1 kad su checked */
	#sst_holder [style*="background-color: #8586af"] input[type='checkbox']:checked,
	#sst_holder [style*="background-color:#8586af"] input[type='checkbox']:checked {
		border: 2px solid #ffffff !important;
	}

	/* Page break utility (iz starog Swixx sitea) */
	.pagebreak { page-break-after: always; }
}
