:root {
	--color-gray: #e5e5e5;
	--color-sucess: #32bf84;
	--color-charcoal: #343837;
	--primary: #da4540;
	--secondary: #f56549;
	--dark-1: #202b4b;
	--dark-2: #333333;
	--dark-3: #333333;
	--txt: #21232f;
}

.userForm {
	label {
		margin-bottom: 5px;
	}
	input {
		margin-bottom: 1rem;
		padding-left: 5px;
	}

	.registerButton {
		background-color: #0073aa;
		border: none;
		color: white;
		cursor: pointer;
		font-size: 16px;
		height: 40px;
		margin-top: 1rem;
		padding: 0 2rem;
	}

	select {
		border: 1px solid var(--color-gray);
		font-size: 1rem;
		padding-left: 5px;
		width: 100%;
	}
}

#acf_form_atquimicos,
.userForm {
	.description {
		font-size: 12px;
	}

	label {
		display: block;

		width: 100%;
	}

	input {
		border: 1px solid var(--color-gray);
		font-size: 1.2rem;
		height: 40px;
		width: 100%;
	}

	select {
		height: 40px;
	}

	.acf-button {
		background-color: #0073aa;
		border: none;
		color: white;
		cursor: pointer;
		font-size: 16px;
		height: 40px;
		margin-top: 1rem;
		padding: 0 2rem;
	}

	.acf-form-submit {
		padding-left: 1rem;
	}

	.select2 {
		height: 40px;

		.select2-selection__rendered {
			align-items: center;
			border: 1px solid var(--color-gray);
			display: flex;
			height: 40px;
		}

		.select2-selection {
			border: none;
			height: 42px;
		}

		.select2-selection__arrow {
			top: 0;
			bottom: 0;
			margin-top: auto;
			margin-bottom: auto;
		}
	}
}

#acf-field_670ecb5d52c03 {
	opacity: 0.2;
}

.atquimicos__notice {
	background: linear-gradient(135deg, var(--color-sucess) 0%, #28a745 100%);
	color: white;
	padding: 1rem 1.5rem;
	margin: 1rem 0 2rem 0 !important;
	text-align: center;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(50, 191, 132, 0.3);
	font-weight: 600;
	font-size: 1.1rem;
	border: none;
	position: relative;
	overflow: hidden;
	animation: slideInFromTop 0.5s ease-out;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atquimicos__notice:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(50, 191, 132, 0.4);
}

.atquimicos__notice::before {
	content: "✅";
	margin-right: 0.5rem;
	font-size: 1.2rem;
}

.atquimicos__notice::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: shimmer 2s infinite;
}

@keyframes slideInFromTop {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

/* Estilos específicos para el mensaje dentro del contenedor de reportes */
.container__atquimicos__report .atquimicos__notice {
	margin: 0 0 2rem 0 !important;
	max-width: 100%;
	z-index: 10;
}

/* Asegurar que el mensaje no interfiera con el layout del formulario */
.acf-form .atquimicos__notice {
	margin-bottom: 1.5rem !important;
}

/* Estilos responsive para el mensaje */
@media (max-width: 768px) {
	.atquimicos__notice {
		padding: 0.75rem 1rem;
		font-size: 1rem;
		margin: 0.5rem 0 1.5rem 0 !important;
	}
}

/* Animación de fade out para auto-hide */
.atquimicos__notice.fade-out {
	animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

.table_component {
	overflow: auto;
	width: 100%;
}

.table_component table {
	border: 1px solid #dededf;
	height: 100%;
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 1px;
	text-align: left;
}

.table_component caption {
	caption-side: top;
	text-align: left;
}

.table_component th {
	border: 1px solid #dededf;
	background-color: #eceff1;
	color: #000000;
	padding: 5px;
}

.table_component td {
	border: 1px solid #dededf;
	background-color: #ffffff;
	color: var(--color-charcoal);
	padding: 5px;
	text-transform: capitalize;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA PÁGINA DE REPORTES
   ============================================ */

.container__atquimicos__report {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 2rem;
	color: var(--txt);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Clase específica para la página completa de reportes */
.reports-page {
	min-height: 100vh;
}

/* Header de la página */
.reports-header {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px rgba(218, 69, 64, 0.2);
}

.reports-header h1 {
	color: #fff;
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-header p {
	margin: 0.5rem 0 0 0;
	opacity: 0.9;
	font-size: 1.1rem;
}

/* Contenedor de filtros */
.filters-container {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
	border: 1px solid rgba(218, 69, 64, 0.1);
}

.filters-container h3 {
	color: var(--dark-1);
	margin: 0 0 1.5rem 0;
	font-size: 1.3rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.filters-container h3::before {
	content: "🔍";
	font-size: 1.2rem;
}

#filter-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	align-items: end;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.filter-group label {
	color: var(--dark-1);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-group select {
	padding: 0.75rem 1rem;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	background: white;
	color: var(--txt);
	font-size: 1rem;
	transition: all 0.3s ease;
	cursor: pointer;
}

.filter-group select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(218, 69, 64, 0.1);
	transform: translateY(-1px);
}

.filter-group select:hover {
	border-color: var(--secondary);
}

/* Contenedor de reportes */
.reports-content {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid rgba(218, 69, 64, 0.1);
}

.reports-content-header {
	background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 100%);
	color: white;
	padding: 1.5rem 2rem;
	border-bottom: 3px solid var(--primary);
}

.reports-content-header h2 {
	color: #fff;
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.reports-content-header h2::before {
	content: "📋";
	font-size: 1.3rem;
}

#reports-container {
	color: #fff;
	padding: 2rem;
	min-height: 300px;
}

/* Estilos para los grupos de reportes por mes */
#reports-container h2 {
	color: var(--primary);
	font-size: 1.4rem;
	font-weight: 700;
	margin: 2rem 0 1rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid rgba(218, 69, 64, 0.2);
	position: relative;
}

#reports-container h2:first-child {
	margin-top: 0;
}

#reports-container h2::before {
	content: "📅";
	margin-right: 0.5rem;
}

/* Lista de reportes */
#reports-container ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
}

