.map-fuel-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 12px 12px 0 0;
	background: var(--panel);
	font-size: 11px;
	color: var(--muted);
}
.cpn-route-label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 250px;
	min-width: 0;
}
.cpn-route-label select {
	min-width: 0;
	width: 100%;
	max-width: 460px;
	padding: 7px;
	font-size: 12px;
}
#cpn-status {
	flex: 1 1 230px;
}
.cpn-legend {
	padding: 8px 14px;
	margin: 0;
	background: var(--panel);
	border-inline: 1px solid var(--line);
	font-size: 10px;
	color: var(--muted);
}
.cpn-marker.passed {
	opacity: 0.5;
}
.cpn-marker.fallback {
	background: #41493f;
	border-style: dashed;
}
.leaflet-popup-content {
	overflow-wrap: anywhere;
}
.leaflet-popup-content button {
	margin-top: 10px;
}
.map-fuel-controls .checkbox {
	display: flex;
	gap: 9px;
	align-items: center;
	font-size: 12px;
	flex-shrink: 0;
}
.map-fuel-controls .checkbox input {
	width: 18px;
	height: 18px;
}
.cpn-legend + #map {
	border-radius: 0 0 16px 16px;
}
.cpn-marker {
	display: grid;
	place-items: center;
	width: 28px;
	height: 31px;
	background: #284d35;
	border: 2px solid #b8db9a;
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 12px #0007;
}
.cpn-marker span {
	font-size: 17px;
	line-height: 1;
}
.cpn-marker.local {
	background: #344836;
	border-color: #88a77a;
}
.cpn-marker.planned {
	background: #6a4a1e;
	border-color: var(--accent);
}
.trip-fuel-panel {
	margin-top: 15px;
	padding: 14px;
	background: #a8cd7b09;
	border: 1px solid #7a985144;
	border-radius: 10px;
}
.fuel-auto-badge {
	display: block;
	color: var(--green);
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 9px;
}
.trip-fuel-panel > p {
	font-size: 11px;
	margin-bottom: 8px;
}
.trip-fuel-panel .actions {
	gap: 6px;
}
.trip-fuel-panel .actions button {
	font-size: 11px;
	padding: 8px 10px;
}
.trip-fuel-panel > small {
	font-size: 9px;
	display: block;
	margin-top: 12px;
}
.fuel-readout {
	margin: 15px 0;
}
.fuel-readout > strong {
	display: block;
	font-size: 28px;
	color: var(--accent);
	margin-bottom: 10px;
	font-variant-numeric: tabular-nums;
}
.fuel-readout small {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
}
.fuel-market-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	gap: 12px;
}
.fuel-market-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 17px;
}
.fuel-market-card > div {
	min-width: 0;
	flex: 1;
}
.fuel-market-card strong {
	font-size: 13px;
	display: block;
}
.fuel-market-card small {
	font-size: 10px;
	color: var(--muted);
	display: block;
	margin-top: 5px;
}
.fuel-market-card > b {
	font-size: 18px;
	color: var(--accent);
	white-space: nowrap;
}
.fuel-market-card > b > small {
	margin-top: 0;
	text-align: right;
}
.fuel-market-card .country-code {
	flex-shrink: 0;
}
.fuel-warning {
	border-color: #b8995c;
}
.fuel-quote-stops {
	margin: 16px 0;
	border: 1px solid var(--line);
	background: #b0cd8107;
	border-radius: 10px;
	padding: 15px;
}
.fuel-quote-stops > strong {
	font-size: 12px;
	color: var(--green);
}
.fuel-quote-stops ol {
	padding-left: 19px;
	font-size: 11px;
	margin-block: 12px;
}
.fuel-quote-stops li {
	padding: 5px 0;
}
.fuel-quote-stops li > strong {
	display: block;
	font-size: 11px;
	color: var(--accent);
}
.fuel-quote-stops small {
	font-size: 10px;
	color: var(--muted);
	display: block;
}
.fuel-quote-stops p {
	font-size: 12px;
	margin: 10px 0;
}
.fleet-refueling .moving-road svg {
	animation-play-state: paused;
}
.fleet-refueling .trip-fuel-panel {
	border-color: var(--accent);
	animation: refuel-glow 2s ease-in-out infinite;
}
@keyframes refuel-glow {
	50% {
		box-shadow: 0 0 17px #f6b65d18;
	}
}
@media (max-width: 780px) {
	.map-fuel-controls {
		align-items: flex-start;
	}
	.map-fuel-controls > span {
		font-size: 9px;
		max-width: 155px;
		text-align: right;
	}
	.fuel-market-grid {
		grid-template-columns: 1fr;
	}
	.trip-fuel-panel .actions {
		flex-direction: column;
	}
	.trip-fuel-panel .actions button {
		width: 100%;
	}
	.fuel-market-card > b {
		font-size: 19px;
	}
	.fuel-readout > strong {
		font-size: 25px;
	}
}
.dialog-error {
	padding: 12px;
	border: 1px solid #a66c51;
	background: #523429;
	border-radius: 8px;
	color: #ffdac1;
	font-size: 13px;
}
