/* =========================================================
   Radar de bolsas (/radar/)
   Adaptado do painel do claude.ai para o tema claro do site.
   Dourado só para o que é extremo: prazo em até 7 dias.
   ========================================================= */

.rb {
  --rb-ciano: var(--cyan); --rb-dourado: var(--gold); --rb-petroleo: var(--petrol);
  --rb-f-titulo: var(--font-head); --rb-f-texto: var(--font-body); --rb-f-mono: var(--font-mono);
  --rb-fundo: #F5F7FA; --rb-superficie: #FFFFFF; --rb-linha: #DDE4EC; --rb-linha-forte: #C3CFDB;
  --rb-titulo: #0B1F3A; --rb-texto: #2E3440; --rb-suave: #5B6878; --rb-destaque: #1E5F74;
  --rb-p1: #1E5F74; --rb-p2: #3DD6D0; --rb-p3: #B9C6D3; --rb-trilho: #EDF1F5; --rb-grade: #E3E9F0;
  --rb-sel-fundo: #0B1F3A; --rb-sel-texto: #F5F7FA; --rb-data-fundo: #0B1F3A; --rb-data-texto: #F5F7FA;
  --rb-ok: #1D7A4E; --rb-alerta: #95590A; --rb-erro: #B42318;
  --rb-raio: 14px; --rb-raio-p: 8px;
  background: var(--rb-fundo);
}

/* Cabeçalho da página e números */
.rb-head .section-intro { max-width: 70ch; }
.rb-head .section-intro b { color: var(--rb-titulo); font-weight: 600; }
.rb-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 28px; }
.rb-num { background: var(--rb-superficie); border: 1px solid var(--rb-linha); border-radius: var(--rb-raio); padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; line-height: 1.4; }
.rb-num-rot { font-size: 14px; color: var(--rb-suave); }
.rb-num-val { font-family: var(--rb-f-titulo); font-weight: 700; font-size: 40px; line-height: 1.05; color: var(--rb-titulo); font-variant-numeric: tabular-nums lining-nums; min-height: 1.05em; }
.rb-num-nota { font-size: 13px; color: var(--rb-suave); min-height: 1.4em; }

/* Corpo */
.rb-corpo { font-family: var(--rb-f-texto); color: var(--rb-texto); font-size: 15px; line-height: 1.45; padding-block: 40px 72px; }
.rb-corpo > .container { display: grid; gap: 44px; }
.rb-corpo h2, .rb-corpo h3 { margin: 0; font-family: var(--rb-f-titulo); font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.rb-corpo p { margin: 0; }
.rb-corpo a { color: inherit; text-decoration: none; }

.rb-sec { display: grid; gap: 16px; min-width: 0; }
.rb-sec-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; }
.rb-sec-tit { display: grid; gap: 8px; }
.rb-sec-tit h2 { font-size: 22px; line-height: 1.2; color: var(--rb-titulo); }
.rb-sec-tit h2::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--rb-ciano); margin-top: 8px; }
.rb-sec-nota { font-size: 14px; color: var(--rb-suave); max-width: 62ch; }
.rb-painel { background: var(--rb-superficie); border: 1px solid var(--rb-linha); border-radius: var(--rb-raio); min-width: 0; }
.rb-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 16px; align-items: start; }
.rb-cartao { padding: 18px 18px 14px; display: grid; gap: 12px; align-content: start; }
.rb-cartao h3 { font-size: 16px; color: var(--rb-titulo); }
.rb-cartao-nota { font-size: 13.5px; color: var(--rb-suave); margin-top: -6px; }

/* Legendas */
.rb-legenda { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--rb-suave); }
.rb-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.rb-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.rb-sw-p1 { background: var(--rb-p1); }
.rb-sw-p2 { background: var(--rb-p2); }
.rb-sw-p3 { background: var(--rb-p3); }
.rb-sw-urg { background: transparent; border: 2px solid var(--rb-dourado); }

