body {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	background: #f4f7f8;
	color: #12202a;
}

main {
	max-width: 1080px;
	margin: 40px auto 64px;
	padding: 0 20px;
}

.cjenik-hero {
	margin: 0 0 28px;
}

.cjenik-kicker {
	margin: 0 0 6px;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0c6e7a;
}

h1 {
	font-size: 2rem;
	margin: 0 0 8px;
}

.cjenik-hero p {
	line-height: 1.5;
	color: #40515c;
	margin: 0 0 8px;
}

.cjenik-meta {
	font-size: 0.95rem;
}

.cjenik-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
}

.cjenik-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 999px;
	background: #0c6e7a;
	color: #fff;
	text-decoration: none;
	font-family: system-ui, sans-serif;
	font-size: 0.9rem;
}

.cjenik-btn--ghost {
	background: transparent;
	color: #0c6e7a;
	border: 1px solid #0c6e7a;
}

.cjenik-toolbar {
	margin: 0 0 14px;
}

.cjenik-search input {
	width: 100%;
	max-width: 360px;
	padding: 10px 14px;
	border: 1px solid #d7e1e6;
	border-radius: 10px;
	font-size: 1rem;
	font-family: system-ui, sans-serif;
}

.cjenik-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-family: system-ui, sans-serif;
}

.cjenik-pager[hidden] {
	display: none !important;
}

.cjenik-page {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid #0c6e7a;
	border-radius: 999px;
	background: transparent;
	color: #0c6e7a;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
}

.cjenik-page:hover {
	background: #eef6f7;
}

.cjenik-page.is-current {
	background: #0c6e7a;
	color: #fff;
}

.cjenik-page.is-current:hover {
	background: #0c6e7a;
}

.cjenik-page-gap {
	padding: 0 2px;
	color: #40515c;
}

.cjenik-table tr[hidden],
.cjenik-upit tr[hidden] {
	display: none !important;
}

.cjenik-table-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #d7e1e6;
	border-radius: 14px;
}

.cjenik-table {
	width: 100%;
	border-collapse: collapse;
	font-family: system-ui, sans-serif;
	font-size: 0.95rem;
}

.cjenik-table th,
.cjenik-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #e6eef1;
}

.cjenik-table th {
	background: #eef6f7;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #40515c;
}

.cjenik-table tbody tr:last-child td {
	border-bottom: 0;
}

.cjenik-table td:nth-child(n + 3) {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cjenik-upit-title {
	margin: 28px 0 12px;
	font-family: system-ui, sans-serif;
	font-size: 1.35rem;
}

.cjenik-upit {
	width: 100%;
	border-collapse: collapse;
	font-family: system-ui, sans-serif;
	font-size: 0.95rem;
}

.cjenik-upit th,
.cjenik-upit td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #e6eef1;
	white-space: normal;
}

.cjenik-upit th {
	background: #eef6f7;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #40515c;
}

.cjenik-upit tbody tr:last-child td {
	border-bottom: 0;
}

.cjenik-upit td:last-child {
	white-space: nowrap;
}

.cjenik-stock.is-dostupno {
	color: #0b6b45;
	font-weight: 600;
}

.cjenik-stock.is-nedostupno {
	color: #9b2c2c;
	font-weight: 600;
}

a {
	color: #0c6e7a;
}

.empty,
.cjenik-empty-filter {
	padding: 20px;
	background: #fff;
	border: 1px solid #d7e1e6;
	border-radius: 12px;
}

