@charset "utf-8";

/* ==========================================================
   LAYOUT FINAL V5
   HOME: Veículos primeiro, Imóveis abaixo.
   TODAS AS TABELAS: Sel | Crédito | Entrada | Parcelas | Administradora | Situação
   Sem rolagem horizontal.
   ========================================================== */

*{box-sizing:border-box;}

.cota-status-cell{font-weight:700;}
.cotaReservada .cota-status-cell{color:#9a6b00;}
.cotaVendida .cota-status-cell{color:#b3261e;}

.tabela-cotas-final{
    width:100% !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
}

.tabela-cotas-final th,
.tabela-cotas-final td{
    vertical-align:middle !important;
}

.tabela-cotas-final .administradoraTabelaImg img{
    width:auto !important;
    max-width:90px !important;
    max-height:28px !important;
    object-fit:contain !important;
    margin:0 auto !important;
    display:block !important;
}

/* HOME: Veículos em cima, Imóveis embaixo */
.home-cotas-col{
    width:100% !important;
    float:none !important;
}
.home-veiculos{order:1;}
.home-imoveis{order:2;}

@media (min-width: 992px){
    .row.pt30:has(.home-cotas-col){
        display:flex;
        flex-direction:column;
    }

    .home-cotas-col{
        margin-bottom:28px;
    }

    .tabela-cotas-final th,
    .tabela-cotas-final td{
        padding:8px 7px !important;
        font-size:13px !important;
        line-height:1.2 !important;
    }
}

/* ---------- MOBILE / TABLET ---------- */
@media (max-width: 991px){

    html, body{
        max-width:100%;
        overflow-x:hidden !important;
        -webkit-text-size-adjust:100%;
    }

    .row.pt30:has(.home-cotas-col){
        display:flex;
        flex-direction:column;
    }

    .home-veiculos{order:1;}
    .home-imoveis{order:2;}

    .home-cotas-col{
        padding-left:0 !important;
        padding-right:0 !important;
        margin-bottom:24px !important;
    }

    .home-cotas-col h2.e40{
        font-size:25px !important;
        line-height:1.08 !important;
        margin:4px 0 10px !important;
    }

    .home-cotas-col > .fMax{
        font-size:12px !important;
        margin-bottom:2px !important;
    }

    /* Normal table wrapper, no horizontal dragging */
    .table-responsive,
    .cotas-lista-responsive,
    .home-cotas-table-wrap{
        width:100% !important;
        max-width:100% !important;
        overflow:visible !important;
        border:0 !important;
    }

    .tabela-cotas-final{
        display:table !important;
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        table-layout:fixed !important;
        margin:0 0 10px !important;
    }

    .tabela-cotas-final thead{display:table-header-group !important;}
    .tabela-cotas-final tbody{display:table-row-group !important;}
    .tabela-cotas-final tr,
    .tabela-cotas-final tr.cotaContemplada{
        display:table-row !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
        background:transparent !important;
    }

    .tabela-cotas-final th,
    .tabela-cotas-final td,
    .tabela-cotas-final tr.cotaContemplada > td{
        display:table-cell !important;
        position:static !important;
        width:auto !important;
        min-width:0 !important;
        height:44px !important;
        padding:5px 3px !important;
        border:1px solid #ddd !important;
        vertical-align:middle !important;
        text-align:left !important;
        white-space:normal !important;
        overflow:hidden !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        line-height:1.12 !important;
    }

    .tabela-cotas-final th{
        background:#f7f7f7 !important;
        color:#333 !important;
        font-size:9px !important;
        font-weight:700 !important;
        white-space:nowrap !important;
        text-overflow:ellipsis !important;
    }

    .tabela-cotas-final td{
        font-size:10px !important;
        color:#222 !important;
    }

    .tabela-cotas-final td:before,
    .tabela-cotas-final td:after{
        display:none !important;
        content:none !important;
    }

    /* Six columns only */
    .tabela-cotas-final th:nth-child(1),
    .tabela-cotas-final td:nth-child(1){
        width:8% !important;
        text-align:center !important;
    }

    .tabela-cotas-final th:nth-child(2),
    .tabela-cotas-final td:nth-child(2){
        width:18% !important;
        white-space:nowrap !important;
        font-variant-numeric:tabular-nums;
    }

    .tabela-cotas-final th:nth-child(3),
    .tabela-cotas-final td:nth-child(3){
        width:18% !important;
        white-space:nowrap !important;
        font-variant-numeric:tabular-nums;
    }

    .tabela-cotas-final th:nth-child(4),
    .tabela-cotas-final td:nth-child(4){
        width:28% !important;
    }

    .tabela-cotas-final th:nth-child(5),
    .tabela-cotas-final td:nth-child(5){
        width:18% !important;
        text-align:center !important;
    }

    .tabela-cotas-final th:nth-child(6),
    .tabela-cotas-final td:nth-child(6){
        width:10% !important;
        text-align:center !important;
        white-space:nowrap !important;
    }

    .cota-soma-check,
    .cota-soma-check-ativa{
        display:block !important;
        width:18px !important;
        height:18px !important;
        margin:0 auto !important;
        cursor:pointer !important;
        opacity:1 !important;
        pointer-events:auto !important;
    }

    .tabela-cotas-final .cota-col-parcelas{
        display:table-cell !important;
        font-size:9px !important;
        line-height:1.1 !important;
    }

    .tabela-cotas-final .administradoraTabelaImg img{
        max-width:64px !important;
        max-height:22px !important;
    }

    .tabela-cotas-final .cota-status-cell{
        font-size:8px !important;
        font-weight:700 !important;
        white-space:nowrap !important;
    }

    /* Soma box compact, no side-scroll UI */
    .cotas-soma-box{
        display:block !important;
        width:100% !important;
        padding:9px 10px !important;
        margin:0 0 10px !important;
        border:1px solid #ddd !important;
        border-radius:6px !important;
        background:#f8f8f8 !important;
    }

    .cotas-soma-box strong{
        font-size:13px !important;
    }

    .cotas-soma-box span{
        display:block !important;
        margin:2px 0 0 !important;
        font-size:11px !important;
        line-height:1.25 !important;
    }

    .cotas-soma-box .btn{
        width:100% !important;
        margin:7px 0 0 !important;
        min-height:34px !important;
        padding:7px !important;
        font-size:12px !important;
    }

    /* Modal result remains readable */
    #modalSomarCotas .modal-dialog{
        width:calc(100% - 16px) !important;
        max-width:none !important;
        margin:8px !important;
    }

    #modalSomarCotas .soma-cotas-tabela{
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch;
    }

    #modalSomarCotas .soma-cotas-tabela table{
        min-width:620px !important;
        table-layout:fixed !important;
    }

    #somaCotasParcelasResultado{
        white-space:normal !important;
        overflow:visible !important;
        word-break:normal !important;
        overflow-wrap:anywhere !important;
        font-size:10px !important;
        line-height:1.35 !important;
        font-weight:700 !important;
    }
}

