.info-box-content h3 {
	margin-bottom: 0;
}

.info-box-content .info-box-content {
	padding-left: 0;
}

.login-logo img {
	max-width: 250px;
}

.cant-login {
	text-align: center;
	font-size: 12px;
}

@media only screen and (min-width: 993px) {
	.main-header {
		display: none;
	}
}

#expirationHelp:hover {
	cursor: pointer;
	text-decoration: underline;
	font-weight: bold;
}

#payment_date {
	max-width: 90%;
}

.fas {
	margin-right: 5px;
}

.text-link {
	color: #000000;
	font-weight: 600;
	text-decoration: underline;
}

.text-link:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

.text-link:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

.qr {
	height: 0px;
	padding: 0px !important;
	border: 0px !important;
}

/* Loading Indicators */
.form-loading {
	opacity: 0.7;
	pointer-events: none;
	position: relative;
}

.form-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.5);
	z-index: 1000;
}

button.loading,
.btn.loading {
	position: relative;
	cursor: wait !important;
}

button.loading .spinner-border,
.btn.loading .spinner-border {
	width: 1rem;
	height: 1rem;
	border-width: 0.15em;
}

/* Mejoras de feedback visual */
.btn:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

.btn-danger:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
	transition: all 0.2s ease;
}

.btn-success:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
	transition: all 0.2s ease;
}

