/* Relatórios - CSS Específico */



.relatorios-section .section-header h2 {
    color: white ;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

/* Correção de alinhamento lateral para Relatórios */
.relatorios-section {
    
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
    max-width: 100% ;
    margin: 0 auto ;
    box-sizing: border-box ;
    width: 100% ;
}

/* Garantir que o container principal não tenha overflow lateral */
.funil-executive-header {
    max-width: 100%;
    margin-bottom: 15px;
    padding: 50px 30px;
    box-sizing: border-box;
    border-radius: 15px;
}

/* Export Buttons */
.relatorios-section .export-buttons {
    display: flex;
    gap: 1rem;
}

.relatorios-section .export-buttons .btn {
    padding: 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.relatorios-section .export-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Report Filters removidos */

/* Reports Grid - Conteúdo removido */

/* Estilos dos headers dos charts - compatibilidade */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.chart-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chart-header h3 i {
    color: #667eea;
    font-size: 1.2rem;
}

.chart-actions .btn-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chart-actions .btn-icon:hover {
    transform: translateY(-2px) rotate(180deg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}























.relatorios-section #vendedor-performance {
    min-height: 350px;
}

.performance-metric {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.performance-metric h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.performance-metric p {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.performance-metric p:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.performance-metric strong {
    color: #2c3e50;
    font-weight: 700;
}

/* Performance Items */
.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.2s ease;
}

.performance-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.performance-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.performance-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.performance-stat {
    text-align: center;
}

.performance-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.performance-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.performance-stat.leads .performance-stat-value {
    color: #3498db;
}

.performance-stat.conversao .performance-stat-value {
    color: #28a745;
}

.performance-stat.vendas .performance-stat-value {
    color: #fd7e14;
}

/* No Data State */
.relatorios-section .no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.relatorios-section .no-data i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

/* Loading State */
.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #7f8c8d;
}

.chart-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Garantir que filtros também fiquem alinhados */
.report-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Funil de conversão com bordas próximas às laterais */
.conversion-funnel {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.conversion-funnel .funnel-stage {
    margin: 0 0 10px 0;
    padding: 15px 10px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsividade geral para relatórios */
@media (max-width: 1200px) {
    .performance-stats {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .performance-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .performance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .relatorios-section .export-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .relatorios-section .card {
        padding: 1.5rem;
    }
    
    .relatorios-section canvas {
        height: 250px;
    }
    
    .performance-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .performance-stats {
        justify-content: space-around;
    }
}

/* End of relatorios.css */