body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
}

.w-80 {
    width: 80% !important;
}

:root {
    /* Cores institucionais ABDI */
    --abdi-verde: #00d000;
    --abdi-amarelo: #ffda00;
    --abdi-vermelho: #ff0000;
    --abdi-azul-claro: #00b4ff;
    --abdi-azul: #183eff;
    --abdi-preto: #000000;
    
    /* Cores auxiliares */
    --abdi-verde-1: #41ad49;
    --abdi-verde-2: #8dc63f;
    --abdi-verde-3: #b2d235;
    --abdi-verde-4: #d6e040;
    --abdi-amarelo-1: #ffd400;
    --abdi-amarelo-2: #febc11;
    --abdi-amarelo-3: #ff8e12;
    --abdi-azul-1: #00abe0;
    --abdi-azul-2: #557eff;
    --abdi-azul-3: #3159ff;
    --abdi-cinza-1: #575756;
    --abdi-cinza-2: #8e8e8e;
    --abdi-cinza-3: #b0b0b0;
    --abdi-cinza-4: #d8d8d8;
}

/* Cores adicionais do Bootstrap não padrão */
.bg-purple { background-color: #6f42c1; }
.bg-orange { background-color: #fd7e14; }
.bg-teal { background-color: #20c997; }
.bg-pink { background-color: #d63384; }
.bg-brown { background-color: #8b4513; }
.bg-blue { background-color: #0d6efd; }
.bg-green { background-color: #2e8b57; }

.text-purple { color: #6f42c1; }
.text-orange { color: #fd7e14; }
.text-teal { color: #20c997; }
.text-pink { color: #d63384; }
.text-brown { color: #8b4513; }
.text-green { color: #2e8b57; }

/* Cores Institucionais */
.bg-abdi-verde { background-color: var(--abdi-verde); }
.bg-abdi-amarelo { background-color: var(--abdi-amarelo); }
.bg-abdi-vermelho { background-color: var(--abdi-vermelho); }
.bg-abdi-azul-claro { background-color: var(--abdi-azul-claro); }
.bg-abdi-azul { background-color: var(--abdi-azul); }
.bg-abdi-preto { background-color: var(--abdi-preto); }

/* Atualização das classes de cor */
.text-primary { color: var(--abdi-azul) !important; }
.bg-primary { background-color: var(--abdi-azul) !important; }
.btn-primary { 
    background-color: var(--abdi-azul);
    border-color: var(--abdi-azul);
}
.btn-outline-primary {
    color: var(--abdi-azul);
    border-color: var(--abdi-azul);
}
.btn-outline-primary:hover {
    background-color: var(--abdi-azul);
    color: white;
}

/* Navbar / Header */

/* Profile Bubble com borda colorida estilo ABDI - Borda Ultra Fina */
.profile-bubble-container {
  position: relative;
  padding: 2px; /* Reduzi de 4px para 2px para borda mais fina */
  border-radius: 50%;
  background: conic-gradient(
    #00d000 0deg 36deg,
    #ffda00 36deg 90deg,
    #183eff 90deg 162deg,
    #ff0000 162deg 198deg,
    #00d000 198deg 234deg,
    #ffda00 234deg 306deg,
    #00b4ff 306deg 360deg
  );
}

.profile-bubble {
    width: 36px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #183eff;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Sombra mais suave */
    border: 1px solid white; /* Borda fina mantida */
}

/* Efeito hover */
.btn-profile:hover .profile-bubble-container {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Estilo do botão Sair */
.borda {
  border: 1px solid #183eff !important;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  transition: all 0.3s ease;
}

.borda:hover {
  background-color: #183eff;
  color: white !important;
  text-decoration: none;
}

/* Botão do profile */
.btn-profile {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.btn-profile:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item-text {
  padding: 0.5rem 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .profile-bubble-container {
    padding: 1.5px; /* Borda ainda mais fina no mobile */
  }
  
  .profile-bubble {
    width: 34px;
    height: 34px;
    font-size: 12px;
    border: 1px solid white;
  }
  
  .borda {
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1400px){

    .nav-centro{
        font-size:14px;
        padding:8px;
    }

    .nav-direita{
        font-size:14px;
    }

    .bid-text{
        font-size:20px !important;
    }

}

/* Evita quebra nos navs centrais e direita */
.navbar-nav.mx-auto,
.navbar-nav.d-flex {
    flex-wrap: nowrap;
}

/* Evita quebra dentro do texto dos links */
.navbar-nav.mx-auto > .nav-link,
.navbar-nav.mx-auto > li.nav-item,
.navbar-nav.d-flex > .nav-link {
    white-space: nowrap;
}

.custom-navbar {
    background-color: #f5f5f5 !important;
}

.bid-text{
    font-size: 25px !important;
}

.text-blue{
    color: #2048ff;
    text-decoration: none;
    font-size: 18px;
}

.custom-navbar-blue{
    background-color: #2048ff !important;
}

.nav-centro{
    font-size: 16px;
    border-radius: 45px;
    padding: 6px 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-centro:hover,
.nav-centro.ativo{
    border-radius: 45px;       
    padding: 6px 8px;         
    background-color: #2048ff; 
    color: white;
}

.nav-centro.dropdown-ativo {
    background-color: #2048ff;
    color: white;
}

.dropdown-menu {
    border-radius: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
  
.dropdown-item {
    color: #2048ff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #2048ff;
    color: white;
}

.nav-centro:focus {
    background-color: #2048ff;
    color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 72, 255, 0.5);
}
  
.nav-direita{
    font-size:14px;
    font-weight:600;
}

.nav-direita:hover,
.nav-direita.ativo{
    border-radius: 12px;
    padding: 4px 8px;        
    background-color: #2048ff; 
    color: white;
}

.menu{
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    background-color: #2048ff; 
    color: white;
}

.borda{
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.borda:hover{
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    background-color: #2048ff; 
    color: white;
}

.linha-colorida {
    display: flex;
    height: 2px;
    width: 100%;
}
  
.linha-colorida .cor {
    height: 100%;
}
  

/* Footer */

.footer-abdi {
    background-color: #2048ff;
    color: white;
    position: relative;
    overflow: hidden;
  }
  

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.btn-footer {
    background-color: #f0f0f0;
    color: #2048ff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-footer:hover {
    background-color: white;
    color: #1020aa;
}

.redes-sociais i {
    font-size: 20px;
    background-color: white;
    color: #2048ff;
    padding: 5px;
    margin-right: 5px;
    border-radius: 100%;
    transition: 0.3s;
}
  
.redes-sociais i:hover {
    background-color: #ffffffcc;
    color: #1020aa;
}

/* Estilos Cards */

.card{
    min-height: 200px;
}

.card-segmentos {
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.card-header-segmentos {
    border-bottom: none !important;
    flex-shrink: 0; /* Impede que o header encolha */
    min-height: 80px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
}

.card-img-container {
    flex-grow: 1; 
    position: relative;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Página de Indicadores */

.form-select {
    margin-bottom: 0;
}

.card-header {
    font-weight: 600;
}

#graficosContainer .card {
    transition: all 0.3s ease;
}

#graficosContainer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-info {
    background-color: #f8f9fa;
    border-left: 4px solid #4e73df;
}


/* Primeira Sessão */
.hero-section {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(24,62,255,0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--abdi-azul-claro);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--abdi-verde);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--abdi-azul);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    color: var(--abdi-cinza-1);
    font-weight: 500;
}

/* Sobre - Sessão */
.bg-light {
    background-color: rgba(248, 249, 250, 0.7) !important;
}

/* Estrutura do Estudo - Sessão */
.hover-shadowEstrutura {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-shadowEstrutura:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 62, 255, 0.1) !important;
    border-color: var(--abdi-azul-claro);
}

/* Cards Sessão */
.card-content {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(24, 62, 255, 0.15) !important;
}

.card-content .bi {
    transition: all 0.3s ease;
}

.card-content:hover .bi {
    transform: scale(1.2);
}

.text-justify{
    text-align: justify;
}

/* Página Notas Metodológicas */

.methodological-notes {
    width: 80%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .methodological-notes {
        width: 95%; /* No celular, ocupa quase tudo */
    }
}


.methodological-notes h1 {
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.methodological-notes h2 {
    color: #2c3e50;
    margin-top: 2rem;
    font-weight: 500;
}

.definition-box {
    background-color: #f8f9fa;
    border-left: 4px solid #808080;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.legal-reference {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 1rem;
    text-align: right;
}

.references-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Página Sobre */

.about-page {
    width: 80%;
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-left: 10%;
    margin-right: 10%;
    padding: 0 1.5rem;
    line-height: 1.6;
    color: #333;
}



.about-page h1 {
    color: #2c3e50;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-page h2 {
    color: #2c3e50;
    margin-top: 2rem;
    font-weight: 500;
}

/* Responsividade pra telas menores */
@media (max-width: 768px) {
    .about-page {
        width: 90%;       /* aumenta largura pra 90% em telas médias */
        margin: 2rem 5%;  /* diminui margem lateral pra 5% */
        padding: 0 1rem;  /* menos padding interno */
    }
}

@media (max-width: 480px) {
    .about-page {
        width: 95%;       /* quase full width em telas pequenas */
        margin: 1.5rem 2.5%; /* margens ainda menores */
        padding: 0 0.5rem;
    }
}


.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #41ad49;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 18px;
}

.timeline-highlight {
    font-weight: 600;
    color: #2048ff;
}

.font-size-p{
    font-size: 18px;
}

.paragraph-spacing {
    margin-bottom: 1.2rem;
    font-size: 18px;
}

.emphasis-text {
    font-style: italic;
    color: #7f8c8d;
}

/* Página Contato */

.contact-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.contact-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    background: white;
}

.contact-title {
    color: #2048ff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #2048ff;
    padding-bottom: 0.5rem;
}

.contact-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #d8d8d8;
    height: 56px;
    /*margin-bottom: 1.25rem;*/
}

.contact-form .form-control:focus {
    border-color: #2048ff;
    box-shadow: 0 0 0 0.25rem rgba(32, 72, 255, 0.25);
}

.btn-contact {
    background-color: #2048ff;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    display: block;
    margin: 0 auto;
    width: auto;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #1020aa;
    color: white;
    transform: translateY(-2px);
}

.required-field::after {
    content: " *";
    color: #e74c3c;
}

@media (max-width: 576px) {
    .contact-card {
        padding: 1.5rem;
    }
}

/* Login */

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: #2048ff;
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

/* registrar */

.registration-options {
    text-align: center;
    margin-top: 1.5rem;
}

.registration-options a {
    color: #2048ff;
    text-decoration: none;
    font-weight: 500;
}

.registration-options a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}



/* ================================ Página Indicadores - Ajuste Mobile =============================================== */

/* Container do alerta - remove margem quando estiver escondido */
#alertaSelecao.fade:not(.show) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

/* Estilos específicos para a página de painel de indicadores em mobile */
@media (max-width: 768px) {
    /* Container principal da página - mantém pequena margem lateral */
    main .container-fluid.px-5 {
        padding: 0.5rem !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    /* Seção principal - reduz espaçamento */
    section.py-5 {
        padding: 0.25rem 0 !important;
    }
    
    /* Ajusta o GRID CONTAINER para ter o mesmo espaçamento do card de Indicadores */
    #graficosContainer.row {
        gap: 0.5rem !important;
        margin: 0 !important;
    }
    
    #graficosContainer .col-12,
    #graficosContainer .col-lg-6 {
        padding: 0 !important;
        flex-direction: column;
        display: flex;
    }

    #graficosContainer .card {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    #graficosContainer .card-body {
        padding: 0.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    /* ===== TABELAS ===== */
    #graficosContainer .table-responsive {
        width: 100%;
        overflow-x: auto; /* só horizontal se precisar */
        overflow-y: visible; /* remove rolagem vertical */
        margin: 0;
        padding: 0;
    }

    #graficosContainer .table {
        width: auto; /* largura se ajusta ao conteúdo */
        min-width: 100%; /* evita quebrar se for menor que a tela */
        table-layout: auto; /* colunas flexíveis */
        margin: 0;
    }

    /* Células da tabela compactas */
    #graficosContainer .table th,
    #graficosContainer .table td {
        padding: 0.3rem 0.4rem;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap; /* impede quebra de palavra */
    }

    /* Para colunas de descrição permitir quebra */
    #graficosContainer .table td:nth-child(2),
    #graficosContainer .table th:nth-child(2) {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Alinhamento colunas numéricas
    #graficosContainer .table td.text-end,
    #graficosContainer .table th.text-end {
        text-align: right;
    } */


/*=========================================================================================== */
    /* ===== ESTILOS ESPECÍFICOS PARA O CARD DO GRÁFICO ===== */
    /* #grafico1 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        flex-grow: 1 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        min-height: 0 !important;
    } */
    
    #tabela1 {
        height: auto !important;
        min-height: 150px; /* dá um mínimo para não ficar colapsado */
        flex-grow: 0;
    }

    #graficosContainer .col-lg-6:first-child {
        flex: 0 0 auto;
        max-height: none;
    }

    #graficosContainer .col-lg-6:last-child {
        flex: 1 1 auto; /* permite crescer */
        max-height: none; /* remove restrição */
        min-height: 300px; /* altura mínima para não sumir */
    }

    #grafico1 {
        height: 600px; /* altura mínima confortável para o gráfico */
        min-height: 400px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #grafico1 > div {
        width: 100% !important;
        height: 100% !important;
        /* display: flex !important;
        align-items: center !important;
        justify-content: center !important; */
    }
    
    /* ===== TOOLTIP CUSTOMIZADO PARA MOBILE ===== */
    #graficosContainer .table.table-sm td:nth-child(2) {
        cursor: pointer !important;
        position: relative !important;
    }
    
    #graficosContainer .table td.texto-limitado {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100%; /* deixa a coluna crescer */
        max-width: 1px; /* importante para permitir expansão automática */
    }

    #graficosContainer .table td.texto-limitado span {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #graficosContainer .table td.texto-limitado:hover::after,
    #graficosContainer .table td.texto-limitado:focus::after,
    #graficosContainer .table td.texto-limitado:active::after {
        content: attr(data-title);         /* pega o texto original */
        position: fixed;                   /* posição fixa na tela */
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 8px 10px;
        border-radius: 4px;
        max-width: 85vw;                   /* limite horizontal */
        word-wrap: break-word;
        white-space: normal;               /* permite quebra dentro do tooltip */
        font-size: 14px;
        line-height: 1.2;
        z-index: 10000;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        
        opacity: 1;
        animation: tooltipFade 4s forwards; /* tempo total: 4s */
    }

    #graficosContainer .table td.texto-limitado::after {
        pointer-events: none; /* evita bug de hover travado */
    }


    /* animação de sumir */
    @keyframes tooltipFade {
        0% { opacity: 0; }
        10% { opacity: 1; } /* aparece rápido */
        80% { opacity: 1; } /* fica visível um tempo */
        100% { opacity: 0; } /* some suavemente */
    }
    
    
    #graficosContainer .table.table-sm td:nth-child(2):active {
        background-color: rgba(0, 123, 255, 0.1) !important;
    }

    /* ===== CABEÇALHO DOS CARDS ===== */
    #graficosContainer .card-header,
    #filtroHierarquico .card-header {
        padding: 0.4rem !important;
        font-size: 16px !important;
        flex-shrink: 0;
    }

    /* ===== ESPAÇO DO ALERTA ===== */
    #filtroHierarquico .col-12:has(#alertaSelecao:not(.show)) {
        margin-top: 0.4rem !important;
    }

    #filtroHierarquico .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.8rem !important;
    }
    
    #graficosContainer .card {
        border-radius: 2px !important;
    }
    
    #filtroHierarquico .card {
        border-radius: 5px !important;
    }
    
    #filtroHierarquico .form-select {
        font-size: 16px !important;
        padding: 0.3rem 0.4rem !important;
    }
    
    #filtroHierarquico .form-label {
        font-size: 16px !important;
        margin-bottom: 0.2rem !important;
    }
    
    #btnAplicarSelecao {
        font-size: 16px !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    #alertaSelecao.alert.show {
        font-size: 16px !important;
        margin: 0.3rem 0 !important;
        padding: 0.5rem !important;
    }
    
    main h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .col-md-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0.6rem !important;
    }
    
    #graficosContainer .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.4rem !important;
        height: auto !important;
    }
}

