/* =========================================================
   Nelb Tables — frontend (v1.0.0)
   Vendita (chiaro): header testo scuro con linea arancio sotto,
   niente sfondo pieno, righe con bordi sottili #EDEDED, valori
   Libre Franklin 800 arancio.
   Nolopoint (dark, dal mockup PDP noleggio): banda header #242424,
   etichette celesti #6BC0EC maiuscole, valori #FF6038, sotto-
   etichette #9A9A9A, bordi #3A3A3A.
   Responsive: sotto i 640px stack in card riga-per-riga.
   ========================================================= */

.nelb-tbl {
	margin: 12px 0;
	font-family: 'Gudea', sans-serif;
}
.nelb-tbl__table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}
.nelb-tbl__table th,
.nelb-tbl__table td {
	text-align: left;
	padding: 12px 14px;
	border: 0;
	vertical-align: top;
}
.nelb-tbl__table th {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.nelb-tbl__val {
	display: block;
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.2;
}
.nelb-tbl__sub {
	display: block;
	font-size: 11.5px;
	margin-top: 2px;
}

/* ── Vendita (chiaro) ── */
.nelb-tbl--vendita .nelb-tbl__table th {
	color: #212121;
	border-bottom: 2px solid #FE3F12;
	background: none;
}
.nelb-tbl--vendita .nelb-tbl__table td {
	border-bottom: 1px solid #EDEDED;
}
.nelb-tbl--vendita .nelb-tbl__val { color: #FE3F12; }
.nelb-tbl--vendita .nelb-tbl__sub { color: #8C8C8C; }

/* ── Nolopoint (dark, dal mockup) ── */
.nelb-tbl--nolo .nelb-tbl__table thead tr {
	background: #242424;
}
.nelb-tbl--nolo .nelb-tbl__table th {
	color: #6BC0EC;
	border-bottom: 0;
}
.nelb-tbl--nolo .nelb-tbl__table td {
	border-bottom: 1px solid #3A3A3A;
	background: #1F1F1F;
}
.nelb-tbl--nolo .nelb-tbl__table tbody tr:last-child td {
	border-bottom: 0;
}
.nelb-tbl--nolo .nelb-tbl__val { color: #FF6038; }
.nelb-tbl--nolo .nelb-tbl__sub { color: #9A9A9A; }
.nelb-tbl--nolo {
	border-radius: 10px;
	overflow: hidden;
}

/* ── Responsive: stack in card riga-per-riga ── */
@media (max-width: 640px) {
	.nelb-tbl__table,
	.nelb-tbl__table tbody,
	.nelb-tbl__table tr,
	.nelb-tbl__table td {
		display: block;
		width: 100%;
	}
	.nelb-tbl__table thead { display: none; }
	.nelb-tbl__table tr {
		margin-bottom: 10px;
		border-radius: 10px;
		overflow: hidden;
	}
	.nelb-tbl--vendita .nelb-tbl__table tr {
		border: 1px solid #EDEDED;
	}
	.nelb-tbl__table td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
	}
	.nelb-tbl__table td::before {
		content: attr(data-label);
		font-family: 'Libre Franklin', sans-serif;
		font-weight: 800;
		font-size: 11px;
		letter-spacing: .06em;
		text-transform: uppercase;
		flex: 0 0 auto;
	}
	.nelb-tbl--vendita .nelb-tbl__table td::before { color: #4A4A4A; }
	.nelb-tbl--nolo .nelb-tbl__table td::before { color: #6BC0EC; }
	.nelb-tbl__val { font-size: 16px; text-align: right; }
	.nelb-tbl__sub { text-align: right; }
	.nelb-tbl__table td > span { margin-left: auto; }
	.nelb-tbl__table td { flex-wrap: wrap; }
	.nelb-tbl__table td .nelb-tbl__sub { flex-basis: 100%; }
}
