
/* =========================================================
   JF HOTÉIS — STYLE.CSS COMPLETO
   Visual alinhado ao modelo aprovado
   Mantém a estrutura e os IDs existentes do painel
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --navy-950: #061a38;
    --navy-900: #08264e;
    --navy-800: #0d3a72;
    --navy-700: #1457a6;
    --blue: #1f6ed4;
    --blue-soft: #eaf2ff;
    --gold: #e5aa2f;
    --gold-dark: #c98d17;
    --green: #17966a;
    --orange: #e59a24;
    --purple: #4b2bbd;
    --teal: #13879b;
    --text: #10233f;
    --muted: #637286;
    --line: #dbe3ee;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --shadow: 0 3px 12px rgba(12, 35, 69, .08);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fa;
    color: var(--text);
}

button,
select,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    padding: 24px 18px 22px;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 50% 110%, rgba(34, 120, 222, .24), transparent 40%),
        linear-gradient(180deg, var(--navy-950) 0%, #0a3265 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    z-index: 30;
}

.content {
    flex: 1;
    min-width: 0;
    margin-left: 230px;
    padding: 26px 28px 34px;
    overflow-x: hidden;
}

/* =========================================================
   LOGO E HOTEL
   ========================================================= */

.logo-hotel {
    text-align: center;
    padding: 0 0 20px;
    margin: 0 0 20px;
    border-bottom: 1px solid rgba(229, 170, 47, .68);
}

.logo-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-jf {
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.logo-texto {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold);
}

.hotel-selector-box {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.hotel-selector-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hotel-selector-box select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(107, 166, 242, .55);
    border-radius: 7px;
    outline: none;
}

.hotel-selector-box select option {
    color: var(--text);
    background: #fff;
}

/* =========================================================
   MENU LATERAL
   ========================================================= */

.menu-area {
    margin: 0;
}

.menu-btn {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0 0 10px;
    padding: 0 12px;
    text-align: left;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    border: 1px solid rgba(62, 130, 211, .52);
    border-radius: 7px;
    cursor: pointer;
    transition: .18s ease;
}

.menu-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: rgba(121, 179, 248, .75);
}