/* Very small phones */
@media (max-width: 360px){
    .tabela-cotas-final th{font-size:8px !important;}
    .tabela-cotas-final td{font-size:9px !important;}
    .tabela-cotas-final .cota-col-parcelas{font-size:8px !important;}
    .tabela-cotas-final .administradoraTabelaImg img{max-width:56px !important;}
    .tabela-cotas-final .cota-status-cell{font-size:7.5px !important;}
}


/* ==========================================================
   V6
   Home: 5 veículos + 5 imóveis + botão Ver mais.
   Modal: Crédito / Entrada / Parcelas visíveis sem rolagem lateral.
   ========================================================== */

.home-ver-mais{
    margin:10px 0 0 !important;
}
.home-ver-mais .btn{
    min-width:150px;
    font-weight:600;
}

/* Modal de soma: estrutura profissional e sem rolagem lateral */
#modalSomarCotas .soma-cotas-tabela{
    overflow-x:hidden !important;
    width:100% !important;
}

#modalSomarCotas .soma-cotas-tabela table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
}

#modalSomarCotas .soma-cotas-tabela th,
#modalSomarCotas .soma-cotas-tabela td{
    vertical-align:middle !important;
    white-space:normal !important;
    overflow:visible !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
}

#modalSomarCotas .soma-cotas-tabela th:nth-child(1),
#modalSomarCotas .soma-cotas-tabela td:nth-child(1){
    width:13% !important;
}

#modalSomarCotas .soma-cotas-tabela th:nth-child(2),
#modalSomarCotas .soma-cotas-tabela td:nth-child(2){
    width:22% !important;
}

#modalSomarCotas .soma-cotas-tabela th:nth-child(3),
#modalSomarCotas .soma-cotas-tabela td:nth-child(3){
    width:22% !important;
}

#modalSomarCotas .soma-cotas-tabela th:nth-child(4),
#modalSomarCotas .soma-cotas-tabela td:nth-child(4){
    width:43% !important;
}

#somaCotasParcelasResultado{
    white-space:normal !important;
    overflow:visible !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
    line-height:1.35 !important;
    font-weight:700 !important;
}

