/*
 * Cjenik usluga – jednostavan tablični prikaz.
 * Font, veličina i boja teksta preuzimaju se iz teme; boja naglaska iz postavki (--cjsf-accent).
 */
.cjsf-cjenik {
	--cjsf-accent: #2271b1;
	--cjsf-line: rgba(127, 127, 127, .28);
	--cjsf-muted: rgba(127, 127, 127, .95);
	margin: 0 0 1.5em;
}
.cjsf-cjenik *,
.cjsf-cjenik *::before,
.cjsf-cjenik *::after { box-sizing: border-box; }

.cjsf-cjenik .cjsf-cat-title { margin: 1.4em 0 .5em; }
.cjsf-cjenik .cjsf-cat-title:first-child { margin-top: 0; }

.cjsf-cjenik .cjsf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cjsf-cjenik .cjsf-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	border: 0;
	font-size: inherit;
	line-height: 1.4;
	table-layout: fixed; /* iste širine stupaca u svim kategorijama */
	min-width: 460px;
}
.cjsf-cjenik .cjsf-table thead .cjsf-col-name { width: 56%; }
.cjsf-cjenik .cjsf-table th,
.cjsf-cjenik .cjsf-table td {
	padding: .6em .75em;
	border: 0;
	border-bottom: 1px solid var(--cjsf-line);
	text-align: left;
	vertical-align: top;
	background: none;
}
.cjsf-cjenik .cjsf-table thead th {
	border-bottom: 3px solid var(--cjsf-accent);
	font-weight: 700;
	font-size: .9em;
	line-height: 1.25;
	vertical-align: bottom;
}
.cjsf-cjenik .cjsf-table tbody th { font-weight: 400; }
.cjsf-cjenik .cjsf-table td {
	font-variant-numeric: tabular-nums; /* iznosi koriste tvrdi razmak pa se ne prelamaju */
}
.cjsf-cjenik .cjsf-table tbody tr:hover th,
.cjsf-cjenik .cjsf-table tbody tr:hover td { background: rgba(127, 127, 127, .06); }

.cjsf-cjenik .cjsf-old { opacity: .6; margin-right: .25em; }
.cjsf-cjenik .cjsf-new { color: inherit; box-shadow: inset 0 -.4em 0 var(--cjsf-accent); }
.cjsf-cjenik .cjsf-disc,
.cjsf-cjenik .cjsf-adate {
	display: block;
	font-size: .8em;
	color: var(--cjsf-muted);
	white-space: normal;
}

.cjsf-cjenik .cjsf-note { margin: .5em 0 0; font-size: .875em; color: var(--cjsf-muted); }
.cjsf-cjenik .cjsf-empty { margin: 0; }

.cjsf-cjenik .cjsf-dl {
	margin-top: 1.25em;
	padding-top: .75em;
	border-top: 1px solid var(--cjsf-line);
	font-size: .9em;
}
.cjsf-cjenik .cjsf-dl-b {
	display: inline-block;
	margin: 0 .2em;
	padding: .15em .8em;
	border: 1px solid var(--cjsf-accent);
	border-radius: 3px;
	background: var(--cjsf-accent);
	color: #1a1a1a; /* tamni tekst na žutoj boji Formule radi čitljivosti */
	font-weight: 700;
	text-decoration: none;
}
.cjsf-cjenik .cjsf-dl-b:hover,
.cjsf-cjenik .cjsf-dl-b:focus { background: transparent; color: inherit; }
.cjsf-cjenik .cjsf-dl-d { margin-left: .4em; color: var(--cjsf-muted); }
.cjsf-cjenik .cjsf-arch { margin-top: .5em; }
.cjsf-cjenik .cjsf-arch summary { cursor: pointer; }
.cjsf-cjenik .cjsf-arch ul { margin: .4em 0 0; padding-left: 1.2em; max-height: 14em; overflow: auto; }

.cjsf-cjenik .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Mobitel: svaki redak postaje kartica s oznakama stupaca. */
@media (max-width: 600px) {
	.cjsf-cjenik .cjsf-scroll { overflow: visible; }
	.cjsf-cjenik .cjsf-table { min-width: 0; table-layout: auto; }
	.cjsf-cjenik .cjsf-table thead {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
	}
	.cjsf-cjenik .cjsf-table,
	.cjsf-cjenik .cjsf-table tbody,
	.cjsf-cjenik .cjsf-table tr,
	.cjsf-cjenik .cjsf-table th,
	.cjsf-cjenik .cjsf-table td { display: block; width: 100%; }
	.cjsf-cjenik .cjsf-table tr { padding: .5em 0; border-bottom: 1px solid var(--cjsf-line); }
	.cjsf-cjenik .cjsf-table tbody th { padding: 0 0 .3em; border: 0; font-weight: 400; } /* podebljan je samo način plaćanja */
	.cjsf-cjenik .cjsf-table td {
		display: flex;
		justify-content: space-between;
		gap: 1em;
		padding: .15em 0;
		border: 0;
		white-space: normal;
	}
	.cjsf-cjenik .cjsf-table td::before {
		content: attr(data-label);
		color: var(--cjsf-muted);
		font-size: .875em;
	}
	.cjsf-cjenik .cjsf-table td > * { text-align: right; }
	.cjsf-cjenik .cjsf-table tbody tr:hover th,
	.cjsf-cjenik .cjsf-table tbody tr:hover td { background: none; }
}

/* Način plaćanja ostaje u jednom redu. */
.cjsf-cjenik .cjsf-col-name strong { white-space: nowrap; }
