/* Visao Connect -- identidade do Programa Connect (programaconnect.com) */
:root {
  --navy: #0a1c35;
  --navy-2: #011f54;
  --red: #cf1830;
  --red-escuro: #a9182a;
  --ink: #172c43;
  --muted: #586b7b;
  --line: #dbe3eb;
  --bg: #f2f6fa;
  --card: #ffffff;
  --ok: #0f7b54;
  --ok-bg: #e3f5ec;
  --warn: #9a5b00;
  --warn-bg: #fff3dc;
  --bad-bg: #fde8ea;
  --radius: 12px;
  --display: "Bebas Neue", "Outfit", system-ui, sans-serif;
  --sans: "Outfit", "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; margin: 0 0 .4em; color: var(--navy); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
small, .muted { color: var(--muted); }

/* ---- topo ---- */
.topo { background: var(--navy); color: #fff; }
.topo-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.topo img.logo { height: 34px; display: block; }
.topo nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.topo nav a { color: #cbd9e8; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.topo nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topo nav a.ativo { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 var(--red); }
.topo .usuario { font-size: .9rem; color: #cbd9e8; display: flex; gap: 12px; align-items: center; }
.topo .usuario a { color: #fff; }

main { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cabecalho p { margin: 0; color: var(--muted); }

/* ---- cartoes ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.grade > .card + .card, .grade > .card { margin-top: 0; }
.grade { display: grid; gap: 16px; }
.grade-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grade-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grade-lado { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 860px) { .grade-lado { grid-template-columns: 1fr; } }

.kpi .rotulo { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; }
.kpi .valor { font-family: var(--display); font-size: 2.6rem; color: var(--navy); line-height: 1.05; }
.kpi .sub { font-size: .85rem; color: var(--muted); }
.kpi { border-top: 3px solid var(--line); }
.kpi.destaque { border-top-color: var(--red); }

/* ---- botoes / formularios ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-escuro); }
.btn-claro { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-claro:hover { background: var(--bg); }
.btn-sm { padding: 4px 12px; font-size: .85rem; }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(207,24,48,.25); border-color: var(--red); }
input[type=checkbox] { width: auto; }
label { display: block; font-weight: 500; margin-bottom: 4px; font-size: .9rem; }
.campo { margin-bottom: 14px; }
.campo .ajuda { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.campo .erro, .errorlist { color: var(--red); font-size: .85rem; margin: 4px 0 0; padding: 0; list-style: none; }
.campo-check { display: flex; gap: 8px; align-items: center; }
.campo-check label { margin: 0; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filtros > * { width: auto; min-width: 150px; }
.filtros input[type=search] { min-width: 240px; }
.filtros .btn, .filtros input[type=date] { min-width: 0; }
.form-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }

/* ---- tabela ---- */
.tabela-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; background: #f8fafc; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fafc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td select { padding: 4px 6px; font-size: .85rem; min-width: 150px; }
tr.cancelado td { color: var(--muted); text-decoration: line-through; }

/* ---- etiquetas ---- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e4eaf0; color: var(--ink); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-bad { background: var(--bad-bg); color: var(--red-escuro); }
.tag-navy { background: var(--navy); color: #fff; }

/* ---- barra de meta ---- */
.barra { height: 10px; background: #e4eaf0; border-radius: 999px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--red); border-radius: 999px; }

/* ---- linha do tempo ---- */
.tempo { list-style: none; margin: 0; padding: 0; }
.tempo li { position: relative; padding: 0 0 18px 26px; }
.tempo li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.tempo li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tempo li:last-child::after { display: none; }
.tempo li.manual::before { background: var(--red); }
.tempo .quando { font-size: .8rem; color: var(--muted); }
.tempo .titulo { font-weight: 600; }

/* ---- mensagens ---- */
.msgs { list-style: none; padding: 0; margin: 0 0 16px; }
.msgs li { padding: 10px 14px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); margin-bottom: 6px; }
.msgs li.error { background: var(--bad-bg); color: var(--red-escuro); }

dl.dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.dados dt { color: var(--muted); }
dl.dados dd { margin: 0; word-break: break-word; }
dl.respostas { margin: 0; }
dl.respostas dt { color: var(--muted); font-size: .85rem; }
dl.respostas dd { margin: 0 0 12px; font-weight: 500; word-break: break-word; }

.paginacao { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.vazio { padding: 32px; text-align: center; color: var(--muted); }

/* ---- segmentos (periodo, nivel) ---- */
.segmentos { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; min-width: 0 !important; }
.segmentos a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; }
.segmentos a.ativo { background: var(--navy); color: #fff; }

/* ---- graficos (SVG inline) ---- */
:root { --serie-1: #1d4f91; --serie-2: #cf1830; }
.grafico { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .eixo { stroke: #b6c7d2; stroke-width: 1; }
.grafico .grade-linha { stroke: #e4eaf0; stroke-width: 1; stroke-dasharray: 3 3; }
.grafico .rotulo-eixo { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.grafico .rotulo-serie { font-size: 12px; fill: var(--ink); font-weight: 600; font-family: var(--sans); }
.grafico .barra-azul { fill: var(--serie-1); }
.grafico .barra-vermelho { fill: var(--serie-2); }
.grafico .linha-real { fill: none; stroke: var(--serie-1); stroke-width: 2; stroke-linejoin: round; }
.grafico .linha-proj { fill: none; stroke: var(--serie-1); stroke-width: 2; stroke-dasharray: 5 4; opacity: .7; }
.grafico .linha-meta { stroke: var(--serie-2); stroke-width: 1.5; stroke-dasharray: 2 3; }
.grafico .ponto { fill: var(--serie-1); stroke: #fff; stroke-width: 2; }
.grafico .alvo:hover rect[class^=barra] { opacity: .8; }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.legenda i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--serie-1); vertical-align: middle; margin-right: 6px; }
.legenda i.proj { border-top-style: dashed; opacity: .7; }
.legenda i.meta { border-top: 2px dotted var(--serie-2); }
.legenda i.media { border-top: 2px solid var(--serie-2); }
.grafico .linha-dia { fill: none; stroke: var(--serie-1); stroke-width: 1.5; stroke-linejoin: round; opacity: .55; }
.grafico .ponto-dia { fill: var(--serie-1); }
.grafico .linha-media { fill: none; stroke: var(--serie-2); stroke-width: 2.5; stroke-linejoin: round; }
.grafico .alvo-col { fill: transparent; }
.grafico .alvo-col:hover { fill: #1d4f9112; }

/* ---- Meta Ads: filtro e tendencia ---- */
.filtro-meta label { flex: 1 1 220px; max-width: 360px; display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0; }
.filtro-meta select { width: 100%; }
.trilha { margin: -6px 0 16px; color: var(--muted); }
.trilha span { color: var(--ink); font-weight: 600; }
.trilha small { color: var(--muted); font-weight: 400; text-transform: uppercase; font-size: .7rem; letter-spacing: .5px; }
.tend .rotulo { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.tend .valor { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin: 4px 0 6px; color: var(--ink); }
.tend small { margin-left: 6px; }
#tip { position: fixed; pointer-events: none; background: var(--navy); color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 8px; z-index: 50; display: none; max-width: 320px; box-shadow: 0 8px 24px -8px #000c258c; }

/* ---- funil ---- */
.funil { display: flex; flex-direction: column; gap: 6px; }
.funil-linha { display: grid; grid-template-columns: minmax(170px, 1.2fr) 3fr 110px 130px; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; }
.funil-linha:hover { background: #f8fafc; }
.funil-barra { height: 22px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.funil-barra span { display: block; height: 100%; background: var(--serie-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.funil-num { text-align: right; font-variant-numeric: tabular-nums; }
.funil-passo { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .funil-linha { grid-template-columns: 1fr 90px; } .funil-barra { grid-column: 1 / -1; order: 3; } .funil-passo { display: none; } }

/* ---- visao geral (dashboard) ---- */
:root { --s1: #1d4f91; --s2: #eb6834; --s-resto: #c9d4df; --st-ok: #0ca30c; --st-warn: #fab219; --st-bad: #d03b3b; }
.vg h2 { margin-bottom: 2px; }
.vg .card > p.muted:first-of-type { margin-top: 0; }
.vg .sub-card { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.grafico .linha { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .linha.s1 { stroke: var(--s1); } .grafico .linha.s2 { stroke: var(--s2); }
.grafico .ponto { stroke: #fff; stroke-width: 2; } .grafico .ponto.s1 { fill: var(--s1); } .grafico .ponto.s2 { fill: var(--s2); }
.grafico .bar.s1 { fill: var(--s1); } .grafico .bar.s2 { fill: var(--s2); } .grafico .bar.s-resto { fill: var(--s-resto); }
.grafico .rotulo-ponta { font-size: 13px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.grafico .rotulo-ponta-nome { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.grafico .linha-marco { stroke: #8a9aab; stroke-width: 1; stroke-dasharray: 4 3; }
.grafico .rotulo-marco { font-size: 10.5px; fill: var(--muted); font-family: var(--sans); }
.grafico .mira { stroke: #8a9aab; stroke-width: 1; opacity: 0; }
.grafico .ponto-hover { opacity: 0; stroke: #fff; stroke-width: 2; }
.grafico .ponto-hover.s1 { fill: var(--s1); } .grafico .ponto-hover.s2 { fill: var(--s2); }
.grafico .col:hover .mira, .grafico .col:hover .ponto-hover { opacity: 1; }
.grafico .col:hover .bar { opacity: .82; }
.legenda .ch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.legenda .ch.s1 { background: var(--s1); } .legenda .ch.s2 { background: var(--s2); } .legenda .ch.s-resto { background: var(--s-resto); }
.legenda .ch.marco { width: 0; height: 12px; border-left: 1px dashed #8a9aab; border-radius: 0; }

.oport { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oport li { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.oport li.alta { border-left: 4px solid var(--st-bad); } .oport li.media { border-left: 4px solid var(--st-warn); } .oport li.info { border-left: 4px solid var(--s1); }
.oport strong { display: block; }
.oport p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.oport .acao { white-space: nowrap; align-self: center; }
@media (max-width: 760px) { .oport li { grid-template-columns: 1fr; } }

.kpi .valor small { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-left: 4px; }
.grade-kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grade-kpi .kpi .valor { font-size: 2.2rem; }

.hbar { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 92px; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 6px; }
.hbar:hover { background: #f8fafc; }
.hbar .trilho { height: 16px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.hbar .trilho span { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .trilho span.ok { background: var(--st-ok); } .hbar .trilho span.warn { background: var(--st-warn); }
.hbar .trilho span.bad { background: var(--st-bad); } .hbar .trilho span.neutro { background: var(--s-resto); }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .nome { font-size: .9rem; }
.ico { display: inline-block; width: 16px; text-align: center; font-weight: 700; margin-right: 4px; }
.ico.ok { color: var(--ok); } .ico.warn { color: var(--warn); } .ico.bad { color: var(--red-escuro); }

td .mini { height: 6px; background: #eef2f6; border-radius: 3px; margin-top: 4px; min-width: 60px; }
td .mini span { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
td.melhor { background: var(--ok-bg); } td.pior { background: var(--bad-bg); }

.calor { border-collapse: separate; border-spacing: 2px; width: 100%; }
.calor th { background: none; text-align: center; padding: 4px; }
.calor th.dia { text-align: left; }
.calor td { text-align: center; border: 0; border-radius: 4px; padding: 8px 2px; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.calor td.escuro { color: #fff; }
.calor tr.taxa td { background: none; color: var(--muted); font-size: .78rem; padding-top: 6px; }
.calor-leg { display: flex; align-items: center; gap: 2px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.calor-leg i { width: 22px; height: 10px; border-radius: 2px; display: inline-block; }

/* ---- visao geral: layout de painel ---- */
.dash { --b-leads: #2a5bd7; --b-grupo: #1f9d6b; --b-saiu: #b4232f; --l-pct: #172c43; }
.grafico .b-saiu { fill: var(--b-saiu); }
.legenda-dash i.b-saiu { background: var(--b-saiu); }
.legenda-dash i.l-pct { width: 16px; height: 0; border-radius: 0; border-top: 2px solid var(--l-pct); vertical-align: middle; }
.grafico .linha-pct { fill: none; stroke: var(--l-pct); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .ponto-pct { fill: var(--l-pct); stroke: #fff; stroke-width: 1.5; }
.grafico .rotulo-painel { font-size: 11px; font-weight: 600; fill: var(--muted); font-family: var(--sans); }
.dash .card { border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.dash .card + .card { margin-top: 0; }
.dash-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-topo h1 { font-family: var(--sans); font-weight: 700; font-size: 1.7rem; letter-spacing: 0; margin: 0; color: var(--navy); }
.dash-topo p { margin: 2px 0 0; color: var(--muted); }
.dash-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.dash .btn { border-radius: 10px; }
.dash-filtros { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; }
.dash-filtros label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0; flex: 0 1 260px; }
.dash-filtros label:nth-child(2) { flex-basis: 380px; }
.dash-filtros select { font-size: .9rem; }
.dash-filtros-botoes { margin-left: auto; display: flex; gap: 10px; }
.dash-aviso { border-left: 4px solid var(--warn); margin-bottom: 16px; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dk { display: flex; gap: 12px; align-items: center; padding: 14px; min-width: 0; }
.dk > div { min-width: 0; }
.dk-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.dk-ico svg { width: 24px; height: 24px; }
.c-azul { background: #e8effc; color: #2a5bd7; } .c-verde { background: #e3f5ec; color: #1f9d6b; }
.c-laranja { background: #fdeee6; color: #d9531e; } .c-roxo { background: #efecfc; color: #6250d6; }
.c-vermelho { background: #fde8ea; color: #cf1830; } .c-teal { background: #e0f4f4; color: #0f8282; }
.dk-rot { font-size: .78rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-val { white-space: nowrap; font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.dk-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dash-12 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 14px; }
.abas { display: inline-flex; background: #eef2f6; border-radius: 8px; padding: 2px; gap: 2px; margin-left: 4px; }
.aba { border: 0; background: none; font: inherit; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.aba.ativa { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.dt-rolagem { max-height: 360px; overflow-y: auto; overflow-x: hidden; }
.dt-rolagem .dt { table-layout: fixed; }
.dt-rolagem .dt td.nome-c { max-width: none; }
.dt-rolagem .dt th:nth-child(1) { width: auto; } .dt-rolagem .dt th:nth-child(2) { width: 46px; }
.dt-rolagem .dt th:nth-child(3) { width: 46px; } .dt-rolagem .dt th.c-custo { width: 56px; } .dt-rolagem .dt th.c-taxa { width: 88px; }
.dt-rolagem .taxa { min-width: 0; }
.dt-rolagem thead th { position: sticky; top: 0; z-index: 1; }
.dt-rolagem tfoot td { position: sticky; bottom: 0; }
.dash-21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .dash-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .dash-12 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dash-3, .dash-21 { grid-template-columns: 1fr; } .dash-filtros-botoes { margin-left: 0; } }
.dc { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dc-tit { font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.dc-tit .ti { font-size: .95rem; }
.dc-link { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .8rem; color: #2a5bd7; text-decoration: none; }
.dc-nota { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }

.dt { width: 100%; font-size: .84rem; }
.dt th { background: #f6f8fb; font-size: .72rem; padding: 7px 8px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.dt td { padding: 7px 8px; }
.dt td.nome-c { max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt td.nome-c a { color: var(--ink); text-decoration: none; } .dt td.nome-c a:hover { text-decoration: underline; }
.dt td.pos { color: var(--muted); width: 18px; }
.dt tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: #f6f8fb; }
.dt td.melhor { background: var(--ok-bg); color: var(--ok); font-weight: 700; } .dt td.pior { background: var(--bad-bg); color: var(--red-escuro); font-weight: 700; }
.dt-op td { vertical-align: top; } .dt-op small { color: var(--muted); }
.taxa { display: flex; align-items: center; gap: 6px; min-width: 72px; }
.taxa span { width: 34px; text-align: right; font-variant-numeric: tabular-nums; font-size: .8rem; }
.trilho-p { flex: 1; height: 7px; background: #eaeef3; border-radius: 99px; overflow: hidden; }
.trilho-p i { display: block; height: 100%; background: var(--b-grupo); border-radius: 99px; min-width: 2px; }
.trilho-p i.ok { background: var(--st-ok); } .trilho-p i.warn { background: var(--st-warn); }
.trilho-p i.bad { background: var(--st-bad); } .trilho-p i.neutro { background: #b9c5d1; }
a.sit { color: var(--ink); text-decoration: none; } a.sit:hover { text-decoration: underline; }
.badge-dias { display: inline-block; min-width: 26px; text-align: center; padding: 1px 7px; border-radius: 99px; background: #eef2f6; font-weight: 700; font-size: .78rem; }
.badge-dias.velho { background: var(--bad-bg); color: var(--red-escuro); }

.funil-tr { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; gap: 10px; align-items: stretch; }
.funil-tr-rotulos, .funil-tr-nums { display: grid; grid-template-rows: repeat(6, 1fr); font-size: .84rem; align-items: center; height: 252px; }
.funil-tr-nums { white-space: nowrap; color: var(--muted); } .funil-tr-nums strong { color: var(--ink); }
.funil-tr-svg { width: 100%; height: 252px; }
.funil-tr-svg polygon:hover { opacity: .85; }

.legenda-dash { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.legenda-dash i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legenda-dash i.b-leads { background: var(--b-leads); } .legenda-dash i.b-grupo { background: var(--b-grupo); }
.legenda-dash i.marco { width: 0; height: 11px; border-radius: 0; border-left: 1px dashed #8a9aab; }
.grafico .b-leads { fill: var(--b-leads); } .grafico .b-grupo { fill: var(--b-grupo); }
.grafico .valor-barra { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.dash .grafico .linha.s1 { stroke: var(--b-leads); } .dash .grafico .linha.s2 { stroke: var(--b-grupo); }
.dash .grafico .ponto.s1, .dash .grafico .ponto-hover.s1 { fill: var(--b-leads); }
.dash .grafico .ponto.s2, .dash .grafico .ponto-hover.s2 { fill: var(--b-grupo); }

.resumo { list-style: none; margin: 0; padding: 0; }
.resumo li { display: grid; grid-template-columns: 26px 1fr auto 64px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.resumo li:last-child { border-bottom: 0; }
.resumo strong { font-variant-numeric: tabular-nums; }
.delta { font-size: .8rem; font-weight: 700; text-align: right; color: var(--muted); }
.delta.bom { color: var(--ok); } .delta.ruim { color: var(--red-escuro); }

.grafico .linha-gasto { fill: none; stroke: var(--b-leads); stroke-width: 2.5; stroke-linejoin: round; }
.grafico .linha-proj-fin { fill: none; stroke: #d9531e; stroke-width: 2; stroke-dasharray: 6 4; }
.grafico .linha-orc { stroke: #b4232f; stroke-width: 1.5; stroke-dasharray: 2 3; }
.dash .grafico .ponto-hover.s2 { fill: #d9531e; }
.legenda-dash i.l-gasto, .legenda-dash i.l-proj, .legenda-dash i.l-orc { width: 18px; height: 0; border-radius: 0; vertical-align: middle; }
.legenda-dash i.l-gasto { border-top: 2.5px solid var(--b-leads); } .legenda-dash i.l-proj { border-top: 2px dashed #d9531e; }
.legenda-dash i.l-orc { border-top: 2px dotted #b4232f; }
.grafico .linha-gasto.verde { stroke: var(--b-grupo); }
.grafico .linha-todo { fill: none; stroke: #6250d6; stroke-width: 2; stroke-dasharray: 3 3; }
.legenda-dash i.l-todo { width: 18px; height: 0; border-radius: 0; vertical-align: middle; border-top: 2px dashed #6250d6; }
.cenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cen { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cen-t { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.cen-t i { display: inline-block; width: 16px; height: 0; vertical-align: middle; margin-right: 6px; }
.cen-t i.l-proj { border-top: 2px dashed #d9531e; } .cen-t i.l-todo { border-top: 2px dashed #6250d6; }
.cen-v { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.25; font-variant-numeric: tabular-nums; }
.cen-v small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.cen-s { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.ch-cor { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* ---- paginas publicas ---- */
.pub { min-height: 100vh; background: var(--navy); background-image: radial-gradient(1200px 500px at 85% -10%, rgba(207,24,48,.35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(1,31,84,.9), transparent 60%); color: #fff; }
.pub-in { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
.pub-in > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.pub-in > header img { height: 42px; }
.pub h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.pub .info { display: flex; flex-direction: column; gap: 8px; color: #cbd9e8; font-size: 1.05rem; margin: 18px 0; }
.pub .info strong { color: #fff; }
.pub .descricao { color: #dbe3eb; white-space: pre-line; }
.pub-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .pub-grade { grid-template-columns: 1fr; gap: 24px; } }
.pub .caixa { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: 0 28px 60px -28px #000c258c; }
.pub .caixa h2 { color: var(--navy); }
.pub .caixa .btn { width: 100%; justify-content: center; padding: 12px; font-size: 1.05rem; }
.pub .selo { display: inline-block; background: var(--red); color: #fff; font-weight: 600; padding: 4px 14px; border-radius: 999px; font-size: .85rem; letter-spacing: .4px; }
.ingresso { text-align: center; }
.ingresso .codigo { font-family: var(--display); font-size: 3rem; letter-spacing: 6px; color: var(--navy); margin: 8px 0; }
.pub footer { margin-top: 48px; color: #8fa3b8; font-size: .85rem; text-align: center; }

/* ---- radios e checkboxes de lista ---- */
.campo div[id^=id_p_] , .checks > div { display: flex; flex-direction: column; gap: 6px; }
.campo div[id^=id_p_] label, .checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.campo input[type=radio] { width: auto; accent-color: var(--red); }
.checks { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.erro { color: var(--red); }
details summary { cursor: pointer; color: var(--muted); }

/* ---- login ---- */
.login { max-width: 380px; margin: 0 auto; }