@media (max-width: 767px){

    #modalSomarCotas .modal-dialog{
        width:calc(100% - 12px) !important;
        max-width:none !important;
        margin:6px !important;
    }

    #modalSomarCotas .modal-body{
        padding:12px !important;
    }

    #modalSomarCotas .soma-resumo-grid{
        display:grid !important;
        grid-template-columns:1fr 1fr 1fr !important;
        gap:6px !important;
        margin-bottom:12px !important;
    }

    #modalSomarCotas .soma-resumo-grid > div{
        min-width:0 !important;
        padding:8px !important;
    }

    #modalSomarCotas .soma-resumo-grid small{
        display:block !important;
        font-size:9px !important;
        margin-bottom:2px !important;
    }

    #modalSomarCotas .soma-resumo-grid strong{
        display:block !important;
        font-size:12px !important;
        line-height:1.15 !important;
        overflow-wrap:anywhere !important;
    }

    #modalSomarCotas .soma-cotas-tabela th{
        padding:7px 3px !important;
        font-size:9px !important;
        line-height:1.1 !important;
    }

    #modalSomarCotas .soma-cotas-tabela td{
        padding:8px 3px !important;
        font-size:9.5px !important;
        line-height:1.18 !important;
    }

    /* Crédito e entrada sem quebra desnecessária */
    #modalSomarCotas .soma-cotas-tabela td:nth-child(2),
    #modalSomarCotas .soma-cotas-tabela td:nth-child(3){
        white-space:nowrap !important;
        overflow:hidden !important;
        font-variant-numeric:tabular-nums;
    }

    #modalSomarCotas .soma-cotas-tabela th:nth-child(1),
    #modalSomarCotas .soma-cotas-tabela td:nth-child(1){
        width:12% !important;
    }

    #modalSomarCotas .soma-cotas-tabela th:nth-child(2),
    #modalSomarCotas .soma-cotas-tabela td:nth-child(2){
        width:24% !important;
    }

    #modalSomarCotas .soma-cotas-tabela th:nth-child(3),
    #modalSomarCotas .soma-cotas-tabela td:nth-child(3){
        width:24% !important;
    }

    #modalSomarCotas .soma-cotas-tabela th:nth-child(4),
    #modalSomarCotas .soma-cotas-tabela td:nth-child(4){
        width:40% !important;
    }

    #somaCotasParcelasResultado{
        font-size:9px !important;
        line-height:1.25 !important;
    }

    .home-ver-mais{
        margin:8px 0 4px !important;
    }

    .home-ver-mais .btn{
        width:100%;
        min-height:36px;
        padding:8px 10px;
        font-size:12px;
    }
}


/* ==========================================================
   V7 - AJUSTES VISUAIS DA HOME
   1) Logo em tom dourado
   2) Remove botão Atendimento WhatsApp do topo apenas na Home
   3) Banner principal maior
   ========================================================== */

/* Remove Atendimento do topo somente na página inicial */
.home-page .whatsAppBoxTopo{
    display:none !important;
}

/* Logo: aplica tom dourado mantendo a arte original */
.home-page #logoTopo{
    filter: sepia(1) saturate(5.5) hue-rotate(355deg) brightness(.88) contrast(1.12);
}

/* Banner principal maior no desktop */
.home-page .home-banner-principal{
    display:block;
    width:100% !important;
    height:420px !important;
    object-fit:cover;
    object-position:center;
}

@media (max-width: 991px){
    .home-page .home-banner-principal{
        height:320px !important;
        object-fit:cover;
        object-position:center;
    }
}

@media (max-width: 767px){
    .home-page .home-banner-principal{
        height:265px !important;
        object-fit:cover;
        object-position:center;
    }

    /* Com o WhatsApp do topo removido, reduz o espaço vazio do cabeçalho */
    .home-page .container.full.ptb30{
        padding-bottom:18px !important;
    }
}

@media (max-width: 390px){
    .home-page .home-banner-principal{
        height:235px !important;
    }
}


/* ==========================================================
   V8 - HOME / FILTROS / PARCEIROS
   ========================================================== */

/* Volta a logo para a arte original */
.home-page #logoTopo{
    filter:none !important;
}

/* Banner sem corte: respeita proporção original */
.home-page .home-banner-principal{
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
    object-position:center !important;
}

/* Continua sem o botão Atendimento no topo da Home */
.home-page .whatsAppBoxTopo{
    display:none !important;
}

/* Filtros */
.cotas-filtros{
    padding:10px;
    margin:0 0 12px;
    background:#f7f8fa;
    border:1px solid #dfe3e8;
    border-radius:7px;
}

.cotas-filtros-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr auto;
    gap:9px;
    align-items:end;
}

.cotas-filtros .form-group{
    margin:0 !important;
}

.cotas-filtros label{
    display:block;
    margin-bottom:4px;
    font-size:12px;
}

.cotas-filtros .form-control{
    height:36px;
}

.filtro-acoes .btn{
    height:36px;
}

/* Cadastro de parceiro */
.parceiro-cadastro-box{
    padding:24px;
    background:#fff;
    border:1px solid #e1e4e8;
    border-radius:10px;
    box-shadow:0 3px 14px rgba(0,0,0,.06);
}
.parceiro-cadastro-box label{
    font-weight:700;
}
.parceiro-cadastro-box .form-control{
    min-height:44px;
}
.parceiro-aviso{
    font-size:12px;
    color:#777;
}

@media (max-width:767px){
    .cotas-filtros-grid{
        grid-template-columns:1fr 1fr;
        gap:7px;
    }

    .cotas-filtros .form-control,
    .filtro-acoes .btn{
        width:100%;
        height:38px;
        font-size:12px;
    }

    .filtro-acoes{
        grid-column:1 / -1;
    }

    .parceiro-cadastro-box{
        padding:15px;
    }
}


