.driver-profile-tabs {
	display: flex;
	gap: 8px;
	max-width: 100%;
	margin-bottom: 22px;
	overflow-x: auto;
	border-bottom: 1px solid var(--line);
	scrollbar-width: thin;
}

.driver-profile-tabs[hidden],
.driver-profile-panel[hidden] {
	display: none;
}

.driver-profile-tabs button {
	flex: 0 0 auto;
	min-height: 46px;
	padding: 10px 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
}

.driver-profile-tabs button[aria-selected="true"] {
	border-bottom-color: var(--green);
	color: var(--green);
}

.driver-profile-tabs button:not([aria-selected="true"]):hover {
	color: var(--text);
}

.driver-profile-tabs button:focus-visible,
.driver-profile-panel:focus-visible {
	outline: 2px solid var(--blue-2);
	outline-offset: -2px;
}

.driver-profile-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	min-width: 0;
}

.driver-profile-panel > .results-section {
	min-width: 0;
}

.driver-profile-panel .results-table-wrap {
	position: relative;
}

.driver-profile-usage-table {
	min-width: 890px;
}

.driver-profile-usage-table th:not(:first-child),
.driver-profile-usage-table td:not(:first-child) {
	width: 8%;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.driver-profile-usage-table th:nth-last-child(-n+2),
.driver-profile-usage-table td:nth-last-child(-n+2) {
	width: 14%;
}

.driver-profile-usage-table .driver-usage-validity-heading {
	width: 13%;
}

.driver-usage-validity {
	min-width: 95px;
}

.driver-usage-validity .driver-clean-ratio {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.driver-usage-validity .driver-clean-ratio strong {
	font-size: .9rem;
}

.driver-usage-validity .driver-clean-mini-meter {
	margin-top: 7px;
}

.driver-profile-usage-table .driver-usage-contact.is-car-contact {
	color: var(--red);
}

.driver-profile-usage-table .driver-usage-contact.is-wall-contact {
	color: var(--orange);
}

.driver-profile-usage-table .car-cell {
	min-width: 230px;
}

.driver-profile-usage-table .car-brand-logo {
	width: 30px;
	height: 20px;
}

.driver-profile-usage-table .car-cell span {
	white-space: normal;
}

.driver-profile-usage-track {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 250px;
}

.driver-profile-usage-track .compact-server-map {
	width: 64px;
	height: 48px;
	padding: 5px;
	border-radius: 6px;
}

.driver-profile-usage-track-copy {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	white-space: normal;
}

.driver-profile-usage-track-copy strong {
	color: var(--text);
	font-weight: 900;
}

.driver-profile-usage-track-copy span {
	color: var(--blue-2);
	font-weight: 900;
}

@media (max-width: 620px) {
	.driver-profile-tabs { gap: 0; }
	.driver-profile-tabs button { padding: 10px; font-size: 12px; }
}
