@import 'src/Components/GlobalStyles/colors';

.chartContainer {
	// box-shadow: 0 3px 13px 0 $dropShadow;
	padding: 20px 0;
	margin: 10px;
	margin: 10px;

	.titleFirstChart {
		text-align: center;
		margin-top: 20px;
	}

	[class^='recharts-wrapper'] {
		margin: 0 auto;
	}

	@media (max-width: 1000px) {
		//margin: 0 auto 0 50px;
		width: 100%;

		div {
			margin: 0 auto;
		}
	}

	h3 {
		display: flex;
		justify-content: center;
		text-align: center;
		text-transform: capitalize;
	}
	//@media (max-width: 1200px) {
	//  margin: 0 auto 0 50px;
	//  width: 100%;
	//
	//  div {
	//    margin: 0 auto;
	//  }
	//}

	&.printChartContainer {
		display: grid;
		max-width: 900px;
		grid-template-columns: 50% 50%;
		gap: 20px;
		margin-bottom: 180px;
	}
}

.chartContainerFirst {
	// box-shadow: 0 3px 13px 0 $dropShadow;
	padding: 20px;
	margin: 10px;
	position: relative;

	@media (max-width: 1200px) {
		width: auto;
		overflow-x: scroll;
	}

	& > div:first-of-type,
	& > div:last-of-type {
		display: grid;
		grid-template-columns: 80px 1fr;
		align-items: center;
		margin-left: 30px;

		& > div:first-of-type {
			//background-color: red;
		}
	}

	svg {
		g:nth-child(5),
		g:nth-child(6),
		g:nth-child(7),
		g:nth-child(8),
		g:nth-child(9) {
			transform: rotateZ(90deg) translate(3%, -1392%) scale(0.02, 32);
			//
			//@media (max-width: 1000px) {
			//  transform: rotateZ(90deg) translate(-45px, -425px) scale(0.04, -8);
			//  transform-origin: left;
			//  width: 400px;
			//}
		}

		& > path {
			background-color: red;
		}
	}

	ul {
		display: flex;
		justify-content: center;
	}

	tspan {
		display: none;
	}

	&__paragraph1,
	&__paragraph2 {
		position: absolute;
		top: 40px;
		left: 20px;

		@media (max-width: 1200px) {
			top: 60px;
		}
	}

	&__paragraph2 {
		top: 140px;

		@media (max-width: 1200px) {
			top: 180px;
		}
	}
}

.chartContainerFirst > div:first-of-type {
	ul:nth-child(1) {
		span,
		path {
			display: none;
		}
	}
}

.title {
	text-align: center;
	padding: 20px 0;
	display: inline-block;
}

.firstChartDashboard {
	@media (max-width: 1420px) {
		width: 470px;
		overflow-x: scroll;
	}
}
