#byTypeChart, #byYearChart {
	max-height: 300px;
	height: 300px !important;
}

/* CPI Tooltip Styling */
.cpi-label-container {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: #555;
	margin-bottom: 0.5rem;
}

.info-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: help;
}

.info-tooltip .info-icon {
	width: 16px;
	height: 16px;
	color: #2a5298;
	transition: color 0.2s;
}

.info-tooltip:hover .info-icon {
	color: #1e3c72;
}

.info-tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: 280px;
	background: #1e3c72;
	color: white;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	transition: opacity 0.2s, visibility 0.2s;
}

.info-tooltip .tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #1e3c72;
}

.info-tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Toggle Switch Styling */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 40px;
	cursor: pointer;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 40px;
	transition: 0.3s;
	display: flex;
	align-items: center;
	padding: 0 8px;
}

.toggle-slider::before {
	content: "";
	position: absolute;
	height: 32px;
	width: 32px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
	background-color: #2a5298;
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(80px);
}

.toggle-text {
	display: none;
}