/* Estilos Gerais do Relatório */
.content-wrapper-relatorio {
    padding: 30px;
}

.filtros-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filtros-section h3 {
    margin-bottom: 20px;
    color: #0a7a83;
    font-size: 1.3em;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filtro-group {
    display: flex;
    flex-direction: column;
}

.filtro-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.filtro-select,
.filtro-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: white;
}

.filtro-select:focus,
.filtro-input:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.botoes-acao {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #0a7a83 0%, #0fbec6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 122, 131, 0.35);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.relatorio-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.relatorio-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

/* Estilos do Relatório Gerado */
.relatorio-container {
    max-width: 100%;
}

.relatorio-cabecalho {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0a7a83;
}

.relatorio-cabecalho h1 {
    color: #0a7a83;
    font-size: 2em;
    margin-bottom: 10px;
}

.relatorio-cabecalho .info-relatorio {
    color: #666;
    font-size: 0.95em;
    margin-top: 10px;
}

.relatorio-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.resumo-card {
    background: linear-gradient(135deg, #0a7a83 0%, #0fbec6 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.resumo-card.verde {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.resumo-card.vermelho {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.resumo-card.laranja {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resumo-card-titulo {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resumo-card-valor {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.resumo-card-detalhe {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Tabela de Alunos */
.tabela-alunos {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
}

.tabela-alunos thead {
    background: linear-gradient(135deg, #0a7a83 0%, #0fbec6 100%);
    color: white;
}

.tabela-alunos th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.tabela-alunos td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.tabela-alunos tbody tr:hover {
    background: #f8f9fa;
}

.tabela-alunos tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-em-dia {
    background: #d4edda;
    color: #155724;
}

.status-em-atraso {
    background: #f8d7da;
    color: #721c24;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

/* Relatório Individual */
.relatorio-individual {
    margin-bottom: 30px;
}

.info-aluno {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #0a7a83;
}

.info-aluno h3 {
    color: #0a7a83;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-aluno-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-aluno-item {
    display: flex;
    flex-direction: column;
}

.info-aluno-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-aluno-valor {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.historico-pagamentos {
    margin-top: 25px;
}

.historico-pagamentos h4 {
    color: #0a7a83;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.pagamento-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.pagamento-item:last-child {
    border-bottom: none;
}

.pagamento-item:hover {
    background: #f8f9fa;
}

.pagamento-data {
    font-weight: 600;
    color: #333;
}

.pagamento-mes {
    color: #666;
}

.pagamento-valor {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1em;
}

.pagamento-forma {
    color: #666;
    font-size: 0.9em;
}

/* Totais */
.totais-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #0a7a83;
}

.totais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.total-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.total-item-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-item-valor {
    font-size: 1.8em;
    font-weight: bold;
    color: #0a7a83;
}

.total-item-valor.negativo {
    color: #dc3545;
}

.total-item-valor.positivo {
    color: #28a745;
}

/* Rodapé do Relatório */
.relatorio-rodape {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

/* Estilos para Impressão */
@media print {
    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    header {
        background: white !important;
        color: #333 !important;
        padding: 20px 0;
        border-bottom: 2px solid #0a7a83;
    }

    header h1,
    header h2 {
        color: #333 !important;
    }

    nav,
    .no-print {
        display: none !important;
    }

    .content-wrapper-relatorio {
        padding: 0;
    }

    .relatorio-section {
        box-shadow: none;
        padding: 0;
    }

    .relatorio-cabecalho {
        page-break-after: avoid;
    }

    .relatorio-resumo {
        page-break-inside: avoid;
    }

    .tabela-alunos {
        page-break-inside: auto;
    }

    .tabela-alunos thead {
        display: table-header-group;
    }

    .tabela-alunos tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .relatorio-individual {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .info-aluno {
        page-break-inside: avoid;
    }

    .historico-pagamentos {
        page-break-inside: avoid;
    }

    .pagamento-item {
        page-break-inside: avoid;
    }

    .totais-section {
        page-break-inside: avoid;
    }

    .resumo-card {
        page-break-inside: avoid;
    }

    /* Evitar quebras de página em elementos importantes */
    .relatorio-container {
        page-break-inside: avoid;
    }

    /* Estilos de impressão para cores */
    .status-badge {
        border: 1px solid #333;
    }

    .status-em-dia {
        background: #d4edda !important;
        color: #155724 !important;
    }

    .status-em-atraso {
        background: #f8d7da !important;
        color: #721c24 !important;
    }

    .status-pendente {
        background: #fff3cd !important;
        color: #856404 !important;
    }

    /* Remover gradientes em impressão */
    .resumo-card {
        background: #0a7a83 !important;
        color: white !important;
    }

    .resumo-card.verde {
        background: #28a745 !important;
    }

    .resumo-card.vermelho {
        background: #dc3545 !important;
    }

    .resumo-card.laranja {
        background: #ffc107 !important;
        color: #333 !important;
    }

    .tabela-alunos thead {
        background: #0a7a83 !important;
        color: white !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .relatorio-resumo {
        grid-template-columns: 1fr;
    }

    .tabela-alunos {
        font-size: 0.85em;
    }

    .tabela-alunos th,
    .tabela-alunos td {
        padding: 8px;
    }

    .pagamento-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}