/* ==========================================================
   V9 - FILTRO POR COLUNA ESTILO EXCEL
   ========================================================== */

.excel-filter-th{
    position:relative !important;
    padding-right:24px !important;
}

.excel-filter-btn{
    position:absolute;
    right:4px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    padding:0;
    border:0;
    background:transparent;
    color:#777;
    font-size:10px;
    line-height:18px;
    text-align:center;
    cursor:pointer;
    border-radius:3px;
}

.excel-filter-btn:hover,
.excel-filter-active .excel-filter-btn{
    background:#e7edf4;
    color:#1d5f9e;
}

.excel-filter-active{
    background:#eef5fb !important;
}

.excel-filter-menu{
    z-index:99999;
    background:#fff;
    border:1px solid #cfd4da;
    border-radius:7px;
    box-shadow:0 8px 28px rgba(0,0,0,.22);
    padding:10px;
}

.excel-filter-search{
    height:34px !important;
    margin-bottom:8px;
    font-size:13px !important;
}

.excel-filter-list{
    max-height:245px;
    overflow-y:auto;
    border:1px solid #e1e4e8;
    border-radius:4px;
    background:#fff;
}

.excel-filter-item{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    padding:7px 8px;
    margin:0;
    border-bottom:1px solid #f0f1f2;
    font-size:12px;
    font-weight:400;
    cursor:pointer;
}

.excel-filter-item:last-child{
    border-bottom:0;
}

.excel-filter-item:hover{
    background:#f7f9fb;
}

.excel-filter-item input{
    margin:0;
    flex:0 0 auto;
}

.excel-filter-item span{
    min-width:0;
    overflow-wrap:anywhere;
}

.excel-filter-actions{
    display:flex;
    justify-content:space-between;
    gap:8px;
    margin-top:9px;
}

.excel-filter-actions .btn{
    flex:1;
}

@media (max-width:767px){
    .excel-filter-th{
        padding-right:20px !important;
    }

    .excel-filter-btn{
        right:2px;
        width:16px;
        height:16px;
        line-height:16px;
        font-size:9px;
    }

    .excel-filter-menu{
        padding:8px;
    }

    .excel-filter-list{
        max-height:210px;
    }
}


/* ==========================================================
   V10 - AJUSTES DE PRODUÇÃO
   ========================================================== */

/* ---- Filtro no topo de cada coluna ---- */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled{
    background-image:none !important;
}

.excel-filter-th{
    position:relative !important;
    padding-top:24px !important;
    padding-right:5px !important;
}

.excel-filter-btn{
    position:absolute !important;
    top:3px !important;
    right:4px !important;
    transform:none !important;
    width:21px !important;
    height:19px !important;
    padding:0 !important;
    border:1px solid #b8bec5 !important;
    background:#fff !important;
    color:#555 !important;
    font-size:10px !important;
    line-height:17px !important;
    border-radius:3px !important;
    z-index:30 !important;
    cursor:pointer !important;
}

.excel-filter-btn:hover,
.excel-filter-active .excel-filter-btn{
    background:#eaf3fb !important;
    border-color:#6ea4d2 !important;
    color:#1767a5 !important;
}

/* ---- Menu desktop sem sobreposição ---- */
@media (min-width: 992px){
    .menu{
        width:100% !important;
        overflow:visible !important;
    }

    .menu > ul{
        display:flex !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        gap:4px 0 !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        list-style:none !important;
    }

    .menu > ul > li{
        float:none !important;
        display:block !important;
        position:relative !important;
        margin:0 !important;
        padding:0 !important;
        line-height:1.2 !important;
    }

    .menu > ul > li > a{
        display:block !important;
        padding:8px 10px !important;
        font-size:14px !important;
        line-height:1.15 !important;
        white-space:nowrap !important;
    }

    .menu > ul > li + li{
        border-left:1px solid #bbb;
    }

    .menu .subMenus{
        z-index:9999 !important;
    }
}

/* ---- Mobile: tira o grande espaço branco antes do banner ---- */
@media (max-width: 767px){
    .container.full.ptb30{
        padding-top:10px !important;
        padding-bottom:8px !important;
    }

    .container.full.ptb30 .quebra30{
        display:none !important;
    }

    .container.full.ptb30 .row{
        margin-bottom:0 !important;
    }

    #logoTopo{
        display:block !important;
        max-height:105px !important;
        width:auto !important;
        max-width:58% !important;
        margin:0 !important;
    }

    #menuAtivar{
        margin-top:8px !important;
    }

    .home-page .home-banner-principal{
        display:block !important;
        margin-top:0 !important;
    }

    /* filtro fica bem evidente também no celular */
    .excel-filter-th{
        padding-top:22px !important;
    }

    .excel-filter-btn{
        top:2px !important;
        right:2px !important;
        width:19px !important;
        height:18px !important;
        line-height:16px !important;
        font-size:9px !important;
    }
}

/* ---- Modal soma: botão WP ---- */
#modalSomarCotas .btn-enviar-soma-whatsapp{
    margin-right:7px;
}

