.imow-sc-table {
	--imow-table-cols: 1.6fr 1fr 1fr 1fr;
	--imow-value-align: right;
	--imow-row-divider: var(--border-primary, #E5E7EB);

	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: var(--bg-static-white, #FFFFFF);
	border: 1px solid var(--border-primary, #E5E7EB);
	border-radius: 12px;
	font-family: inherit;
	color: var(--text-primary, #030712);
	overflow: hidden;
}

.imow-sc-table__thead {
	display: grid;
	grid-template-columns: var(--imow-table-cols);
	border-bottom: 1px solid var(--imow-row-divider);
}
:where(.imow-sc-table__th) {
	padding: 12px 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
	color: var(--text-secondary, #4B5563);
}
:where(.imow-sc-table__th--label) { text-align: left; }
:where(.imow-sc-table__th--elec)    { color: var(--bg-brand-strong, #0E3D33); }
:where(.imow-sc-table__th--savings) { color: var(--text-brand-base, #1B6E58); }

.imow-sc-table__tr {
	display: grid;
	grid-template-columns: var(--imow-table-cols);
	border-bottom: 1px solid var(--imow-row-divider);
}
.imow-sc-table__tr:last-of-type { border-bottom: 0; }
.imow-sc-table__tr--highlight {
	background-color: var(--bg-highlight-muted, #FDFFF0);
}
.imow-sc-table__tr--fiveyear .imow-sc-table__td {
	font-weight: 700;
	font-size: 0.9375rem;
}
:where(.imow-sc-table__tr--fiveyear .imow-sc-table__td--label) {
	font-weight: 800;
	color: var(--text-primary, #030712);
}

:where(.imow-sc-table__td) {
	padding: 16px 10px;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	display: flex;
	align-items: center;
}
:where(.imow-sc-table__td--label) {
	justify-content: flex-start;
	text-align: left;
	font-weight: 500;
	color: var(--text-secondary, #4B5563);
}
:where(.imow-sc-table__tr--highlight .imow-sc-table__td--label) {
	font-weight: 700;
	color: var(--text-primary, #030712);
}
:where(.imow-sc-table__td--elec),
:where(.imow-sc-table__td--diesel),
:where(.imow-sc-table__td--savings) {
	justify-content: var(--imow-value-align);
	text-align: var(--imow-value-align);
}
:where(.imow-sc-table__td--elec)    { font-weight: 600; color: var(--bg-brand-strong, #0E3D33); }
:where(.imow-sc-table__td--diesel)  { color: var(--text-muted, #9CA3AF); }
:where(.imow-sc-table__td--savings) { font-weight: 600; color: var(--text-brand-base, #1B6E58); }

@media (max-width: 767px) {
	.imow-sc-table__thead {
		display: none;
	}
	.imow-sc-table__tr {
		display: flex;
		flex-direction: column;
		padding: 4px 16px;
		border-bottom: 1px solid var(--imow-row-divider);
	}
	.imow-sc-table__tr:last-of-type {
		border-bottom: 0;
	}
	.imow-sc-table__tr--highlight {
		border-bottom-color: var(--border-primary, #E5E7EB);
	}
	.imow-sc-table__td {
		padding: 4px 0 !important;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 0.875rem;
	}
	.imow-sc-table__td--label {
		font-weight: 700 !important;
		font-size: 1rem !important;
		color: var(--text-primary, #030712) !important;
		padding: 4px 0 !important;
		margin: 0 !important;
		border-bottom: 0;
	}
	.imow-sc-table__td--elec::before,
	.imow-sc-table__td--diesel::before,
	.imow-sc-table__td--savings::before {
		content: attr(data-label);
		font-weight: 500;
		color: var(--text-secondary, #4B5563);
		text-align: left;
	}
}