/* Gráficos */
.rb-grafico { position: relative; min-height: 12rem; padding: 14px 12px 8px; }
.rb-grafico svg { display: block; overflow: visible; max-width: none; }
.rb-grafico .rb-eixo { font-family: var(--rb-f-mono); font-size: 11px; fill: var(--rb-suave); }
.rb-grafico .rb-rotulo { font-family: var(--rb-f-texto); font-size: 14px; fill: var(--rb-texto); }
.rb-grafico .rb-fim { font-family: var(--rb-f-mono); font-size: 12px; fill: var(--rb-texto); }
.rb-grafico .rb-fim-suave { fill: var(--rb-suave); }
.rb-grafico .rb-barra { cursor: pointer; }
.rb-grafico-regioes { min-height: 10rem; padding: 4px 0 0; }
.rb-grafico .rb-alvo { cursor: pointer; }
.rb-grafico .rb-alvo:hover .rb-rotulo { fill: var(--rb-destaque); }
.rb-dica { position: absolute; z-index: 3; pointer-events: none; background: var(--rb-superficie); border: 1px solid var(--rb-linha-forte); border-radius: var(--rb-raio-p); box-shadow: var(--shadow); padding: 8px 10px; font-size: 13px; line-height: 1.45; max-width: 18rem; color: var(--rb-texto); }
.rb-dica-quando { font-family: var(--rb-f-mono); font-size: 12px; color: var(--rb-suave); }
.rb-dica b { font-weight: 600; color: var(--rb-titulo); }

/* Cartões das chamadas abertas */
.rb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; min-height: 8rem; }
.rb-card { background: var(--rb-superficie); border: 1px solid var(--rb-linha); border-radius: var(--rb-raio); padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-content: start; min-width: 0; }
.rb-card.rb-urgente { border-color: color-mix(in srgb, var(--rb-dourado) 70%, var(--rb-linha)); box-shadow: inset 3px 0 0 var(--rb-dourado); }
.rb-data { display: grid; justify-items: center; align-content: center; gap: 2px; width: 62px; padding: 10px 0 8px; border-radius: 10px; background: var(--rb-data-fundo); color: var(--rb-data-texto); align-self: start; text-align: center; }
.rb-data-mes { font-family: var(--rb-f-titulo); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.rb-data-dia { font-family: var(--rb-f-titulo); font-weight: 700; font-size: 26px; line-height: 1; }
.rb-data.rb-continuo { background: color-mix(in srgb, var(--rb-ciano) 18%, transparent); color: var(--rb-destaque); padding: 10px 4px 8px; }
.rb-data.rb-continuo .rb-data-dia { font-size: 11px; font-weight: 600; letter-spacing: 0; line-height: 1.2; overflow-wrap: anywhere; }
.rb-card-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.rb-card-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rb-inst { font-family: var(--rb-f-titulo); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rb-suave); }
.rb-card h3 { font-size: 17px; line-height: 1.25; color: var(--rb-titulo); }
.rb-card h3 a:hover { color: var(--rb-destaque); }
.rb-card-valor { font-size: 14.5px; font-weight: 600; color: var(--rb-titulo); }
.rb-card-nota { font-size: 13.5px; line-height: 1.45; color: var(--rb-suave); }
.rb-card-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 2px; }
.rb-corpo .rb-ext { color: var(--rb-destaque); font-weight: 600; font-size: 14px; }
.rb-ext::after { content: " ↗"; font-weight: 400; }
.rb-ext:hover { text-decoration: underline; }

