/* ================================
   CONTAINER PRINCIPAL
================================ */
.sicav-resumo-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Título principal FINANCEIRO DA VIAGEM - ANTES DOS FILTROS*/
.sicav-resumo-titulo,
.sicav-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #003366;
}

/* Reduz o espaço entre Cliente e Viagem no relatório financeiro */
.sicav-resumo-container p {
    margin-bottom: 6px !important;
}

.sicav-resumo-container p:last-of-type {
    margin-bottom: 15px !important; /* espaço final antes do próximo bloco */
}

/* ================================
   FORMULÁRIO DE FILTROS
================================ */
.sicav-resumo-form-container {
    background: #f7f9fc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
}

.filtros-linha {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filtro-item {
    flex: 1;
    min-width: 220px;
}

.filtro-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.filtro-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd3dd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

/* ================================
   TABELAS DO RELATÓRIO PÁGINA SICAV RELATÓRIOFINANCEIRO USUÁRIO
================================ */
/* Centralizar todos os títulos (TH) de todas as tabelas SICAV */
.sicav-table th {
    text-align: center !important;
}

table.sicav-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;

    border: 1px solid #0057A6;
    border-radius: 10px;
    overflow: hidden;
}

/* Cabeçalho */
table.sicav-table th {
    background: #fff;
    color: #0057A6;
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #0057A6; /* só linha inferior */
}

/* Linhas */
table.sicav-table td {
    padding: 10px;
    font-size: 12px;
    border-bottom: 1px solid #0057A6; /* só linha inferior */
}

table.sicav-table tr:nth-child(even) {
    background: #f5f8fc;
}

/* Remove a última linha */
table.sicav-table tr:last-child td {
    border-bottom: none;
}

/* ================================
   SEÇÕES DO RELATÓRIO
================================ */
h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #003366;
    font-size: 10px;
    border-left: none solid #003366;
    padding-left: 10px;
}

/* Título principal */
.sicav-resumo-container h1 {
    font-size: 22px;   /* ajuste como preferir */
    margin-bottom: 10px;
}

