.loi-iv-ve-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

.loi-iv-ve-table {
	min-width: 44rem;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.loi-iv-ve-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	font-size: 0.875rem;
}

.loi-iv-ve-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.loi-iv-ve-cell {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	min-inline-size: 5.25rem;
}

.loi-iv-ve-choice {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.loi-iv-ve-choice input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.loi-iv-ve-dot {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 999px;
	display: block;
	box-shadow: inset 0 0 0 2px #fff;
	border: 2px solid currentColor;
}

.loi-iv-ve-dot--good {
	background: oklch(var(--su));
	color: oklch(var(--su));
}

.loi-iv-ve-dot--neutral {
	background: oklch(var(--wa));
	color: oklch(var(--wa));
}

.loi-iv-ve-dot--bad {
	background: oklch(var(--er));
	color: oklch(var(--er));
}

.loi-iv-ve-choice input:checked + .loi-iv-ve-dot {
	box-shadow: 0 0 0 2px currentColor, inset 0 0 0 2px #fff;
}

.loi-iv-ve-choice input:focus-visible + .loi-iv-ve-dot {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.loi-iv-ve-pref {
	width: 4.5rem;
	min-width: 4.5rem;
	margin-inline: auto;
}

.loi-iv-ve-hint {
	color: oklch(var(--er));
	font-size: 0.875rem;
	margin: 0;
}

#loi-iv-ve-synthesis.modal {
	align-items: stretch;
}

#loi-iv-ve-synthesis .loi-iv-ve-modal-box {
	width: min(96vw, 76rem);
	max-width: 76rem;
	max-height: 90vh;
	overflow-y: auto;
	margin: auto;
}

/* Synthèse : distinction claire des colonnes */
.loi-iv-ve-synth .loi-iv-ve-synth-label {
	border-inline-end: 1px solid oklch(var(--bc) / 0.18);
	background: oklch(var(--b1));
}

.loi-iv-ve-synth .loi-iv-ve-synth-group {
	border-inline-start: 1px solid oklch(var(--bc) / 0.18);
	border-bottom: 1px solid oklch(var(--bc) / 0.16);
	background: oklch(var(--b2));
	font-weight: 700;
	letter-spacing: 0.02em;
}

.loi-iv-ve-synth .loi-iv-ve-synth-col {
	border-inline-start: 1px solid oklch(var(--bc) / 0.14);
	padding-inline: 0.65rem;
	min-width: 6.5rem;
	max-width: 11rem;
}

.loi-iv-ve-synth .loi-iv-ve-synth-col--alt {
	background: oklch(var(--b2) / 0.55);
}

.loi-iv-ve-synth thead .loi-iv-ve-synth-col {
	border-bottom: 2px solid oklch(var(--bc) / 0.2);
	background: oklch(var(--b2));
}

.loi-iv-ve-synth thead .loi-iv-ve-synth-col--alt {
	background: oklch(var(--b3) / 0.45);
}

.loi-iv-ve-synth tbody tr:nth-child(even) .loi-iv-ve-synth-col--alt {
	background: oklch(var(--b2) / 0.75);
}

@media (max-width: 640px) {
	#loi-iv-ve-synthesis.modal {
		align-items: flex-end;
	}

	#loi-iv-ve-synthesis .loi-iv-ve-modal-box {
		width: 100%;
		max-width: none;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
}
