@import '~heading.less';

.Metric {
	padding: 20px;

	h1 {
		color: @greyDark;
		font-size: 15px;
		line-height: 15px;
		font-weight: 500;
		padding: 0 0 20px;
		margin: 0;
	}

	h3 {
		font-size: 35px;
		line-height: 35px;
		font-weight: 400;

		span {
			font-size: 21px;
			font-weight: 500;
		}
	}

	h5 {
		font-size: 13px;
		line-height: 19px;
		color: @greyMedium;
		font-weight: 400;
		margin: 20px 0 0;
	}

	.Value {
		display: flex;
		flex-direction: row;

		> div:first-child {
			flex: 1 1 auto;
		}

		> div:nth-child(2) {
			flex: 1 1 auto;
			text-align: right;
		}
	}

	.Quartile {
		display: flex;
		flex-direction: row;
		margin: 20px 0 0;

		> div {
			flex: 1 1 auto;
			height: 10px;
			background: @greyLight;
		}

		> div:nth-child(1) {
			margin: 0 5px 0 0;
			border-radius: 3px 0 0 3px;

			&:global(.active) {
				background: @negative;
			}
		}

		> div:nth-child(2) {
			margin: 0 5px 0 0;

			&:global(.active) {
				background: desaturate(lighten(@negative, 40%), 25%);
			}
		}

		> div:nth-child(3) {
			margin: 0 5px 0 0;

			&:global(.active) {
				background: desaturate(lighten(@positive, 40%), 25%);
			}
		}

		> div:nth-child(4) {
			border-radius: 0 3px 3px 0;

			&:global(.active) {
				background: @positive;
			}
		}
	}
}