/* Radar de Ações — estilos neutros pra conviver com qualquer tema. */
.ra-radar { margin: 1em 0; font-size: 15px; }
.ra-meta { color: #666; font-size: 13px; margin-bottom: 1.2em; }
.ra-sector { margin: 1.6em 0 .4em; padding-bottom: .2em; border-bottom: 2px solid #e5e5e5; }

.ra-table-wrap { overflow-x: auto; }
.ra-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ra-table th, .ra-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #ececec; white-space: nowrap; }
.ra-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.ra-table td.ra-help { white-space: normal; color: #666; font-size: 13px; min-width: 220px; }
.ra-ticker { font-weight: 700; text-decoration: none; }

.ra-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ra-b-cf { background: #1b7a3d; color: #fff; }
.ra-b-c  { background: #d9efe1; color: #1b7a3d; }
.ra-b-n  { background: #eee;    color: #555; }
.ra-b-v  { background: #fbe3d5; color: #b4500f; }
.ra-b-vf { background: #b3261e; color: #fff; }
.ra-b-nd { background: #f4f4f4; color: #999; }

.ra-var { font-variant-numeric: tabular-nums; }
.ra-up   { color: #1b7a3d; font-weight: 600; }
.ra-down { color: #b3261e; font-weight: 600; }

/* Detalhe */
.ra-back { font-size: 13px; }
.ra-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: .6em; }
.ra-symbol { margin: 0; }
.ra-symbol small { display: block; font-size: 13px; font-weight: 400; color: #777; }
.ra-close { font-size: 22px; font-weight: 700; }
.ra-date { color: #888; font-size: 12px; margin-left: 6px; }
.ra-signal-big { margin-left: auto; }
.ra-signal-big .ra-badge { font-size: 14px; padding: 6px 16px; }

.ra-chart { width: 100%; height: 320px; margin: 1em 0 1.6em; }

.ra-groups { display: grid; gap: 8px; max-width: 520px; margin-bottom: 1.4em; }
.ra-group { display: flex; align-items: center; gap: 10px; }
.ra-group-name { width: 90px; font-weight: 600; font-size: 13px; }
.ra-group-val { font-size: 12px; color: #666; white-space: nowrap; }
.ra-bar { flex: 1; height: 8px; background: #eee; border-radius: 999px; overflow: hidden; display: inline-block; }
.ra-bar-sm { width: 70px; flex: none; vertical-align: middle; }
.ra-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #c9a02a, #1b7a3d); border-radius: 999px; }

.ra-history { list-style: none; padding: 0; font-size: 13px; }
.ra-history li { padding: 3px 0; }

.ra-rank { font-variant-numeric: tabular-nums; color: #555; }
.ra-rank-top { font-weight: 700; color: #1b7a3d; }
.ra-me { background: #f6f9f4; }
.ra-me td { border-top: 2px solid #1b7a3d; border-bottom: 2px solid #1b7a3d; }
.ra-peer-pos { display: block; margin-top: 4px; font-size: 12px; color: #666; text-align: right; }

.ra-news { text-decoration: none; font-variant-numeric: tabular-nums; }
.ra-news-hot { font-weight: 700; }
.ra-news-list { list-style: none; padding: 0; font-size: 13.5px; }
.ra-news-list li { padding: 4px 0; border-bottom: 1px dotted #e5e5e5; }
.ra-news-date { color: #888; font-variant-numeric: tabular-nums; margin-right: 6px; }
.ra-news-cat { background: #eee; color: #666; border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-right: 6px; }

.ra-disclaimer { margin-top: 2em; padding: 12px 14px; background: #f7f6f2; border-left: 3px solid #c9a02a; font-size: 12.5px; color: #555; }

.ra-cta { margin-top: 1.4em; padding: 12px 14px; background: #eef6f0; border-left: 3px solid #1b7a3d; font-size: 13.5px; color: #333; }
.ra-cta-soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #1b7a3d; color: #fff; font-size: 11px; font-weight: 600; vertical-align: middle; }

@media (max-width: 600px) {
  .ra-table th, .ra-table td { padding: 6px; }
  .ra-chart { height: 240px; }
}

/* Alerta de notícia oficial recente no detalhe (viés pode não refleti-la) */
.ra-news-alert { margin: 10px 0 4px; padding: 10px 14px; background: #fdf6e8; border-left: 3px solid #d9822b; font-size: 13.5px; color: #5a4a2f; line-height: 1.5; }
.ra-news-alert a { color: #9a5b13; text-decoration: underline; }

/* Análise por IA do fato relevante: badge 1-10 + resumo pra download */
.ra-ai-score { display: inline-block; min-width: 38px; text-align: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ra-ai-neg { background: #fdecea; color: #b32d2e; }
.ra-ai-neu { background: #f0f0f0; color: #666; }
.ra-ai-pos { background: #e6f4ea; color: #1b7a3d; }
.ra-ai-download { font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.ra-ai-details { margin: 6px 0 2px 14px; font-size: 13px; }
.ra-ai-details summary { cursor: pointer; color: #666; }
.ra-ai-summary { margin: 6px 0; padding: 8px 12px; background: #f7f8fa; border-left: 3px solid #8aa4c8; line-height: 1.55; white-space: normal; }

/* Select da janela de variação (visão do dia) */
.ra-window { margin: 4px 0 14px; font-size: 13.5px; color: #444; }
.ra-window select { font-size: 13px; padding: 2px 6px; margin-left: 4px; }
.ra-window-apply { margin-left: 6px; }