@media (max-width:767px){
    #modalSomarCotas .modal-footer{
        display:flex;
        gap:8px;
    }

    #modalSomarCotas .modal-footer .btn{
        flex:1;
        margin:0 !important;
        white-space:normal;
    }
}


/* ==========================================================
   V12 - CABEÇALHO / DESKTOP / COOKIES / WHATSAPP
   ========================================================== */

/* 1. Sem popup de cookies e sem WhatsApp flutuante */
#containerCookie,
.whatsAppRodape{
    display:none !important;
}

/* 2. Cabeçalho principal preto */
.topoPrincipal{
    background:#1e1f22 !important;
    color:#fff !important;
}

.topoPrincipal .topoPrincipalLinha,
.topoPrincipal .topoMenuLinha{
    background:#1e1f22 !important;
}

.topoWhatsAppIcon{
    display:inline-block !important;
    margin-left:16px !important;
}

/* Logo copiado do rodapé via JS */
#logoTopo{
    object-fit:contain;
    height:auto;
    background:transparent !important;
}

/* Menu claro sobre fundo preto */
.topoPrincipal .menu ul li a:link,
.topoPrincipal .menu ul li a:visited,
.topoPrincipal .menu ul li a:active{
    color:#fff !important;
}

.topoPrincipal .menu ul li a:hover,
.topoPrincipal .menu ul li a.atual{
    color:#fff !important;
    background:#333 !important;
}

/* 3. Garante tabelas visíveis no desktop */
@media (min-width:992px){
    .cotas-lista-responsive,
    .home-cotas-table-wrap,
    .table-responsive{
        display:block !important;
        visibility:visible !important;
        overflow:visible !important;
        height:auto !important;
        min-height:1px !important;
    }

    .tabela-cotas-final{
        display:table !important;
        visibility:visible !important;
        width:100% !important;
        height:auto !important;
    }

    .tabela-cotas-final thead{
        display:table-header-group !important;
        visibility:visible !important;
    }

    .tabela-cotas-final tbody{
        display:table-row-group !important;
        visibility:visible !important;
    }

    .tabela-cotas-final tr,
    .tabela-cotas-final tr.cotaContemplada{
        display:table-row !important;
        visibility:visible !important;
        height:auto !important;
    }

    .tabela-cotas-final th,
    .tabela-cotas-final td{
        display:table-cell !important;
        visibility:visible !important;
        height:auto !important;
    }

    /* Menu desktop nunca se sobrepõe */
    .topoPrincipal .menu > ul{
        display:flex !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        gap:0 !important;
    }

    .topoPrincipal .menu > ul > li{
        float:none !important;
        position:relative !important;
    }

    .topoPrincipal .menu > ul > li > a{
        display:block !important;
        padding:9px 12px !important;
        white-space:nowrap !important;
    }
}

/* 4. Mobile: logo e botão do menu lado a lado */
@media (max-width:767px){
    .topoPrincipal{
        padding-top:12px !important;
        padding-bottom:12px !important;
    }

    .topoPrincipal > .container > .row{
        margin:0 !important;
    }

    .topoPrincipalLinha{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        width:100% !important;
        padding-left:15px !important;
        padding-right:15px !important;
    }

    .topoLogoLink{
        display:flex !important;
        align-items:center !important;
        width:calc(100% - 64px) !important;
        min-width:0 !important;
    }

    #logoTopo{
        display:block !important;
        width:auto !important;
        max-width:210px !important;
        max-height:82px !important;
        margin:0 !important;
    }

    #menuAtivar{
        float:none !important;
        flex:0 0 48px !important;
        width:48px !important;
        height:48px !important;
        min-width:48px !important;
        min-height:48px !important;
        margin:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        color:#fff !important;
        border:1px solid #444;
        border-radius:5px;
    }

    .topoMenuLinha{
        width:100% !important;
        padding-left:15px !important;
        padding-right:15px !important;
    }

    .topoPrincipal .menu{
        background:#1e1f22 !important;
    }

    .topoPrincipal .menu ul li{
        border-bottom:1px solid #36383b !important;
    }

    .topoPrincipal .menu ul li a{
        color:#fff !important;
    }

    /* Barra superior: Instagram + WhatsApp juntos */
    .topoSocial{
        display:flex !important;
        align-items:center !important;
        gap:16px !important;
    }

    .topoWhatsAppIcon{
        margin-left:0 !important;
    }
}


/* ==========================================================
   V13 - LOGO LP / MENU / TOPO
   ========================================================== */

/* Preto idêntico ao fundo da logo enviada */
.bgTema,
.topoPrincipal,
.topoPrincipal .topoPrincipalLinha,
.topoPrincipal .topoMenuLinha{
    background:#050505 !important;
}

/* Barra superior: apenas Instagram + WhatsApp */
.topoEmail{
    display:none !important;
}

.topoSocial{
    float:none !important;
    display:flex !important;
    align-items:center !important;
    gap:16px !important;
}

