/* Ajustes do CRM sobre as variáveis --pe-* do template Mirbal (AJ-12). Não reescrever os CSS de static/assets/css/. */

/* Páginas de erro (400, 403, 404, 500) */
.erro-cartao {
    max-width: 32rem;
}

/* Autenticação (allauth, S1.14) */
.auth-cartao {
    max-width: 28rem;
}

.qr-mfa {
    max-width: 14rem;
}

/* notificações e auditoria */
.form-estreito {
    max-width: 40rem;
}

.texto-quebravel {
    overflow-wrap: anywhere;
}

.min-largura-zero {
    min-width: 0;
}

.btn-assincrono .indicator-progress {
    display: none;
}

.btn-assincrono.htmx-request .indicator-progress {
    display: inline-flex;
}

.btn-assincrono.htmx-request .indicator-label {
    display: none;
}

.btn-assincrono .indicator-progress i {
    animation: loader 1500ms infinite linear;
    display: inline-block;
}

[x-cloak] {
    display: none !important;
}

/* ficha 360° do cliente (S6.09): contêiner do gráfico de evolução mensal */
.grafico-evolucao {
    height: 20rem;
    width: 100%;
}

/* tela RFM (S9.19): contêiner do heatmap recência × frequência */
.grafico-rfm {
    height: 22rem;
    width: 100%;
}

/* telas de comparação de segmentos e de coortes (S9.08, S9.23): contêiner dos gráficos */
.grafico-comparar,
.grafico-coortes,
.grafico-distribuicao {
    height: 20rem;
    width: 100%;
}

/* rede da afinidade (S9F.08): o ECharts desenha dentro deste contêiner, que fica mais alto no celular, onde as três
   colunas pedem mais espaço vertical. O JS só cria o gráfico quando o contêiner tem largura. */
.afin-rede {
    height: 40rem;
    width: 100%;
}
/* a partir de lg a rede ocupa o espaço que sobra ao lado do painel (os dois cartões ficam com a mesma altura, definida pela rede); com
   `contain: size` o desenho não empurra a altura da coluna, que nunca fica abaixo de 44rem */
@media (min-width: 992px) {
    .afin-rede {
        contain: size;
        flex: 1 1 auto;
        height: auto;
        min-height: 44rem;
    }
    /* o painel do par não define a altura da linha: quem manda é a rede, e o detalhe rola dentro do cartão quando for
       mais alto. Assim a rede não cresce nem se mexe ao clicar numa bola ou seta */
    .afin-coluna-painel > .card {
        contain: size;
    }
    .afin-corpo-painel {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }
    .afin-corpo-painel > #afin-painel {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }
    .afin-corpo-painel .afin-painel {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }
    .afin-corpo-painel .afin-painel > * {
        flex: 0 0 auto;
    }
    /* só o corpo da aba rola (a lista de produtos, lojas ou clientes); título, números e abas ficam parados */
    .afin-corpo-painel .afin-painel > .afin-abas-corpo {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
    }
    .afin-coluna-rede > .tab-content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }
    .afin-coluna-rede > .tab-content > .tab-pane.active {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }
}
/* cabeçalho das três colunas: os rótulos ficam no mesmo x dos nós (15%, 50% e 85%, com a mesma margem mínima de 70 px
   que o JS aplica nas bordas) */
