/* Estilos para o sistema de relatórios */

/* Modal de relatórios */
.reports-modal {
    z-index: 1001; /* Maior que o modal de pagamento */
}

.reports-content {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Abas de relatórios */
.reports-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 1px;
}

.report-tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
    white-space: nowrap;
}

.report-tab-btn:hover {
    color: #4c6ef5;
}

.report-tab-btn.active {
    color: #4c6ef5;
    border-bottom-color: #4c6ef5;
}

/* Filtros de relatórios */
.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    align-items: flex-end;
}

.report-filters .form-group {
    flex: 1;
    min-width: 150px;
}

/* Conteúdo do relatório */
.report-content {
    min-height: 300px;
}

.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.report-loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #4c6ef5;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.report-section {
    margin-bottom: 30px;
}

.report-section h3 {
    margin-bottom: 15px;
    color: #212529;
    font-size: 1.5rem;
}

.report-period {
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

/* Cards de resumo */
.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4c6ef5;
    margin-bottom: 5px;
}

.summary-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Detalhes do relatório */
.report-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-subsection {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.report-subsection h4 {
    margin-bottom: 15px;
    color: #343a40;
    font-size: 1.2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

/* Tabelas de relatório */
.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.report-table th {
    font-weight: 500;
    color: #495057;
}

.report-table td {
    color: #212529;
}

/* Mensagens de erro e informação */
.report-message,
.report-error {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.report-message {
    background-color: #e9ecef;
    color: #495057;
}

.report-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsividade */
@media (max-width: 768px) {
    .report-summary {
        flex-direction: column;
    }
    
    .report-details {
        grid-template-columns: 1fr;
    }
    
    .report-filters {
        flex-direction: column;
    }
    
    .report-filters .form-group {
        width: 100%;
    }
}