/* Logo enviada pelo usuário, integrada ao fundo preto */
.topoLogoLink{
    background:#050505 !important;
}

#logoTopo{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:280px !important;
    max-height:155px !important;
    object-fit:contain !important;
    background:#050505 !important;
    margin:0 !important;
}

/* Remove qualquer destaque antigo do menu por administradora caso tenha ficado em cache */
.topoPrincipal .menu a[href="cartas-de-credito-contempladas"]{
    display:none !important;
}

/* Desktop */
@media (min-width:992px){
    .topoPrincipal{
        padding-top:18px !important;
        padding-bottom:18px !important;
    }

    .topoPrincipalLinha{
        min-height:150px !important;
        display:flex !important;
        align-items:center !important;
    }

    #logoTopo{
        max-width:260px !important;
        max-height:145px !important;
    }

    .topoMenuLinha{
        margin-top:4px !important;
    }
}

/* Mobile */
@media (max-width:767px){
    .topoPrincipal{
        padding-top:8px !important;
        padding-bottom:8px !important;
    }

    .topoPrincipalLinha{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        min-height:92px !important;
    }

    .topoLogoLink{
        width:calc(100% - 58px) !important;
        display:flex !important;
        align-items:center !important;
    }

    #logoTopo{
        max-width:170px !important;
        max-height:90px !important;
    }

    #menuAtivar{
        flex:0 0 48px !important;
    }
}


/* ==========================================================
   V14 - CABEÇALHO SEM LOGO
   ========================================================== */

#logoTopo,
.topoLogoLink{
    display:none !important;
}

.topoPrincipal{
    background:#050505 !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
}

.topoPrincipalLinha{
    display:none !important;
}

.topoMenuLinha{
    margin-top:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}

/* Desktop: menu sobe e ocupa o cabeçalho */
@media (min-width:992px){
    .topoPrincipal .menu > ul{
        justify-content:flex-start !important;
    }
}

/* Mobile: apenas botão/menu, sem espaço reservado para logo */
@media (max-width:767px){
    .topoPrincipal{
        min-height:58px !important;
    }

    .topoMenuLinha{
        width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
    }

    #menuAtivar{
        margin-left:auto !important;
        margin-right:0 !important;
    }

    .topoPrincipal .menu{
        width:100% !important;
    }
}


/* ==========================================================
   V15 - LOGO + MENU NO CABEÇALHO MOBILE
   ========================================================== */

/* Reativa o bloco do cabeçalho que a V14 havia escondido */
.topoPrincipalLinha{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
}

/* Reativa a logo */
.topoLogoLink{
    display:flex !important;
    align-items:center !important;
    background:#050505 !important;
}

#logoTopo{
    display:block !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    background:#050505 !important;
    margin:0 !important;
}

/* Cabeçalho preto integrado à logo */
.topoPrincipal,
.topoPrincipal .topoPrincipalLinha,
.topoPrincipal .topoMenuLinha{
    background:#050505 !important;
}

/* Desktop */
@media (min-width:992px){
    .topoPrincipal{
        padding-top:12px !important;
        padding-bottom:12px !important;
    }

    .topoPrincipalLinha{
        min-height:105px !important;
    }

    .topoLogoLink{
        width:auto !important;
    }

    #logoTopo{
        max-width:190px !important;
        max-height:105px !important;
    }

    .topoMenuLinha{
        margin-top:6px !important;
    }
}

/* Mobile: logo esquerda + botão menu direita */
@media (max-width:767px){
    .topoPrincipal{
        display:block !important;
        min-height:0 !important;
        padding:8px 0 !important;
    }

    .topoPrincipal > .container{
        width:100% !important;
    }

    .topoPrincipalLinha{
        display:flex !important;
        width:100% !important;
        min-height:74px !important;
        padding:0 14px !important;
        align-items:center !important;
        justify-content:space-between !important;
    }

    .topoLogoLink{
        display:flex !important;
        flex:1 1 auto !important;
        width:auto !important;
        max-width:calc(100% - 62px) !important;
        min-width:0 !important;
    }

    #logoTopo{
        display:block !important;
        width:auto !important;
        height:auto !important;
        max-width:145px !important;
        max-height:72px !important;
        margin:0 !important;
    }

    #menuAtivar{
        display:flex !important;
        float:none !important;
        flex:0 0 48px !important;
        width:48px !important;
        height:48px !important;
        min-width:48px !important;
        min-height:48px !important;
        margin:0 0 0 10px !important;
        align-items:center !important;
        justify-content:center !important;
        color:#fff !important;
        border:1px solid #3c3c3c !important;
        border-radius:5px !important;
        background:#1e1f22 !important;
    }

    /* O menu abre logo abaixo do cabeçalho */
    .topoMenuLinha{
        display:block !important;
        width:100% !important;
        padding:0 14px !important;
        margin:0 !important;
    }

    .topoPrincipal .menu{
        width:100% !important;
        background:#050505 !important;
    }

    .topoPrincipal .menu ul{
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    .topoPrincipal .menu ul li{
        width:100% !important;
        border-bottom:1px solid #2f2f2f !important;
    }

    .topoPrincipal .menu ul li a{
        display:block !important;
        width:100% !important;
        padding:12px 8px !important;
        color:#fff !important;
    }

    /* Remove o espaço antigo entre logo e menu */
    .topoPrincipal .quebra30{
        display:none !important;
    }
}


