:root {
  --cor-fundo: #f7f7f8;
  --cor-texto: #3A3635;
  --cor-borda: #d9d9dd;
  --cor-primaria: #F15A22;
  --cor-primaria-escura: #b8431f;
  --cor-marca-escura: #3A3635;
  --cor-erro: #C0392B;
  --cor-sucesso: #1E8449;
  --cor-atencao: #B9770E;
  --largura-sidebar: 246px;
}

html.sidebar-colapsada { --largura-sidebar: 68px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-texto);
}

.layout { display: flex; align-items: stretch; min-height: 100vh; }

/* --- Menu lateral --------------------------------------------------- */

.sidebar {
  width: 246px;
  min-width: 0;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--cor-marca-escura);
  color: #d8d7d4;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.15s ease;
}
html.sidebar-colapsada .sidebar { width: 68px; }

.sidebar-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marca-link { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.marca-expandida { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.marca-expandida .produto { color: white; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.logo-voxlink { max-width: 110px; height: auto; }

.marca-colapsada {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.marca-colapsada svg { width: 100%; height: 100%; }
html.sidebar-colapsada .sidebar-topo { flex-direction: column; gap: 0.7rem; padding: 1.1rem 0.5rem; }
html.sidebar-colapsada .marca-expandida { display: none; }
html.sidebar-colapsada .marca-colapsada { display: flex; }

.cliente-nome {
  padding: 0.4rem 1.1rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html.sidebar-colapsada .cliente-nome { display: none; }

.botao-colapsar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #d8d7d4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.botao-colapsar:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.botao-colapsar svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
html.sidebar-colapsada .botao-colapsar svg { transform: rotate(180deg); }

/* --- Novidades (changelog) - só aparece para master ------------------- */

.botao-changelog {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #d8d7d4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.botao-changelog:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.botao-changelog svg { width: 16px; height: 16px; }

.ponto-novidade {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cor-primaria);
  border: 2px solid var(--cor-marca-escura);
}

/* Fixo e fora da .sidebar (que tem overflow:hidden) para não ser
   recortado. Acompanha a largura do menu ao recolher. */
.painel-changelog[hidden] { display: none; }
.painel-changelog {
  position: fixed;
  top: 12px;
  left: calc(var(--largura-sidebar) + 12px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: calc(100vw - var(--largura-sidebar) - 24px);
  max-height: calc(100vh - 24px);
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.painel-changelog-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cor-borda);
  font-weight: 700;
  font-size: 14px;
  color: var(--cor-marca-escura);
}
.painel-changelog-topo .painel-changelog-fechar {
  margin-top: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: transparent;
  color: #6b6b6b;
  border-radius: 4px;
}
.painel-changelog-topo .painel-changelog-fechar:hover { background: #f0f0f0; color: var(--cor-texto); }
.painel-changelog-corpo { overflow-y: auto; padding: 4px 14px 14px; }

.changelog-entrada { padding: 12px 0; border-bottom: 1px solid #eee; }
.changelog-entrada:last-child { border-bottom: none; }
.changelog-cabecalho { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.changelog-categoria {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
}
.changelog-categoria.cat-novidade { background: #EAF7EE; color: var(--cor-sucesso); }
.changelog-categoria.cat-correcao { background: #FDEBEB; color: var(--cor-erro); }
.changelog-categoria.cat-melhoria { background: #FFF6E0; color: var(--cor-atencao); }
.changelog-data { font-size: 12px; color: #868E96; }
.changelog-titulo { margin: 0 0 6px; font-size: 14px; color: var(--cor-marca-escura); }
.changelog-itens { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.changelog-itens li { margin-bottom: 3px; }
.changelog-vazio { font-size: 13px; color: #999; font-style: italic; }

/* Painel sempre compacto: rotulo de secao ("Nao lidas"/"Lidas
   recentemente"), linha resumida (so titulo+data, sem os itens) pras lidas
   recentes, nota de quantas nao lidas ficaram de fora, e o rodape fixo com
   o link pra pagina de historico completo. */
.changelog-rotulo-secao {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #9a9591; padding: 10px 0 6px;
}
.changelog-rotulo-secao:first-child { padding-top: 0; }
.changelog-compacta {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 0;
  border-bottom: 1px solid #f2f2f2; font-size: 12.5px;
}
.changelog-compacta:last-child { border-bottom: none; }
.changelog-compacta-titulo { color: #6b6b6b; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.changelog-compacta-data { color: #b3ada9; font-size: 11px; flex: 0 0 auto; }
.changelog-nota-restantes { font-size: 12px; color: #999; font-style: italic; margin: 4px 0 0; }

.painel-changelog-rodape { border-top: 1px solid var(--cor-borda); padding: 10px 14px; }
.botao-ver-historico {
  display: block; width: 100%; text-align: center; padding: 8px; border-radius: 6px;
  background: var(--cor-fundo); border: 1px solid var(--cor-borda); color: var(--cor-texto);
  font-size: 12.5px; font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.botao-ver-historico:hover { border-color: var(--cor-primaria); color: var(--cor-primaria); }

/* Pagina /changelog/historico - cada entrada reaproveita .cartao (mesmo
   componente usado no resto do painel) por fora e as classes .changelog-*
   por dentro, pra ficar visualmente igual ao painel so que com mais
   espaco. */
.historico-controles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.historico-busca { flex: 1; min-width: 220px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; font-family: inherit; }
.historico-filtro { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; font-family: inherit; background: white; }
.historico-contagem { font-size: 12px; color: #999; margin: 10px 0; }
.historico-entrada { margin-bottom: 12px; }
.historico-paginacao { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; }
.pg-num, .pg-seta {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--cor-borda);
  background: white; color: var(--cor-texto); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pg-num.on { background: var(--cor-primaria); border-color: var(--cor-primaria); color: white; }
.pg-seta:disabled { opacity: 0.4; cursor: default; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.9rem 0; }
.grupo-nav { margin-bottom: 1.2rem; }
.grupo-nav:last-child { margin-bottom: 0; }

.grupo-titulo {
  display: block;
  padding: 0.25rem 1.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #96958f;
}
html.sidebar-colapsada .grupo-titulo { display: none; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  color: #d8d7d4;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: white; }
.sidebar-nav a.ativo {
  background: rgba(241, 90, 34, 0.18);
  border-left-color: var(--cor-primaria);
  color: white;
  font-weight: 600;
}
.sidebar-nav .icone { flex-shrink: 0; width: 18px; height: 18px; }
.sidebar-nav .icone svg { width: 100%; height: 100%; }
html.sidebar-colapsada .sidebar-nav a { justify-content: center; padding: 0.65rem 0; }
html.sidebar-colapsada .rotulo { display: none; }

.sidebar-rodape { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 0.9rem 1.1rem; }
.usuario-info { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; overflow: hidden; }
.avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usuario-nome { font-size: 0.82rem; color: #d8d7d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.link-sair { display: flex; align-items: center; gap: 0.75rem; padding: 0.3rem 0; color: #d8d7d4; text-decoration: none; font-size: 0.86rem; font-weight: 500; }
.link-sair:hover { color: white; }
.link-sair .icone { flex-shrink: 0; width: 18px; height: 18px; }
.link-sair .icone svg { width: 100%; height: 100%; }
html.sidebar-colapsada .sidebar-rodape { padding: 0.9rem 0.5rem; }
html.sidebar-colapsada .usuario-info, html.sidebar-colapsada .link-sair { justify-content: center; }

/* --- Área de conteúdo ------------------------------------------------ */

.area-principal { flex: 1; min-width: 0; }

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
/* Listas (Agentes, Alertas, Vulnerabilidades...): ocupam a largura
   disponível até 1600px, em vez de ficarem espremidas numa coluna central. */
main.pagina-larga { max-width: 1600px; padding: 0 2rem; }
@media (max-width: 800px) { main, main.pagina-larga { padding: 0 0.9rem; } }
main.pagina-sem-menu { max-width: 100%; margin: 0 auto; padding: 0; }

h1 { font-size: 20px; margin-top: 20px; color: var(--cor-marca-escura); }
h2 { color: var(--cor-primaria); font-size: 15px; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-top: 28px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
th, td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
th { background: #f0f0f0; font-size: 11px; text-transform: uppercase; color: #666; }

.status { padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: bold; }
.status-active { background: #EAF7EE; color: var(--cor-sucesso); }
.status-disconnected { background: #FDEBEB; color: var(--cor-erro); }
.status-never_connected, .status-pending { background: #eee; color: #777; }

/* Barra de selecao em massa (tela Agentes) - fica presa no topo quando
   pelo menos 1 checkbox esta marcado, ver agentes_selecao.js. */
.barra-selecao {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--cor-marca-escura); color: white; padding: 10px 16px; border-radius: 6px; margin-bottom: 1rem;
}
.barra-selecao[hidden] { display: none; }

/* Aviso "Tarefas de atualização" (tela Agentes) - fechavel (X, ver
   agentes_selecao.js); "Ver detalhes" abre o painel-inventario
   reaproveitado como painel-tarefas. */
.resumo-tarefas {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: white; color: var(--cor-texto); border: 1px solid var(--cor-borda); border-radius: 6px;
  padding: 0.7rem 1rem; margin: 1.4rem 0 1rem; font-family: inherit; font-size: 13px;
}
.resumo-tarefas[hidden] { display: none; }
.resumo-tarefas-link {
  margin-left: auto; background: transparent; border: none; padding: 0; color: var(--cor-primaria);
  font-weight: 600; font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.resumo-tarefas-link:hover { color: var(--cor-primaria-escura); }
.resumo-tarefas-fechar {
  padding: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; background: transparent; color: #999; border-radius: 4px; flex: 0 0 22px;
}
.resumo-tarefas-fechar:hover { background: #f0f0f0; color: var(--cor-texto); }

.lock-note { color: #999; font-size: 12px; font-style: italic; }

.nota-info {
  background: #EEF3FF;
  border: 1px solid #C7D6FF;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cor-texto);
}

.seletor-abas { display: flex; gap: 6px; margin: 10px 0 18px; flex-wrap: wrap; }
.seletor-abas a {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--cor-texto); background: #eee; text-decoration: none;
}
.seletor-abas a.ativo { background: var(--cor-primaria); color: #fff; }
.seletor-abas a:hover:not(.ativo) { background: #e2e2e4; }

.linha-mitigada { opacity: 0.55; }
.linha-mitigada td { text-decoration: line-through; text-decoration-color: #999; }
.linha-mitigada td:last-child, .linha-mitigada td:nth-last-child(2) { text-decoration: none; }
.badge-mitigado { background: #eee; color: #666; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: bold; text-decoration: none !important; }

.wazuh-ok { color: var(--cor-sucesso); }
.wazuh-relevante { background: #FFF6E0; color: var(--cor-atencao); padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; }
.wazuh-critico { background: #FDEBEB; color: var(--cor-erro); padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; }

.banner-critico { background: var(--cor-erro); color: white; padding: 12px 16px; margin-top: 16px; font-size: 14px; border-radius: 4px; }
.banner-atencao { background: var(--cor-atencao); color: white; padding: 12px 16px; margin-top: 16px; font-size: 14px; border-radius: 4px; }
.banner-sucesso { background: var(--cor-sucesso); color: white; padding: 12px 16px; margin-top: 16px; font-size: 14px; border-radius: 4px; }

.form-block {
  background: white;
  padding: 16px 20px;
  max-width: 420px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}
.form-block.form-larga { max-width: 640px; }
/* Os campos (<label>) ficam dentro de um <form>, um nivel abaixo de
   .form-block - o flex/column precisa mirar nesse <form>, nao no
   .form-block em si, senao os labels ficam em fluxo inline (lado a lado). */
.form-block form { display: flex; flex-direction: column; gap: 4px; }
.form-block label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; margin-top: 8px; }
.form-block input[type="text"], .form-block input[type="email"], .form-block input[type="password"],
.form-block input[type="date"], .form-block select {
  padding: 8px; border: 1px solid #ccc; font-size: 14px; font-family: inherit;
}
.form-block button { margin-top: 14px; padding: 10px; }
.form-linha { display: flex; gap: 12px; flex-wrap: wrap; }
/* Rotulo de 2 linhas empurra o campo pra baixo e desalinha com os vizinhos
   de 1 linha na mesma .form-linha - forca 1 linha so nos casos onde os
   rotulos foram escritos curtos de proposito pra caber (ex: notificacoes.html). */
.form-linha-topo > label { white-space: nowrap; }
.form-linha > label { flex: 1; min-width: 160px; }
.checkbox-label { display: flex !important; align-items: center; gap: 6px; flex-direction: row !important; font-size: 13px !important; color: var(--cor-texto) !important; }
.btn-danger { background: var(--cor-erro); }
.btn-secondary { background: var(--cor-marca-escura); }
/* .form-block form e flex-column com align-items:stretch (ver acima) - um
   <button> solto ali vira item esticado a 100% de largura. Este wrapper
   cria um eixo horizontal proprio (flex-direction:row, sizing por
   conteudo) pra botoes que devem ficar lado a lado, compactos. */
.botoes-lado-a-lado { display: flex; gap: 8px; margin-top: 10px; }
.botoes-lado-a-lado button { margin-top: 0; }

/* Paginacao de listas longas (Alertas, Vulnerabilidades) - ver
   feedback_paginacao_listas_longas na memoria. */
.paginacao {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 10px 0; font-size: 13px; color: #666; flex-wrap: wrap; gap: 8px;
}
.paginacao-botoes { display: flex; align-items: center; gap: 10px; }
.paginacao-botoes .botao-link[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

.vxsec-spinner {
  display: inline-block; width: 13px; height: 13px; margin-right: 8px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; vertical-align: -2px;
  animation: vxsec-spin 0.7s linear infinite;
}
@keyframes vxsec-spin { to { transform: rotate(360deg); } }

button {
  background: var(--cor-primaria);
  color: white;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 3px;
}
button:hover { background: var(--cor-primaria-escura); }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: white; padding: 32px 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-align: center; width: 340px; border-radius: 6px; }
.login-box h1 { font-size: 18px; margin: 12px 0 20px; }
.login-box form { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.login-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; margin-top: 8px; }
.login-box input { padding: 8px; border: 1px solid #ccc; font-size: 14px; }
.login-box button { margin-top: 16px; padding: 10px; }
.login-box .codigo-mfa { text-align: center; font-size: 24px; letter-spacing: 6px; }
.erro { color: var(--cor-erro); font-size: 13px; }
.sucesso-texto { color: var(--cor-sucesso); font-size: 13px; }
.link-secundario { font-size: 13px; margin-top: 14px; }
.link-secundario a { color: var(--cor-primaria); }

/* --- Cartões / dashboard ---------------------------------------------- */

.secao-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  margin: 1.75rem 0 0.75rem;
}
.secao-titulo:first-of-type { margin-top: 0; }

.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cartao {
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
a.cartao-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
a.cartao-link:hover {
  border-color: var(--cor-primaria);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.cartao-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cor-marca-escura);
  margin-bottom: 0.75rem;
}
.cartao-valor { font-size: 1.8rem; font-weight: 700; color: var(--cor-marca-escura); }
.cartao-legenda { font-size: 0.78rem; color: #6b6b6b; margin-top: 0.2rem; }

/* Semáforos do dashboard - um por domínio (alertas / vulnerabilidades),
   lado a lado; empilha em telas estreitas. */
.semaforos-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .semaforos-grade { grid-template-columns: 1fr; } }
.semaforo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  border-radius: 10px;
  color: white;
}
.semaforo.ok { background: var(--cor-sucesso); }
.semaforo.atencao { background: var(--cor-atencao); }
.semaforo.critico { background: var(--cor-erro); }
.semaforo-luz { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.9); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.semaforo-rotulo { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.semaforo-texto { font-size: 1rem; font-weight: 600; }
.semaforo-sub { font-size: 0.82rem; opacity: 0.9; margin-top: 0.15rem; }
.semaforo-nota { font-size: 0.7rem; opacity: 0.75; margin-top: 0.3rem; font-style: italic; }

.chips-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.chip-stat {
  font-size: 0.74rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 6px;
  background: #f2f2f3; color: var(--cor-texto);
}
.chip-stat .chip-rotulo { font-weight: 400; color: #6b6b6b; margin-right: 0.25rem; }
.chip-stat.chip-atencao { background: #FFF6E0; color: var(--cor-atencao); }
.chip-stat.chip-critico { background: #FDEBEB; color: var(--cor-erro); }

.badge-wazuh-cartao { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
.badge-wazuh-cartao.ok { background: #EAF7EE; color: var(--cor-sucesso); }
.badge-wazuh-cartao.relevante { background: #FFF6E0; color: var(--cor-atencao); }
.badge-wazuh-cartao.critico { background: #FDEBEB; color: var(--cor-erro); }
.badge-wazuh-cartao.sem-agente { background: #eee; color: #777; }

/* --- Supressão de chamados: combobox com busca + linhas de agente ------ */

/* O <ul> flutua sobre o conteúdo abaixo (position:absolute), então o .combo
   precisa ser o bloco de referência do posicionamento. */
.combo { position: relative; display: flex; flex-direction: column; }
.combo .combo-input { width: 100%; }

.combo-lista {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 13px;
}
.combo-lista li { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid #f2f2f3; }
.combo-lista li:last-child { border-bottom: none; }
.combo-lista li:hover { background: #FDF1EC; }
.combo-lista .combo-vazio { color: #999; font-style: italic; cursor: default; }
.combo-lista .combo-vazio:hover { background: none; }
.combo-id {
  display: inline-block;
  min-width: 46px;
  font-weight: 700;
  color: var(--cor-primaria);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Selo de confirmação: substitui o campo de busca depois que a escolha
   vem da lista de sugestões, para não restar dúvida de que o valor foi
   travado. Um só componente para os dois usos do formulário - a regra do
   Wazuh (nome + ID) e cada agente.
   O "display:flex" venceria o [hidden] do navegador (que só define
   display:none na folha do agente) e o selo apareceria vazio antes de
   qualquer escolha - por isso o [hidden] explícito aqui. O botão precisa
   do ancestral no seletor para vencer o margin-top de
   ".form-block button". */
.selo-escolhido[hidden] { display: none; }
.selo-escolhido {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Mesma altura (34px) do campo de busca que ele substitui, para a linha
     não mudar de tamanho no momento em que a escolha é confirmada. */
  min-height: 34px;
  padding: 3px 4px 3px 10px;
  border: 1px solid var(--cor-sucesso);
  border-radius: 4px;
  background: #EAF7EE;
  font-size: 14px;
  color: var(--cor-texto);
}
.selo-escolhido-icone { display: flex; flex-shrink: 0; color: var(--cor-sucesso); }
.selo-escolhido-icone svg { width: 16px; height: 16px; }
.selo-escolhido-texto { flex: 1; min-width: 0; font-weight: 600; }
.selo-escolhido .selo-trocar {
  flex-shrink: 0;
  margin-top: 0;
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  color: var(--cor-sucesso);
  border: 1px solid var(--cor-sucesso);
}
.selo-escolhido .selo-trocar:hover { background: var(--cor-sucesso); color: white; }

.campo-agentes { margin-top: 14px; }
.rotulo-campo { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
.agentes-linhas { display: flex; flex-direction: column; gap: 6px; }
.agente-linha { display: flex; align-items: center; gap: 6px; }
.agente-linha .combo { flex: 1; min-width: 0; }
.agente-linha .combo-input {
  padding: 8px; border: 1px solid #ccc; font-size: 14px; font-family: inherit;
}

/* Os dois botões do seletor fogem do estilo laranja padrão de <button> de
   propósito: verde = acrescentar, vermelho = remover, como pedido. */
/* Os seletores destes dois botoes precisam do ancestral (.campo-agentes /
   .agente-linha) para superar a especificidade de ".form-block button"
   (0,1,1), que impoe margin-top:14px a todo botao do formulario. Sem isso
   a margem sobrevive e, como a linha centraliza a CAIXA COM MARGEM, a
   lixeira desce 7px em relacao ao campo. Mesmo problema que o reset em
   .botoes-lado-a-lado button ja resolvia para os botoes lado a lado. */
.campo-agentes .btn-adicionar-agente {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--cor-sucesso);
}
.campo-agentes .btn-adicionar-agente:hover { background: #17663a; }
.campo-agentes .btn-adicionar-agente svg { width: 14px; height: 14px; }

.agente-linha .btn-remover-agente {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--cor-erro);
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
}
.agente-linha .btn-remover-agente:hover { background: #FDEBEB; border-color: var(--cor-erro); }
.agente-linha .btn-remover-agente svg { width: 17px; height: 17px; }

/* "Editar" e "Excluir" na coluna Ações: um é <a>, o outro é <button>
   dentro de <form>, e cada texto tem um comprimento - a largura mínima
   comum deixa os dois do mesmo tamanho em todas as linhas. */
.btn-acao-tabela {
  display: inline-block;
  min-width: 84px;
  text-align: center;
  margin-bottom: 4px;
}

/* Agentes da supressão: cada nome é um bloco só. Soltos na célula, os
   chips quebravam no meio do nome (em espaço ou hífen), partindo o fundo
   cinza em dois pedaços e desfazendo a ideia de "um agente = um bloco".
   O flex quebra ENTRE os chips, nunca dentro de um. */
.chips-agentes { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-agente { white-space: nowrap; }

.col-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #6b6b6b;
  white-space: nowrap;
}

/* O "X" so existe onde o JS o acrescenta (banner-com-fechar) - assim os
   avisos das outras telas nao ganham um espaco vazio a direita. */
.banner-com-fechar { position: relative; padding-right: 40px; }
.banner-fechar {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
}
.banner-fechar:hover { background: rgba(255, 255, 255, 0.22); }

/* Link com aparência de botão secundário (ex.: "Editar"/"Cancelar" ao lado
   de <button>s de verdade, que não podem virar <a>). */
.botao-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cor-marca-escura);
  color: white;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}
.botao-link:hover { background: #565150; }

.comando-gerado {
  background: #16181d;
  color: #d8d7d4;
  padding: 14px 16px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 10px;
}
.botao-copiar { margin-top: 8px; }

/* --- Inventário do agente ---------------------------------------------- */

/* Distingue as duas naturezas de dado que a aba Inventário mostra: coletado
   por varredura periódica do agente (Inventário) x extraído de um evento de
   log em tempo real (Evento de log) - ver find_last_interactive_login() em
   wazuh_client.py. */
.tag-fonte {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 5px;
}
.tag-fonte-inventario { background: #EAF0FC; color: #3B5FC1; }
.tag-fonte-evento { background: #F2EAFB; color: #7C3FB8; }

.colunas-inventario { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .colunas-inventario { grid-template-columns: 1fr; } }

.linha-chave-valor {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid #eee; font-size: 13px;
}
.linha-chave-valor:last-child { border-bottom: none; }
.linha-chave-valor .chave { color: #6b6b6b; flex: 0 0 auto; }
.linha-chave-valor .valor { font-weight: 600; text-align: right; }
.linha-chave-valor.esmaecida .valor { color: #999; font-weight: 500; font-style: italic; }

.linha-ram { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; font-size: 13px; }
.linha-ram .valor { font-weight: 600; }
.barra-uso { height: 6px; border-radius: 999px; background: #eee; overflow: hidden; margin-top: 6px; }
.barra-uso i { display: block; height: 100%; background: var(--cor-primaria); border-radius: 999px; }

/* Prefixo "ident-" de proposito: ".usuario-nome"/".usuario-avatar" ja
   existem no rodape da sidebar (texto claro pra fundo escuro) - um nome
   igual aqui herdava a cor errada (clara, ilegivel em fundo branco) sem
   nenhum aviso, porque so a regra da sidebar declarava "color". */
.ident-usuario { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.ident-usuario-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--cor-primaria); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 38px;
}
.ident-usuario-nome { font-size: 14px; font-weight: 700; color: var(--cor-texto); }
.ident-usuario-quando { font-size: 12px; color: #6b6b6b; margin-top: 2px; }

.grade-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.grade-stats.grade-stats-1col { grid-template-columns: 1fr; }
.stat-clicavel {
  display: block; width: 100%; text-align: left; background: white; color: inherit;
  border: 1px solid var(--cor-borda); border-radius: 8px; padding: 0.85rem 1rem;
  cursor: pointer; font-family: inherit;
}
.stat-clicavel:hover { border-color: var(--cor-primaria); background: white; }
.stat-numero { font-size: 1.5rem; font-weight: 700; color: var(--cor-marca-escura); line-height: 1; }
.stat-legenda { font-size: 0.76rem; color: #6b6b6b; margin-top: 0.4rem; }
.stat-ver { font-size: 0.76rem; color: var(--cor-primaria); font-weight: 600; margin-top: 0.5rem; }

/* Painel de detalhe (lista de pacotes/hotfixes) - mesmo padrao visual do
   .painel-changelog, mas centralizado com fundo esmaecido: a lista pode
   ter mais de cem itens e pede busca com foco, diferente do changelog
   (leitura rapida, ancorado perto do sino). */
.painel-inventario-fundo[hidden] { display: none; }
.painel-inventario-fundo {
  position: fixed; inset: 0; background: rgba(20, 18, 17, 0.45); z-index: 59;
}
.painel-inventario[hidden] { display: none; }
.painel-inventario {
  position: fixed; z-index: 60; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px);
  background: white; border: 1px solid var(--cor-borda); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  display: flex; flex-direction: column;
}
.painel-inventario-topo {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--cor-borda);
}
.painel-inventario-titulo { font-weight: 700; font-size: 14px; color: var(--cor-marca-escura); }
.painel-inventario-sub { font-size: 12px; color: #6b6b6b; margin-top: 2px; }
.painel-inventario-fechar {
  margin-top: 0; padding: 0; width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; line-height: 1; background: transparent; color: #6b6b6b;
  border-radius: 4px; flex: 0 0 26px;
}
.painel-inventario-fechar:hover { background: #f0f0f0; color: var(--cor-texto); }
.painel-inventario-busca {
  margin: 10px 16px 0; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px;
  font-size: 13px; font-family: inherit;
}
.painel-inventario-contagem { font-size: 11px; color: #999; padding: 8px 16px 0; }
.painel-inventario-corpo { overflow-y: auto; padding: 4px 16px 16px; }
.item-pacote { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee; }
.item-pacote:last-child { border-bottom: none; }
.item-pacote-principal { min-width: 0; }
.item-pacote-nome { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-pacote-meta { font-size: 11px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-pacote-direita { flex: 0 0 auto; text-align: right; }
.item-pacote-versao { font-size: 12px; font-weight: 600; }
.item-pacote-data { font-size: 11px; color: #999; margin-top: 2px; }
.painel-inventario-vazio { padding: 24px 4px; text-align: center; color: #999; font-size: 13px; }

/* Aba Vulnerabilidades (ficha do agente): a barra de "Aplicar correção" usa o
   mesmo .barra-selecao da tela Agentes, mas fica sempre visível pra o botão
   ser fácil de achar. Sem seleção ela fica clara e o botão desabilitado; ao
   marcar algum pacote, ganha o visual escuro (ver agente_vulns.js). */
.barra-correcao:not(.com-selecao) {
  background: white; color: var(--cor-texto); border: 1px solid var(--cor-borda);
}
.barra-correcao button:disabled { opacity: 0.45; cursor: not-allowed; }
.barra-correcao button:disabled:hover { background: var(--cor-primaria); }

/* =========================================================================
   Listas - padrão compartilhado com o VXFin (e base do Manager)
   Toda <table class="tabela-lista"> ganha o cartão, cabeçalho fixo,
   paginação e modo cartão no celular; o comportamento está em
   static/listas.js e o rodapé das listas paginadas no servidor em
   templates/_paginacao.html. Fica no fim do arquivo: precisa vencer as
   regras genéricas de table/th/td/button lá de cima.
   ========================================================================= */
.tabela-container {
  background: white; border: 1px solid var(--cor-borda); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden; margin: 0.6rem 0 1.25rem;
  container-type: inline-size;  /* colunas se adaptam à largura da própria tabela */
}
.tabela-rolagem { overflow: auto; }
/* Listas paginadas: a tabela cabe na altura da tela, com rolagem própria -
   barra lateral e rodapé de paginação sempre visíveis, cabeçalho fixo. */
.tabela-paginada .tabela-rolagem { max-height: calc(100vh - 250px); min-height: 260px; }

table.tabela-lista { width: 100%; border-collapse: collapse; background: white; box-shadow: none; font-size: inherit; }
.tabela-lista th, .tabela-lista td {
  text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid #ececef;
  font-size: 0.85rem; vertical-align: middle;
}
.tabela-lista tbody tr:last-child td { border-bottom: none; }
.tabela-lista tbody tr:hover td { background: #fafafb; }
.tabela-lista thead th {
  position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--cor-borda);
  background: #f6f6f7; color: #5b5955; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--cor-borda);
}
.tabela-lista thead th[data-ordenavel] { cursor: pointer; user-select: none; }
.tabela-lista thead th[data-ordenavel]:hover { background: #ececee; color: var(--cor-texto); }
.tabela-lista thead th[data-ordenavel]::after { content: "\2195"; display: inline-block; margin-left: 0.35rem; opacity: 0.45; font-size: 0.85em; }
.tabela-lista thead th[data-ordenavel].ordenado-asc::after { content: "\2191"; opacity: 1; }
.tabela-lista thead th[data-ordenavel].ordenado-desc::after { content: "\2193"; opacity: 1; }
.tabela-lista tr[hidden], .tabela-lista tr.oculta-pagina, .tabela-lista tr.oculta-filtro { display: none !important; }

.tabela-lista a:not([class]) { color: var(--cor-primaria); font-weight: 600; text-decoration: none; }
.tabela-lista a:not([class]):hover { text-decoration: underline; }
.tabela-lista .celula-sub { display: block; font-size: 0.76rem; color: #85827d; margin-top: 0.1rem; }
.tabela-lista .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela-lista .acoes { text-align: right; white-space: nowrap; }
.tabela-lista td.sem-quebra { white-space: nowrap; }
.tabela-lista td.col-texto { min-width: 260px; }
.tabela-lista button, .tabela-lista .botao-link { padding: 0.3rem 0.75rem; font-size: 0.8rem; border-radius: 6px; font-weight: 600; }
.tabela-lista select { padding: 0.25rem 0.4rem; border: 1px solid var(--cor-borda); border-radius: 6px; font-size: 0.82rem; background: white; font-family: inherit; }
.tabela-lista .btn-danger { background: transparent; color: var(--cor-erro); border: 1px solid #f0b8b0; }
.tabela-lista .btn-danger:hover { background: var(--cor-erro); color: white; border-color: var(--cor-erro); }
.tabela-lista .btn-secondary { background: #e5e5e7; color: var(--cor-marca-escura); }
.tabela-lista .btn-secondary:hover { background: #d4d4d6; }
.tabela-lista .acoes form { display: inline; }
.tabela-lista tr.linha-detalhe:hover td { background: #FAFBFC; }

/* Rodapé de paginação: o do navegador é criado por listas.js, o do
   servidor vem do macro _paginacao.html (links em vez de botões). */
.tabela-paginacao {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.55rem 0.9rem; border-top: 1px solid #ececef; background: #fafafb; font-size: 0.82rem; color: #5b5955;
}
.pag-paginas { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.pag-paginas button, .pag-paginas a, .pag-paginas .desabilitado {
  display: inline-block; min-width: 2rem; padding: 0.3rem 0.55rem; font-size: 0.8rem; font-weight: 600; border-radius: 6px;
  background: white; color: var(--cor-texto); border: 1px solid var(--cor-borda); text-align: center; text-decoration: none; line-height: 1.2;
}
.pag-paginas button:hover:not(:disabled), .pag-paginas a:hover { background: #f2f2f4; }
.pag-paginas button.atual, .pag-paginas a.atual { background: var(--cor-marca-escura); color: white; border-color: var(--cor-marca-escura); }
.pag-paginas button:disabled, .pag-paginas .desabilitado { opacity: 0.4; cursor: default; }
.pag-reticencias { padding: 0 0.2rem; color: #8a8a8f; }
.pag-aviso { color: #8a8a8f; font-size: 0.76rem; }
.pag-tamanho { display: flex; align-items: center; gap: 0.4rem; }
.pag-tamanho select { padding: 0.25rem 0.4rem; border: 1px solid var(--cor-borda); border-radius: 6px; font-size: 0.8rem; background: white; font-family: inherit; }

/* Menu "Mais ▾" de ações nas linhas */
.menu-acoes { position: relative; display: inline-block; }
.menu-acoes > summary {
  list-style: none; cursor: pointer; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 600; border-radius: 6px;
  background: #e5e5e7; color: var(--cor-marca-escura); white-space: nowrap;
}
.menu-acoes > summary::-webkit-details-marker { display: none; }
.menu-acoes[open] > summary { background: #d4d4d6; }
.menu-acoes-lista {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; padding: 0.3rem;
  background: white; border: 1px solid var(--cor-borda); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: flex; flex-direction: column; gap: 0.15rem; text-align: left;
}
.menu-acoes-lista form { display: block; margin: 0; }
.menu-acoes-lista button, .menu-acoes-lista a {
  display: block; width: 100%; text-align: left; background: none; color: var(--cor-texto); border: none; padding: 0.45rem 0.6rem;
  font-size: 0.85rem; font-weight: 500; border-radius: 5px; text-decoration: none;
}
.menu-acoes-lista button:hover, .menu-acoes-lista a:hover { background: #f2f2f4; }
.menu-acoes-lista button.perigo { color: var(--cor-erro); }
.menu-acoes-lista button.perigo:hover { background: #fbe1de; }
.menu-acoes.para-cima .menu-acoes-lista { top: auto; bottom: calc(100% + 4px); }

/* Cabeçalho de página: título + contador à esquerda, ação principal à direita */
.cabecalho-pagina {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 20px 0 1rem;
}
.cabecalho-pagina h1 { margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.contador {
  font-size: 0.78rem; font-weight: 700; color: #5b5955; background: #ececee; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.botao-acao {
  display: inline-flex; align-items: center; gap: 0.35rem; background: var(--cor-primaria); color: white;
  text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.55rem 1rem; border-radius: 6px;
}
.botao-acao:hover { background: var(--cor-primaria-escura); }

/* Barra de busca + filtros acima das tabelas */
.barra-ferramentas { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.campo-busca {
  display: block; width: 100%; max-width: 420px; flex: 1 1 260px; padding: 0.55rem 0.6rem;
  border: 1px solid var(--cor-borda); border-radius: 6px; font-size: 0.88rem; font-family: inherit; background: white;
}
/* Subtítulo de um bloco de lista (ex.: um grupo de agentes) */
.titulo-lista {
  display: flex; align-items: center; gap: 0.5rem; margin: 1.4rem 0 0.2rem; font-size: 15px;
  color: var(--cor-marca-escura); border: none; padding: 0;
}
.titulo-lista .contador { font-size: 0.72rem; padding: 0.15rem 0.55rem; }

/* Modo cartão: só em largura de celular cada linha vira um cartão (todas as
   colunas, com rótulo). Em telas médias nada é escondido: aparece a barra de
   rolagem lateral, sempre à vista no rodapé do cartão. */
@container (max-width: 520px) {
  .tabela-lista thead { display: none; }
  .tabela-lista, .tabela-lista tbody, .tabela-lista tr { display: block; width: 100%; min-width: 0 !important; }
  .tabela-lista tr { padding: 0.75rem 0.9rem; border-bottom: 1px solid #ececef; }
  .tabela-lista td {
    display: block; position: relative; border: none; text-align: left;
    padding: 0.2rem 0 0.2rem 7.2rem; min-height: 1.5rem; white-space: normal; min-width: 0 !important;
  }
  .tabela-lista td::before {
    content: attr(data-label); position: absolute; left: 0; top: 0.3rem; width: 6.8rem;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8a8a8f;
  }
  .tabela-lista td:first-child { padding-left: 0; font-weight: 600; padding-bottom: 0.4rem; }
  .tabela-lista td:first-child::before, .tabela-lista td[data-label=""]::before, .tabela-lista tr.linha-detalhe td::before { content: none; }
  .tabela-lista tr.linha-detalhe td, .tabela-lista tr.linha-vazia td { padding-left: 0; }
  .tabela-lista td.acoes, .tabela-lista td:last-child { padding-left: 0; padding-top: 0.45rem; }
  .tabela-lista td.acoes form, .tabela-lista td:last-child form { display: inline-block; }
  .tabela-lista tbody tr:hover td { background: none; }
  .tabela-lista td.num, .tabela-lista td.sem-quebra { text-align: left; white-space: normal; }
}

/* Botões de filtro por situação acima de uma lista (ex.: Conformidade CIS:
   Reprovados / Aprovados / Não se aplica / Todos) - ver vxsecFiltrarSituacao
   em listas.js. */
.filtros-situacao { display: flex; gap: 6px; flex-wrap: wrap; }
.filtros-situacao button {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--cor-texto); background: #eee; border: none;
}
.filtros-situacao button:hover:not(.ativo) { background: #e2e2e4; }
.filtros-situacao button.ativo { background: var(--cor-primaria); color: #fff; }
.filtros-situacao .qtd { opacity: 0.75; font-weight: 500; margin-left: 3px; }
