/* Correção para página do Banco Central - Remove espaço em branco */

/* Container principal da página BCB */
.bcb-page-container {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
}

/* Remove altura fixa e flex-end dos containers */
#bcb-tabs-content,
#bcb-tabs-content > div,
#bcb-tabs-content .row,
.bcb-page-container > div {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
}

/* Garante que nenhum elemento filho tenha altura viewport */
#bcb-tabs-content * {
    max-height: none !important;
}

/* Remove qualquer flex-column com justify-end */
.d-flex.flex-column {
    justify-content: flex-start !important;
}

/* Ajusta containers dos gráficos BCB */
.bcb-chart-container {
    height: auto;
    overflow: visible;
}

/* Limita altura dos gráficos para não usar viewport */
.bcb-chart-container .js-plotly-plot,
.bcb-chart-container > div {
    height: 100% !important;
    max-height: 450px !important;
}

/* Remove padding excessivo do container principal */
.container-fluid.p-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Garante que as tabs não tenham altura mínima */
.tab-content,
.tab-pane {
    min-height: 0 !important;
}

/* Corrige alinhamento dos controles */
.controls-section {
    margin-bottom: 1rem;
}

/* Remove qualquer position fixed acidental */
.fixed-bottom {
    position: relative !important;
}

/* Debug - remover após confirmar correção */
#bcb-tabs-content {
    /* border: 2px solid red; */
}