/* ==========================================================
   V16 - SEM LOGO NO TOPO, MENU PRESERVADO
   ========================================================== */

#logoTopo,
.topoLogoLink{
    display:none !important;
}

/* Cabeçalho preto compacto */
.topoPrincipal{
    background:#050505 !important;
}

.topoPrincipalLinha{
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
}

/* Desktop: remove o espaço que era da logo */
@media (min-width:992px){
    .topoPrincipal{
        padding-top:8px !important;
        padding-bottom:8px !important;
    }

    .topoPrincipalLinha{
        display:none !important;
    }

    .topoMenuLinha{
        margin-top:0 !important;
        padding-top:0 !important;
    }
}

/* Mobile: mantém o botão de menu no cabeçalho */
@media (max-width:767px){
    .topoPrincipal{
        min-height:56px !important;
        padding:4px 0 !important;
    }

    .topoPrincipalLinha{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        min-height:52px !important;
        padding:0 14px !important;
    }

    #menuAtivar{
        display:flex !important;
        float:none !important;
        flex:0 0 48px !important;
        width:48px !important;
        height:48px !important;
        margin:0 !important;
        align-items:center !important;
        justify-content:center !important;
        color:#fff !important;
        background:#1e1f22 !important;
        border:1px solid #3c3c3c !important;
        border-radius:5px !important;
    }

    .topoMenuLinha{
        display:block !important;
        width:100% !important;
        padding:0 14px !important;
        margin:0 !important;
    }
}


/* ==========================================================
   V17 - SEM LOGO + MENU LADO A LADO
   ========================================================== */

/* Continua sem logo */
#logoTopo,
.topoLogoLink{
    display:none !important;
}

/* Desktop e tablet: menu em linha */
.topoPrincipal .menu > ul{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:0 !important;
    margin:0 !important;
    padding:0 !important;
}

.topoPrincipal .menu > ul > li{
    float:none !important;
    width:auto !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}

.topoPrincipal .menu > ul > li > a{
    display:block !important;
    white-space:nowrap !important;
    padding:10px 12px !important;
}

/* Mobile: itens do menu lado a lado, quebrando linha só se necessário */
@media (max-width:767px){

    .topoPrincipal{
        min-height:0 !important;
        padding:6px 0 !important;
    }

    .topoPrincipalLinha{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        min-height:48px !important;
        padding:0 12px !important;
    }

    #menuAtivar{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        margin:0 !important;
    }

    .topoMenuLinha{
        display:block !important;
        width:100% !important;
        padding:0 10px !important;
        margin:0 !important;
    }

    .topoPrincipal .menu{
        width:100% !important;
        background:#050505 !important;
    }

    .topoPrincipal .menu > ul{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        justify-content:flex-start !important;
        width:100% !important;
        gap:0 !important;
    }

    .topoPrincipal .menu > ul > li{
        width:auto !important;
        border-bottom:0 !important;
        border-right:1px solid #2f2f2f !important;
    }

    .topoPrincipal .menu > ul > li > a{
        width:auto !important;
        padding:9px 10px !important;
        font-size:11px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
    }
}


/* ==========================================================
   V18 - ORDENAR COLUNAS COM 1 CLIQUE
   Sem janela de filtro.
   ========================================================== */

/* Esconde qualquer sobra do filtro antigo */
.excel-filter-menu,
.excel-filter-btn{
    display:none !important;
}

/* Cabeçalho com seta pequena, como Excel */
.sort-col-th{
    position:relative !important;
    padding-right:22px !important;
    cursor:pointer;
}

.sort-col-btn{
    position:absolute !important;
    right:3px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:17px !important;
    height:20px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#8a8f95 !important;
    font-size:13px !important;
    line-height:20px !important;
    text-align:center !important;
    cursor:pointer !important;
    z-index:20 !important;
}

.sort-col-btn:hover,
.sort-active .sort-col-btn{
    color:#1f659e !important;
}

.sort-active{
    background:#f1f6fb !important;
}

/* Remove as setas nativas antigas do DataTables para não duplicar */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled{
    background-image:none !important;
}

@media (max-width:767px){
    .sort-col-th{
        padding-right:18px !important;
    }

    .sort-col-btn{
        right:1px !important;
        width:16px !important;
        font-size:11px !important;
    }
}


/* ==========================================================
   V19 - MENU MOBILE SEM HAMBURGUER
   Menu já aparece listado lado a lado.
   ========================================================== */