#reports-container li {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	margin-bottom: 0.75rem;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
	overflow: hidden;
}

#reports-container li:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(218, 69, 64, 0.15);
	border-color: var(--secondary);
}

#reports-container li a {
	display: block;
	padding: 1rem 1.5rem;
	color: var(--txt);
	text-decoration: none;
	font-weight: 500;
	position: relative;
	transition: all 0.3s ease;
}

#reports-container li a::before {
	content: "📄";
	margin-right: 0.75rem;
	font-size: 1.1rem;
}

#reports-container li a::after {
	content: "→";
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	transition: all 0.3s ease;
	color: var(--primary);
	font-weight: bold;
}

#reports-container li:hover a::after {
	opacity: 1;
	right: 1rem;
}

#reports-container li a:hover {
	color: var(--primary);
	padding-left: 2rem;
}

/* Estado de carga */
.loading-state {
	text-align: center;
	padding: 3rem;
	color: var(--dark-2);
}

.loading-state::before {
	content: "⏳";
	font-size: 2rem;
	display: block;
	margin-bottom: 1rem;
}

/* Estado vacío */
.empty-state {
	text-align: center;
	padding: 3rem;
	color: var(--dark-2);
}

.empty-state::before {
	content: "📭";
	font-size: 3rem;
	display: block;
	margin-bottom: 1rem;
}

/* Estilos para el reporte y botón PDF */
.report-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #0073aa;
}

.report-header h3 {
	margin: 0;
	color: #0073aa;
}

.report-actions {
	display: flex;
	gap: 10px;
}

.btn-download-pdf {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background-color: #0073aa;
	color: white !important;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.btn-download-pdf:hover {
	background-color: #005a87;
	color: white !important;
	text-decoration: none;
}

.btn-download-pdf .dashicons {
	font-size: 16px;
	line-height: 1;
}

.container__atquimicos__report {
	background: white;
	padding: 20px;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin: 20px 0;
	max-width: 900px;
	margin: 0 auto;

	.img__cliente {
		padding: 0.5rem 0 1.5rem 0;
		img {
			object-fit: cover;
			object-position: center;
		}
	}
}

/* Responsive design */
@media (max-width: 768px) {
	.container__atquimicos__report {
		padding: 1rem;
	}

	.reports-header {
		padding: 1.5rem;
	}

	.reports-header h1 {
		font-size: 2rem;
	}

	.filters-container {
		padding: 1.5rem;
	}

	#filter-form {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.reports-content-header {
		padding: 1rem 1.5rem;
	}

	#reports-container {
		padding: 1.5rem;
	}
}

/* Animaciones sutiles */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.container__atquimicos__report > * {
	animation: fadeInUp 0.6s ease forwards;
}

.container__atquimicos__report > *:nth-child(2) {
	animation-delay: 0.1s;
}

.container__atquimicos__report > *:nth-child(3) {
	animation-delay: 0.2s;
}

.container__atquimicos__report > *:nth-child(4) {
	animation-delay: 0.3s;
}

.recomendaciones {
	margin-top: 20px;
	padding: 15px;
	border: 1px solid #0073aa;
	border-radius: 4px;
	background-color: #f9f9f9;
}

.recomendaciones h3 {
	margin-top: 0.5rem;
	color: #0073aa;
}

.recomendaciones p {
	margin-bottom: 0;
}

.container__atquimicos__report__form {
	max-width: 400px;
	margin: 50px auto;
	padding: 30px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container__atquimicos__report__form h2 {
	text-align: center;
	margin-bottom: 30px;
	color: #333;
}

.userForm {
	margin-bottom: 20px;
}

.userForm label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #555;
}

.userForm input[type="text"],
.userForm input[type="password"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
}

.login-button {
	width: 100%;
	padding: 12px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.login-button:hover {
	background-color: #005a87;
}

.error-message {
	padding: 10px;
	background-color: #ffeaea;
	border: 1px solid #ff6b6b;
	border-radius: 4px;
	text-align: center;
	margin-bottom: 20px;
}

.success-message {
	padding: 15px;
	background-color: #e8f5e8;
	border: 1px solid #4caf50;
	border-radius: 4px;
	text-align: center;
	margin-bottom: 20px;
	color: #2e7d32;
}

.warning-message {
	padding: 15px;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	text-align: center;
	margin-bottom: 20px;
	color: #856404;
}

.reports-link {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background-color: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.reports-link:hover {
	background-color: #005a87;
	color: white;
}
