/* Estilos compartidos de la sección "Automatizaciones" (flujo async VUCEM).
   Copiados del módulo /vucem para que las páginas nuevas no dependan de su
   <style> inline. El JS sigue viviendo (intacto) en modules/movimientos/vucem. */

#module-content {
    overflow-y: auto;
    min-height: 0;
}

.pedimento-form-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

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

/* Rejilla responsiva: las tarjetas comparten ancho (2-3 por fila en pantallas
   anchas, apiladas en angostas) para no desperdiciar el espacio horizontal. */
.auto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.auto-cards > .card {
    margin-bottom: 0;
    height: 100%;
}

.form-section-title {
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    display: none;
}

.status-success { background-color: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.status-error { background-color: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

/* Sub-pestañas de carga masiva (Legacy / Segundo Plano) */
.upload-tabs { margin-bottom: 1.5rem; }

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tab-button:hover { color: #495057; background-color: #f8f9fa; }
.tab-button.active { color: #007bff; border-bottom-color: #007bff; background-color: #fff; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.mode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-legacy { background-color: #6c757d; color: white; }
.badge-background { background-color: #17a2b8; color: white; }

.mode-hint {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hint-legacy { background-color: #f8f9fa; border-left: 4px solid #6c757d; }
.hint-background { background-color: #f0f9ff; border-left: 4px solid #17a2b8; }
.hint-icon { margin-right: 0.75rem; font-size: 1rem; margin-top: 0.125rem; }
.hint-legacy .hint-icon { color: #6c757d; }
.hint-background .hint-icon { color: #17a2b8; }
.hint-content { flex: 1; }
