/* public/css/export.css */
/* Estilos modernos estilo OpenAI para el sistema de exportación */

:root {
    --export-modal-bg: rgba(0, 0, 0, 0.5);
    --export-content-bg: #ffffff;
    --export-border: #e5e7eb;
    --export-text-primary: #111827;
    --export-text-secondary: #6b7280;
    --export-primary: #2563eb;
    --export-primary-hover: #1d4ed8;
    --export-step-active: #2563eb;
    --export-step-inactive: #9ca3af;
    --export-step-completed: #10b981;
}

/* Modal de exportación */
#export-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--export-modal-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.export-modal-content {
    background: var(--export-content-bg);

    width: 100%;


    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.export-modal-header {
    padding: 11px 32px;
    border-bottom: 1px solid var(--export-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.export-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--export-text-primary);
    margin: 0;
}

.export-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--export-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.export-modal-close:hover {
    background: #f3f4f6;
    color: var(--export-text-primary);
}

/* Diseño dos columnas: izquierda desplegables, derecha previsualización */
.export-modal-content-two-cols {
    display: flex;
    flex-direction: column;
}

.export-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.export-panel-left {
    width: 400px;
    min-width: 360px;
    max-width: 460px;
    border-right: 1px solid var(--export-border);
    background: #fafafa;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-panel-right {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 20px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.export-sheet-content-fill {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.export-sheet-preview-container-fill {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.export-preview-table-container-fill {
    height: 100%;
    overflow: auto;
}

/* Acordeón desplegable (Pasos 1 y 2) — estilo minimalista */
.export-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-accordion-item {
    background: #fff;
    border: 1px solid var(--export-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.export-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--export-text-primary);
    transition: background 0.15s ease;
    user-select: none;
}

.export-accordion-header.export-step-header {
    gap: 12px;
}

.export-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.export-step-1 .export-step-num {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.export-step-2 .export-step-num {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.export-step-1 {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.export-step-1:hover {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.export-step-2 {
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    border-bottom: 1px solid #e4e4e7;
}

.export-step-2:hover {
    background: linear-gradient(180deg, #f4f4f5 0%, #e4e4e7 100%);
}

.export-step-3 .export-step-num {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.export-step-3 {
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    border-bottom: 1px solid #e4e4e7;
}

.export-step-3:hover {
    background: linear-gradient(180deg, #f4f4f5 0%, #e4e4e7 100%);
}

.export-accordion-header:not(.export-step-header) {
    background: #fff;
}

.export-accordion-header:not(.export-step-header):hover {
    background: #f3f4f6;
}

.export-accordion-title {
    flex: 1;
    letter-spacing: -0.01em;
}

.export-accordion-icon {
    font-size: 12px;
    color: var(--export-text-secondary);
    transition: transform 0.2s;
    opacity: 0.8;
}

.export-accordion-open .export-accordion-icon {
    transform: rotate(0deg);
}

.export-accordion-item:not(.export-accordion-open) .export-accordion-icon {
    transform: rotate(-90deg);
}

.export-accordion-body {
    padding: 14px;
    border-top: 1px solid var(--export-border);
    background: #fff;
    font-size: 13px;
}

.export-accordion-item:not(.export-accordion-open) .export-accordion-body {
    display: none;
}

/* Tabs "Inventario y consumos" / "Facturas" */
.export-what-tab.active {
    font-weight: 600;
}

.export-invoice-type-btn.active {
    font-weight: 600;
}

/* Tab actualmente visible (panel de Consumos/Costes de ese tipo) */
.export-invoice-type-btn.tab-active {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Tabs de hojas del Excel en panel derecho */
.export-sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    border-bottom: 1px solid var(--export-border);
}

.export-sheet-tab {
    padding: 10px 16px;
    border: 1px solid var(--export-border);
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.export-sheet-tab:hover:not(.active) {
    background: #f9fafb;
}

.export-sheet-tab.active {
    border-bottom-color: #fff;
    background: #fff;
    color: var(--export-primary);
    font-weight: 600;
}

/* Stepper de pasos (legacy) */
.export-stepper {
    padding: 3px 32px;
    border-bottom: 1px solid var(--export-border);
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fafafa;
}

.export-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.export-step:hover:not(.export-step-active):not(.export-step-completed) {
    background: #f3f4f6;
}

.export-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.export-step-active .export-step-number {
    background: var(--export-step-active);
    color: white;
}

.export-step-completed .export-step-number {
    background: var(--export-step-completed);
    color: white;
}

.export-step-inactive .export-step-number {
    background: #e5e7eb;
    color: var(--export-text-secondary);
}

.export-step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--export-text-primary);
}

.export-step-active .export-step-label {
    color: var(--export-step-active);
}

.export-step-completed .export-step-label {
    color: var(--export-step-completed);
}

.export-step-inactive .export-step-label {
    color: var(--export-text-secondary);
}

.export-step-connector {
    flex: 1;
    height: 2px;
    background: var(--export-border);
    margin: 0 8px;
}

.export-step-completed + .export-step-connector {
    background: var(--export-step-completed);
}

/* Contenido del paso */
.export-step-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    min-height: 400px;
}

.export-step-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--export-text-primary);
    margin: 0 0 8px 0;
}

.export-step-content p {
    font-size: 14px;
    color: var(--export-text-secondary);
    margin: 0 0 24px 0;
}

/* Formularios y controles */
.export-form-group {
    margin-bottom: 24px;
}

.export-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--export-text-primary);
    margin-bottom: 8px;
}

.export-form-select,
.export-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--export-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--export-text-primary);
    background: white;
    transition: all 0.2s;
}

