/*
 * Zakładki karty produktu z danymi z dokumentów („Ciśnienie robocze",
 * „Tolerancje") — inc/zakladki.php. Ładowane tylko na karcie, która je ma.
 */

.stalesia-zk {
	max-width: 52rem;
}

.stalesia-zk__title {
	margin: 0 0 0.5em;
}

.stalesia-zk__lead {
	margin: 0 0 1em;
}

.stalesia-zk__scroll {
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 1em;
}

.stalesia-zk__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.stalesia-zk__table th,
.stalesia-zk__table td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--wp--preset--color--line, #dde1e6);
	text-align: left;
	vertical-align: top;
}

.stalesia-zk__table thead th {
	background: var(--wp--preset--color--surface-alt, #f4f6f8);
	font-weight: 600;
}

.stalesia-zk__table tbody th {
	font-weight: 500;
	background: var(--wp--preset--color--surface-alt, #f4f6f8);
}

.stalesia-zk__num {
	text-align: right !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.stalesia-zk__kod {
	color: var(--wp--preset--color--muted, #5b6470);
	font-variant-numeric: tabular-nums;
}

.stalesia-zk__dla {
	white-space: nowrap;
}

.stalesia-zk__brak {
	color: var(--wp--preset--color--muted, #5b6470);
}

.stalesia-zk__note,
.stalesia-zk__src {
	margin: 0 0 0.6em;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #5b6470);
}

.stalesia-zk__src a {
	color: var(--wp--preset--color--accent, inherit);
}

/*
 * Wąsko: tabela kształtek (trzy kolumny z długim tekstem) jako karty —
 * wymiar w nagłówku, pod nim tekst dokumentu i wartość dla produktu.
 */
@media (max-width: 640px) {
	.stalesia-zk__table--ksztaltki thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.stalesia-zk__table--ksztaltki,
	.stalesia-zk__table--ksztaltki tbody,
	.stalesia-zk__table--ksztaltki tr,
	.stalesia-zk__table--ksztaltki th,
	.stalesia-zk__table--ksztaltki td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.stalesia-zk__table--ksztaltki tr {
		margin: 0 0 0.75em;
		border: 1px solid var(--wp--preset--color--line, #dde1e6);
	}

	.stalesia-zk__table--ksztaltki th,
	.stalesia-zk__table--ksztaltki td {
		border: 0;
	}

	.stalesia-zk__table--ksztaltki td + td {
		padding-top: 0;
	}

	.stalesia-zk__dla {
		white-space: normal;
	}

	.stalesia-zk__table--ksztaltki td.stalesia-zk__dla::before {
		content: attr(data-label) " ";
		color: var(--wp--preset--color--muted, #5b6470);
	}
}
