/* Prospecção Garantia · padrão visual do Portal Admin Surety / Traderisk (geração nova, docs/copy-sistema).
   Navy #224153 (marca), crimson #BD2841 (destaque/alerta), cinzas slate, IBM Plex Sans + IBM Plex Mono. */
:root {
  --navy: #224153; --navy-escuro: #172B36; --crimson: #BD2841; --crimson-claro: #FBE4E8; --crimson-suave: #FDF2F4;
  --ambar: #CC7305; --ambar-claro: #FDF1E3; --verde: #16A34A; --verde-claro: #E7F6EC; --aco: #6B8BA8;
  --texto-forte: #0F172A; --texto-medio: #334155; --texto: #1E293B; --texto-2: #64748B; --texto-fraco: #94A3B8;
  --borda-controle: #CBD5E1; --borda: #E2E8F0; --fundo-suave: #F8FAFC; --pilula: #F1F5F9; --pagina: #F5F7F9;
  --branco: #FFFFFF; --mapa-1: #C9D6E3; --mapa-5: #11385F;
  --sombra-card: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --sombra-dica: 0 8px 24px rgba(15,23,42,0.12);
  --foco: 0 0 0 2px rgba(34,65,83,0.40);
  --f-texto: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sidebar: 264px; --sidebar-fechada: 72px; --rodape: 40px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--f-texto); color: var(--texto); background: var(--pagina);
  -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 6px; }
.mono, td.num, .valor-kpi { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ shell */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; transition: grid-template-columns .3s; }
.app.fechada { grid-template-columns: var(--sidebar-fechada) 1fr; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-escuro) 100%); color: #CBD5E1; padding: 14px 12px;
  overflow: hidden auto; }
.lateral .topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.lateral .logo { height: 34px; width: auto; display: block; }
.lateral .simbolo { display: none; width: 40px; height: 40px; object-fit: cover; object-position: left; }
.btn-icone { background: transparent; border: 0; color: #CBD5E1; padding: 6px; border-radius: 8px; cursor: pointer;
  display: inline-flex; }