.export-form-select:focus,
.export-form-input:focus {
    outline: none;
    border-color: var(--export-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.export-template-select {
    margin-bottom: 16px;
}

.export-template-item {
    padding: 12px 16px;
    border: 1px solid var(--export-border);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.export-template-item:hover {
    border-color: var(--export-primary);
    background: #f0f7ff;
}

.export-template-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.export-template-info {
    flex: 1;
}

.export-template-name {
    font-weight: 500;
    color: var(--export-text-primary);
    margin-bottom: 4px;
}

.export-template-desc {
    font-size: 13px;
    color: var(--export-text-secondary);
}

/* Tabla de previsualización */
.export-preview-table-container {
    overflow-x: scroll !important; /* Siempre mostrar scrollbar horizontal */
    overflow-y: auto;
    border: 1px solid var(--export-border);
    border-radius: 8px;
    margin-bottom: 16px;
    /* Altura máxima para que todo quepa en pantalla */

    min-height: 300px;
    /* Forzar scrollbar siempre visible */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Scrollbar personalizado para Chrome/Safari - siempre visible */
.export-preview-table-container::-webkit-scrollbar {
    height: 14px;
    width: 14px;
}

.export-preview-table-container::-webkit-scrollbar:horizontal {
    height: 14px;
}

.export-preview-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.export-preview-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
    min-width: 20px;
    min-height: 20px;
}

.export-preview-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.export-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.export-preview-table th {
    background: #f9fafb;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--export-text-primary);
    border-bottom: 2px solid var(--export-border);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap; /* Evitar que el texto se corte */
}

.export-preview-table td {
    padding: 12px;
    border-bottom: 1px solid var(--export-border);
    color: var(--export-text-primary);
}

.export-preview-table tr:hover {
    background: #f9fafb;
}

.export-preview-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.export-column-filter {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--export-border);
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
}

/* Tabs */
.export-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--export-border);
    margin-bottom: 24px;
}

.export-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--export-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.export-tab:hover {
    color: var(--export-text-primary);
}

.export-tab-active {
    color: var(--export-primary);
    border-bottom-color: var(--export-primary);
}

.export-tab-content {
    display: none;
}