/* Animación suave para inputs */
.form-control:focus {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Mejoras de accesibilidad - Contraste mejorado */
label {
	font-weight: 600;
	color: #212529;
}

label .text-danger {
	color: #dc3545 !important;
	font-weight: bold;
}

/* Mejoras para select */
select.form-control:focus {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Mejoras para textarea */
textarea.form-control:focus {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Skip link para navegación por teclado */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px;
	text-decoration: none;
	z-index: 100;
}

.skip-link:focus {
	top: 0;
}

/* Mejoras para elementos interactivos */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Mejor contraste para texto de ayuda */
.form-text {
	color: #495057;
	font-size: 0.875rem;
}

/* ARIA live regions para anuncios */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Mejoras para campos requeridos */
/* Regla comentada: Los asteriscos ya se agregan manualmente en el HTML
.form-control[required] + label::after,
label[for]:has(+ .form-control[required])::after {
	content: " *";
	color: #dc3545;
	font-weight: bold;
}
*/

/* Mejora en tablas */
.table-hover tbody tr:hover {
	background-color: rgba(0, 0, 0, 0.03);
	transition: background-color 0.15s ease-in-out;
}

/* Loading overlay para operaciones largas */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.loading-overlay .spinner-border {
	width: 3rem;
	height: 3rem;
	border-width: 0.3em;
}

/* ============================================
   MEJORAS DE UX/UI - Dashboard y Visualización
   ============================================ */

/* Animaciones suaves para tarjetas del dashboard */
.small-box {
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.small-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Reducir tamaño del icono en todas las tarjetas */
.small-box .icon > i.fa,
.small-box .icon > i.fab,
.small-box .icon > i.far,
.small-box .icon > i.fas,
.small-box .icon > i.glyphicon,
.small-box .icon > i.ion {
	font-size: 60px !important;
}

.small-box:hover .icon > i.fa,
.small-box:hover .icon > i.fab,
.small-box:hover .icon > i.far,
.small-box:hover .icon > i.fas,
.small-box:hover .icon > i.glyphicon,
.small-box:hover .icon > i.ion {
	font-size: 65px !important;
}

/* Mejorar el efecto hover del icono sin romper el posicionamiento de AdminLTE */
.small-box .icon > i {
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}

.small-box:hover .icon > i {
	transform: scale(1.1) !important;
}

/* Mejorar visibilidad del icono gris (bg-secondary) */
.small-box.bg-secondary .icon {
	color: rgba(0, 0, 0, 0.2) !important;
}

.small-box.bg-secondary:hover .icon {
	color: rgba(0, 0, 0, 0.3) !important;
}

.small-box.bg-secondary:hover .icon > i {
	opacity: 1 !important;
}

/* Info boxes con mejor feedback */
.info-box {
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	cursor: pointer;
}

.info-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para enlaces que envuelven info-box y small-box */
a.dashboard-card-link,
a > .info-box,
a > .small-box {
	text-decoration: none !important;
	color: inherit !important;
	display: block;
}

a.dashboard-card-link:link,
a.dashboard-card-link:visited,
a.dashboard-card-link:hover,
a.dashboard-card-link:active {
	text-decoration: none !important;
	color: inherit !important;
}

a > .info-box:hover,
a > .small-box:hover {
	text-decoration: none !important;
	color: inherit !important;
}

a > .info-box:visited,
a > .small-box:visited {
	color: inherit !important;
}

a > .info-box:focus,
a > .small-box:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
	border-radius: 0.25rem;
}

/* Eliminar subrayado y color azul del texto dentro de los enlaces */
a.dashboard-card-link *,
a > .info-box *,
a > .info-box h3,
a > .info-box span,
a > .info-box .info-box-content,
a > .info-box .info-box-content *,
a > .info-box .info-box-content h3,
a > .info-box .info-box-content span,
a > .small-box *,
a > .small-box h3,
a > .small-box p,
a > .small-box .inner,
a > .small-box .inner *,
a > .small-box .inner h3,
a > .small-box .inner p {
	text-decoration: none !important;
}

/* Mantener colores originales de las tarjetas (blanco para info-box, etc.) */
a.dashboard-card-link .info-box,
a.dashboard-card-link .info-box *,
a > .info-box.bg-info,
a > .info-box.bg-info *,
a > .info-box.bg-info h3,
a > .info-box.bg-info span,
a > .info-box.bg-info .info-box-content,
a > .info-box.bg-info .info-box-content *,
a > .info-box.bg-info .info-box-content h3,
a > .info-box.bg-info .info-box-content span {
	color: #fff !important;
}

a.dashboard-card-link:hover .info-box,
a.dashboard-card-link:hover .info-box *,
a > .info-box.bg-info:hover,
a > .info-box.bg-info:hover *,
a > .info-box.bg-info:hover h3,
a > .info-box.bg-info:hover span,
a > .info-box.bg-info:hover .info-box-content,
a > .info-box.bg-info:hover .info-box-content *,
a > .info-box.bg-info:hover .info-box-content h3,
a > .info-box.bg-info:hover .info-box-content span {
	color: #fff !important;
}

a.dashboard-card-link:visited .info-box,
a.dashboard-card-link:visited .info-box *,
a > .info-box.bg-info:visited,
a > .info-box.bg-info:visited *,
a > .info-box.bg-info:visited h3,
a > .info-box.bg-info:visited span,
a > .info-box.bg-info:visited .info-box-content,
a > .info-box.bg-info:visited .info-box-content *,
a > .info-box.bg-info:visited .info-box-content h3,
a > .info-box.bg-info:visited .info-box-content span {
	color: #fff !important;
}

/* Para otras tarjetas, mantener color inherit */
a > .small-box h3,
a > .small-box p,
a > .small-box .inner,
a > .small-box .inner *,
a > .small-box .inner h3,
a > .small-box .inner p {
	color: inherit !important;
}

a > .small-box:hover h3,
a > .small-box:hover p,
a > .small-box:hover .inner,
a > .small-box:hover .inner *,
a > .small-box:hover .inner h3,
a > .small-box:hover .inner p {
	color: inherit !important;
}

a > .small-box:visited h3,
a > .small-box:visited p,
a > .small-box:visited .inner,
a > .small-box:visited .inner *,
a > .small-box:visited .inner h3,
a > .small-box:visited .inner p {
	color: inherit !important;
}

/* Ajuste para input de moneda */
.input-group-currency {
	flex-wrap: nowrap !important;
}

.input-group-currency .input-group-text {
	min-width: 40px;
	justify-content: center;
	flex-shrink: 0;
}

.input-group-currency .input-group-prepend {
	flex-shrink: 0;
}

@media (max-width: 576px) {
	.input-group-currency {
		flex-wrap: nowrap !important;
	}
	
	.input-group-currency .input-group-text {
		min-width: 35px;
		padding: 0.375rem 0.5rem;
		font-size: 0.875rem;
	}
	
	.input-group-currency .input-group-prepend {
		width: auto !important;
		margin-bottom: 0 !important;
	}
}

/* Ajustes específicos para toggles en formularios */
.estimate-toggle-group,
.noncommercial-toggle-group {
	min-height: 100%;
}

.estimate-toggle-group label,
.noncommercial-toggle-group label {
	width: 100%;
}

@media (min-width: 768px) {
	.estimate-toggle-group,
	.noncommercial-toggle-group {
		align-items: center !important;
		justify-content: flex-start;
	}
}

@media (min-width: 992px) {
	.estimate-toggle-group,
	.noncommercial-toggle-group {
		justify-content: center;
	}
}

.info-box .info-box-icon {
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	display: inline-block;
}

.info-box .info-box-icon i {
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	display: inline-block;
}

.info-box:hover .info-box-icon {
	transform: scale(1.1) !important;
}

.info-box:hover .info-box-icon i {
	transform: scale(1.05) !important;
	opacity: 1;
}

/* Mejoras en cards */
.card {
	transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
	border-bottom: 2px solid #dee2e6;
}

/* Mejoras en botones con mejor feedback */
.btn {
	transition: all 0.2s ease-in-out;
	position: relative;
	overflow: hidden;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary:not(:disabled):hover {
	background-color: #0056b3;
	border-color: #0056b3;
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-success:not(:disabled):hover {
	background-color: #218838;
	border-color: #1e7e34;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-danger:not(:disabled):hover {
	background-color: #c82333;
	border-color: #bd2130;
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-warning:not(:disabled):hover {
	background-color: #e0a800;
	border-color: #d39e00;
	box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* Mejoras en inputs con mejor feedback visual */
.form-control:not(:disabled):hover {
	border-color: #adb5bd;
}

.form-control:focus:valid {
	border-color: #28a745;
}

.form-control:focus:invalid {
	border-color: #dc3545;
}

/* Mejoras en tablas */
.table {
	border-collapse: separate;
	border-spacing: 0;
}

.table thead th {
	background-color: #f8f9fa;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	position: sticky;
	top: 0;
	z-index: 10;
}

.table tbody tr {
	transition: background-color 0.15s ease-in-out;
}

.table tbody tr:hover {
	background-color: #f8f9fa;
}

.table tbody tr:active {
	background-color: #e9ecef;
}

/* Mejoras en badges y labels */
.badge {
	font-weight: 500;
	padding: 0.35em 0.65em;
}

.badge-lg {
	font-size: 1.1rem;
	padding: 0.5em 0.75em;
}

/* Estilos para invoice/view pages */
.invoice {
	background-color: #fff;
	border-radius: 0.5rem;
}

.invoice .card-header {
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	font-weight: 600;
}

.invoice .card-header h5 {
	font-size: 1.1rem;
	font-weight: 600;
}

.invoice code {
	background-color: #f4f4f4;
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.9em;
	color: #495057;
}

.invoice .table-hover tbody tr:hover {
	background-color: rgba(0, 123, 255, 0.05);
}

.invoice .empty-state {
	padding: 2rem 1rem;
}

.invoice .empty-state i {
	opacity: 0.3;
}

/* Mejoras en alertas */
.alert {
	border-left: 4px solid;
	animation: slideIn 0.3s ease-out;
}

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

.alert-dismissible .close {
	padding: 0.5rem 0.75rem;
}

/* Mejoras en modales */
.modal-content {
	border: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
	border-bottom: 2px solid #dee2e6;
}

.modal-footer {
	border-top: 2px solid #dee2e6;
}

/* Mejoras en paginación */
.pagination .page-link {
	transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Mejoras en tooltips */
.tooltip {
	font-size: 0.875rem;
}

.tooltip-inner {
	background-color: #333;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
}

/* Mejoras en select2 */
.select2-container--default .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--single {
	border: 1px solid #ced4da !important;
	border-radius: 0.25rem !important;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	height: calc(1.5em + 0.75rem + 2px) !important;
	min-height: 38px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--bootstrap4.select2-container--focus .select2-selection--single {
	border-color: #80bdff !important;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
	outline: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
	line-height: calc(1.5em + 0.75rem + 2px) !important;
	padding-left: 0.75rem !important;
	padding-right: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
	height: calc(1.5em + 0.75rem + 2px) !important;
	right: 3px !important;
}

/* Evitar que Select2 se desborde en formularios */
.form-group .select2-container {
	width: 100% !important;
	max-width: 100%;
}

.form-row .form-group .select2-container {
	width: 100% !important;
	max-width: 100%;
}

/* Asegurar que los selects no se superpongan */
.form-group {
	max-width: 100%;
	overflow: hidden;
}

/* Alinear botones de agregar/eliminar cheques verticalmente con los inputs */
.form-row.row-check {
	align-items: center !important;
}

.form-row.row-check .form-group.col-1 {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-bottom: 0;
	align-self: center;
}

/* Asegurar que los inputs tengan la misma altura base */
.form-row.row-check .form-control,
.form-row.row-check .select2-container .select2-selection {
	height: calc(1.5em + 0.75rem + 2px);
}

.form-row.row-check .input-group {
	margin-bottom: 0 !important;
}

/* Media queries para pantallas medianas/chicas */
@media (max-width: 991.98px) {
	/* En pantallas medianas/chicas, aumentar tamaño de botones y centrarlos */
	.form-row.row-check .form-group.col-1 {
		width: 100% !important;
		justify-content: center;
		margin-top: 0.5rem;
		margin-bottom: 0.5rem;
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.form-row.row-check .form-group.col-1 .add-more,
	.form-row.row-check .form-group.col-1 .remove {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		font-size: 1.1rem !important;
	}
	
	.form-row.row-check .form-group.col-1 .add-more i,
	.form-row.row-check .form-group.col-1 .remove i {
		font-size: 1.2rem !important;
	}
}

@media (max-width: 575.98px) {
	/* En pantallas muy pequeñas, botones aún más grandes */
	.form-row.row-check .form-group.col-1 {
		width: 100% !important;
		flex: 0 0 100%;
		max-width: 100%;
		margin-top: 0.75rem;
		margin-bottom: 0.75rem;
	}
	
	.form-row.row-check .form-group.col-1 .add-more,
	.form-row.row-check .form-group.col-1 .remove {
		width: 45px !important;
		height: 45px !important;
		min-width: 45px !important;
		font-size: 1.2rem !important;
	}
	
	.form-row.row-check .form-group.col-1 .add-more i,
	.form-row.row-check .form-group.col-1 .remove i {
		font-size: 1.4rem !important;
	}
}

.form-group select.sel {
	max-width: 100%;
}

/* Mejoras en datepicker */
.datepicker {
	border-radius: 0.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.datepicker table tr td.active.active,
.datepicker table tr td.active.highlighted.active,
.datepicker table tr td.active.highlighted:active,
.datepicker table tr td.active:active {
	background-color: #007bff;
	border-color: #007bff;
}

/* ============================================
   MEJORAS DE RESPONSIVE DESIGN
   ============================================ */

/* Tablet y móviles grandes (hasta 992px) */
@media (max-width: 992px) {
	/* Dashboard cards - 2 columnas en tablet */
	.small-box,
	.info-box {
		margin-bottom: 1rem;
	}
	
	/* Formularios - reducir padding lateral */
	.col-md-10.offset-md-1 {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	
	/* Cards con menos padding */
	.card-body {
		padding: 1rem;
	}
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
	/* Dashboard cards - 1 columna en móviles */
	.small-box {
		margin-bottom: 1rem;
	}
	
	.info-box {
		margin-bottom: 1rem;
	}
	
	.card {
		margin-bottom: 1rem;
	}
	
	/* Formularios - campos en columna completa */
	.form-row .form-group {
		margin-bottom: 1rem;
	}
	
	.form-row .form-group.col-2,
	.form-row .form-group.col-3,
	.form-row .form-group.col-4,
	.form-row .form-group.col-5,
	.form-row .form-group.col-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	/* Input groups - apilar elementos */
	.input-group {
		flex-wrap: wrap;
	}
	
	.input-group-prepend {
		width: 100%;
		margin-bottom: 0.5rem;
	}
	
	.input-group-prepend .input-group-text {
		width: 100%;
		justify-content: center;
	}
	
	/* Excepción para inputs de moneda */
	.input-group.input-group-currency {
		flex-wrap: nowrap !important;
	}
	
	.input-group-currency .input-group-prepend {
		width: auto !important;
		margin-bottom: 0 !important;
		flex-shrink: 0;
	}
	
	.input-group-currency .input-group-text {
		width: auto !important;
		padding: 0.375rem 0.5rem !important;
		min-width: 35px;
		font-size: 0.875rem;
	}
	
	/* Botones - apilar verticalmente */
	.card-footer.text-right {
		text-align: center !important;
	}
	
	.card-footer .btn {
		width: 100%;
		margin-bottom: 0.5rem;
	}
	
	.card-footer .btn:last-child {
		margin-bottom: 0;
	}
	
	/* Tablas - scroll horizontal */
	.table-responsive {
		-webkit-overflow-scrolling: touch;
		border: 1px solid #dee2e6;
	}
	
	/* DataTables - mejor visualización en móviles */
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter {
		text-align: center;
		margin-bottom: 1rem;
	}
	
	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		width: 100%;
		margin: 0.5rem 0;
	}
	
	.dataTables_wrapper .dataTables_paginate {
		text-align: center;
		margin-top: 1rem;
	}
	
	.dataTables_wrapper .dataTables_paginate .pagination {
		justify-content: center;
		flex-wrap: wrap;
	}
	
	/* Modales - mejor visualización en móviles */
	.modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
	}
	
	.modal-content {
		border-radius: 0.5rem;
	}
	
	.modal-header,
	.modal-body,
	.modal-footer {
		padding: 1rem;
	}
	
	/* Sidebar - mejor visualización */
	.main-sidebar {
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
	}
	
	.main-sidebar.sidebar-open {
		transform: translateX(0);
	}
	
	/* Navbar - mejor visualización */
	.main-header {
		padding: 0.5rem 1rem;
	}
	
	/* Cards - menos padding en móviles */
	.card-body {
		padding: 0.75rem;
	}
	
	.card-header {
		padding: 0.75rem 1rem;
	}
	
	.card-footer {
		padding: 0.75rem;
	}
	
	/* Títulos más pequeños en móviles */
	.card-title {
		font-size: 1.1rem;
	}
	
	h3 {
		font-size: 1.5rem;
	}
	
	/* Iconos más pequeños en dashboard */
	.small-box .icon > i.fa,
	.small-box .icon > i.fab,
	.small-box .icon > i.far,
	.small-box .icon > i.fas {
		font-size: 50px !important;
		top: 15px !important;
	}
	
	.small-box:hover .icon > i.fa,
	.small-box:hover .icon > i.fab,
	.small-box:hover .icon > i.far,
	.small-box:hover .icon > i.fas {
		font-size: 55px !important;
	}
	
	/* Info boxes - mejor visualización */
	.info-box-icon {
		width: 60px;
		height: 60px;
	}
	
	.info-box-icon i {
		font-size: 1.5rem;
	}
	
	/* Select2 - mejor en móviles */
	.select2-container {
		width: 100% !important;
	}
	
	/* Tooltips - mejor posicionamiento */
	.tooltip {
		font-size: 0.75rem;
	}
	
	/* SweetAlert2 - mejor en móviles */
	.swal2-popup {
		width: 90% !important;
		max-width: 400px;
		padding: 1.5rem;
	}
	
	/* Formularios con offset - quitar offset en móviles */
	.col-md-6.offset-md-3,
	.col-md-8.offset-md-2,
	.col-sm-8.offset-sm-2 {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
}

/* Móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
	/* Contenedor principal - sin padding */
	.container-fluid {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	
	/* Cards - sin márgenes laterales */
	.card {
		border-radius: 0.5rem;
		margin-left: 0;
		margin-right: 0;
	}
	
	/* Formularios - campos más compactos */
	.form-group {
		margin-bottom: 0.75rem;
	}
	
	.form-control {
		font-size: 16px; /* Previene zoom en iOS */
		padding: 0.5rem 0.75rem;
	}
	
	/* Labels más pequeños */
	label {
		font-size: 0.9rem;
		margin-bottom: 0.25rem;
	}
	
	/* Botones - tamaño táctil adecuado */
	.btn {
		padding: 0.5rem 1rem;
		font-size: 0.9rem;
		min-height: 44px; /* Tamaño mínimo táctil recomendado */
	}
	
	/* Iconos aún más pequeños */
	.small-box .icon > i.fa,
	.small-box .icon > i.fab,
	.small-box .icon > i.far,
	.small-box .icon > i.fas {
		font-size: 40px !important;
		top: 10px !important;
		right: 10px !important;
	}
	
	.small-box .inner h3 {
		font-size: 1.5rem;
	}
	
	.small-box .inner p {
		font-size: 0.85rem;
	}
	
	/* Info boxes - más compactos */
	.info-box-content h3 {
		font-size: 1.25rem;
	}
	
	.info-box-content {
		font-size: 0.85rem;
	}
	
	/* Tablas - texto más pequeño */
	.table {
		font-size: 0.85rem;
	}
	
	.table th,
	.table td {
		padding: 0.5rem;
	}
	
	/* Modales - casi pantalla completa */
	.modal-dialog {
		margin: 0.25rem;
		max-width: calc(100% - 0.5rem);
	}
	
	/* SweetAlert2 - más compacto */
	.swal2-popup {
		width: 95% !important;
		padding: 1rem;
	}
	
	.swal2-title {
		font-size: 1.25rem;
	}
	
	.swal2-content {
		font-size: 0.9rem;
	}
}

/* ============================================
   MEJORAS VISUALES ADICIONALES
   ============================================ */

/* Mejor espaciado general */
.content-wrapper {
	padding: 1rem;
}

@media (min-width: 768px) {
	.content-wrapper {
		padding: 1.5rem;
	}
}

/* Mejoras en tipografía */
body {
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (min-width: 768px) {
	body {
		font-size: 1rem;
	}
}

/* Mejoras en sombras y profundidad */
.card {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Mejoras en inputs y selects */
.form-control:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
	border-color: #dc3545;
}

.form-control.is-valid {
	border-color: #28a745;
}

/* Mejoras en botones - mejor feedback táctil */
.btn {
	position: relative;
	overflow: hidden;
	transition: all 0.2s ease-in-out;
}

.btn:active {
	transform: scale(0.98);
}

.btn:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Mejoras en badges */
.badge {
	font-weight: 500;
	padding: 0.35em 0.65em;
	letter-spacing: 0.5px;
}

/* Mejoras en alertas */
.alert {
	border-left-width: 4px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.alert-dismissible .close {
	padding: 0.5rem 0.75rem;
}

/* Mejoras en paginación */
.pagination {
	margin-top: 1rem;
}

.pagination .page-link {
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	margin: 0 0.125rem;
}

/* Mejoras en breadcrumbs */
.breadcrumb {
	background-color: transparent;
	padding: 0.5rem 0;
	margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "›";
	font-size: 1.2rem;
	vertical-align: middle;
}

/* Mejoras en tabs */
.nav-tabs .nav-link {
	border-radius: 0.25rem 0.25rem 0 0;
	padding: 0.75rem 1rem;
	transition: all 0.2s ease-in-out;
}

.nav-tabs .nav-link:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link.active {
	font-weight: 600;
}

/* Mejoras en dropdowns */
.dropdown-menu {
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	padding: 0.5rem 0;
}

.dropdown-item {
	padding: 0.5rem 1rem;
	transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Mejoras en tooltips */
.tooltip {
	font-size: 0.875rem;
}

.tooltip-inner {
	background-color: #333;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	max-width: 250px;
}

/* Mejoras en progress bars */
.progress {
	height: 1.5rem;
	border-radius: 0.25rem;
	background-color: #e9ecef;
}

.progress-bar {
	transition: width 0.6s ease;
}

/* Mejoras en list groups */
.list-group-item {
	border: 1px solid rgba(0, 0, 0, 0.05);
	padding: 0.75rem 1rem;
	transition: background-color 0.15s ease-in-out;
}

.list-group-item:hover {
	background-color: rgba(0, 0, 0, 0.03);
}

.list-group-item.active {
	font-weight: 600;
}

/* Mejoras en código y pre */
code {
	background-color: #f4f4f4;
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.9em;
}

pre {
	background-color: #f4f4f4;
	padding: 1rem;
	border-radius: 0.25rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	overflow-x: auto;
}

/* Mejoras en blockquotes */
blockquote {
	border-left: 4px solid #007bff;
	padding-left: 1rem;
	margin: 1rem 0;
	font-style: italic;
	color: #6c757d;
}

/* Mejoras en imágenes */
img {
	max-width: 100%;
	height: auto;
}

.img-thumbnail {
	border-radius: 0.25rem;
	padding: 0.25rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mejoras en separadores */
hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 1.5rem 0;
}

/* Mejoras en loading spinners */
.spinner-border {
	width: 2rem;
	height: 2rem;
	border-width: 0.25em;
}

.spinner-border-sm {
	width: 1rem;
	height: 1rem;
	border-width: 0.15em;
}

/* Mejoras en empty states */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

.empty-state i {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.empty-state h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: #495057;
}

.empty-state p {
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

/* Mejoras en listas */
.table thead th {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #dee2e6;
}

.table tbody td {
	vertical-align: middle;
}

.table tbody tr:hover {
	background-color: rgba(0, 123, 255, 0.05);
	transition: background-color 0.15s ease-in-out;
}

/* Badges en tablas */
.table .badge {
	font-size: 0.85rem;
	padding: 0.4em 0.65em;
}

/* Botones de acción en tablas */
.table .btn-sm {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	min-width: 32px;
}

.table .btn-sm i {
	font-size: 0.875rem;
}

/* Mejoras en cards de formularios */
.card-header h5 {
	font-weight: 600;
}

.card-header.bg-primary,
.card-header.bg-warning,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-info {
	color: #fff;
}

.card-header.bg-warning {
	color: #212529;
}

/* Mejoras en formularios de edición */
.form-group label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #495057;
}

.form-group label i {
	margin-right: 0.25rem;
	color: #6c757d;
}

.form-group .text-danger {
	font-weight: 600;
}

/* Alertas mejoradas */
.alert {
	border-radius: 0.5rem;
	border-left-width: 4px;
}

.alert-info {
	border-left-color: #17a2b8;
}

.alert-success {
	border-left-color: #28a745;
}

.alert-warning {
	border-left-color: #ffc107;
}

.alert-danger {
	border-left-color: #dc3545;
}

/* Mejoras en código en tablas */
.table code {
	background-color: #f4f4f4;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.9em;
	color: #495057;
	border: 1px solid #dee2e6;
}

/* Mejoras en totales */
.alert .badge-lg {
	font-size: 1.2rem;
	padding: 0.5rem 1rem;
}

/* Mejoras en tooltips de tablas */
.table [data-toggle="tooltip"] {
	cursor: pointer;
}

/* Mejoras en skeleton loaders (para carga) */
.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s ease-in-out infinite;
	border-radius: 0.25rem;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* Mejoras en scrollbar (WebKit) */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Mejoras en focus visible (mejor accesibilidad) */
*:focus-visible {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Mejoras en selección de texto */
::selection {
	background-color: #007bff;
	color: #fff;
}

::-moz-selection {
	background-color: #007bff;
	color: #fff;
}

/* Animación de fade in para contenido */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.content {
	animation: fadeIn 0.3s ease-in;
}

/* Mejoras en enlaces */
a:not(.btn):not(.nav-link):not(.page-link) {
	transition: color 0.2s ease-in-out;
}

a:not(.btn):not(.nav-link):not(.page-link):hover {
	text-decoration: underline;
}

/* Mejoras en iconos */
.fas, .far, .fab {
	transition: transform 0.2s ease-in-out;
}

a:hover .fas,
a:hover .far,
a:hover .fab,
button:hover .fas,
button:hover .far,
button:hover .fab {
	transform: scale(1.1);
}

/* Mejoras para tablas de listas (supplier_list, client_list, etc.) */
#datatable td {
	vertical-align: middle;
}

#datatable td code {
	white-space: nowrap;
	font-size: 0.9em;
	padding: 0.2rem 0.4rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	display: inline-block;
}

#datatable .text-nowrap {
	white-space: nowrap;
}

#datatable td.text-truncate-cell {
	padding: 0.75rem;
}

#datatable td.text-truncate-cell span.text-truncate {
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	vertical-align: middle;
}

/* Mejorar visualización de badges en tablas */
#datatable .badge {
	font-size: 0.85rem;
	padding: 0.35em 0.65em;
	white-space: nowrap;
}

/* Estilos para lista de cheques con checkboxes en depósitos */
.check-list-wrapper {
	border: 2px solid #ced4da;
	border-radius: 0.375rem;
	background-color: #fff;
	padding: 1rem;
	min-height: 400px;
	max-height: 600px;
	display: flex;
	flex-direction: column;
}

.check-search-wrapper {
	flex-shrink: 0;
}

.check-search-wrapper input {
	border: 2px solid #ced4da;
	border-radius: 0.375rem;
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.check-search-wrapper input:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: none;
}

.check-list-container {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #e9ecef;
	border-radius: 0.375rem;
	padding: 0.5rem;
	background-color: #f8f9fa;
	margin-top: 0.5rem;
}

.check-item {
	margin-bottom: 0.5rem;
	padding: 0.75rem;
	background-color: #fff;
	border: 1px solid #e9ecef;
	border-radius: 0.25rem;
	transition: all 0.2s ease;
	cursor: pointer;
}

.check-item:hover {
	border-color: #007bff;
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
	background-color: #f0f7ff;
}

.check-item:last-child {
	margin-bottom: 0;
}

.check-item .form-check {
	margin: 0;
	display: flex;
	align-items: center;
}

.check-item .form-check-input {
	margin-top: 0;
	margin-right: 0.75rem;
	width: 1.25rem;
	height: 1.25rem;
	cursor: pointer;
	flex-shrink: 0;
}

.check-item .form-check-input:checked {
	background-color: #007bff;
	border-color: #007bff;
}

.check-item .form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.check-item .form-check-label {
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	flex: 1;
	color: #212529;
}

.check-item .form-check-label strong {
	color: #007bff;
}

.check-item.selected {
	border-color: #28a745;
	background-color: #d4edda;
}

.check-item.selected .form-check-label {
	font-weight: 600;
}

/* Scrollbar personalizado para la lista */
.check-list-container::-webkit-scrollbar {
	width: 8px;
}

.check-list-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.check-list-container::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.check-list-container::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
	background-color: #007bff !important;
	border-color: #007bff !important;
	color: #fff !important;
	padding: 0.25rem 0.5rem;
	margin: 0.2rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
	color: #fff !important;
	margin-right: 0.5rem;
	font-weight: bold;
	opacity: 0.8;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #fff !important;
	opacity: 1;
}

.select2-results__option {
	padding: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.select2-results__option--highlighted {
	background-color: #007bff !important;
	color: #fff !important;
}

.select2-dropdown {
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Estilos para el div del total en depósitos */
.total-display-wrapper {
	min-height: 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: visible;
}

.total-amount {
	color: #fff;
	font-weight: bold;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	line-height: 1.3;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
	width: 100%;
	text-align: center;
	margin: 0;
	padding: 0.5rem 1rem;
	word-break: keep-all;
	overflow-wrap: normal;
	box-sizing: border-box;
	letter-spacing: 0.02em;
}

/* Para pantallas medianas */
@media (max-width: 992px) {
	.total-display-wrapper {
		min-height: 90px;
	}
	
	.total-amount {
		font-size: clamp(1.3rem, 3.5vw, 2rem);
		padding: 0.5rem 0.75rem;
	}
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
	.total-display-wrapper {
		min-height: 85px;
		padding: 0.75rem !important;
	}
	
	.total-amount {
		font-size: clamp(1.2rem, 3vw, 1.75rem);
		padding: 0.5rem 0.5rem;
	}
}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
	.total-display-wrapper {
		min-height: 80px;
		padding: 0.5rem !important;
	}
	
	.total-amount {
		font-size: clamp(1rem, 2.5vw, 1.5rem);
		padding: 0.25rem 0.5rem;
	}
}
