.piechart-no-data {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	font-size: 14px;
}

.piechart-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.piechart-container {
	flex: 1;
	min-height: 0;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.piechart-tooltip {
	padding: 8px 12px;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

	.piechart-indicator {
		width: 12px;
		height: 12px;
		border-radius: 2px;
		margin-right: 8px;
		display: inline-block;
	}

	.tooltip-value {
		font-weight: bold;
		margin-top: 4px;
	}
}

.piechart-legend {
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-height: 68px;
	overflow-y: auto;
	width: 100%;
	align-content: flex-start;
}

.piechart-legend-item {
	display: flex;
	align-items: center;
	font-size: 10px;
	white-space: nowrap;
	margin-bottom: 2px;
	cursor: pointer;

	flex: 0 0 auto;
}

.piechart-legend-label {
	width: 12px;
	height: 12px;
	margin-right: 4px;
	border-radius: 2px;
}

/* Media query for smaller containers */
@media (max-height: 300px) {
	.piechart-legend {
		max-height: 40%;
	}
}
