// Resumo do ciclo: aba Painel (DashboardController) e caixa "Resumo do
// ciclo" na edição do ciclo (CycleController).
@use '../abstracts' as *;

.cycle-info-ctn {
	display: flex;
	flex-flow: column wrap;
	justify-content: space-around;
	align-items: baseline;
	align-content: space-around;
	height: 750px;
	background-color: $sementes-green-light;

	&.sementes-dashboard {
		flex-flow: row wrap;
	}

	h1 {
		font-size: 21px;
		font-weight: 600;
	}

	h2 {
		color: #353838;
		font-weight: 400;
	}

	> div {
		padding: 20px;
		width: 40%;
		height: 150px;
		background-color: $wp-white;
		box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 1px 3px 1px;
	}

	.cycle-status {
		height: 130px;
		overflow: auto;
		margin-bottom: 10px;

		h2 {
			margin-top: 5px;
			margin-bottom: 0;
		}
	}

	.medium-div {
		height: 455px;
	}

	.tall-div {
		height: 678px;
	}

	.medium-div-list,
	.tall-div-list {
		overflow: auto;
		margin-bottom: 10px;
	}

	.medium-div-list {
		height: 385px;
	}

	.tall-div-list {
		height: 608px;
	}

	// Com line-height de 10px o texto encavalava quando quebrava linha
	.cycle-summary h2 {
		margin: 0.4em 0;
		line-height: 1.4;
	}

	@include respond-below(wide) {
		h1 {
			font-size: 18px;
		}

		h2 {
			font-size: 1.2em;
		}
	}

	@include respond-below(desktop) {
		h1 {
			font-size: 15px;
		}

		h2 {
			font-size: 1.1em;
		}
	}

	// Celular: cards em coluna, na largura toda, com o visual de card do WP
	@include respond-below(tablet) {
		&,
		&.sementes-dashboard {
			flex-flow: column nowrap;
			align-items: stretch;
			gap: 12px;
			height: auto;
			padding: 12px;
		}

		> div,
		.cycle-status,
		.medium-div,
		.tall-div {
			width: auto;
			height: auto;
			padding: 12px 16px;
			border: 1px solid $wp-border;
			box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
		}

		.cycle-status {
			margin: 0;
			padding: 0;
			border: 0;
			box-shadow: none;
		}

		h1 {
			margin: 0.3em 0 0.6em;
		}

		.medium-div-list,
		.tall-div-list {
			height: auto;
			max-height: 320px;
		}
	}
}

.cycle-status-tag {
	padding: 4px 6px;
	border-radius: 3px;
	color: $wp-white;
	font-weight: 900;
	width: 75px;
	text-align: center;
}

.open-cycle-tag {
	background: #c6e1c6;
	color: #5b841b;
}

.closed-cycle-tag {
	background: #eba3a3;
	color: #761919;
}

.suspended-cycle-tag {
	background: #f8dda7;
	color: #94660c;
}

h2.suspended-cycle-warning {
	color: $sementes-warning;
}