/* ===== ESTILOS PARA DESKTOP ===== */
@media (min-width: 769px) {
    #graficosContainer .table.table-sm td[style*="white-space: nowrap"],
    #graficosContainer .table.table-sm td[style*="text-overflow: ellipsis"] {
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        max-width: 450px !important;
    }
    
    #graficosContainer .table.table-sm td:nth-child(2):hover::after,
    #graficosContainer .table.table-sm td:nth-child(2):focus::after,
    #graficosContainer .table.table-sm td:nth-child(2):active::after {
        content: none;
    }
}

.formula {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    font-style: italic;
    text-align: center;
}


/* ================== ZOOM NO CARD DO GRÁFICO ====================== */

/* overlay fullscreen */
#zoomOverlay {
  display: none;
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

/* mostra o overlay */
#zoomOverlay.active {
  display: flex;
}

/* container central onde o gráfico será movido (evita overflow) */
#zoomOverlay .zoom-container {
  width: 95vw;
  height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  overflow: auto;
  position: relative;
  padding: 12px;
}

/* botao fechar no topo direito */
#zoomOverlay .zoom-close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: 700;
  color: #333;
  z-index: 10;
}

/* Página de Análises, Prospectivas e Publicações */

#fonte {
    font-weight: 700;
    color: var(--abdi-azul);
}