.back {
	margin: 28px 0 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Cards up to 1023 px, not only on a phone: from 721 px the table with up to 12 columns (3+ nowrap) was wider than
   its frame, and on an iPad held upright the sidrena cijena and its date were hidden behind a sideways scroll
   (CX-SID-103).
   CX-SID-104: the script cjenik-fit.js (from 721 px) shows a table as a table where it fits in its frame and as cards
   where it does not, at any width: .cjenik-fit keeps the table up to 1023 px, .cjenik-cards makes cards from 1024 px.
   Without the script these rules hold as they are: cards up to 1023 px, a table from 1024. :where() keeps the
   specificity of the rules as it was. In a card, a word longer than its line breaks where the cell wraps at all
   (not in the columns kept on one line). */
@media (max-width: 1023px) {
	.cjenik-table:where(:not(.cjenik-fit)) thead {
		display: none;
	}

	.cjenik-table:where(:not(.cjenik-fit)),
	.cjenik-table:where(:not(.cjenik-fit)) tbody,
	.cjenik-table:where(:not(.cjenik-fit)) tr,
	.cjenik-table:where(:not(.cjenik-fit)) td {
		display: block;
		width: 100%;
	}

	/* A card is as wide as its frame: with its padding outside a width of 100 % it was 28 px wider, the frame scrolled
	   sideways and cut off the right edge (CX-SID-95). */
	.cjenik-table:where(:not(.cjenik-fit)) tr {
		box-sizing: border-box;
		padding: 12px 14px;
		border-bottom: 1px solid #e6eef1;
	}

	.cjenik-table:where(:not(.cjenik-fit)) td {
		padding: 6px 0;
		border: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.cjenik-table:where(:not(.cjenik-fit)) td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #6b7c86;
		margin-bottom: 2px;
	}

	.cjenik-upit:where(:not(.cjenik-fit)) thead {
		display: none;
	}

	.cjenik-upit:where(:not(.cjenik-fit)),
	.cjenik-upit:where(:not(.cjenik-fit)) tbody,
	.cjenik-upit:where(:not(.cjenik-fit)) tr,
	.cjenik-upit:where(:not(.cjenik-fit)) td {
		display: block;
		width: 100%;
	}

	.cjenik-upit:where(:not(.cjenik-fit)) tr {
		box-sizing: border-box;
		padding: 12px 14px;
		border-bottom: 1px solid #e6eef1;
	}

	.cjenik-upit:where(:not(.cjenik-fit)) td {
		padding: 6px 0;
		border: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.cjenik-upit:where(:not(.cjenik-fit)) td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #6b7c86;
		margin-bottom: 2px;
	}
}

/* The same cards from 1024 px, for a table the script found too wide for its frame (CX-SID-104). */
.cjenik-table:where(.cjenik-cards) thead {
	display: none;
}

.cjenik-table:where(.cjenik-cards),
.cjenik-table:where(.cjenik-cards) tbody,
.cjenik-table:where(.cjenik-cards) tr,
.cjenik-table:where(.cjenik-cards) td {
	display: block;
	width: 100%;
}

/* A card is as wide as its frame: with its padding outside a width of 100 % it was 28 px wider, the frame scrolled
   sideways and cut off the right edge (CX-SID-95). */
.cjenik-table:where(.cjenik-cards) tr {
	box-sizing: border-box;
	padding: 12px 14px;
	border-bottom: 1px solid #e6eef1;
}

.cjenik-table:where(.cjenik-cards) td {
	padding: 6px 0;
	border: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cjenik-table:where(.cjenik-cards) td::before {
	content: attr(data-label);
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7c86;
	margin-bottom: 2px;
}

.cjenik-upit:where(.cjenik-cards) thead {
	display: none;
}

.cjenik-upit:where(.cjenik-cards),
.cjenik-upit:where(.cjenik-cards) tbody,
.cjenik-upit:where(.cjenik-cards) tr,
.cjenik-upit:where(.cjenik-cards) td {
	display: block;
	width: 100%;
}

.cjenik-upit:where(.cjenik-cards) tr {
	box-sizing: border-box;
	padding: 12px 14px;
	border-bottom: 1px solid #e6eef1;
}

.cjenik-upit:where(.cjenik-cards) td {
	padding: 6px 0;
	border: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cjenik-upit:where(.cjenik-cards) td::before {
	content: attr(data-label);
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7c86;
	margin-bottom: 2px;
}