.menu-btn.active {
    color: var(--gold);
    background: rgba(229, 170, 47, .10);
    border-color: var(--gold);
    box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-footer {
    margin-top: 34px;
    text-align: center;
    color: #fff;
}

.sidebar-footer .bell {
    font-size: 54px;
    line-height: 1;
    color: var(--gold);
}

.sidebar-footer strong,
.sidebar-footer b {
    color: var(--gold);
}

/* =========================================================
   TOPO
   ========================================================= */

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

h1 {
    margin: 0;
    color: var(--text);
    font-size: 31px;
    line-height: 1.15;
    font-weight: 700;
}

.gold-line {
    width: 126px;
    height: 3px;
    margin-top: 10px;
    background: var(--gold);
}

.brand {
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 26px;
    line-height: 1;
    text-align: right;
}

.brand small {
    display: block;
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
}

/* =========================================================
   FILTROS SUPERIORES
   ========================================================= */

.filtros-topo {
    display: grid;
    grid-template-columns: 140px 160px 180px minmax(220px, 1fr) 112px 124px;
    align-items: end;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filtros-topo .filtros-titulo {
    display: none;
}

.filtros-topo .field {
    min-width: 0;
    margin: 0;
}

.filtros-topo label {
    display: block;
    margin: 0 0 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.filtros-topo select,
.filtros-topo input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: #283a52;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
}

.filtros-topo select:focus,
.filtros-topo input:focus {
    border-color: #5590dc;
    box-shadow: 0 0 0 3px rgba(31,110,212,.10);
}

.filtros-topo button {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    color: #12233c;
    background: linear-gradient(180deg, #efb847 0%, var(--gold) 100%);
    border: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(156, 102, 10, .16);
}

.filtros-topo button:hover {
    background: var(--gold-dark);
}

/* =========================================================
   FAIXAS DE SEÇÃO
   ========================================================= */

.dashboard-section-title,
#sec-analises .dashboard-section-title {
    margin: 0 0 14px !important;
    padding: 11px 20px !important;
    color: #fff !important;
    background: linear-gradient(90deg, var(--navy-950), #0a2f61) !important;
    border: 0 !important;
    border-left: 5px solid #2fc1b2 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
}

/* =========================================================
   CARDS GERAIS
   ========================================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.kpi-card {
    min-width: 0;
    min-height: 145px;
    padding: 18px 16px 20px;
    color: var(--text);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.kpi-title {
    width: 100%;
    margin: 0 0 12px;
    color: #22507c;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.big-number {
    width: 100%;
    color: var(--text);
    font-size: clamp(23px, 2vw, 31px);
    line-height: 1.1;
    font-weight: 500;
    white-space: nowrap;
}

/* =========================================================
   VISÃO GERAL — 3 + 4 CARDS
   ========================================================= */

.cards-grid-visao {
    display: grid;
    gap: 14px;
    margin: 0 0 14px;
}

.cards-grid-receitas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-indicadores {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.kpi-card-visao {
    position: relative;
    min-width: 0;
    min-height: 158px;
    padding: 18px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid #2b80d8;
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.kpi-card-visao .kpi-title {
    min-height: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon-svg {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.kpi-icon-svg svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpi-card-visao .big-number {
    margin-top: 2px;
}

/* Cores por card */
.cards-grid-receitas .kpi-card-visao:nth-child(1) {
    border-top-color: #2a71d5;
}
.cards-grid-receitas .kpi-card-visao:nth-child(1) .kpi-icon-svg {
    color: #2a71d5;
}

.cards-grid-receitas .kpi-card-visao:nth-child(2) {
    border-top-color: var(--green);
}
.cards-grid-receitas .kpi-card-visao:nth-child(2) .kpi-icon-svg {
    color: var(--green);
}

.cards-grid-receitas .kpi-card-visao:nth-child(3) {
    border-top-color: var(--purple);
}
.cards-grid-receitas .kpi-card-visao:nth-child(3) .kpi-icon-svg {
    color: var(--purple);
}

.cards-grid-indicadores .kpi-card-visao:nth-child(1) {
    border-top-color: var(--orange);
}
.cards-grid-indicadores .kpi-card-visao:nth-child(1) .kpi-icon-svg {
    color: var(--orange);
}

.cards-grid-indicadores .kpi-card-visao:nth-child(2) {
    border-top-color: #176ec2;
}
.cards-grid-indicadores .kpi-card-visao:nth-child(2) .kpi-icon-svg {
    color: #176ec2;
}

.cards-grid-indicadores .kpi-card-visao:nth-child(3) {
    border-top-color: var(--green);
}
.cards-grid-indicadores .kpi-card-visao:nth-child(3) .kpi-icon-svg {
    color: var(--green);
}

.cards-grid-indicadores .kpi-card-visao:nth-child(4) {
    border-top-color: var(--teal);
}
.cards-grid-indicadores .kpi-card-visao:nth-child(4) .kpi-icon-svg {
    color: var(--teal);
}

/* =========================================================
   GRÁFICOS E PAINÉIS
   ========================================================= */

.panel,
.card {
    justify-content: start;
    margin: 0 0 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel > h3,
.card > h3 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

#sec-analises .panel {
    margin: 0 0 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#sec-analises .panel > h3 {
    margin: 0 0 16px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    font-size: 16px;
    font-weight: 700;
}

.graficos-receita-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
    gap: 14px;
}

.grafico-card {
    min-height: 280px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
}

.grafico-card h4 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.grafico-colunas {
    height: 220px;
    padding: 18px 10px 6px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-left: 1px solid #d8e0ea;
    border-bottom: 1px solid #d8e0ea;
}

.grafico-coluna-item {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.grafico-coluna-barra {
    position: relative;
    width: 24px;
    max-width: 80%;
    min-height: 3px;
    background: linear-gradient(180deg, #2b7de0 0%, #1e5ab5 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 6px rgba(31,110,212,.20);
    cursor: pointer;
}

.grafico-label {
    color: #3b4c61;
    font-size: 11px;
    font-weight: 700;
}

.grafico-percentual {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 16px;
}

.percentual-topo {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.percentual-barra-fundo {
    height: 26px;
    overflow: hidden;
    background: #edf2f7;
    border: 1px solid #dce4ee;
    border-radius: 999px;
}

.percentual-barra {
    height: 100%;
    min-width: 8px;
    background: linear-gradient(90deg, #2b7de0 0%, #1a9d73 100%);
    border-radius: 999px;
}

.grafico-vazio {
    padding: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   TABELAS
   ========================================================= */

.table-wrap {
    width: 100%;
    overflow: auto;
    border-radius: 7px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

th,
td {
    padding: 10px 11px;
    border: 1px solid #e1e7ef;
    white-space: nowrap;
}

th {
    color: var(--text);
    background: #f4f7fb;
    font-weight: 700;
    text-align: center;
}

td {
    color: #283a52;
    text-align: center;
}

.resumo-mensal tfoot td {
    font-weight: 700;
    background: #f4f7fb;
}

.texto-direita {
    text-align: right;
}

.fonte {
    margin-top: 12px;
    color: #8190a2;
    font-size: 11px;
}

/* =========================================================
   CAMPOS E COMPONENTES DAS OUTRAS ABAS
   ========================================================= */

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

select,
input {
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

button {
    border-radius: 7px;
}

.panel-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.banco-field {
    min-width: 190px;
}

.banco-field label {
    color: var(--text);
}

.banco-field select {
    width: 100%;
    color: var(--text);
    background: #fff;
}

.banco-field button {
    min-width: 145px;
    height: 40px;
    padding: 0 14px;
    color: #fff;
    background: var(--navy-900);
    border: 0;
    cursor: pointer;
}

.status {
    margin-bottom: 12px;
    font-weight: 700;
}

.ok {
    color: #138650;
}

.erro {
    color: #b42318;
}

.muted,
.teste-info {
    color: var(--muted);
    font-size: 13px;
}

.comparativo-resumo {
    color: var(--text);
    line-height: 1.55;
}

.variacao-positiva {
    color: #138650 !important;
    font-weight: 700;
}

.variacao-negativa {
    color: #b42318 !important;
    font-weight: 700;
}

.variacao-neutra {
    color: var(--muted) !important;
    font-weight: 700;
}

.contas-filtro-extra {
    grid-template-columns: 180px 180px 180px !important;
    justify-content: start;
}

#filtroContaMovimento {
    width: 100%;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1180px) {
    .filtros-topo {
        grid-template-columns: 130px 145px 170px minmax(190px, 1fr) 100px 112px;
        gap: 9px;
    }

    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .big-number {
        font-size: clamp(21px, 1.9vw, 28px);
    }
}

@media (max-width: 980px) {
    .sidebar {
        width: 210px;
    }

    .content {
        margin-left: 210px;
    }

    .filtros-topo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-grid-receitas,
    .cards-grid-indicadores,
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graficos-receita-grid,
    .panel-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .layout {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .content {
        margin-left: 0;
        padding: 18px 14px 28px;
    }

    .topbar {
        display: block;
    }

    .brand {
        margin-top: 18px;
        text-align: left;
    }

    .filtros-topo {
        grid-template-columns: 1fr;
    }

    .cards-grid-receitas,
    .cards-grid-indicadores,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .big-number {
        font-size: 26px;
    }
}

/* =====================================================
   COMPARATIVO ENTRE HOTÉIS
   ===================================================== */

#sec-comparativo-hoteis .comparativo-hoteis-card {
    padding: 20px;
}

#sec-comparativo-hoteis .comparativo-hoteis-filtros {
    display: grid;
    grid-template-columns:
        minmax(150px, 0.8fr)
        minmax(180px, 1fr)
        minmax(240px, 1.35fr)
        minmax(150px, 0.8fr);
    gap: 16px;
    align-items: end;
    width: 100%;
    margin-top: 18px;
}

#sec-comparativo-hoteis .campo-comparativo-hotel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#sec-comparativo-hoteis .campo-comparativo-hotel label {
    margin: 0;
    color: #16365c;
    font-size: 13px;
    font-weight: 700;
}

#sec-comparativo-hoteis .campo-comparativo-hotel select,
#sec-comparativo-hoteis .campo-comparativo-hotel input[type="date"] {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    color: #243447;
    background: #fff;
    border: 1px solid #c7d0dc;
    border-radius: 7px;
    outline: none;
}

#sec-comparativo-hoteis .campo-comparativo-hotel select:focus,
#sec-comparativo-hoteis .campo-comparativo-hotel input[type="date"]:focus {
    border-color: #c78332;
    box-shadow: 0 0 0 2px rgba(199, 131, 50, .15);
}

#sec-comparativo-hoteis .comparativo-check {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #243447;
    background: #fff;
    border: 1px solid #c7d0dc;
    border-radius: 7px;
    overflow: hidden;
}

#sec-comparativo-hoteis .comparativo-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

#sec-comparativo-hoteis .comparativo-check span {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
}

#sec-comparativo-hoteis #btnCompararHoteis {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    color: #fff;
    background: #c78332;
    border: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#sec-comparativo-hoteis #btnCompararHoteis:hover {
    background: #a96525;
}

#sec-comparativo-hoteis #comparativoHoteisResultado {
    margin-top: 18px;
}

@media (max-width: 1100px) {
    #sec-comparativo-hoteis .comparativo-hoteis-filtros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    #sec-comparativo-hoteis .comparativo-hoteis-filtros {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AJUSTE EXCLUSIVO — FILTROS DA ABA ANÁLISES
   Mantém as demais abas sem alteração.
   ========================================================= */

/* Remove o bloco do canto superior direito em todas as abas */
.brand {
    display: none !important;
}

/* Barra alinhada em uma única linha */
#filtrosAnalisesSidebar.filtros-topo {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 16px !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
}

/* Campos sem margens extras */
#filtrosAnalisesSidebar .field {
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

/* Larguras por ID — evita erro causado pelo div .filtros-titulo */
#filtrosAnalisesSidebar #filtroAnoPax {
    width: 110px !important;
}

#filtrosAnalisesSidebar #filtroMesPax {
    width: 145px !important;
}

#filtrosAnalisesSidebar #filtroDataPax {
    width: 155px !important;
}

#filtrosAnalisesSidebar #filtroFornecedorPax {
    width: 100% !important;
}