.export-tab-content-active {
    display: block;
}

/* Botones */
.export-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.export-button-primary {
    background: var(--export-primary);
    color: white;
}

.export-button-primary:hover {
    background: var(--export-primary-hover);
}

.export-button-secondary {
    background: white;
    color: var(--export-text-primary);
    border: 1px solid var(--export-border);
}

.export-button-secondary:hover {
    background: #f9fafb;
}

.export-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.export-actions {
    padding: 24px 32px;
    border-top: 1px solid var(--export-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.export-actions-left {
    display: flex;
    gap: 12px;
}

.export-actions-right {
    display: flex;
    gap: 12px;
}

/* Paginación */
.export-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.export-pagination-info {
    font-size: 14px;
    color: var(--export-text-secondary);
}

.export-pagination-controls {
    display: flex;
    gap: 8px;
}

.export-pagination-button {
    padding: 6px 12px;
    border: 1px solid var(--export-border);
    border-radius: 6px;
    background: white;
    color: var(--export-text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.export-pagination-button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: var(--export-primary);
}

.export-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkboxes de configuración y desplegables por grupo */
.export-config-groups-collapsible {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export-config-group {
    margin-bottom: 4px;
    border: 1px solid var(--export-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.export-config-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--export-text-primary);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: background 0.2s;
}

.export-config-group-title:hover {
    background: #f3f4f6;
}

.export-config-group-chevron {
    font-size: 12px;
    color: var(--export-text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.export-config-group:not(.export-config-group-open) .export-config-group-chevron {
    transform: rotate(-90deg);
}

.export-config-group-body {
    padding: 8px 12px 12px 32px;
    border-top: 1px solid var(--export-border);
    background: #fafafa;
}

.export-config-group:not(.export-config-group-open) .export-config-group-body {
    display: none;
}

#export-solo-facturas-content{
    height: 86%;
}

/* Modo "Solo Facturas": grupos Consumos/Costes/Max bloqueados y colapsados */
.export-config-group-locked {
    opacity: 0.6;
    pointer-events: none;
}
.export-config-group-locked .export-config-group-body {
    display: none !important;
}
.export-config-group-locked.export-config-group-open .export-config-group-chevron {
    transform: rotate(-90deg);
}

.export-config-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.export-config-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.export-config-item label {
    font-size: 14px;
    color: var(--export-text-primary);
    cursor: pointer;
}

/* Calendario inteligente */
.export-date-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.export-date-input {
    flex: 1;
    min-width: 150px;
}

.export-date-unit-select {
    width: 120px;
}

/* Loading */
.export-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
    color: var(--export-text-secondary);
}

.export-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--export-border);
    border-top-color: var(--export-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .export-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .export-stepper {
        flex-direction: column;
        gap: 8px;
    }

    .export-step-connector {
        display: none;
    }

    .export-step-content {
        padding: 24px 16px;
    }

    .export-actions {
        flex-direction: column;
        gap: 12px;
    }

    .export-actions-left,
    .export-actions-right {
        width: 100%;
        justify-content: center;
    }
}

/* Contador de seleccionados */
.export-selected-count {
    background: #2863ec;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Grupo de columnas padre */
.export-parent-column-group {
    margin-bottom: 8px;
}

.export-parent-column-group h4 {
    font-size: 14px;
    font-weight: 600;
}

.export-parent-column-group h4 i {
    color: #667eea;
    margin-right: 8px;
}

/* ==================== ÁRBOL DE PLANTILLAS ==================== */

.export-template-tabs-tree {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.export-template-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.export-template-tree-node {
    transition: all 0.2s ease;
}

.export-template-tree-children {
    margin-top: 2px;
    padding-left: 8px;
    border-left: 2px dashed #e5e7eb;
    margin-left: 12px;
}

.export-template-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    background: #f3f4f6;
    border: 2px solid transparent;
    margin-bottom: 4px;
    transition: all 0.15s ease;
}

.export-template-tab:hover:not(.export-template-tab-disabled) {
    background: #e5e7eb;
    transform: translateX(2px);
}

.export-template-tab-active {
    background: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.export-template-tab-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.export-template-tab-disabled:hover {
    transform: none;
    background: #f3f4f6;
}

.export-template-tab input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10b981;
}

.export-template-tab input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.export-template-tab .fa-check-circle {
    color: #10b981;
    font-size: 16px;
}

.export-template-tab .fa-folder-tree {
    color: #f59e0b;
}

.export-template-tab .fa-file-alt {
    color: #6b7280;
}

/* Indicador de selección múltiple del mismo nivel */
.export-template-tabs-tree .selection-indicator {
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

/* ==================== GESTOR DE COLUMNAS UNIFICADO ==================== */

.column-manager-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.column-manager-tab {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s ease;
}

.column-manager-tab:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.column-manager-tab.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    font-weight: 600;
}

.column-manager-tab[data-is-ancestor="true"] {
    background: #fffbeb;
    color: #92400e;
    border-color: #fcd34d;
}

.column-manager-tab[data-is-ancestor="true"]:hover:not(.active) {
    background: #fef3c7;
}

.column-manager-tab[data-is-ancestor="true"].active {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.column-manager-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

#export-column-manager-modal .export-config-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

#export-column-manager-modal .export-config-item:hover {
    border-color: #d1d5db;
}

#export-column-manager-modal .export-config-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

#export-column-manager-modal .export-config-item label {
    cursor: pointer;
    font-size: 13px;
    flex: 1;
    color: #374151;
}

/* ==================== DRAG & DROP PARA REORDENAR COLUMNAS ==================== */

.export-column-header {
    cursor: grab;
    user-select: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
    position: relative;
}

.export-column-header:active {
    cursor: grabbing;
}

.export-column-header.dragging {
    opacity: 0.5;
    background-color: #dbeafe !important;
}

.export-column-header.drag-over {
    background-color: #bfdbfe !important;
    border-left: 3px solid #3b82f6;
}

.export-column-header-content {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.export-column-drag-handle {
    color: #9ca3af;
    font-size: 11px;
    cursor: grab;
    padding: 2px;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.export-column-header:hover .export-column-drag-handle {
    opacity: 1;
    color: #6b7280;
}

.export-column-drag-handle:active {
    cursor: grabbing;
}

.export-column-name {
    flex: 1;
    font-weight: 500;
}

/* Indicador visual de que las columnas son reordenables */
.export-preview-table thead th.export-column-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.15s ease;
}

.export-preview-table thead th.export-column-header:hover::before {
    background: #e5e7eb;
}

.export-preview-table thead th.export-column-header.drag-over::before {
    background: #3b82f6;
}

/* Mismos estilos para cabeceras arrastrables en previsualización por hoja */
#export-sheet-preview-table .export-sheet-column-header {
    cursor: grab;
    user-select: none;
    transition: background-color 0.15s ease;
    position: relative;
}
#export-sheet-preview-table .export-sheet-column-header:active {
    cursor: grabbing;
}
#export-sheet-preview-table .export-sheet-column-header.dragging {
    opacity: 0.5;
    background-color: #dbeafe !important;
}
#export-sheet-preview-table .export-sheet-column-header.drag-over {
    background-color: #bfdbfe !important;
    border-left: 3px solid #3b82f6;
}

/* Dropdown de configuraciones guardadas */
.export-load-saved-dropdown {
    position: relative;
}

.export-saved-dropdown-menu {
    animation: fadeInDown 0.2s ease-out;
}

.export-saved-dropdown-item:last-child {
    border-bottom: none !important;
}

.export-saved-dropdown-item:hover {
    background: #f5f5f5 !important;
}

.export-saved-delete-btn:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* Animación para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Notificación de exportación */
.export-notification {
    animation: slideInRight 0.3s ease-out;
}