/* Selos */
.rb-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.2; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rb-selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rb-selo-p1 { color: var(--rb-destaque); background: color-mix(in srgb, var(--rb-ciano) 20%, transparent); }
.rb-selo-p2 { color: var(--rb-destaque); background: color-mix(in srgb, var(--rb-petroleo) 10%, transparent); }
.rb-selo-neutro { color: var(--rb-suave); background: color-mix(in srgb, var(--rb-suave) 12%, transparent); }
.rb-selo-ok { color: var(--rb-ok); background: color-mix(in srgb, var(--rb-ok) 12%, transparent); }
.rb-selo-warn { color: var(--rb-alerta); background: color-mix(in srgb, var(--rb-alerta) 12%, transparent); }
.rb-selo-urg { color: #7A5A00; background: color-mix(in srgb, var(--rb-dourado) 30%, transparent); }
/* Nos cartões de fluxo contínuo o selo traz o texto do prazo, que pode ser longo */
.rb-card-pe .rb-selo { white-space: normal; align-items: baseline; border-radius: 10px; max-width: 100%; }
.rb-card-pe .rb-selo::before { flex: none; transform: translateY(-1px); }

/* Filtros */
.rb-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rb-sel {
  font: inherit; font-size: 14px; padding: 7px 32px 7px 12px; border-radius: 999px; border: 1px solid var(--rb-linha-forte);
  background: var(--rb-superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235B6878' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; color: var(--rb-texto); max-width: 100%; cursor: pointer;
}
.rb-sel.rb-ativo { border-color: var(--rb-destaque); box-shadow: inset 0 0 0 1px var(--rb-destaque); }
.rb-limpar { font: inherit; font-size: 13px; border: 0; background: none; color: var(--rb-destaque); cursor: pointer; padding: 4px 2px; text-decoration: underline; }
.rb-marca { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rb-texto); cursor: pointer; }
.rb-marca input { width: 16px; height: 16px; accent-color: var(--rb-petroleo); margin: 0; }
.rb-busca { font: inherit; font-size: 14px; flex: 1 1 16rem; max-width: 24rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rb-linha-forte); background: var(--rb-superficie); color: var(--rb-texto); }
.rb-busca::placeholder { color: var(--rb-suave); }

/* Tabelas */
.rb-rolagem { overflow: auto; max-height: 34rem; border-radius: var(--rb-raio); }
.rb-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rb-tab th { position: sticky; top: 0; z-index: 1; background: var(--rb-superficie); text-align: left; font-family: var(--rb-f-titulo); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-suave); padding: 12px 14px 10px; border-bottom: 1px solid var(--rb-linha-forte); white-space: nowrap; }
.rb-tab th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.rb-tab th button::after { content: ""; display: inline-block; width: 1em; }
.rb-tab th[aria-sort="ascending"] button::after { content: " ↑"; }
.rb-tab th[aria-sort="descending"] button::after { content: " ↓"; }
.rb-tab th[aria-sort] { color: var(--rb-titulo); }
.rb-tab td { padding: 12px 14px; border-bottom: 1px solid var(--rb-linha); vertical-align: top; line-height: 1.4; }
.rb-tab tbody tr:last-child td { border-bottom: 0; }
.rb-tab tbody tr:hover td { background: color-mix(in srgb, var(--rb-ciano) 6%, transparent); }
.rb-tab .rb-mono { font-family: var(--rb-f-mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-tab th.rb-dir, .rb-tab td.rb-dir { text-align: right; }
.rb-tab td.rb-prog { min-width: 15rem; }
.rb-tab td.rb-prog a { font-weight: 600; color: var(--rb-titulo); }
.rb-tab td.rb-prog a:hover { color: var(--rb-destaque); }
.rb-tab td.rb-desc { min-width: 16rem; color: var(--rb-texto); }
.rb-tab td.rb-valor { min-width: 9rem; }
.rb-tab td.rb-prazo { min-width: 8rem; }
.rb-tab tr.rb-fora td { color: var(--rb-suave); }

/* Como montar a candidatura */
.rb-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rb-lista li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; }
.rb-lista li::before { content: ""; position: absolute; left: 0; top: .22em; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--rb-destaque); }
.rb-texto { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.rb-corpo .rb-texto a { color: var(--rb-destaque); font-weight: 600; }
.rb-texto a:hover { text-decoration: underline; }

/* Estados */
.rb .dash-skeleton { opacity: .35; }
.rb-vazio { font-size: 14.5px; color: var(--rb-suave); padding: 16px; }
.rb-falha { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: inherit; padding: 16px; font-size: 13px; color: var(--rb-suave); }
.rb-falha-ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--rb-erro); }

/* Sobre os dados */
.rb-sobre { border-top: 1px solid var(--rb-linha); padding-top: 20px; display: grid; gap: 8px; }
.rb-sobre p { font-size: 13.5px; color: var(--rb-suave); max-width: 82ch; line-height: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .rb-card { animation: rb-surge .35s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rb-surge { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .rb .rb-sec2 { display: none; }
  .rb-num-val { font-size: 32px; }
}