/* IDs das seções de conteúdo */
#pagina_oportunidades_desafios,
#pagina_analises,
#pagina_prospectivas {
    background-color: rgba(24, 62, 255, 0.05);
    border-radius: 10px;
}

.h5-estilo {
    color: var(--abdi-azul);
    font-weight: 600;
    border-bottom: 2px solid var(--abdi-verde);
    padding-bottom: 8px;
    display: inline-block;
    width: fit-content;
}

.h5-estilo2 {
    color: var(--abdi-azul);
    font-weight: 600;
    border-bottom: 2px solid var(--abdi-amarelo);
    padding-bottom: 8px;
    display: inline-block;
    width: fit-content;
}

.card-noticia {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-noticia:hover {
    background-color: rgba(0, 180, 255, 0.1);
    transform: translateY(-2px);
}

.card-relatorios {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px !important;
    overflow: hidden;
    border: none;
    background: white;
    height: 100%;
    min-height: 100%;
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.card-relatorios:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(24, 62, 255, 0.15) !important;
}

.card-relatorios-title {
    color: var(--abdi-azul);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(24, 62, 255, 0.05) !important;
    color: var(--abdi-azul) !important;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(24, 62, 255, 0.15);
    border-color: var(--abdi-azul);
}

@media (max-width: 768px) {
    .card-noticia img {
        width: 100%;
        max-width: 250px;
    }
}

/* zoom */

/* Estilos para o overlay de zoom */
#zoomOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#zoomOverlay.active {
    display: flex;
}

.zoom-container {
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 900px;
    background: white;
    border-radius: 12px;
    position: relative;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.zoom-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.zoom-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

#zoomContentSlot {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container do gráfico no zoom */
#zoomContentSlot #grafico1-zoom {
    width: 100%;
    height: 100%;
    position: relative;
}

#zoomContentSlot .bk-root {
    width: 100% !important;
    height: 100% !important;
}

#zoomContentSlot .bk-plot-wrapper {
    width: 100% !important;
    height: 100% !important;
}

/* Quando o gráfico está em zoom, o original fica oculto */
#cardGrafico.zoomed #grafico1 {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}