
.admin-interface.model-scenario .inline-related .module.hide-title > h2 {
	display: none;
}

.admin-interface.model-scenario [id="scenario_form"] .field-features_inline label {
	display: none;
}

.admin-interface.model-scenario [id="scenario_form"] .form-row.field-meter_leaks #id_meter_leaks,
.admin-interface.model-scenario [id="scenario_form"] .form-row.field-surrounding_homes #id_surrounding_homes {
	columns: 3
}

.admin-interface.model-scenario [id="scenario_form"] .form-row.field-scenario_matrix_editor .flex-container {
	flex-direction: column;
}

.admin-interface.model-scenario [id="scenario_form"] .form-row.field-scenario_matrix_editor .flex-container label {
	width: auto;
}

.admin-interface.model-scenario [id="scenario_form"] .form-row.field-values .flex-container {
	flex-flow: row wrap;
}
.admin-interface.model-scenario [id="scenario_form"] .form-row.field-values .flex-container label[for="id_values_0"] {
	/* flex: 1 0 100%; */
	display: none;
}

.admin-interface.model-scenario [id="scenario_form"] .form-row.field-values .flex-container {
	background-image: url("../img/map-20241120.826e08e9a6d7.webp");
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
}

.inline-group .tabular tr.has_original td:not(.original) {
	padding-top: 12px !important;
}

.image-field-preview {
	/* object-fit: cover; */
	margin-right: 8px;
}
ul.sortedm2m {
	min-height: 0 !important;
}
.field-show_logo img[alt="False"] {
	opacity: 0;
}
.inline-group .tabular .hide-title .column-textoverlay,
.inline-group .tabular .hide-title .column-imageoverlay {
	user-select: none;
	color: transparent;
	overflow: hidden;
	text-indent: -2000px;
}
.inline-group .tabular .hide-title .original {
	position: relative;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	vertical-align: middle !important;
}
.inline-group .tabular .hide-title .original > p {
	user-select: none;
	color: transparent;
	position: relative;
	overflow: hidden;
	text-indent: -2000px;
	height: 60%;
	margin: 9px;
	padding: 9px 0;
	/* vertical-align: auto !important; */
}

.inline-group .tabular tr.has_original td {
	height: inherit;
	padding-top: inherit;
}

:root .admin-interface {
	--header-link-color: #055570;
	--header-link-hover-color: #6CB2C2;
}

.theme-toggle svg.theme-icon-when-auto,
.theme-toggle svg.theme-icon-when-light,
.theme-toggle svg.theme-icon-when-dark {
	color: transparent;
}

/* Scenario matrix editor (clickable 1:1 grid + modal) */
.scenario-matrix-editor-below-form {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}
.scenario-matrix-editor-below-form h2 {
	margin: 0 0 0.25rem 0;
	font-size: 1rem;
}
.scenario-matrix-editor-below-form h2.size-toggle-container {
	cursor: pointer;
}
.scenario-matrix-editor-below-form h2 .size-toggle {
	display: inline-block;
	margin-left: 0.5em;
	cursor: pointer;
}
.scenario-matrix-editor-below-form .help {
	color: #666;
	margin: 0 0 0.5rem 0;
	font-size: 0.9rem;
}
.scenario-matrix-placeholder {
	color: #666;
	margin: 0.5em 0;
}
.scenario-matrix-editor-wrapper {
	margin: 0.5em 0;
	overflow-x: auto;
}
.scenario-matrix-grid {
	aspect-ratio: 1 / 1;
	width: 100%;
	background: #f0f0f0;
	background-image: url("../img/map-20260305.5b3d1ac5db27.webp");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border: none;
	cursor: crosshair;
	position: relative;
}
.scenario-matrix-grid::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(192, 192, 192, 0.4) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(192, 192, 192, 0.4) 1px, transparent 1px);
	background-size: 1% 1%;
}
.scenario-matrix-grid.expanded {
	width: 3000px;
}
.scenario-matrix-grid-cell {
	position: absolute;
	width: 1%;
	height: 1%;
	background-color: rgba(255, 192, 192, 0.4);
	pointer-events: none;
}
.scenario-matrix-tooltip {
	position: fixed;
	z-index: 10000;
	background: #333;
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	max-width: 280px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.scenario-matrix-tooltip.visible {
	opacity: 1;
	visibility: visible;
}
.scenario-matrix-tooltip-coords {
	font-weight: normal;
	opacity: 0.75;
}
.scenario-matrix-tooltip-prop {
	display: block;
}
.scenario-matrix-modal {
	position: fixed;
	inset: 0;
	z-index: 11000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.scenario-matrix-modal.hidden {
	display: none;
}
.scenario-matrix-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.scenario-matrix-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	padding: 1.25rem;
	min-width: 320px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
}
.scenario-matrix-modal-title {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
}
.scenario-matrix-modal-form .form-row {
	margin-bottom: 0;
	border-bottom: none;
}
.scenario-matrix-modal-form .form-row label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: bold;
}
.scenario-matrix-modal-form .form-row input[type="text"] {
	width: 100%;
	padding: 0.35rem 0.5rem;
	box-sizing: border-box;
}
.scenario-matrix-modal-form .form-row label:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sm-properties-list {
	display: block;
}
.sm-properties-list label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0;
	font-weight: normal;
}
.scenario-matrix-modal-actions {
	margin-top: 1rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.scenario-matrix-modal-actions .button {
	cursor: pointer;
	padding: 0.5rem 1rem;
}