/* O campo Fornecedor ocupa o espaço restante */
#filtrosAnalisesSidebar .field:has(#filtroFornecedorPax) {
    min-width: 220px !important;
    flex: 1 1 280px !important;
}

/* Padrão visual idêntico para Ano, Mês, Data e Fornecedor */
#filtrosAnalisesSidebar select,
#filtrosAnalisesSidebar input {
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    vertical-align: middle !important;
}

/* Corrige especificamente a caixa de data */
#filtrosAnalisesSidebar input[type="date"] {
    display: block !important;
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
}

/* Botões menores e alinhados */
#filtrosAnalisesSidebar > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 82px !important;
    max-width: 96px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

#filtrosAnalisesSidebar > button:last-child {
    min-width: 90px !important;
    max-width: 104px !important;
}

/* Responsividade */
@media (max-width: 1050px) {
    #filtrosAnalisesSidebar.filtros-topo {
        flex-wrap: wrap !important;
    }

    #filtrosAnalisesSidebar .field:has(#filtroFornecedorPax) {
        min-width: 220px !important;
    }
}

@media (max-width: 700px) {
    #filtrosAnalisesSidebar.filtros-topo {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #filtrosAnalisesSidebar .field,
    #filtrosAnalisesSidebar .field:has(#filtroFornecedorPax),
    #filtrosAnalisesSidebar #filtroAnoPax,
    #filtrosAnalisesSidebar #filtroMesPax,
    #filtrosAnalisesSidebar #filtroDataPax,
    #filtrosAnalisesSidebar #filtroFornecedorPax,
    #filtrosAnalisesSidebar input[type="date"],
    #filtrosAnalisesSidebar > button,
    #filtrosAnalisesSidebar > button:last-child {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    #filtrosAnalisesSidebar.filtros-topo {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   METAS POR HOTEL
   ========================================================= */
#sec-metas .metas-form-panel { padding: 20px; }
.metas-filtros-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) 140px 170px 170px;
    gap: 14px;
    align-items: end;
}
.metas-filtros-grid input,
.metas-filtros-grid select,
.metas-valores-grid input,
#metaObservacao {
    width: 100%;
    height: 42px;
}
.meta-botao-base button,
.metas-acoes button,
.metas-historico-filtros button {
    height: 42px;
    padding: 0 18px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}
