/* Table widget. Colours and type come from the widget's Style tab; these are quiet defaults. */
.ndet-table-wrap {
	--ndet-table-line: rgba(35, 31, 32, 0.14);
	overflow-x: auto;
	border: 1px solid var(--ndet-table-line);
	-webkit-overflow-scrolling: touch;
}
.ndet-table-wrap .ndet-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: inherit;
}
.ndet-table-wrap .ndet-table th,
.ndet-table-wrap .ndet-table td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--ndet-table-line);
	background: transparent;
	text-align: left;
	vertical-align: top;
}
.ndet-table-wrap .ndet-table th {
	font-weight: 600;
	background: rgba(35, 31, 32, 0.06);
}
.ndet-table-wrap .ndet-table tbody tr:last-child td {
	border-bottom: 0;
}

/* On phones: each row a card, every value with its column heading. */
@media (max-width: 767px) {
	.ndet-table-phone-stack .ndet-table-wrap {
		border: 0;
		overflow: visible;
	}
	.ndet-table-phone-stack .ndet-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.ndet-table-phone-stack .ndet-table,
	.ndet-table-phone-stack .ndet-table tbody,
	.ndet-table-phone-stack .ndet-table tr,
	.ndet-table-phone-stack .ndet-table td {
		display: block;
	}
	.ndet-table-phone-stack .ndet-table tr {
		margin-bottom: 12px;
		border: 1px solid var(--ndet-table-line);
		border-radius: inherit;
		overflow: hidden;
	}
	.ndet-table-phone-stack .ndet-table-wrap .ndet-table tbody tr:last-child td {
		border-bottom: 1px solid var(--ndet-table-line);
	}
	.ndet-table-phone-stack .ndet-table-wrap .ndet-table tr td:last-child {
		border-bottom: 0;
	}
	.ndet-table-phone-stack .ndet-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 0.8em;
		font-weight: 600;
		opacity: 0.8;
	}
}
