.dropdown-item:hover {
    background-color: #26A737;
    color: white;
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important; /* remove o fundo */
    font-weight: bold !important;             /* deixa em negrito */
    color: inherit !important;                /* mantém a cor padrão do texto */
}

.active  { 
    font-weight: bold; 
}

/* ===== BLOCO RESUMO (QUANTIDADE POR COR) ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.summary-box {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: "";
    position: absolute;
    inset: 0;
    /*opacity: 0.08; */   
    opacity: 1.0;
    background: var(--status-color);
    pointer-events: none;
}

.summary-box-inner {
    position: relative; /* para ficar acima do ::before */
}

.summary-box-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.summary-box-count {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.summary-box-sub {
    font-size: 11px;
    margin: 2px 0 0 0;
    color: #fff;
    /*color: #555; */
}

.summary-green  { --status-color: #27ae60; }
.summary-yellow { --status-color: #f1c40f; }
.summary-red    { --status-color: #c0392b; }
.summary-gray   { --status-color: #7f8c8d; }


/* ===== LAYOUT PRINCIPAL: GRÁFICO + CARDS ===== */
.main-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.chart-card h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

/* ===== GRID DOS CARDS DE ALVOS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* CARD BASE COMPACTO */
.card-alvo {
    background: #fff;
    padding: 14px 16px 16px 16px;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: 0.20s ease;
    overflow: hidden;
}

/* Barra superior grossa */
.card-alvo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background: var(--status-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Hover */
.card-alvo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}

/* Cabeçalho do card */
.card-alvo .card-header {
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 6px 0;
}

/* Título com faixa lateral + inferior */
.card-alvo .card-header h3 {
    display: inline-block;
    margin: 8px 0 10px 0;
    font-size: 16.5px;
    font-weight: 600;
    padding: 4px 8px 4px 6px;
    border-left: 4px solid var(--status-color);
    border-bottom: 2px solid var(--status-color);
    border-radius: 2px;
    background: none;
}

.card-alvo p {
    margin: 3px 0;
    font-size: 14.5px;
    line-height: 1.35;
}

/* CORES POR STATUS (ligam com var(--status-color)) */
.card-green  { --status-color: #27ae60; }
.card-yellow { --status-color: #f1c40f; }
.card-red    { --status-color: #c0392b; }
.card-gray   { --status-color: #7f8c8d; }

.tendencia-icon i {
    font-size: 1.3rem;
}

/* ============================================================
   CARDS DE RESPONSÁVEL / OBJETIVOS / PERSPECTIVAS (GRÁFICOS DE PIZZA)
   (antes estavam como <style> nos templates)
   ============================================================ */

/* Mesmo ajuste usado anteriormente nos dashboards:
   - card-responsavel mais alto e com mais padding
   - gráfico com max-height 260px
   - grid com colunas a partir de 320px em telas largas
*/
.cards-grid .card-responsavel {
    min-height: 340px;
    padding: 20px 20px 24px 20px;
}

.cards-grid .card-responsavel canvas {
    max-height: 260px !important;
}

@media (min-width: 1000px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* ============================================================
   TABELA ANALÍTICA – STATUS PILL
   (era <style> dentro de tabela.html)
   ============================================================ */
.tabela-analitica-metas .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    min-width: 90px;
}
.tabela-analitica-metas .status-green  { background-color: #27ae60; }
.tabela-analitica-metas .status-yellow { background-color: #f1c40f; }
.tabela-analitica-metas .status-red    { background-color: #c0392b; }
.tabela-analitica-metas .status-gray   { background-color: #7f8c8d; }

/* ============================================================
   GRÁFICOS DE LINHA – CONTÊINER COM ALTURA FIXA (se quiser usar)
   (para mapear o style="height:250px;" em tendências %)
   ============================================================ */
.line-chart-container-250 {
    height: 250px;
}
/* Container de altura fixa para o gráfico comparativo */
.comparativo-chart-container {
    height: 320px;
}
/* ============================================================
   HEATMAP DE INDICADORES - CSS FORÇADO
   ============================================================ */

/* Wrapper com scroll */
.heatmap-wrapper {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Tabela base */
.heatmap-table {
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

/* Coluna do indicador */
.heatmap-indicador-info {
    background: #fafafa !important;
    vertical-align: top !important;
    min-width: 280px;
    max-width: 380px;
    border-right: 1px solid #ddd !important;
}

/* Célula do heatmap */
.heatmap-cell {
    text-align: center;
    vertical-align: middle !important;
    padding: 6px !important;
    border: 1px solid #ddd !important;
    font-weight: 600;
    min-width: 90px;
    height: 42px;
}

/* ============================================================
   FORÇAR CORES DO HEATMAP
   ============================================================ */

.heatmap-table td.heat-baixo {
    background-color: #f8d7da !important;   /* vermelho claro */
    color: #7a1f1f !important;
}

.heatmap-table td.heat-medio {
    background-color: #fff3cd !important;   /* amarelo claro */
    color: #7a6a1f !important;
}

.heatmap-table td.heat-alto {
    background-color: #d4edda !important;   /* verde claro */
    color: #1d5a2f !important;
}

.heatmap-table td.heat-excelente {
    background-color: #c3e6cb !important;   /* verde mais forte */
    color: #0f4c2e !important;
}

.heatmap-table td.heat-sem-dado {
    background-color: #e9ecef !important;   /* cinza claro */
    color: #555 !important;
}

/* ============================================================
   Cabeçalho de períodos
   ============================================================ */

.heatmap-table thead th {
    background: #f5f5f5 !important;
    border-bottom: 2px solid #ccc !important;
    padding: 8px;
    text-align: center;
    white-space: nowrap;
}

/* Linha do indicador (título + meta) */
.heatmap-indicador-titulo {
    font-weight: 600;
    margin-bottom: 4px;
}

.heatmap-indicador-meta {
    color: #666;
    font-size: 0.78rem;
}

/* ============================================================
   Legenda
   ============================================================ */

.heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.heatmap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.heatmap-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.heatmap-legend-color.heat-baixo { background-color: #f8d7da !important; }
.heatmap-legend-color.heat-medio { background-color: #fff3cd !important; }
.heatmap-legend-color.heat-alto { background-color: #d4edda !important; }
.heatmap-legend-color.heat-excelente { background-color: #c3e6cb !important; }
.heatmap-legend-color.heat-sem-dado { background-color: #e9ecef !important; }
