/* inventory-flow.css */

/* Contenedor específico para este módulo dentro del WMS */
.flow-module--solvix-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px; /* Acorde a tu WMS */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    /* Aseguramos que no rompa el flujo */
    width: 100%; 
    box-sizing: border-box;
}

/* Header interno del módulo */
.flow-top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    flex-wrap: wrap;
    gap: 10px;
}

/* Switch de vistas (Día/Semana/Mes) */
.flow-view-switch { 
     
    padding: 4px; 
    border-radius: 99px; 
    display: inline-flex; 
}
.flow-view-switch button { 
    background: transparent; 
    border: none; 
    padding: 6px 14px; 
    border-radius: 99px; 
    cursor: pointer; 
    font-weight: 600; 
    color: #64748b; 
    transition: all 0.3s; 
    font-size: 0.85rem;
}
.flow-view-switch button.active { 
    background: #ffffff; 
    color: #2563eb; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

/* Botón Configuración */
.flow-config-btn { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
}
.flow-config-btn:hover { 
    background: #e2e8f0; 
    transform: rotate(90deg); 
}

/* Wrapper del Gráfico y Menú */
.flow-chart-wrapper { 
    position: relative; 
    margin-top: 10px; 
    height: 350px; 
    border-radius: 12px; 
    overflow: hidden; /* CRUCIAL: Mantiene el menú oculto */
    background: #fafafa; 
    border: 1px solid #f0f0f0;
}

/* Menú Deslizante (Settings) */
.flow-settings-panel {
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 260px; 
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(0,242,255,0.15); 
    padding: 20px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 20;
    display: flex; 
    flex-direction: column;
    overflow-y: auto; 
    border-radius: 0;
}
.flow-settings-panel.open { 
    transform: translateX(0); 
}

.flow-settings-panel label { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 12px; 
    cursor: pointer; 
    color: #cbd5e1; 
    font-size: 0.85rem;
}

/* Botones dentro del menú */
.flow-action-btn {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    background: #fff;
}
.flow-pdf-btn { border: 1px solid #007bff; color: #007bff; }
.flow-pdf-btn:hover { background: #f0f7ff; }
.flow-reset-btn { border: 1px solid #fee2e2; color: #ef4444; }
.flow-reset-btn:hover { background: #fef2f2; }

/* Tip Box */
.flow-tip-box {
    margin-top: 10px; 
    padding: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #1e40af;
    line-height: 1.4;
}

/* Overlays en el gráfico */
.flow-overlay {
    position: absolute; 
    top: 15px; 
    left: 15px;
    background: rgba (250,255,255,0.5);
    backdrop-filter: blur(4px);
    border-radius: 8px; 
    padding: 10px; 
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    border: 1px solid rgba(255,255,255,0.5);
    max-width: 180px; 
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.flow-overlay.hidden { opacity: 0; }

/* Tabla interna del flujo (diferente a la tabla general del WMS) */
.flow-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}
.flow-mini-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.85rem;
    
}
.flow-mini-table th { 
    background: #007bff; /* Color solicitado */
    color: white; 
    padding: 10px; 
    text-align: center;
    border-radius: 4px 4px 0 0;
}
.flow-mini-table td { 
    padding: 8px; 
    text-align: center; 
    border-bottom: 1px solid #f1f5f9; 
    color: #334155;
    
}
.stock-critico { background: #fef2f2; color: #dc2626; font-weight: 700; border-radius: 4px; padding: 2px 6px; }