@media (max-width:767px){

    /* Remove o botão das 3 barras */
    #menuAtivar{
        display:none !important;
    }

    /* Remove qualquer espaço reservado ao botão */
    .topoPrincipalLinha{
        display:none !important;
        min-height:0 !important;
        height:0 !important;
        padding:0 !important;
        margin:0 !important;
    }

    /* Menu sempre visível */
    .topoMenuLinha{
        display:block !important;
        width:100% !important;
        padding:6px 10px 8px !important;
        margin:0 !important;
        background:#050505 !important;
    }

    .topoPrincipal .menu{
        display:block !important;
        width:100% !important;
        height:auto !important;
        overflow:visible !important;
        background:#050505 !important;
    }

    .topoPrincipal .menu > ul{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:0 !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    .topoPrincipal .menu > ul > li{
        display:block !important;
        float:none !important;
        width:auto !important;
        margin:0 !important;
        padding:0 !important;
        border-right:1px solid #2f2f2f !important;
        border-bottom:0 !important;
    }

    .topoPrincipal .menu > ul > li > a{
        display:block !important;
        width:auto !important;
        padding:9px 10px !important;
        font-size:11px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
        color:#fff !important;
    }

    .topoPrincipal .menu > ul > li:last-child{
        border-right:0 !important;
    }

    /* Cabeçalho mais compacto */
    .topoPrincipal{
        padding:4px 0 !important;
        min-height:0 !important;
    }
}


/* ==========================================================
   V20 - ORDENAÇÃO VISÍVEL + SEM REDES NO CABEÇALHO
   ========================================================== */

/* Cabeçalho começa direto no menu, sem barra Instagram/WhatsApp */
.topoSocial,
.topoWhatsAppIcon,
.container.full.bgTema.ptb15{
    display:none !important;
}

/* Seta de ordenação visível em TODAS as tabelas */
.tabela-cotas-final thead th.sort-col-th{
    position:relative !important;
    padding-right:24px !important;
}

.tabela-cotas-final .sort-col-btn{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    position:absolute !important;
    right:4px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    align-items:center !important;
    justify-content:center !important;
    width:18px !important;
    height:20px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#7a7f85 !important;
    font-size:14px !important;
    line-height:20px !important;
    cursor:pointer !important;
    z-index:50 !important;
}

.tabela-cotas-final .sort-col-btn .sort-indicator{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
}

.tabela-cotas-final th.sort-active{
    background:#eef5fb !important;
}

.tabela-cotas-final th.sort-active .sort-col-btn{
    color:#1767a5 !important;
    font-weight:700 !important;
}

/* Não mostrar ordenação na coluna de seleção */
.tabela-cotas-final thead th:first-child .sort-col-btn{
    display:none !important;
}

@media (max-width:767px){
    .tabela-cotas-final thead th.sort-col-th{
        padding-right:19px !important;
    }

    .tabela-cotas-final .sort-col-btn{
        right:2px !important;
        width:16px !important;
        height:18px !important;
        font-size:11px !important;
        line-height:18px !important;
    }
}


/* ==========================================================
   V21 - MENU PRINCIPAL ENXUTO + AÇÕES NO RODAPÉ
   ========================================================== */

.rodape-acoes-comerciais{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:7px;
    margin-top:12px;
}

.rodape-acao-link{
    display:inline-block;
    color:#fff !important;
    font-weight:700;
    text-decoration:none !important;
    line-height:1.25;
}

.rodape-acao-link:hover{
    text-decoration:underline !important;
}

@media (max-width:767px){
    .rodape-acoes-comerciais{
        align-items:center;
        margin-top:10px;
    }

    .rodape-acao-link{
        font-size:13px;
    }
}


/* ==========================================================
   V22 - MENU MOBILE EM UMA LINHA + LINKS NO RODAPÉ
   ========================================================== */

@media (max-width:767px){

    /* Menu principal: Home + Imóveis + Veículos na mesma linha */
    .topoPrincipal .menu > ul{
        display:grid !important;
        grid-template-columns:15% 42.5% 42.5% !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        gap:0 !important;
        align-items:stretch !important;
    }

    .topoPrincipal .menu > ul > li{
        display:block !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
        padding:0 !important;
        border-right:1px solid #2f2f2f !important;
        border-bottom:0 !important;
    }

    .topoPrincipal .menu > ul > li:last-child{
        border-right:0 !important;
    }

    .topoPrincipal .menu > ul > li > a{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:100% !important;
        height:100% !important;
        min-height:42px !important;
        padding:6px 3px !important;
        font-size:9px !important;
        line-height:1.08 !important;
        text-align:center !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    /* Mantém o cabeçalho compacto */
    .topoMenuLinha{
        padding-left:6px !important;
        padding-right:6px !important;
    }
}

/* Links comerciais no rodapé */
.rodape-links-comerciais-v22{
    margin-top:14px;
}

.rodape-links-comerciais-v22 a{
    display:block;
    color:#fff !important;
    font-weight:700;
    text-decoration:none !important;
    margin:8px 0;
}

.rodape-links-comerciais-v22 a:hover{
    text-decoration:underline !important;
}
