/* ==========================================================================
   beOnline — TablePress skin (sesija 03, §5). Ucitava ga child functions.php [8] samo na stranama sa tabelom.
   TablePress ostaje izvor podataka (Dejan ga menja); ovde je samo izgled iz tokena (style.css §2).
   Checklista design-review §8: zaglavlje na tint pozadini, zebra, prva kolona bold, cene desno i bold,
   zaobljen kontejner sa ivicom, bez plugin-plave; telefon: <= 4 kolone „stack", >= 5 skrol sa senkom.
   ========================================================================== */

.bo-site .tablepress {
	--text-color: var(--beo-dark);
	--head-text-color: var(--beo-dark);
	--head-bg-color: var(--beo-light);
	--head-active-text-color: var(--beo-dark);
	--head-active-bg-color: #dbe6e8;
	--head-sort-arrow-color: var(--beo-muted);
	--odd-text-color: var(--beo-dark);
	--odd-bg-color: #ffffff;
	--even-text-color: var(--beo-dark);
	--even-bg-color: #f6f9f9;
	--hover-text-color: var(--beo-dark);
	--hover-bg-color: #eef3f4;
	--border-color: var(--beo-line);
	--padding: 12px 16px;
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-variant-numeric: tabular-nums;
}

/* na tint sekciji zaglavlje malo tamnije od pozadine sekcije */
.bo-site .bo-sekcija--tint .tablepress {
	--head-bg-color: #dbe6e8;
}

/* zaobljen kontejner */
.bo-tabelle-wrap {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--beo-line);
	border-radius: var(--beo-radius, 8px);
	background: #ffffff;
}
.bo-tabelle-wrap + .bo-tabelle-wrap {
	margin-top: 24px;
}
.bo-site .bo-tabelle-wrap .tablepress > :where(thead, tbody, tfoot) > tr > * {
	border-top: 0;
	border-bottom: 1px solid var(--beo-line);
	vertical-align: middle;
	line-height: 1.5;
}
.bo-site .bo-tabelle-wrap .tablepress > tbody > tr:last-child > * {
	border-bottom: 0;
}
.bo-site .tablepress thead th {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
}
.bo-site .tablepress tbody td.column-1 {
	font-weight: 600;
}

/* cene desno i bold (kolone sa cenom po tabeli) */
.bo-site .tablepress-id-31 :is(td, th).column-2,
.bo-site .tablepress-id-34 :is(td, th).column-3,
.bo-site .tablepress-id-35 :is(td, th).column-3 {
	text-align: right;
}
.bo-site .tablepress-id-31 td.column-2,
.bo-site .tablepress-id-34 td.column-3,
.bo-site .tablepress-id-35 td.column-3 {
	font-weight: 700;
	white-space: nowrap;
}
.bo-site .tablepress-id-34 td.column-3 {
	white-space: normal;
}
.bo-site .tablepress-id-tarife-international :is(td, th):is(.column-3, .column-4) {
	text-align: right;
}
.bo-site .tablepress-id-tarife-international td:is(.column-3, .column-4) {
	font-weight: 700;
}
.bo-site .tablepress-id-tarife-international td.column-2 {
	color: var(--beo-muted);
}

/* #30 poredjenje paketa: kolone paketa centrirane, kvacica zlatna, red „Preis monatlich" istaknut */
.bo-site .tablepress-id-30 :is(td, th):not(.column-1) {
	text-align: center;
}
.bo-haken {
	display: inline-block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--beo-gold);
	position: relative;
	vertical-align: middle;
}
.bo-haken::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 5px;
	width: 6px;
	height: 12px;
	border: solid var(--beo-dark);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.bo-site .tablepress tr.bo-zeile-hervor > td {
	background: var(--beo-gold-tint, rgba(200, 151, 5, 0.08));
	font-weight: 700;
	font-size: 18px;
}

/* #35: redovi-podnaslovi (Lizenzen, Sonstige Leistungen) i prazni razmaci */
.bo-site .tablepress tr.bo-zeile-leer {
	display: none;
}
.bo-site .tablepress tr.bo-zeile-titel > td {
	background: var(--beo-light);
	font-weight: 700;
}

/* DataTables (Tarife International): pretraga, broj stavki i paginacija u tokenima */
.bo-site .dt-container {
	font-variant-numeric: tabular-nums;
}
.bo-site .dt-container .dt-search input,
.bo-site .dt-container .dt-length select {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--beo-line);
	border-radius: var(--beo-radius-sm, 4px);
	background: #ffffff;
	color: var(--beo-dark);
}
.bo-site .dt-container .dt-search input:focus,
.bo-site .dt-container .dt-length select:focus {
	outline: 2px solid var(--beo-gold);
	outline-offset: 1px;
	border-color: var(--beo-gold);
}
.bo-site .dt-container .dt-paging .dt-paging-button {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--beo-line) !important;
	border-radius: var(--beo-radius-sm, 4px) !important;
	background: #ffffff !important;
	color: var(--beo-dark) !important;
}
.bo-site .dt-container .dt-paging .dt-paging-button.current,
.bo-site .dt-container .dt-paging .dt-paging-button:hover {
	background: var(--beo-gold) !important;
	border-color: var(--beo-gold) !important;
	color: var(--beo-dark) !important;
}
.bo-site .dt-container .dt-info {
	color: var(--beo-muted);
}
.bo-site .dt-container .dt-layout-row {
	margin: 12px 0;
}
.bo-site .bo-tabelle-wrap .dt-container .dt-layout-row:not(.dt-layout-table) {
	padding: 0 16px;
}
.bo-tabelle-wrap--scroll .dt-container .dt-layout-table {
	margin: 0;
}

/* telefon: <= 4 kolone kao kartice („stack"), >= 5 horizontalni skrol sa senkom na desnoj ivici */
@media screen and (max-width: 767px) {
	.bo-tabelle-wrap--stack {
		border: 0;
		background: transparent;
		overflow: visible;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress thead {
		display: none;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress,
	.bo-site .bo-tabelle-wrap--stack .tablepress tbody,
	.bo-site .bo-tabelle-wrap--stack .tablepress tr,
	.bo-site .bo-tabelle-wrap--stack .tablepress td {
		display: block;
		width: 100%;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress tr {
		margin: 0 0 12px;
		border: 1px solid var(--beo-line);
		border-radius: var(--beo-radius, 8px);
		background: #ffffff;
		overflow: hidden;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 10px 16px;
		background: #ffffff;
		text-align: right;
		border-bottom: 1px solid var(--beo-line);
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td:last-child {
		border-bottom: 0;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--beo-muted);
		text-align: left;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td.column-1 {
		display: block;
		background: var(--beo-light);
		text-align: left;
		font-weight: 700;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td.column-1::before {
		content: none;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress > tbody > tr > td:empty {
		display: none;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress tr.bo-zeile-titel {
		margin-top: 24px;
		border: 0;
		background: transparent;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress tr.bo-zeile-titel > td.column-1 {
		padding-left: 0;
		background: transparent;
		font-size: 19px;
	}
	.bo-site .bo-tabelle-wrap--stack .tablepress tr.bo-zeile-hervor > td {
		background: var(--beo-gold-tint, rgba(200, 151, 5, 0.08));
	}

	.bo-tabelle-wrap--scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		background:
			linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
			linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(0, 1, 25, 0.18), rgba(0, 1, 25, 0)) left center / 12px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(0, 1, 25, 0.18), rgba(0, 1, 25, 0)) right center / 12px 100% no-repeat scroll,
			#ffffff;
	}
	.bo-tabelle-wrap--scroll .tablepress {
		min-width: 100%;
		background: transparent;
	}
}