/* Títulos das seções (Hospedagens, Transportes, etc.) */
.sicav-resumo-container h2 {
    font-size: 18px;   /* ajuste como preferir */
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ================================
   TOTAL GERAL
================================ */
.sicav-total-geral {
    background: #eef3fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d8e1ef;
    margin-top: 30px;
}

.sicav-total-geral table {
    width: 100%;
    border-collapse: collapse;
}

.sicav-total-geral th {
    background: #003366;
    color: #fff;
    padding: 10px;
}

.sicav-total-geral td {
    padding: 10px;
    border-bottom: 1px solid #d0d7e2;
}

/* ================================
   RESPONSIVIDADE
================================ */
@media (max-width: 768px) {
    .filtros-linha {
        flex-direction: column;
    }
}

    /* Oculta completamente o relatório financeiro no mobile */
/* @media screen and (max-width: 768px) {
    .sicav-form-container,
    .sicav-resumo-container {
        display: none !important;
    }
}



/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE HOSPEDAGENS
================================ */
/* Coluna Seq */
.sicav-table td:nth-child(1),
.sicav-table th:nth-child(1) {
    width: 50px;      /* suficiente para "Seq" */
    text-align: center;
}

/* Coluna Entrada */
.sicav-table td:nth-child(5),
.sicav-table th:nth-child(5) {
    width: 100px;     
    text-align: center;
}

/* Coluna Saída */
.sicav-table td:nth-child(6),
.sicav-table th:nth-child(6) {
    width: 100px;     
    text-align: center;
}

/* Coluna Comissão */
.sicav-table td:nth-child(7),
.sicav-table th:nth-child(7) {
    width: 100px;     
    text-align: center;
}

/* Coluna Valor */
.sicav-table td:nth-child(8) {
    width: 100px;     
    text-align: right;
}

/* Coluna Valor */
.sicav-table th:nth-child(8) {
    width: 100px;     
    text-align: center;
}

/* Coluna Contratado */
.sicav-table td:nth-child(9),
.sicav-table th:nth-child(9) {
    width: 95px;     /* suficiente para "Contratado" */
    text-align: center;
}

/* Coluna Hotel ganha o espaço extra */
.sicav-table td:nth-child(2),
.sicav-table th:nth-child(2) {
    width: 250px;      
}

/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE TRANSPORTES
================================ */
/* Coluna Tipo (Transportes) */
.sicav-table.transportes td:nth-child(2),
.sicav-table.transportes th:nth-child(2) {
    width: 120px; /* ajuste como quiser */
}

/* Coluna Contratado (Transportes) */
.sicav-table.transportes td:nth-child(10),
.sicav-table.transportes th:nth-child(10) {
    width: 90px; /* ajuste como quiser */
}

/* Coluna Desembarque (Transportes) */
.sicav-table.transportes td:nth-child(7),
.sicav-table.transportes th:nth-child(7) {
    width: 110px; /* ajuste como quiser */
}

/* Coluna Fornecedor ao centro */
.sicav-table.transportes th:nth-child(5) {
    text-align: center !important;
}

/* Coluna Fornecedor à esquerda */
.sicav-table.transportes td:nth-child(5) {
    text-align: left !important;
}

/* Coluna CONTRATADO ao centro */
.sicav-table.transportes td:nth-child(10) {
    text-align: center !important;
}

/* Coluna COMISSÃO ao centro */
.sicav-table.transportes td:nth-child(8) {
    text-align: right !important;
    width: 100px;
}

/* Coluna COMISSÃO  */
.sicav-table.transportes tH:nth-child(8) {
    text-align: center !important;
    width: 100px;
}

/* Coluna VALOR à direita */
.sicav-table.transportes td:nth-child(9) {
    text-align: right !important;
    width: 100px;
}

/* Coluna VALOR  */
.sicav-table.transportes th:nth-child(9) {
    text-align: centro !important;
    width: 100px;
}

/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE PASSEIOS
================================ */

/* Coluna PASSEIO  */
.sicav-table.passeios td:nth-child(2) {
    text-align: left !important;
    width: 330px;
}

/* Coluna PASSEIO */
.sicav-table.passeios th:nth-child(2) {
    width: 330px;
    text-align: center
}

/* Coluna FORNECEDOR  */
.sicav-table.passeios td:nth-child(4) {
    text-align: left !important;
    width: 120px;
}

/* Coluna FORNECEDOR */
.sicav-table.passeios th:nth-child(4) {
    width: 120px;
    text-align: center
}

.sicav-table.passeios td:nth-child(3),
.sicav-table.passeios th:nth-child(3) {
    width: 150px; /* ajuste como quiser */
}

/* Coluna Contratado  */
.sicav-table.passeios td:nth-child(8),
.sicav-table.passeios th:nth-child(8) {
    width: 90px; /* ajuste como quiser */
    text-align: center;
}

/* Coluna Valor */
.sicav-table.passeios td:nth-child(7) {
    text-align: right;
    width: 100px;
}

/* Coluna Valor */
.sicav-table.passeios th:nth-child(7) {
    width: 100px;     
    
}

/* Coluna Comissão */
.sicav-table.passeios th:nth-child(6) {
    width: 100px;     
}

/* Coluna Comissão */
.sicav-table.passeios td:nth-child(6) {
    width: 100px;     
    text-align: right;
}

/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE INGRESSOS
================================ */

/* Coluna Contratado  */
.sicav-table.ingressos td:nth-child(8),
.sicav-table.ingressos th:nth-child(8) {
    width: 90px; /* ajuste como quiser */
    text-align: center;
}

/* Coluna Valor */
.sicav-table.ingressos td:nth-child(7) {
    text-align: right;
    width: 100px;
}

/* Coluna Valor */
.sicav-table.ingressos th:nth-child(7) {
    width: 100px;     
    
}

/* Coluna Comissão */
.sicav-table.ingressos th:nth-child(6) {
    width: 100px;     
}

/* Coluna Comissão */
.sicav-table.ingressos td:nth-child(6) {
    width: 100px;     
    text-align: right;
}

/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE SEGUROS
================================ */

/* Coluna Contratado  */
.sicav-table.seguros td:nth-child(9),
.sicav-table.seguros th:nth-child(9) {
    width: 90px; /* ajuste como quiser */
    text-align: center;
}

/* Coluna Valor */
.sicav-table.seguros td:nth-child(8) {
    text-align: right;
    width: 100px;
}

/* Coluna Valor */
.sicav-table.seguros th:nth-child(8) {
    width: 100px;     
    
}

/* Coluna Comissão */
.sicav-table.seguros th:nth-child(7) {
    width: 100px;     
}

/* Coluna Comissão */
.sicav-table.seguros td:nth-child(7) {
    width: 100px;     
    text-align: right;
}

/* Coluna Desembarque (Transportes) */
.sicav-table.seguros td:nth-child(6),
.sicav-table.seguros th:nth-child(6) {
    width: 110px; /* ajuste como quiser */
}

/* Coluna Valor */
.sicav-table.seguros td:nth-child(2) {
    text-align: right;
    width: 100px;
}

/* Coluna Valor */
.sicav-table.seguros th:nth-child(2) {
    width: 100px;     
    
}

/* ================================
   CONFIGURAÇÃO DAS COLUNAS DE TOTAL GERAL
================================ */

/* Coluna Item  */
.sicav-table.sicav-total-detalhado td:nth-child(2) {
    text-align: left !important;
    width: 330px;
}

/* Coluna Item */
.sicav-table.sicav-total-detalhado th:nth-child(2) {
    width: 330px;
    text-align: center
}

/* Coluna Contratado  */
.sicav-table.sicav-total-detalhado td:nth-child(5) {
    text-align: right;
    width: 110px;
}

/* Coluna Contratado  */
.sicav-table.sicav-total-detalhado th:nth-child(5) {
    width: 110px; 
    text-align: center;
}

/* Coluna Total */
.sicav-table.sicav-total-detalhado td:nth-child(4) {
    text-align: right;
    width: 100px;
}

/* Coluna Total */
.sicav-table.sicav-total-detalhado th:nth-child(4) {
    width: 100px;     
    
}

/* Coluna Comissão */
.sicav-table.sicav-total-detalhado th:nth-child(3) {
    width: 100px;     
}

/* Coluna Comissão */
.sicav-table.sicav-total-detalhado td:nth-child(3) {
    width: 100px;     
    text-align: right;
}


/* ================================
   BOTÃO IMPRIMIR
================================ */
.sicav-btn-print {
    background: #0057A6;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
}

.sicav-btn-print:hover {
    background: #003f7d;
}

/* ============================
   IMPRESSÃO PROFISSIONAL SICAV
============================ */
@media print {

    @page {
        size: A4;
        margin: 5mm 5mm 10mm 5mm; /* topo | direita | baixo | esquerda */
        
        @bottom-center {
        content: "Relatório SICAV — Página " counter(page) " de " counter(pages);
        font-size: 11px;
        font-weight: bold;
        color: #444;
    }
}


    /* Esconde apenas o cabeçalho do site, não o do relatório */
.site-header,
.site-footer,
nav,
footer,
.sicav-btn-print,
.sicav-form-container {
    display: none !important;
}

    
   
    .elementor,
    .elementor-section,
    .elementor-container,
    .elementor-column,
    .site,
    .site-content,
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sicav-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
        .sicav-resumo-container {
        transform: scale(0.95);

}

/* CSS QUE GARANTE QUE NUNCA HAVERÁ QUEBRA ENTRE TÍTULO E TABELA */
    .sicav-bloco {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        display: block;
    }

    .sicav-bloco h2,
    .sicav-bloco h3 {
        page-break-after: avoid !important;
    }

    .sicav-bloco table {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* Layout do Cabeçalho na tela */
.sicav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sicav-header-left h1 {
    margin: 0;
}

.sicav-header-left p {
    margin: 5px 0 0 0;
}

.sicav-header-right {
    display: flex;
    align-items: center;
}

.sicav-header-divider {
    margin: 10px 0 20px 0;
}

/* Altera espaço do cliente para viagem, no cabeçalho */
.sicav-info {
    display: flex;
    gap: 100px; /* AQUI você controla o espaço */
    margin: 5px 0 0 0;
}

.sicav-info span {
    display: inline-block;
}

/* Impressão (cabeçalho fixo em TODAS as páginas) */
@media print {

    .sicav-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 8mm 0 4mm 0;
        background: #fff;
        z-index: 9999;
        border-bottom: 1px solid #000;
    }

    .sicav-content {
        margin-top: 45mm !important;
    }

    .sicav-btn-print {
        display: none !important;
    }
}

@media print {
    .elementor,
    .elementor-section,
    .elementor-container,
    .elementor-column,
    .site,
    .site-content,
    .content-area,
    body,
    html {
        transform: none !important;
        overflow: visible !important;
        position: static !important;
    }
}