.btn-icone:hover { background: rgba(255,255,255,0.08); color: #fff; }
.modulo { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.modulo .quadrado { width: 32px; height: 32px; border-radius: 8px; background: var(--crimson); color: #fff;
  display: grid; place-items: center; flex: none; }
.modulo .eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 1px; color: #7F9BB5; text-transform: uppercase; }
.modulo .nome { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.grupo-menu { display: flex; flex-direction: column; gap: 2px; }
.grupo-menu .rotulo { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #7F9BB5; text-transform: uppercase;
  padding: 6px 12px 4px; }
.item-menu { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 8px 8px 8px 12px;
  border-radius: 8px; color: rgba(203,213,225,0.85); font-size: 14px; text-decoration: none; }
.item-menu svg.ic { width: 18px; height: 18px; stroke-width: 1.75; }
.item-menu:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.item-menu.ativo { background: rgba(255,255,255,0.10); color: #fff; font-weight: 500; }
.item-menu.ativo::before { content: ""; position: absolute; left: 0; top: 9px; height: 20px; width: 3px; border-radius: 2px;
  background: var(--crimson); }
.item-menu .contador { margin-left: auto; border-radius: 999px; background: rgba(255,255,255,0.12); padding: 2px 6px;
  font-size: 11px; font-weight: 600; color: #fff; }
.item-menu .contador.alerta { background: var(--crimson); }
.lateral .espaco { flex: 1; }
.cartao-usuario { position: relative; }
.cartao-usuario > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px;
  cursor: pointer; color: #fff; }
.cartao-usuario > summary::-webkit-details-marker { display: none; }
.cartao-usuario > summary:hover { background: rgba(255,255,255,0.06); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #2E5A84; color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cartao-usuario .quem { min-width: 0; }
.cartao-usuario .quem b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-usuario .quem span { display: block; font-size: 11px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-usuario { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--borda);
  border-radius: 10px; box-shadow: var(--sombra-dica); padding: 6px; display: flex; flex-direction: column; z-index: 20; }
.menu-usuario a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--texto-forte); font-size: 13px; }
.menu-usuario a:hover { background: var(--fundo-suave); text-decoration: none; }
.menu-usuario a.sair { color: var(--crimson); }
.menu-usuario hr { border: 0; border-top: 1px solid var(--borda); margin: 4px 0; width: 100%; }
.app.fechada .lateral .logo, .app.fechada .modulo .textos, .app.fechada .grupo-menu .rotulo, .app.fechada .item-menu span,
.app.fechada .cartao-usuario .quem, .app.fechada .item-menu .contador { display: none; }
.app.fechada .lateral .simbolo { display: block; }
.app.fechada .lateral .topo { flex-direction: column; }
.app.fechada .item-menu { justify-content: center; padding: 0; width: 44px; height: 40px; border-radius: 10px; margin: 0 auto; }
.app.fechada .modulo { justify-content: center; background: transparent; }
.app.fechada .grupo-menu { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; }
.area-principal { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.conteudo { flex: 1; padding: 24px max(16px, 2vw) 32px; max-width: 1480px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px; }
.rodape { height: var(--rodape); border-top: 1px solid var(--borda); background: rgba(248,250,252,0.7); display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; font-size: 12px; color: var(--texto-2); }
.rodape .online { display: inline-flex; align-items: center; gap: 6px; }
.rodape .online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10B981; animation: pulso 2s ease-in-out infinite; }
@keyframes pulso { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.topo-movel { display: none; }
@media (max-width: 1023px) {
  .app, .app.fechada { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 288px; z-index: 40; transform: translateX(-100%); transition: transform .25s; }
  .app.menu-aberto .lateral { transform: none; box-shadow: 0 16px 48px rgba(10,31,56,0.25); }
  .topo-movel { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--navy); color: #fff;
    position: sticky; top: 0; z-index: 30; }
  .topo-movel img { height: 28px; }
  .topo-movel .btn-icone { color: #fff; }
  .rodape { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ cabeçalho de página */
.cabecalho { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.trilha { font-size: 12px; line-height: 16px; color: var(--texto-2); display: flex; gap: 6px; margin-bottom: 4px; }
.trilha .sep { color: var(--texto-fraco); }
.trilha .atual { color: var(--texto-medio); }
h1 { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--texto-forte); margin: 0; text-wrap: balance; }
.subtitulo { font-size: 13px; line-height: 17px; color: var(--texto-2); margin: 4px 0 0; max-width: 80ch; }
h2 { font-size: 15px; font-weight: 600; color: var(--navy); margin: 0; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------------------------------ botões e campos */
.btn, button { font: 600 13px/17px var(--f-texto); border-radius: 8px; padding: 8px 14px; border: 1px solid transparent;
  background: var(--navy); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap; }
.btn:hover, button:hover { background: #2E5468; text-decoration: none; }
.btn.secundario, button.secundario { background: #fff; color: var(--texto-forte); border-color: var(--borda); }
.btn.secundario:hover, button.secundario:hover { background: var(--fundo-suave); }
.btn.perigo, button.perigo { background: #fff; color: var(--crimson); border-color: rgba(189,40,65,0.35); }
.btn.perigo:hover, button.perigo:hover { background: var(--crimson-suave); }
.btn.link, button.link { background: transparent; border: 0; color: var(--crimson); padding: 4px 0; font-weight: 600; }
.btn.link:hover, button.link:hover { text-decoration: underline; background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: 13px/18px var(--f-texto); color: var(--texto-forte); background: #fff; border: 1px solid var(--borda-controle);
  border-radius: 8px; padding: 8px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--foco); }
input::placeholder { color: var(--texto-fraco); }
label.campo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--texto-medio); }
label.campo .dica { font-weight: 400; color: var(--texto-fraco); font-size: 11px; }
.obrigatorio::after { content: " *"; color: var(--crimson); }
.caixa-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-medio); cursor: pointer; }
.caixa-check input { width: 16px; height: 16px; accent-color: var(--navy); }

/* ------------------------------------------------------------------ cards, leitura, KPIs */
.card { background: #fff; border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--sombra-card); }
.card-corpo { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-cabecalho .titulo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-cabecalho .titulo h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cabecalho .titulo svg.ic { width: 18px; height: 18px; color: var(--navy); }
.eyebrow { white-space: nowrap; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.66px; text-transform: uppercase; color: var(--texto-2); }
.leitura { display: grid; grid-template-columns: 1fr minmax(0, 440px); border: 1px solid var(--borda); border-left: 3px solid var(--navy);
  border-radius: 12px; background: #fff; overflow: hidden; box-shadow: var(--sombra-card); }
.leitura.alerta { border-left-color: var(--crimson); }
.leitura .texto { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.leitura .manchete { font-size: 18px; line-height: 25px; font-weight: 600; color: var(--texto-forte); margin: 0; }
.leitura .complemento { font-size: 13px; line-height: 18px; color: var(--texto-2); margin: 0; }
.kpis { background: var(--fundo-suave); padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-left: 1px solid var(--borda); }
.kpis.quatro { grid-template-columns: repeat(4, 1fr); }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .rotulo { font-size: 12px; line-height: 16px; color: var(--texto-2); }
.kpi .valor-kpi { font-size: 22px; line-height: 29px; font-weight: 600; color: var(--texto-forte); white-space: nowrap; }
.kpi .valor-kpi.atencao { color: var(--ambar); }
.kpi .valor-kpi.erro { color: var(--crimson); }
.kpi .apoio { font-size: 11px; line-height: 14px; color: var(--texto-fraco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi a { color: inherit; }
.kpi .variacao { font-size: 11px; font-weight: 600; }
.kpi .variacao.sobe { color: var(--verde); } .kpi .variacao.desce { color: var(--crimson); }
@media (max-width: 1100px) { .leitura { grid-template-columns: 1fr; } .kpis { border-left: 0; border-top: 1px solid var(--borda); } }
@media (max-width: 640px) { .kpis.quatro { grid-template-columns: 1fr 1fr; } }
.grade { display: grid; gap: 20px; }
.grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grade.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grade.g-21 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grade.g2, .grade.g3 { grid-template-columns: minmax(0, 1fr); } }
.grade > * { min-width: 0; }
@media (max-width: 640px) {
  .card-cabecalho { flex-wrap: wrap; }
  .grafico-barras .eixo { display: none; }
  .grafico-barras { gap: 3px; }
  .funil .etapa { grid-template-columns: 110px minmax(0, 1fr) 28px; }
  .conteudo { padding-top: 16px; }
}

/* ------------------------------------------------------------------ avisos */
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  border: 1px solid #C8D8EA; background: #F1F6FB; color: var(--texto-medio); }
.aviso.sucesso { border-color: rgba(22,163,74,0.3); background: var(--verde-claro); color: #14532D; }
.aviso.erro { border-color: rgba(189,40,65,0.3); background: var(--crimson-suave); color: #7F1D2D; }
.aviso.atencao { border-color: rgba(204,115,5,0.3); background: var(--ambar-claro); color: #7C4A03; }
.aviso svg.ic { margin-top: 1px; }

/* ------------------------------------------------------------------ badges / status */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px; background: rgba(34,65,83,0.1); color: var(--navy); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.sem-ponto::before { display: none; }
.badge.verde { background: rgba(22,163,74,0.1); color: var(--verde); }
.badge.ambar { background: rgba(217,119,6,0.1); color: #B45309; }
.badge.crimson { background: rgba(189,40,65,0.1); color: var(--crimson); }
.badge.cinza { background: rgba(100,116,139,0.1); color: var(--texto-2); }
.badge.aco { background: rgba(107,139,168,0.1); color: var(--aco); }
.etapa-classificado { background: rgba(34,65,83,0.1); color: var(--navy); }
.etapa-email_enviado { background: rgba(107,139,168,0.1); color: var(--aco); }
.etapa-respondeu { background: rgba(217,119,6,0.1); color: #B45309; }
.etapa-reuniao_agendada { background: rgba(22,163,74,0.1); color: var(--verde); }
.etapa-precisa_humano { background: rgba(189,40,65,0.1); color: var(--crimson); }
.etapa-descartado { background: rgba(100,116,139,0.1); color: var(--texto-2); }

/* ------------------------------------------------------------------ visões (pílulas) e abas */
.visoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pilula { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 12px;
  border-radius: 14px; border: 1px solid var(--borda); background: #fff; color: var(--texto-medio); text-decoration: none; }
.pilula:hover { background: var(--fundo-suave); text-decoration: none; }
.pilula.ativa { background: var(--navy); border-color: var(--navy); color: #fff; }
.pilula .n { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: rgba(34,65,83,0.12); }
.pilula.ativa .n { background: rgba(255,255,255,0.2); }
.abas { display: flex; gap: 20px; border-bottom: 1px solid var(--borda); padding: 0 20px; }
.abas a { font-size: 14px; line-height: 1.4; color: var(--texto-2); padding: 12px 0 10px; border-bottom: 2px solid transparent;
  display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.abas a.ativa { color: var(--navy); font-weight: 600; border-bottom-color: var(--crimson); }
.abas a .n { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: rgba(34,65,83,0.12); color: var(--navy); }

/* ------------------------------------------------------------------ barra de filtros e chips */
.barra-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--borda); }
.busca { position: relative; flex: 1 1 260px; max-width: 380px; }
.busca svg.ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--texto-fraco); }
.busca input { width: 100%; padding-left: 32px; }
.chip { position: relative; }
.chip > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4;
  padding: 5px 10px; border-radius: 8px; border: 1px dashed var(--borda); background: #fff; color: var(--texto-2); cursor: pointer;
  white-space: nowrap; }
.chip > summary::-webkit-details-marker { display: none; }
.chip > summary:hover { border-color: var(--borda-controle); }
.chip.ativo > summary { border-style: solid; border-color: rgba(34,65,83,0.35); background: rgba(34,65,83,0.06); }
.chip.ativo > summary b { color: var(--navy); font-weight: 600; }
.chip .limpar { display: inline-flex; color: var(--texto-2); margin-left: 2px; }
.chip .limpar:hover { color: var(--crimson); }
.chip .pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; width: 264px; background: #fff; border: 1px solid var(--borda);
  border-radius: 10px; box-shadow: var(--sombra-dica); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chip .pop.largo { width: min(92vw, 420px); }
.chip .pop .linha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.barra-filtros .direita { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ordenar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-2); }
.ordenar select { padding: 6px 8px; }

/* ------------------------------------------------------------------ tabelas */
.lista { background: #fff; border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--sombra-card); overflow: hidden;
  display: flex; flex-direction: column; }
.tabela { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--texto-2);
  padding: 10px 14px; background: var(--fundo-suave); border-bottom: 1px solid var(--borda); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--borda); vertical-align: top; color: var(--texto); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--fundo-suave); }
th.num, td.num { text-align: right; white-space: nowrap; }
td .principal { font-weight: 600; color: var(--texto-forte); }
td a.principal { color: var(--navy); }
td .secundaria { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
td.objeto { max-width: 440px; color: var(--texto-medio); }
td.vazio { text-align: center; color: var(--texto-2); padding: 36px 14px; }

/* ------------------------------------------------------------------ paginação (RodapePaginacao) */
.paginacao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--borda); background: var(--fundo-suave); padding: 10px 16px; font-size: 12px; color: var(--texto-2); }
.paginacao .resumo { font-family: var(--f-mono); }
.paginacao .controles { display: flex; align-items: center; gap: 12px; }
.paginacao select { padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.paginacao nav { display: flex; gap: 4px; align-items: center; }
.paginacao nav a, .paginacao nav span { min-width: 28px; height: 28px; border-radius: 6px; display: inline-grid; place-items: center;
  font-size: 12px; color: var(--texto-medio); text-decoration: none; padding: 0 6px; }
.paginacao nav a:hover { background: #EEF2F6; }
.paginacao nav a.atual { background: var(--navy); color: #fff; font-weight: 600; }
.paginacao nav .desab { opacity: .4; }

/* ------------------------------------------------------------------ gráficos em div */
.grafico-barras { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.grafico-barras .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.grafico-barras .barra { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--navy); min-height: 2px; transition: opacity .15s; }
.grafico-barras .col:hover .barra { background: #2E5A84; }
.grafico-barras:hover .col:not(:hover) .barra { opacity: .4; }
.grafico-barras .eixo { font-size: 10px; color: var(--texto-fraco); font-family: var(--f-mono); }
.barras-h { display: flex; flex-direction: column; gap: 10px; }
.barras-h .linha { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.barras-h .linha .nome { color: var(--texto-medio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barras-h .trilho { height: 8px; border-radius: 999px; background: #EEF2F5; overflow: hidden; }
.barras-h .preench { height: 100%; border-radius: 999px; background: var(--mapa-5); }
.barras-h .preench.crimson { background: var(--crimson); }
.barras-h .valor { font-family: var(--f-mono); font-size: 12px; color: var(--texto-forte); font-weight: 600; text-align: right; }
.funil { display: flex; flex-direction: column; gap: 8px; }
.funil .etapa { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; }
.funil .etapa .faixa { height: 26px; border-radius: 6px; background: rgba(34,65,83,0.12); position: relative; overflow: hidden; }
.funil .etapa .faixa span { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 6px; }
.funil .etapa.alerta .faixa span { background: var(--crimson); }
.funil .etapa b { font-family: var(--f-mono); text-align: right; color: var(--texto-forte); }
.dica { position: relative; }
.dica[data-dica]:hover::after { content: attr(data-dica); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: pre; background: #fff; color: var(--texto-forte); border: 1px solid var(--borda); border-radius: 8px; padding: 8px 10px;
  font: 600 11px/1.5 var(--f-mono); box-shadow: var(--sombra-dica); z-index: 30; pointer-events: none; }
.vazio-grafico { font-size: 13px; color: var(--texto-2); text-align: center; padding: 40px 0; }

/* ------------------------------------------------------------------ kanban */
.quadro { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; padding-bottom: 6px; }
.coluna { background: #EEF2F6; border-radius: 12px; padding: 10px; min-height: 60vh; display: flex; flex-direction: column; gap: 8px; }
.coluna.sobre { outline: 2px dashed var(--navy); outline-offset: -2px; }
.coluna h3 { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 4px; font-size: 13px; font-weight: 600; color: var(--texto-forte); }
.coluna h3 .n { font: 600 11px var(--f-mono); padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--texto-2); }
.coluna.precisa_humano h3 .n { background: var(--crimson); color: #fff; }
.cartao-lead { background: #fff; border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 6px; }
.cartao-lead:hover { box-shadow: var(--sombra-card); }
.cartao-lead .topo-card { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cartao-lead a { font-weight: 600; color: var(--texto-forte); font-size: 13px; line-height: 17px; }
.cartao-lead .nota { font: 600 12px var(--f-mono); padding: 2px 7px; border-radius: 6px; background: rgba(34,65,83,0.1); color: var(--navy); }
.cartao-lead .nota.alta { background: rgba(22,163,74,0.1); color: var(--verde); }
.cartao-lead .meta { font-size: 11px; color: var(--texto-2); display: flex; gap: 6px; flex-wrap: wrap; }
.cartao-lead .acao { font-size: 12px; color: var(--texto-medio); border-top: 1px solid var(--borda); padding-top: 6px; }

/* ------------------------------------------------------------------ ficha do fornecedor */
.resumo-ficha { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--texto-2); align-items: center; }
.resumo-ficha b { color: var(--texto-forte); font-family: var(--f-mono); font-weight: 600; }
.lista-pontos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lista-pontos li { display: flex; justify-content: space-between; gap: 10px; }
.lista-pontos li b { font-family: var(--f-mono); color: var(--verde); }
.nota-grande { display: flex; align-items: baseline; gap: 6px; }
.nota-grande .valor-kpi { font-size: 34px; line-height: 40px; font-weight: 600; color: var(--texto-forte); }
.medidor { height: 8px; border-radius: 999px; background: #EEF2F5; overflow: hidden; }
.medidor span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.linha-tempo { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.linha-tempo li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--borda); font-size: 13px; }
.linha-tempo li::before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo .quando { font-size: 11px; color: var(--texto-fraco); font-family: var(--f-mono); }
.form-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.form-linha input[type=text], .form-linha input:not([type]) { flex: 1 1 180px; }

/* ------------------------------------------------------------------ login */
.tela-login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-arte { position: relative; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px;
  background: linear-gradient(180deg, rgba(23,43,54,0.35) 0%, rgba(23,43,54,0.92) 100%), url("/static/login.jpg") center / cover; }
.login-arte h2 { color: #fff; font-size: 44px; line-height: 1.12; font-weight: 300; max-width: 15ch; margin: 0 0 16px; }
.login-arte h2 strong { font-weight: 600; color: #fff; }
.login-arte p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 46ch; margin: 0 0 40px; }
.login-arte .marca-rodape { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.login-arte .marca-rodape::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--crimson); vertical-align: middle; margin-right: 10px; }
.login-lado { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: var(--pagina); }
.login-cartao { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra-card);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.login-cartao img { width: 220px; height: auto; align-self: center; }
.login-cartao h1 { font-size: 22px; line-height: 28px; text-align: center; }
.login-cartao .subtitulo { text-align: center; margin: 4px auto 0; }
.login-cartao form { display: flex; flex-direction: column; gap: 16px; }
.login-cartao button[type=submit] { justify-content: center; padding: 11px 14px; font-size: 14px; }
.senha-campo { position: relative; }
.senha-campo input { width: 100%; padding-right: 42px; }
.senha-campo .mostrar { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: transparent; border: 0;
  color: var(--texto-2); padding: 6px; }
.senha-campo .mostrar:hover { background: var(--fundo-suave); color: var(--navy); }
.login-cartao input { padding: 10px 12px; font-size: 14px; }
.login-rodape { margin-top: 24px; font-size: 12px; color: var(--texto-fraco); text-align: center; }
.login-ajuda { font-size: 12px; color: var(--texto-2); text-align: center; }
@media (max-width: 900px) { .tela-login { grid-template-columns: 1fr; } .login-arte { display: none; } }

/* ------------------------------------------------------------------ perfil */
.perfil-grade { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-width: 0; gap: 20px; align-items: start; }
@media (max-width: 960px) { .perfil-grade { grid-template-columns: minmax(0, 1fr); } }
.foto-perfil { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.foto-perfil .avatar { width: 120px; height: 120px; font-size: 40px; background: var(--navy); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--borda); }
.foto-perfil .nome { font-size: 16px; font-weight: 600; color: var(--texto-forte); }
.foto-perfil .cargo { font-size: 13px; color: var(--texto-2); }
.zona-foto { width: 100%; border: 1px dashed var(--borda-controle); border-radius: 10px; padding: 14px; display: flex; flex-direction: column;
  gap: 8px; align-items: center; font-size: 12px; color: var(--texto-2); cursor: pointer; background: var(--fundo-suave); }
.zona-foto:hover, .zona-foto.sobre { border-color: var(--navy); background: rgba(34,65,83,0.04); }
.zona-foto input { display: none; }
.formulario { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.formulario .c2 { grid-column: span 2; } .formulario .c3 { grid-column: span 3; } .formulario .c4 { grid-column: span 4; } .formulario .c6 { grid-column: span 6; }
.formulario .c1 { grid-column: span 1; }
@media (max-width: 700px) { .formulario { grid-template-columns: 1fr 1fr; } .formulario > * { grid-column: span 2 !important; } }
.secao-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-top: 1px solid var(--borda); }
.secao-form:first-child { border-top: 0; }
.secao-form .titulo-secao { display: flex; align-items: center; gap: 8px; }
.secao-form .titulo-secao svg.ic { color: var(--navy); width: 18px; height: 18px; }
.rodape-form { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--borda); background: var(--fundo-suave);
  border-radius: 0 0 10px 10px; }
.cep-campo { display: flex; gap: 6px; }
.cep-campo input { flex: 1; }

/* ------------------------------------------------------------------ kanban: alternar quadro/lista */
.alternar-visao .pilula svg.ic { width: 14px; height: 14px; }
.ver-todos { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; padding: 8px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--navy); background: rgba(255,255,255,0.7); border: 1px dashed var(--borda-controle); text-decoration: none; }
.ver-todos:hover { background: #fff; text-decoration: none; }
.ver-todos svg.ic { width: 14px; height: 14px; }
.dica-quadro { margin: 10px 2px 0; font-size: 12px; color: var(--texto-fraco); }
.coluna { min-height: 240px; }

/* ------------------------------------------------------------------ critérios */
.criterios { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.dica-grupo { margin: -4px 0 0; font-size: 13px; color: var(--texto-2); }
div.campo.criterio { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--texto-medio);
  padding: 10px 12px; border: 1px solid var(--borda); border-radius: 10px; background: #fff; }
div.campo.criterio.alterado { border-color: rgba(34,65,83,0.35); background: rgba(34,65,83,0.03); }
.rotulo-criterio { display: flex; align-items: center; gap: 8px; color: var(--texto-forte); font-size: 13px; font-weight: 600; }
div.campo.criterio .dica { font-weight: 400; color: var(--texto-fraco); font-size: 11px; line-height: 15px; }
div.campo.criterio .dica.padrao { color: var(--texto-2); }
div.campo.criterio .btn.link { padding: 0; font-size: 11px; }
div.campo.criterio textarea { resize: vertical; font-family: var(--f-mono); font-size: 12px; }
.badge.navy { background: rgba(34,65,83,0.1); color: var(--navy); }
.grade-marcar { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.grade-marcar.largo { grid-template-columns: 1fr; }
.marcar { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--texto-medio);
  padding: 5px 8px; border: 1px solid var(--borda); border-radius: 8px; cursor: pointer; }
.marcar input { width: 14px; height: 14px; accent-color: var(--navy); margin: 0; }
.marcar:has(input:checked) { border-color: var(--navy); background: rgba(34,65,83,0.06); color: var(--navy); }
.rodape-form.fixo { position: sticky; bottom: 0; z-index: 5; background: #fff; border: 1px solid var(--borda); border-radius: 10px;
  box-shadow: 0 -4px 12px rgba(15,23,42,0.06); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* Tela Abordagem */
.campo.c12{grid-column:1/-1}
textarea.mono-leve{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5}
.previa-email{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.5;
  margin:0;padding:16px 20px;overflow-x:auto;max-height:420px;color:var(--texto-2,#334155)}