#btnCalcularMeta,
#btnSalvarMeta,
.metas-historico-filtros button {
    color: #fff;
    background: var(--navy-900);
}
#btnAplicarSugerida {
    color: #12233c;
    background: var(--gold);
}
.metas-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin: 6px 0 18px;
}
.meta-card-base {
    min-height: 108px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 8px;
}
.meta-card-base span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.meta-card-base strong { color: var(--text); font-size: 23px; font-weight: 600; white-space: nowrap; }
.meta-card-base.destaque { border-top-color: var(--gold); background: #fffaf0; }
.metas-valores-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}
.metas-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.metas-historico-filtros {
    display: grid;
    grid-template-columns: 150px 170px 170px;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}
.metas-historico-filtros .field { margin: 0; }
.meta-linha-ativa td { background: #eefaf5; font-weight: 700; }
@media (max-width: 1050px) {
    .metas-filtros-grid, .metas-valores-grid, .metas-cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .metas-filtros-grid, .metas-valores-grid, .metas-cards-grid, .metas-historico-filtros { grid-template-columns: 1fr; }
}

/* =========================================================
   FILTROS EXCLUSIVOS — DESPESAS
   ========================================================= */
.filtros-despesas {
    display: grid;
    grid-template-columns: 105px 135px 150px minmax(200px, 1.2fr) minmax(150px, .8fr) minmax(150px, .8fr) 170px 88px 88px;
    align-items: end;
    gap: 10px;
    width: 100%;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.filtros-despesas .field { min-width: 0; margin: 0; }
.filtros-despesas label { margin-bottom: 6px; font-size: 12px; }
.filtros-despesas select,
.filtros-despesas input {
    width: 100%; min-width: 0; height: 42px; padding: 0 10px;
}
.filtros-despesas button {
    height: 42px; padding: 0 12px; border: 0; font-weight: 700; cursor: pointer;
    color: #12233c; background: linear-gradient(180deg, #efb847 0%, var(--gold) 100%);
}
.filtros-despesas button:last-child { color: #fff; background: var(--navy-900); }
@media (max-width: 1350px) {
    .filtros-despesas { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
}
@media (max-width: 800px) {
    .filtros-despesas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .filtros-despesas { grid-template-columns: 1fr; }
}


/* =========================================================
   PREVISTO X REALIZADO
   ========================================================= */
.previsto-filtros {
    display: grid;
    grid-template-columns: minmax(190px, 260px) 105px 145px 110px 150px;
    gap: 12px;
    align-items: end;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.previsto-filtros .field { margin: 0; min-width: 0; }
.previsto-filtros input,
.previsto-filtros select { width: 100%; height: 42px; }
.previsto-filtros .campo-previsto-hotel { max-width: 260px; }
#previstoHotel { min-width: 190px; }
.previsto-filtros button,
.previsto-painel-topo button {
    height: 42px;
    padding: 0 16px;
    border: 0;
    color: #fff;
    background: var(--navy-900);
    font-weight: 700;
    cursor: pointer;
}
.previsto-filtros .btn-gerar-previsto { color: #12233c; background: var(--gold); }
.previsto-painel-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.previsto-painel-topo h3 { margin: 0 0 5px; text-transform: uppercase; font-size: 16px; }
.previsto-painel-topo p { margin: 0; }
.tabela-previsto-realizado input.valor-previsto-input {
    width: 145px;
    height: 36px;
    text-align: right;
    color: var(--text);
    background: #fffdf5;
    border: 1px solid #d9b75e;
}
.tabela-previsto-realizado .situacao-ok { color: #138650; font-weight: 700; }
.tabela-previsto-realizado .situacao-alerta { color: #b76a00; font-weight: 700; }
.tabela-previsto-realizado .situacao-estourado { color: #b42318; font-weight: 700; }
.tabela-previsto-realizado tr.linha-estourada td { background: #fff2f0; }
.tabela-previsto-realizado tr.linha-alerta td { background: #fffaf0; }
.previsto-cards .kpi-card:nth-child(1) { border-top: 3px solid var(--blue); }
.previsto-cards .kpi-card:nth-child(2) { border-top: 3px solid var(--orange); }
.previsto-cards .kpi-card:nth-child(3) { border-top: 3px solid var(--green); }
.previsto-cards .kpi-card:nth-child(4) { border-top: 3px solid var(--purple); }
@media (max-width: 1050px) {
    .previsto-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .previsto-filtros { grid-template-columns: 1fr; }
    .previsto-painel-topo { flex-direction: column; }
    .previsto-painel-topo button { width: 100%; }
}

/* =========================================================
   PREVISTO X REALIZADO — FILTRO RECEITAS / DESPESAS
   ========================================================= */
#sec-previsto-realizado .previsto-filtros {
    grid-template-columns: 220px 135px 95px 145px 110px 150px !important;
    justify-content: start;
}
#sec-previsto-realizado .campo-previsto-hotel { width: 220px; max-width: 220px; }
#sec-previsto-realizado .campo-previsto-tipo { width: 135px; }
#sec-previsto-realizado #previstoHotel,
#sec-previsto-realizado #previstoTipo { min-width: 0; width: 100%; }
@media (max-width: 1050px) {
    #sec-previsto-realizado .previsto-filtros { grid-template-columns: repeat(3, minmax(150px, 1fr)) !important; }
    #sec-previsto-realizado .campo-previsto-hotel,
    #sec-previsto-realizado .campo-previsto-tipo { width: auto; max-width: none; }
}
@media (max-width: 700px) {
    #sec-previsto-realizado .previsto-filtros { grid-template-columns: 1fr !important; }
}

/* =========================================================
   DESPESAS POR GRUPO E MÊS — AJUSTE DEFINITIVO
   Afeta somente esta tabela.
   ========================================================= */

.tabela-dinamica-despesas-wrap {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    position: relative;
}

#tabelaDespesasGrupoMes {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#tabelaDespesasGrupoMes col.coluna-descricao {
    width: 300px;
    min-width: 300px;
}

#tabelaDespesasGrupoMes col.coluna-valor {
    width: 150px;
    min-width: 150px;
}

#tabelaDespesasGrupoMes #cabecalhoMatrizDespesas th {
    vertical-align: middle !important;
    background: #f4f7fb !important;
}

#tabelaDespesasGrupoMes #cabecalhoMatrizDespesas th:first-child {
    text-align: left !important;
}

#tabelaDespesasGrupoMes #cabecalhoMatrizDespesas th.cabecalho-mes {
    text-align: center !important;
}

#tabelaDespesasGrupoMes tbody td:not(:first-child),
#tabelaDespesasGrupoMes tfoot td:not(:first-child) {
    text-align: right;
}

/* Cabeçalho flutuante sincronizado com a tabela real */
#cabecalhoFlutuanteDespesas {
    position: fixed;
    display: none;
    overflow: hidden;
    z-index: 10000;
    background: #f4f7fb;
    box-shadow: 0 3px 10px rgba(12, 35, 69, .22);
    pointer-events: none;
}

#cabecalhoFlutuanteDespesas.visivel {
    display: block;
}

#cabecalhoFlutuanteDespesas table {
    width: max-content;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    background: #f4f7fb;
}

#cabecalhoFlutuanteDespesas th {
    padding: 10px 11px;
    border: 1px solid #e1e7ef;
    color: var(--text);
    background: #f4f7fb;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center !important;
}

