/* Importar Iconos y Bootstrap desde node_modules */
@import "bootstrap/dist/css/bootstrap.min.css";
@import "tom-select/dist/css/tom-select.bootstrap5.css";
/* Botones en estado de carga */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "progress_activity";
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white !important;
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Variables de Bootstrap personalizadas (Sobrescribiendo variables de CSS de Bootstrap 5) */
:root {
    --bs-primary: #2F4597;
    --bs-primary-rgb: 47, 69, 151;
    --bs-body-bg: #f8f9fa;
    --bs-info: #2AA1DB;
    --bs-info-rgb: 42, 161, 219;
}

/* Ajuste para Material Symbols para que se comporten de forma similar a los iconos de fuente */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    vertical-align: middle;
    font-size: 1.25rem;
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
}

/* Clase de compatibilidad para márgenes si se usaba fa- me-X */
.material-symbols-outlined.me-1 { margin-right: 0.25rem !important; }
.material-symbols-outlined.me-2 { margin-right: 0.5rem !important; }

.pagination {
    margin: 0;
}

.pagination .page-item .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* --- ESTILOS PARA CAMPOS DE BÚSQUEDA ESPECIALES --- */
.input-lookup-special {
    border-color: #2F4597 !important;
    border-width: 1.5px !important;
}

.btn-lookup-special {
    background-color: #2F4597 !important;
    color: white !important;
    border-color: #2F4597 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.btn-lookup-special:hover {
    background-color: #1e2d6b !important;
    border-color: #1e2d6b !important;
    box-shadow: 0 0 8px rgba(47, 69, 151, 0.4);
}

/* Estilos de Tom Select personalizados (si fueran necesarios) */
.ts-wrapper.single .ts-control {
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* Estilos personalizados existentes */
.custom-auth-container {
  background-color: #2F4597; /* $primary */
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.custom-login-container {
  max-width: 400px;
  padding: 15px;
  margin: auto;
}

.custom-auth-card {
  background-color: #f8f9fa; /* $body-bg */
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.form-floating:focus-within {
    z-index: 2;
}

.custom-toggle-password {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.auth-register-container{
    background-color: #2F4597; /* $primary */
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.register-container {
    max-width: 500px;
    padding: 15px;
    margin: auto;
}

.signature-pad-container {
    border: 2px dashed #007bff;
    border-radius: 5px;
    background-color: #f8f9fa;
    position: relative;
    width: 100%;
    height: 200px;
    touch-action: none;
}
.signature-pad {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block;
}

#charges-tabs.nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

#charges-tabs .nav-link {
    color: #f8f9fa;
}

#charges-tabs .nav-link:not(.active) {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

#charges-tabs .nav-link:not(.active):hover,
#charges-tabs .nav-link:not(.active):focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

#charges-tabs .nav-link.active {
    color: #212529;
}

/* --- MEJORA DE CONTRASTE EN MODALES E INPUTS --- */
.modal-content {
    background-color: #f8fafc !important; /* Fondo moderno gris-azul claro para el modal */
}

.modal-body .card {
    background-color: #ffffff !important; /* Tarjetas blancas elevadas */
    border-width: 1px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* Bordes nítidos y legibles para inputs y selects */
.form-control,
.form-select {
    border-color: #94a3b8 !important; /* Gris de alto contraste */
    color: #1e293b !important; /* Texto principal oscuro */
    background-color: #ffffff !important;
}

/* Placeholders con contraste óptimo */
.form-control::placeholder {
    color: #64748b !important;
    opacity: 0.85;
}

/* Efecto focus claro */
.form-control:focus,
.form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Inputs deshabilitados legibles y diferenciados */
.form-control:disabled,
.form-select:disabled,
.form-control[readonly],
.form-select[readonly] {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

/* Estilos de input-group-text (prefijos de iconos) con contraste */
.input-group-text {
    background-color: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #334155 !important;
    font-weight: 500;
}

/* --- ENFOQUE PROGRESIVO DE SECCIONES EN FORMULARIOS --- */
.form-section-card {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #cbd5e1 !important; /* Borde gris estándar */
    background-color: #ffffff !important;
}

/* Sección actualmente activa / en curso de digitación */
.form-section-card.active-section {
    background-color: #f0f9ff !important; /* Celeste muy suave */
    border-color: #0ea5e9 !important;     /* Celeste corporativo */
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.08), 0 4px 6px -4px rgba(14, 165, 233, 0.08) !important;
}

/* Sección que ya ha sido completada */
.form-section-card.completed-section {
    background-color: #ffffff !important;
    border-color: #86efac !important;     /* Verde éxito suave */
    box-shadow: none !important;
}

/* --- SKELETON LOADER ANIMATIONS --- */
.skeleton-loader {
    width: 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #e2e8f0 4%, #cbd5e1 25%, #e2e8f0 36%);
    background-size: 1000px 100%;
    border-radius: 4px;
    display: inline-block;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -800px 0;
    }
    100% {
        background-position: 800px 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 6px;
    border-radius: 4px;
}