.afin-colunas {
    color: var(--pe-secondary-color);
    font-size: 0.6875rem;
    height: 1.25rem;
    letter-spacing: 0.05em;
    position: relative;
    text-transform: uppercase;
    width: 100%;
}
.afin-coluna-rotulo {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .afin-colunas {
        font-size: 0.625rem;
        letter-spacing: 0.02em;
    }
}
.afin-coluna-rotulo:nth-child(1) {
    left: max(70px, 15%);
}
.afin-coluna-rotulo:nth-child(2) {
    left: 50%;
}
.afin-coluna-rotulo:nth-child(3) {
    left: min(calc(100% - 70px), 85%);
}
.afin-rede .afin-sem-grafico {
    padding: 1rem;
}
/* legenda da rede: cor = lift, espessura = cupons juntos, número na seta = confiança */
.afin-legenda {
    align-items: center;
    color: var(--pe-secondary-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 0.25rem 1rem;
}
.afin-legenda-item {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}
.afin-legenda-cor {
    background: linear-gradient(90deg, var(--pe-info), var(--pe-warning));
    border-radius: 0.25rem;
    display: inline-block;
    height: 0.5rem;
    width: 2.5rem;
}
.afin-legenda-ponto {
    background: var(--pe-secondary-color);
    border-radius: 50%;
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
}
.afin-legenda-ponto-grande {
    height: 0.9rem;
    width: 0.9rem;
}
.afin-linha-lista {
    cursor: pointer;
}
.afin-linha-lista .btn-link:focus-visible {
    outline: 2px solid var(--pe-primary);
    outline-offset: 2px;
}
/* linha da Lista que corresponde ao par aberto no painel */
.afin-ativo,
.afin-ativo > td {
    background-color: var(--pe-primary-bg-subtle);
    --bs-table-bg-state: var(--pe-primary-bg-subtle);
}

/* painel do par da afinidade (S9F.02): quatro números, frase da conta e abas; linhas com o nome em uma linha só, uma
   barra fina (`progress`, sem largura em atributo de estilo) e os números à direita. A partir de lg a altura do painel
   vem da rede e só o corpo da aba rola; trocar de aba não muda a altura do painel. */
.afin-painel {
    min-width: 0;
}
.afin-titulo {
    font-size: 1.05rem;
    line-height: 1.4;
}
.afin-kpi {
    background-color: var(--pe-tertiary-bg);
    border-radius: var(--pe-border-radius);
    height: 100%;
    padding: 0.5rem 0.75rem;
}
.afin-kpi-valor {
    color: var(--pe-emphasis-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}
.afin-kpi-rotulo {
    color: var(--pe-secondary-color);
    font-size: 0.75rem;
}
.afin-frase {
    border-left: 3px solid var(--pe-primary);
    padding-left: 0.75rem;
}
.afin-blocos .nav-link {
    border: 1px solid var(--pe-border-color);
}
.afin-linha {
    align-items: center;
    border-bottom: 1px solid var(--pe-border-color);
    column-gap: 0.75rem;
    display: grid;
    font-size: 0.8125rem;
    grid-template-columns: minmax(0, 1fr) minmax(2rem, 25%) 3.5rem 5.5rem;
    padding: 0.4rem 0;
}
.afin-lista-quem .afin-linha {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 5.5rem;
}
.afin-linha-cab {
    color: var(--pe-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.afin-nome {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.afin-celula {
    align-items: center;
    column-gap: 0.5rem;
    display: grid;
    grid-template-columns: minmax(1.5rem, 1fr) 3.25rem;
}
.afin-celula strong {
    text-align: end;
}
.afin-destaque {
    background-color: rgba(var(--pe-primary-rgb), 0.06);
}
.afin-barra {
    appearance: none;
    background-color: var(--pe-tertiary-bg);
    border: 0;
    border-radius: 999px;
    color: var(--pe-primary);
    display: block;
    height: 0.4rem;
    overflow: hidden;
    width: 100%;
}
.afin-barra::-webkit-progress-bar {
    background-color: var(--pe-tertiary-bg);
    border-radius: 999px;
}
.afin-barra::-webkit-progress-value {
    background-color: var(--pe-primary);
    border-radius: 999px;
}
.afin-barra::-moz-progress-bar {
    background-color: var(--pe-primary);
    border-radius: 999px;
}
.afin-barra-x {
    color: var(--pe-info);
}
.afin-barra-x::-webkit-progress-value {
    background-color: var(--pe-info);
}
.afin-barra-x::-moz-progress-bar {
    background-color: var(--pe-info);
}

/* matriz de retenção por coorte (S9.23): cinco faixas da cor primária, da mais fraca à mais forte */
.table td.retencao-0 { background-color: rgba(var(--pe-primary-rgb), 0.05); }
.table td.retencao-1 { background-color: rgba(var(--pe-primary-rgb), 0.15); }
.table td.retencao-2 { background-color: rgba(var(--pe-primary-rgb), 0.3); }
.table td.retencao-3 { background-color: rgba(var(--pe-primary-rgb), 0.5); }
.table td.retencao-4 { background-color: rgba(var(--pe-primary-rgb), 0.7); }

/* matriz de migração entre segmentos (mensal e trimestral): azul = peso do destino na linha (5 faixas), vermelho =
   migração crítica, cinza = totais; a legenda usa as mesmas cores. Tooltip estruturado em `.tooltip-matriz`. */
.table td.migra-0, .legenda-cor-0 { background-color: rgba(var(--pe-info-rgb), 0.04); }
.table td.migra-1, .legenda-cor-1 { background-color: rgba(var(--pe-info-rgb), 0.12); }
.table td.migra-2, .legenda-cor-2 { background-color: rgba(var(--pe-info-rgb), 0.24); }
.table td.migra-3, .legenda-cor-3 { background-color: rgba(var(--pe-info-rgb), 0.40); }
.table td.migra-4, .legenda-cor-4 { background-color: rgba(var(--pe-info-rgb), 0.58); }
.table td.migra-critica, .legenda-cor-critica { background-color: rgba(var(--pe-danger-rgb), 0.45); }
.table .migra-total, .legenda-cor-total { background-color: rgba(var(--pe-body-color-rgb), 0.07); }
.tabela-matriz td { cursor: default; }
.tabela-matriz td a { cursor: pointer; }

.matriz-legenda {
    border: 1px solid var(--pe-border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.matriz-legenda-titulo {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pe-secondary-color);
    margin-bottom: 0.5rem;
}
.legenda-cor {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--pe-border-color);
    vertical-align: middle;
}
.matriz-exemplo {
    min-width: 5.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.35rem;
    border: 1px solid var(--pe-border-color);
}

.tooltip-matriz .tooltip-inner {
    max-width: 20rem;
    min-width: 15rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
}
.tooltip-matriz .dica-titulo { font-weight: 600; font-size: 0.85rem; }
.tooltip-matriz .dica-sub { opacity: 0.75; font-size: 0.75rem; margin-bottom: 0.4rem; }
.tooltip-matriz .dica-secao {
    margin-top: 0.4rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
}
.tooltip-matriz .dica-linha { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.tooltip-matriz .dica-queda { color: #ffa8a8; }
.tooltip-matriz .dica-alta { color: #8ee6a8; }
.tooltip-matriz .dica-aviso {
    margin-top: 0.5rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.25rem;
    background-color: rgba(var(--pe-danger-rgb), 0.55);
    font-size: 0.75rem;
}

/* catálogo de indicadores (S7.09): fórmula da DSL em bloco, com quebra de linha em telas estreitas */
.formula-dsl {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.8125rem;
}

/* painéis (S8.07, S8.15): botões só com ícone do editor e o botão que abre os filtros no celular, área de toque de 44 px */
.botao-toque {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* telas de relatórios e barra de ações do painel (S8.10, S8.13): abaixo de 768 px os botões e itens de
   menu têm área de toque de 44 px (o botão padrão do tema tem 41 px, e o pequeno, 30 px) */
@media (max-width: 767.98px) {
    .acoes-toque .btn,
    .acoes-toque .dropdown-item {
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .acoes-toque .dropdown-item {
        display: flex;
        gap: .25rem;
        justify-content: flex-start;
    }
}

/* menu "Exportar" no canto do widget (S8.10): o título do fragmento não passa por baixo do botão de 44 px */
.widget-exportavel .widget-conteudo > .card-body > :first-child {
    padding-right: 3rem;
}

/* andamento da exportação (S8.10): o "show:top" do HTMX não deixa o aviso sob o cabeçalho fixo, e o fundo opaco
   impede que a faixa escura do topo do layout apareça através do alerta translúcido */
.exportacao-andamento {
    scroll-margin-top: 8.5rem;
    border-radius: var(--pe-border-radius);
}

.exportacao-andamento:not(:empty) {
    background-color: var(--pe-body-bg);
}

/* painel de cobertura de identificação (S7.21): a altura final vem do cobertura.js (proporcional às unidades) */
.grafico-cobertura {
    min-height: 13.75rem;
    width: 100%;
}

/* Segmentos: regra legível, um recuo por nível de grupo (S9.04) */
.regra-nivel-1 { padding-left: 1rem; }
.regra-nivel-2 { padding-left: 2rem; }
.regra-nivel-3 { padding-left: 3rem; }
.regra-nivel-4 { padding-left: 4rem; }

/* Construtor de segmentos (S9.04): aviso "Calculando..." da prévia só durante o pedido HTMX
   (includeIndicatorStyles desligado na htmx-config) */
.construtor-indicador {
    visibility: hidden;
}

.construtor-indicador.htmx-request {
    visibility: visible;
}

/* Paginação: o item "N de M" mostra texto, não um número só; sem isso herda a largura fixa dos botões numerados
   do template (29px no tamanho sm) e o texto é cortado */
.pagination .page-link.page-status {
    width: auto;
    padding: 0 0.75rem;
    white-space: nowrap;
}

/* Lojas no mapa (S10B.04): o Leaflet precisa de altura explícita no contêiner */
.mapa-lojas {
    height: 20rem;
    width: 100%;
    border-radius: 0.5rem;
    z-index: 0;
}

@media (min-width: 768px) {
    .mapa-lojas { height: 30rem; }
}

.coluna-coordenada { min-width: 8.5rem; }

/* Cor principal do CRM: laranja moderno (substitui o preset "orange" do Mirbal, #e59144). Sobrescreve sob o mesmo
   seletor do preset (app.min.css), por isso este arquivo precisa carregar depois dele.
   PARA AJUSTAR A COR, troque só os dois valores marcados (--crm-laranja e --crm-laranja-rgb) e, se quiser, os tons
   de texto/hover abaixo. Valores atuais e derivados (contraste WCAG):
     principal  #ea580c  rgb 234, 88, 12   (fundo de botões, destaques; branco sobre ela 3,56:1: UI e títulos, não texto pequeno)
     escuro     #c2410c  rgb 194, 65, 12   (links, texto de destaque e hover/active de botões; 5,18:1 sobre branco)
     hover link #9a3412  rgb 154, 52, 18   (7,31:1 com branco)
     tema escuro: principal #ea580c (5,08:1 sobre #161616), texto/links #fb923c (8,00:1) e hover de link #fdba74 (10,73:1)
   O vermelho de perigo/erro (--pe-danger) não é alterado. */
:root[data-theme-colors=orange],
[data-bs-theme=light][data-theme-colors=orange] {
    --crm-laranja: #ea580c; /* <- trocar aqui */
    --crm-laranja-rgb: 234, 88, 12; /* <- e aqui (mesma cor em R, G, B) */
    --crm-laranja-escuro: #c2410c;
    --crm-laranja-escuro-rgb: 194, 65, 12;
    --pe-primary: var(--crm-laranja);
    --pe-primary-rgb: var(--crm-laranja-rgb);
    --pe-primary-text-emphasis: var(--crm-laranja-escuro);
    --pe-primary-bg-subtle: rgba(var(--crm-laranja-rgb), 0.1);
    --pe-primary-border-subtle: rgba(var(--crm-laranja-rgb), 0.5);
    --pe-link-color-rgb: var(--crm-laranja-escuro-rgb);
    --pe-link-hover-color-rgb: 154, 52, 18;
}

/* O preset do template não define tema escuro; aqui o laranja ganha tons mais claros para ler sobre #161616. */
:root[data-bs-theme=dark][data-theme-colors=orange],
[data-bs-theme=dark][data-theme-colors=orange] {
    --crm-laranja: #ea580c;
    --crm-laranja-rgb: 234, 88, 12;
    --pe-primary: var(--crm-laranja);
    --pe-primary-rgb: var(--crm-laranja-rgb);
    --pe-primary-text-emphasis: #fb923c;
    --pe-primary-bg-subtle: rgba(var(--crm-laranja-rgb), 0.15);
    --pe-primary-border-subtle: rgba(var(--crm-laranja-rgb), 0.5);
    --pe-link-color-rgb: 251, 146, 60;
    --pe-link-hover-color-rgb: 253, 186, 116;
}

/* O Mirbal usa --pe-primary-text-emphasis como fundo de hover/active do .btn-primary; no tema escuro ele é claro
   demais para texto branco, então o hover usa o tom escuro, e a sombra de clique (fixa em vermelho no template) segue a cor principal. */
[data-bs-theme=dark][data-theme-colors=orange] .btn-primary {
    --pe-btn-hover-bg: #c2410c;
    --pe-btn-hover-border-color: #c2410c;
    --pe-btn-active-bg: #c2410c;
    --pe-btn-active-border-color: #c2410c;
}

[data-theme-colors=orange] .btn-primary:first-child:active,
[data-theme-colors=orange] .btn-primary:active {
    box-shadow: 0 0.125rem 0.375rem 0 rgba(var(--pe-primary-rgb), 0.3);
}

/* Cor principal ALTERNATIVA (teste): azul moderno sobre o preset "skyblue" do Mirbal (#5e88cb, mais apagado).
   Mesma estrutura do bloco laranja acima. Para PARAR de usar, basta o seletor de tema ou os comandos de console:
     localStorage.setItem('data-theme-colors','orange');  location.reload()   // laranja moderno
     localStorage.setItem('data-theme-colors','skyblue'); location.reload()   // azul (este bloco)
     localStorage.setItem('data-theme-colors','default'); location.reload()   // vermelho original do Mirbal
   (a chave é a que o layout-setup.js do template lê; o padrão gravado para novos acessos está em static/js/layout-padrao.js)
   PARA AJUSTAR A COR, troque só --crm-azul e --crm-azul-rgb (e, se quiser, os tons escuros). Contraste WCAG:
     principal  #2563eb  rgb 37, 99, 235   (branco sobre ela 5,17:1)
     escuro     #1d4ed8  rgb 29, 78, 216   (links e hover/active de botões; 6,70:1 sobre branco)
     hover link #1e40af  rgb 30, 64, 175
     tema escuro: principal #2563eb (3,50:1 sobre #161616 e 3,15:1 sobre #202020: só UI), texto/links #60a5fa (7,12:1 / 6,41:1) e hover de link #93c5fd (10,04:1) */
:root[data-theme-colors=skyblue],
[data-bs-theme=light][data-theme-colors=skyblue] {
    --crm-azul: #2563eb; /* <- trocar aqui */
    --crm-azul-rgb: 37, 99, 235; /* <- e aqui (mesma cor em R, G, B) */
    --crm-azul-escuro: #1d4ed8;
    --crm-azul-escuro-rgb: 29, 78, 216;
    --pe-primary: var(--crm-azul);
    --pe-primary-rgb: var(--crm-azul-rgb);
    --pe-primary-text-emphasis: var(--crm-azul-escuro);
    --pe-primary-bg-subtle: rgba(var(--crm-azul-rgb), 0.1);
    --pe-primary-border-subtle: rgba(var(--crm-azul-rgb), 0.5);
    --pe-link-color-rgb: var(--crm-azul-escuro-rgb);
    --pe-link-hover-color-rgb: 30, 64, 175;
}

:root[data-bs-theme=dark][data-theme-colors=skyblue],
[data-bs-theme=dark][data-theme-colors=skyblue] {
    --crm-azul: #2563eb;
    --crm-azul-rgb: 37, 99, 235;
    --pe-primary: var(--crm-azul);
    --pe-primary-rgb: var(--crm-azul-rgb);
    --pe-primary-text-emphasis: #60a5fa;
    --pe-primary-bg-subtle: rgba(var(--crm-azul-rgb), 0.15);
    --pe-primary-border-subtle: rgba(var(--crm-azul-rgb), 0.5);
    --pe-link-color-rgb: 96, 165, 250;
    --pe-link-hover-color-rgb: 147, 197, 253;
}

[data-bs-theme=dark][data-theme-colors=skyblue] .btn-primary {
    --pe-btn-hover-bg: #1d4ed8;
    --pe-btn-hover-border-color: #1d4ed8;
    --pe-btn-active-bg: #1d4ed8;
    --pe-btn-active-border-color: #1d4ed8;
}

[data-theme-colors=skyblue] .btn-primary:first-child:active,
[data-theme-colors=skyblue] .btn-primary:active {
    box-shadow: 0 0.125rem 0.375rem 0 rgba(var(--pe-primary-rgb), 0.3);
}

/* Menu lateral: item ativo na cor do tema.
   O app.css do Mirbal pinta o item ativo/hover com branco translúcido (rgba(--pe-white-rgb)) e o "blob" (::after) com
   gradiente branco, que no ativo fica parado no deslocamento padrão de 120 px; por isso o realce não seguia --pe-primary.
   Aqui o ativo usa --pe-primary-rgb (troca com data-theme-colors), o blob some no ativo sem mouse em cima, e o hover
   continua o branco translúcido sutil do template. */
html[data-sidebar-color] .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active {
    background-color: rgba(var(--pe-primary-rgb), 0.16);
    border-color: rgba(var(--pe-primary-rgb), 0.35);
}

html[data-sidebar-color] .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active:not(:hover)::after {
    opacity: 0;
}

html[data-sidebar-color] .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active::after {
    background: radial-gradient(circle, rgba(var(--pe-primary-rgb), 0.35) 0%, rgba(var(--pe-primary-rgb), 0.1) 70%);
}

html[data-sidebar-color]:not([data-sidebar-color=light]) .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active,
html[data-sidebar-color]:not([data-sidebar-color=light]) .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active .pe-nav-icon {
    color: var(--pe-primary-text-emphasis);
}

html[data-sidebar-color] .pe-app-sidebar .pe-app-sidebar-menu .pe-slide-menu .pe-nav-link.active {
    background-color: transparent;
    border-color: transparent;
}

html[data-sidebar-color] .pe-app-sidebar .pe-app-sidebar-menu .pe-slide-menu .pe-nav-link.active::before {
    background-color: var(--pe-primary) !important;
}

/* Mapa de clientes (S10B.07): altura como a das lojas; a legenda e os hexágonos leem as mesmas cinco faixas
   (o JS lê o background-color calculado de .legenda-faixa-N), crescentes sobre a cor primária do tema */
.mapa-clientes {
    height: 20rem;
    width: 100%;
    border-radius: 0.5rem;
    z-index: 0;
}

@media (min-width: 768px) {
    .mapa-clientes { height: 30rem; }
}

.legenda-amostra {
    display: inline-block;
    width: 1.25rem;
    height: 1rem;
    border: 1px solid rgba(var(--pe-primary-rgb), 0.6);
    border-radius: 0.2rem;
}

.legenda-faixa-1 { background-color: rgba(var(--pe-primary-rgb), 0.15); }
.legenda-faixa-2 { background-color: rgba(var(--pe-primary-rgb), 0.35); }
.legenda-faixa-3 { background-color: rgba(var(--pe-primary-rgb), 0.55); }
.legenda-faixa-4 { background-color: rgba(var(--pe-primary-rgb), 0.75); }
.legenda-faixa-5 { background-color: rgba(var(--pe-primary-rgb), 0.95); }

/* Campanhas (S11.03): números do resumo do público em caixas iguais às da afinidade; o título da etapa recebe o foco
   ao trocar de etapa (sem contorno, ele não é um controle); rótulos das etapas sob os círculos do stepper do Mirbal. */
.resumo-publico-item {
    background-color: var(--pe-tertiary-bg);
    border-radius: var(--pe-border-radius);
    padding: .5rem .25rem;
    height: 100%;
}

#titulo-etapa:focus {
    outline: none;
}

.assistente-etapas .nav.nav-pills .nav-item {
    min-width: 2.5rem;
}

.assistente-etapas .nav.nav-pills .nav-item span.nav-link {
    cursor: default;
}

/* Relatório da campanha (S11.13): texto do estado vazio com largura de leitura, valor do cartão sem estourar no
   celular e contêiner do gráfico teste × controle (barras em cima, diferença com a faixa provável embaixo). */
.relatorio-vazio-texto {
    max-width: 36rem;
}

.relatorio-cartao .fs-22 {
    overflow-wrap: anywhere;
}

.grafico-relatorio {
    height: 22rem;
    width: 100%;
}