#cabecalhoFlutuanteDespesas th:first-child {
    text-align: left !important;
}


/* =========================================================
   FINANCEIRO PESSOAL
   ========================================================= */
.financeiro-pessoal-aviso {
    margin: 0 0 14px;
    padding: 12px 15px;
    color: #26415f;
    background: #eef5ff;
    border: 1px solid #cfe0f5;
    border-left: 4px solid var(--blue);
    border-radius: 7px;
    font-size: 13px;
}
.filtros-financeiro-pessoal {
    display: grid;
    grid-template-columns: 110px 145px 175px minmax(240px,1fr) 90px 90px;
    gap: 10px;
    align-items: end;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.filtros-financeiro-pessoal .field { margin: 0; min-width: 0; }
.filtros-financeiro-pessoal select,
.filtros-financeiro-pessoal input { width: 100%; height: 42px; }
.filtros-financeiro-pessoal button {
    height: 42px;
    padding: 0 12px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    color: #12233c;
    background: var(--gold);
}
.filtros-financeiro-pessoal button:last-child { color:#fff; background:var(--navy-900); }
.financeiro-pessoal-cards .kpi-card:nth-child(1) { border-top:3px solid var(--blue); }
.financeiro-pessoal-cards .kpi-card:nth-child(2) { border-top:3px solid var(--green); }
.financeiro-pessoal-cards .kpi-card:nth-child(3) { border-top:3px solid var(--orange); }
.financeiro-pessoal-cards .kpi-card:nth-child(4) { border-top:3px solid var(--purple); }
.financeiro-pessoal-graficos { align-items: stretch; }
.financeiro-pessoal-graficos .panel { min-height: 300px; }
.fp-barras { display:flex; flex-direction:column; gap:13px; }
.fp-barra-item { width:100%; }
.fp-barra-topo { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; color:var(--text); font-size:12px; }
.fp-barra-topo strong { white-space:nowrap; }
.fp-barra-fundo { height:16px; overflow:hidden; background:#edf2f7; border-radius:999px; }
.fp-barra-preenchida { height:100%; min-width:2px; background:linear-gradient(90deg,var(--navy-700),var(--green)); border-radius:999px; }
.tabela-financeiro-pessoal .fp-descricao { min-width:260px; text-align:left; white-space:normal; }
.fp-categoria-select { width:160px; height:36px; padding:0 8px; }
.tabela-financeiro-pessoal tfoot td { font-weight:700; background:#f4f7fb; }
@media (max-width:1100px) {
    .filtros-financeiro-pessoal { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
    .filtros-financeiro-pessoal { grid-template-columns:1fr; }
}

/* =========================================================
   FINANCEIRO PESSOAL — CATEGORIA E SUBCATEGORIA
   ========================================================= */
.filtros-financeiro-pessoal {
    grid-template-columns: 105px 135px 170px 210px minmax(250px, 1fr) 88px 88px;
}
#sec-financeiro_pessoal label,
#sec-financeiro_pessoal .kpi-title,
#sec-financeiro_pessoal .panel > h3,
#sec-financeiro_pessoal th {
    text-transform: uppercase;
}
.fp-categoria-select { width: 175px; font-weight: 700; text-transform: uppercase; }
.fp-subcategoria-select { width: 210px; }
@media (max-width: 1350px) {
    .filtros-financeiro-pessoal { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
}


/* =========================================================
   FINANCEIRO PESSOAL — GERENCIADOR DE CATEGORIAS
   ========================================================= */
.fp-acoes-topo{display:flex;justify-content:flex-end;margin:-4px 0 14px}.fp-btn-gerenciar{height:40px;padding:0 16px;color:#fff;background:var(--navy-900);border:0;border-radius:7px;font-weight:700;cursor:pointer}.fp-modal{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(4,17,38,.62)}.fp-modal-caixa{width:min(920px,96vw);max-height:90vh;overflow:auto;padding:22px;background:#fff;border-radius:10px;box-shadow:0 18px 60px rgba(0,0,0,.3)}.fp-modal-topo{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.fp-modal-topo h2{margin:0 0 5px;color:var(--text)}.fp-modal-topo p{margin:0;color:var(--muted);font-size:13px}.fp-modal-fechar{width:38px;height:38px;border:0;border-radius:50%;font-size:26px;line-height:1;background:#edf2f7;cursor:pointer}.fp-nova-categoria,.fp-nova-sub{display:grid;grid-template-columns:1fr auto;gap:8px}.fp-nova-categoria{padding:14px;margin-bottom:16px;background:#f5f7fb;border:1px solid var(--line);border-radius:8px}.fp-nova-categoria input,.fp-nova-sub input,.fp-ger-cat-topo input,.fp-ger-sub input{width:100%;height:38px}.fp-nova-categoria button,.fp-nova-sub button,.fp-ger-cat-topo button,.fp-ger-sub button{height:38px;padding:0 12px;border:0;border-radius:6px;font-weight:700;cursor:pointer}.fp-nova-categoria button,.fp-nova-sub button{color:#12233c;background:var(--gold)}.fp-gerenciador-lista{display:flex;flex-direction:column;gap:13px}.fp-ger-cat{padding:14px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px;background:#fff}.fp-ger-cat.inativa,.fp-ger-sub.inativa{opacity:.55;background:#f3f4f6}.fp-ger-cat-topo{display:grid;grid-template-columns:minmax(220px,1fr) 110px 100px;gap:8px;margin-bottom:11px}.fp-ger-cat-topo input{font-weight:700;text-transform:uppercase}.fp-ger-cat-topo button,.fp-ger-sub button{color:#fff;background:var(--navy-900)}.fp-ger-subs{display:flex;flex-direction:column;gap:7px;padding:10px 0}.fp-ger-sub{display:grid;grid-template-columns:1fr 78px 88px;gap:7px;padding-left:18px}.fp-nova-sub{padding:8px 0 0 18px}@media(max-width:700px){.fp-modal{padding:8px}.fp-modal-caixa{padding:14px}.fp-ger-cat-topo,.fp-ger-sub,.fp-nova-categoria,.fp-nova-sub{grid-template-columns:1fr}.fp-ger-sub,.fp-nova-sub{padding-left:0}}


/* =========================================================
   FINANCEIRO PESSOAL — CONSULTA LIMPA E GRÁFICOS ADICIONAIS
   ========================================================= */
.financeiro-pessoal-graficos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.financeiro-pessoal-graficos-grid .panel {
    min-height: 310px;
    margin: 0;
}
.fp-detalhamento-panel { padding: 18px; }
.fp-detalhamento-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.fp-detalhamento-topo h3 { margin: 0 0 6px; }
.fp-detalhamento-topo p { margin: 0; }
.fp-resumo-tabela {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #245078;
    background: #eef5ff;
    border: 1px solid #d4e3f5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.tabela-financeiro-pessoal-consulta th,
.tabela-financeiro-pessoal-consulta td { padding: 12px 13px; }
.tabela-financeiro-pessoal-consulta tbody tr:nth-child(even) td { background: #fafbfd; }
.tabela-financeiro-pessoal-consulta tbody tr:hover td { background: #f2f7fd; }
.tabela-financeiro-pessoal-consulta .fp-descricao {
    min-width: 320px;
    color: #20344d;
}
.fp-etiqueta {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.fp-etiqueta-categoria {
    color: #174e87;
    background: #eaf3ff;
    border: 1px solid #cfe2f8;
    text-transform: uppercase;
}
.fp-etiqueta-subcategoria {
    color: #42536a;
    background: #f3f5f8;
    border: 1px solid #dde3ea;
}
.fp-valor-tabela { font-weight: 700; color: #17365c; }
@media (max-width: 900px) {
    .financeiro-pessoal-graficos-grid { grid-template-columns: 1fr; }
    .fp-detalhamento-topo { flex-direction: column; }
}


/* =========================================================
   FINANCEIRO PESSOAL — GRÁFICOS VARIADOS
   ========================================================= */
.financeiro-pessoal-graficos-variados {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.financeiro-pessoal-graficos-variados .fp-grafico-pizza-panel {
    grid-column: 1 / -1;
}
.fp-barras-percentuais .fp-barra-preenchida {
    background: linear-gradient(90deg, #1f6ed4 0%, #17966a 100%);
}
.fp-colunas {
    min-height: 245px;
}
.fp-colunas-grafico {
    height: 245px;
    display: grid;
    grid-template-columns: repeat(12, minmax(34px, 1fr));
    align-items: end;
    gap: 8px;
    padding: 8px 4px 0;
    overflow-x: auto;
}
.fp-coluna-item {
    min-width: 34px;
    height: 100%;
    display: grid;
    grid-template-rows: 34px 1fr 24px;
    align-items: end;
    text-align: center;
}
.fp-coluna-valor {
    min-height: 30px;
    color: #526276;
    font-size: 9px;
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    justify-self: center;
    overflow: hidden;
}
.fp-coluna-trilho {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #d7e0ea;
}
.fp-coluna-barra {
    width: min(28px, 70%);
    min-height: 0;
    background: linear-gradient(180deg, #2c83e5 0%, #174f9d 100%);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 6px rgba(31,110,212,.22);
}
.fp-coluna-mes {
    padding-top: 6px;
    color: #435269;
    font-size: 10px;
    font-weight: 700;
}
.fp-pizza-area {
    min-height: 280px;
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.25fr);
    align-items: center;
    gap: 28px;
}
.fp-pizza {
    position: relative;
    width: min(245px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 20px rgba(16,35,63,.12);
}
.fp-pizza-centro {
    position: absolute;
    inset: 26%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(16,35,63,.12);
}
.fp-pizza-centro span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.fp-pizza-centro strong { color: var(--text); font-size: 18px; white-space: nowrap; }
.fp-pizza-legenda { display: flex; flex-direction: column; gap: 9px; }
.fp-pizza-legenda-item {
    display: grid;
    grid-template-columns: 14px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e3e9f0;
    border-radius: 7px;
}
.fp-pizza-cor { width: 12px; height: 12px; border-radius: 50%; }
.fp-pizza-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33465e; font-size: 12px; }
.fp-pizza-legenda-item strong { color: var(--text); font-size: 12px; }
@media (max-width: 900px) {
    .financeiro-pessoal-graficos-variados { grid-template-columns: 1fr; }
    .financeiro-pessoal-graficos-variados .fp-grafico-pizza-panel { grid-column: auto; }
    .fp-pizza-area { grid-template-columns: 1fr; }
}
