.ccc-chart-container {
	font-family: sans-serif;
	width: 100%;
	padding: 20px 0;
	position: relative;
}

.ccc-chart-body {
	position: relative;
	border-left: 3px solid #000; /* Y-axis handled by border for better alignment */
	padding-bottom: 5px; /* Space above x-axis */
	margin-left: 200px; /* Default margin matching label width */
}

/* Grid Lines */
.ccc-grid-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: #e0e0e0;
	z-index: 0;
}

/* Rows */
.ccc-row {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.ccc-row:last-child {
	margin-bottom: 0;
}

/* Labels */
.ccc-label {
	width: 200px; /* Default fixed width for labels */
	text-align: right;
	padding-right: 10px; /* Default gap */
	font-weight: 500;
	font-size: 14px;
	color: #333;
	flex-shrink: 0;
	/* Add negative margin to pull label left of the axis line */
	margin-left: -200px; /* Default negative margin matching width */
	box-sizing: border-box;
}

/* Bar Container */
.ccc-bar-container {
	flex-grow: 1;
	position: relative;
}

/* Bar */
.ccc-bar {
	height: 40px;
	background-color: #004D73;
	border-radius: 0 4px 4px 0;
	transition: width 1s ease-out;
	position: relative;
	min-width: 2px; /* Ensure visible even if tiny */
}

/* Tooltip on hover */
.ccc-bar:hover .ccc-bar-tooltip {
	opacity: 1;
	visibility: visible;
}

.ccc-bar-tooltip {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 12px;
	font-weight: bold;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	pointer-events: none;
}

/* X Axis */
.ccc-x-axis {
	position: relative;
	height: 30px;
	margin-top: 0;
	border-top: 3px solid #000;
	margin-left: 200px; /* Match chart body margin */
}

.ccc-axis-label {
	position: absolute;
	top: 8px;
	font-size: 12px;
	color: #333;
	white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
	.ccc-chart-body, .ccc-x-axis {
		margin-left: 0 !important;
	}
	
	.ccc-row {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 25px;
	}
	
	.ccc-label {
		width: 100% !important;
		text-align: left;
		padding-right: 0 !important;
		padding-bottom: 5px;
		margin-left: 0 !important;
	}
	
	.ccc-bar-container {
		width: 100%;
	}

	/* Hide grid lines on mobile to avoid clutter */
	.ccc-grid-line {
		display: none;
	}
}
