:root {
  --marinho: #10192a;
  --ardosia: #4c5671;
  --ardosia-escura: #3d4660;
  --fundo-tabela: #252a3e;
  --fundo-tabela-alt: #2b3047;
  --cabecalho: #1a2134;
  --linha: #40465f;
  --texto: #e8ecf5;
  --texto-suave: #a4acc2;
  --texto-apagado: #6f7792;

  --contrato: #3b1fa0;
  --contrato-claro: #9b6bf5;
  --creditos: #17784a;
  --creditos-claro: #7ad6a8;
  --payg: #8c1d55;
  --payg-claro: #f6b6c8;

  --ok-fundo: #c9e7b5;   --ok-texto: #2c661c;
  --aviso-fundo: #f6d47e; --aviso-texto: #6a4600;
  --critico-fundo: #f8c7cd; --critico-texto: #b0122a;

  --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fonte-titulo: "Segoe UI Variable Display", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--fonte);
  font-size: 14px;
  color: var(--texto);
  background: var(--ardosia);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #ffd76a; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- topo */
.topo {
  background: var(--marinho);
  border-bottom: 3px solid #26304a;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo titulo usuario" "nav nav nav";
  align-items: center;
  column-gap: 24px;
  padding: 16px 28px 0;
}
.topo__titulo { grid-area: titulo; display: flex; align-items: center; gap: 14px; }
.topo__emblema {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--contrato);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topo__emblema svg { width: 32px; height: 32px; }
.topo__titulo h1 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  white-space: nowrap;
}
.topo__titulo h1 span { color: #b79cf8; }
.topo__logo {
  grid-area: logo;
  justify-self: end;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
}
.topo__logo img { display: block; height: 70px; width: auto; }
.topo__nav { grid-area: nav; display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.topo__nav a, .topo__nav span {
  padding: 8px 14px 10px;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  text-decoration: none;
}
.topo__nav a { color: #fff; }
.topo__nav a.ativo { background: var(--ardosia); font-weight: 600; }
.topo__nav span { color: var(--texto-apagado); cursor: default; }

/* ---------------------------------------------------------------- conteúdo */
.conteudo {
  padding: 22px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* KPIs e alertas mantêm a largura; a tabela ganha mais espaço */
.kpis, .alertas { width: 100%; max-width: 1480px; margin: 0 auto; }
.painel { width: 100%; max-width: 1760px; margin: 0 auto; }

/* ---------------------------------------------------------------- KPIs */
.kpis {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) repeat(3, minmax(230px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--fundo-tabela);
  border: 1px solid var(--linha);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kpi__topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  color: #fff;
}
.kpi--geral .kpi__topo { background: var(--cabecalho); }
.kpi--contrato .kpi__topo { background: var(--contrato); }
.kpi--creditos .kpi__topo { background: var(--creditos); }
.kpi--payg .kpi__topo { background: var(--payg); }
.kpi__nome { font-weight: 600; font-size: 14px; }
.kpi__total { font-family: var(--fonte-titulo); font-size: 28px; font-weight: 700; line-height: 1; }
.kpi__status { display: flex; gap: 6px; padding: 12px 14px 4px; flex-wrap: wrap; }
.kpi__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.kpi__chip b { font-size: 14px; }
.kpi__chip.ok { background: var(--ok-fundo); color: var(--ok-texto); }
.kpi__chip.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); }
.kpi__chip.critico { background: var(--critico-fundo); color: var(--critico-texto); }
.kpi__chip.zero { opacity: .45; }
.kpi__chip.selecionado { border-color: #fff; box-shadow: 0 0 0 2px #fff; }
.kpi__rodape {
  margin-top: auto;
  padding: 8px 14px 12px;
  font-size: 12px;
  color: var(--texto-suave);
}
.kpi__rodape strong { color: var(--texto); font-size: 13px; }
.kpi--geral .kpi__rodape { padding-top: 12px; }
.kpi__link.selecionado { text-decoration: underline solid 2px; text-underline-offset: 4px; }
.kpi__link { background: none; border: 0; padding: 0; color: var(--texto); font-weight: 600; cursor: pointer; text-align: left; text-decoration: underline dotted; }

/* ---------------------------------------------------------------- alertas */
.alertas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--ardosia-escura);
  border-left: 4px solid var(--aviso-fundo);
  border-radius: 4px;
  padding: 8px 12px;
}
.alertas__titulo { font-weight: 600; margin-right: 4px; }
.alertas button {
  border: 0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}
.alertas button.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); }
.alertas button.critico { background: var(--critico-fundo); color: var(--critico-texto); }

/* ---------------------------------------------------------------- painel da tabela */
.painel {
  background: var(--fundo-tabela);
  border: 1px solid var(--linha);
  border-radius: 6px;
}
.painel__barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--cabecalho);
  border-bottom: 1px solid var(--linha);
  border-radius: 6px 6px 0 0;
  position: relative;
  z-index: 5;
}
.painel__busca { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; }
#busca {
  flex: 0 1 380px;
  min-width: 220px;
  background: var(--fundo-tabela);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 7px 10px;
}
#busca::placeholder { color: var(--texto-apagado); }
.filtro-ativo {
  background: #fff;
  color: var(--marinho);
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.painel__acoes { display: flex; align-items: center; gap: 14px; }
.salvamento { font-size: 12px; color: var(--texto-suave); }
.salvamento.erro { color: #ffb3bd; }

.abas {
  display: inline-flex;
  background: var(--fundo-tabela);
  border: 1px solid var(--linha);
  border-radius: 6px;
  padding: 3px;
}
.abas button {
  border: 0;
  background: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--texto-suave);
  font-weight: 600;
}
.abas button[aria-selected="true"] { background: #fff; color: var(--marinho); }
body.edicao .abas button[aria-selected="true"] { background: var(--contrato-claro); color: #fff; }

/* A tabela cresce com a página: sem rolagem própria, o cabeçalho acompanha a rolagem da página */
.tabela-rolagem { overflow: visible; border-radius: 0 0 6px 6px; }
body.edicao .tabela-rolagem { overflow-x: auto; }
@media (max-width: 1400px) { .tabela-rolagem { overflow-x: auto; } }
.tabela {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1280px;
}
.tabela th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cabecalho);
  color: #c9d1e3;
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  padding: 10px 8px;
  border-bottom: 2px solid var(--linha);
  border-right: 1px solid var(--linha);
  line-height: 1.25;
}
.tabela th.auto::after { content: "\00a0ƒ"; color: var(--texto-apagado); font-style: italic; }
.tabela td {
  border-bottom: 1px solid var(--linha);
  border-right: 1px solid var(--linha);
  padding: 7px 8px;
  vertical-align: middle;
  text-align: center;
}
.tabela th:last-child, .tabela td:last-child { border-right: 0; }
.tabela tbody tr:nth-child(even) td { background: var(--fundo-tabela-alt); }
.tabela tbody tr:hover td { background: #333a55; }
.tabela tbody tr.destaque td { animation: destaque 1.6s ease-out; }
@keyframes destaque { from { background: #6b5a1f; } }

.c-fornecedor { font-weight: 700; color: #fff; white-space: nowrap; }
.c-produto { min-width: 150px; }
.c-obs { text-align: left !important; min-width: 220px; max-width: 300px; font-size: 12.5px; color: #d5dbea; }
.c-obs ul { margin: 0; padding-left: 16px; }
.c-obs li { margin: 1px 0; }
.c-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-num .moeda { color: var(--texto-suave); margin-right: 3px; }
.c-num .sufixo { color: var(--texto-suave); font-size: 11px; }
.c-data { white-space: nowrap; font-variant-numeric: tabular-nums; }
.na { color: var(--texto-apagado); }

.tipo {
  display: inline-block;
  min-width: 82px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12.5px;
}
.tipo.t-contrato { background: var(--contrato-claro); color: #fff; }
.tipo.t-creditos { background: var(--creditos-claro); color: #0c3b23; }
.tipo.t-payg { background: var(--payg-claro); color: #7a1238; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.status.ok { background: var(--ok-fundo); color: var(--ok-texto); }
.status.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); }
.status.critico { background: var(--critico-fundo); color: var(--critico-texto); }
.status.neutro { color: var(--texto-apagado); font-weight: 500; }

.uso { min-width: 180px; font-size: 12.5px; }
.uso__barra { height: 4px; background: #3a4060; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.uso__barra span { display: block; height: 100%; background: var(--creditos-claro); }
.uso__barra.cheio span { background: var(--aviso-fundo); }

/* ---------------------------------------------------------------- modo edição */
.so-edicao { display: none; }
body.edicao th.so-edicao, body.edicao td.so-edicao { display: table-cell; }
body.edicao .painel__rodape.so-edicao { display: flex; }

.tabela td.auto-edicao {
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.035) 6px 12px) !important;
}

.campo {
  width: 100%;
  background: #1c2133;
  border: 1px solid #4b5272;
  border-radius: 3px;
  padding: 5px 6px;
  min-width: 0;
}
.campo:hover { border-color: #6a7296; }
.campo:focus { border-color: var(--contrato-claro); outline: none; box-shadow: 0 0 0 2px rgba(155,107,245,.35); }
.campo.invalido { border-color: #ff6b81; }
textarea.campo { resize: vertical; min-height: 54px; font-size: 12.5px; line-height: 1.35; }
input[type="date"].campo { color-scheme: dark; min-width: 130px; }
input[type="number"].campo { text-align: right; }
.grupo { display: flex; gap: 4px; align-items: center; }
.grupo select.campo { width: 64px; flex-shrink: 0; }
.grupo input[type="number"].campo { width: 100px; }
.grupo-uso { display: grid; grid-template-columns: 64px auto 64px; gap: 4px; align-items: center; }
.grupo-uso .de { color: var(--texto-suave); font-size: 12px; }
.grupo-uso .unidade { grid-column: 1 / -1; }
.c-fornecedor .campo { min-width: 130px; }
.c-produto .campo { min-width: 190px; }
select.campo[data-campo="tipo"] { min-width: 108px; }
.dias .campo { width: 64px; }

.excluir {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--texto-suave);
  padding: 4px 8px;
  cursor: pointer;
}
.excluir:hover { color: #ffb3bd; border-color: #7a3a48; }

.painel__rodape {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px;
  border-top: 1px solid var(--linha);
  background: var(--cabecalho);
}
.botao-adicionar {
  background: var(--contrato-claro);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.botao-adicionar:hover { background: #8656ec; }
.dica { font-size: 12px; color: var(--texto-suave); }

.vazio { text-align: center; color: var(--texto-suave); padding: 32px 12px; margin: 0; }
.vazio button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; }

.aviso-flutuante {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--marinho);
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  font-weight: 600;
  z-index: 10;
}
.aviso-flutuante.erro { background: var(--critico-fundo); color: var(--critico-texto); }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topo { padding: 14px 16px 0; }
  .conteudo { padding: 16px; }
  .kpis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tabela tbody tr.destaque td { animation: none; }
}

/* ---------------------------------------------------------------- menus de filtro e ordenação */
.menu { position: relative; }
.menu__botao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fundo-tabela);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.menu__botao:hover, .menu__botao[aria-expanded="true"] { border-color: #7c84a6; }
.menu__botao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu__botao.ativo { border-color: var(--contrato-claro); color: #fff; }
.contador {
  background: var(--contrato-claro);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  padding: 1px 6px;
  text-align: center;
}
.menu__painel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 290px;
  background: #fff;
  color: #1b2236;
  border-radius: 6px;
  border: 2px solid #34394e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  padding: 6px;
  text-align: left;
}
.menu__painel--filtro { min-width: 320px; padding: 10px 12px; }
.menu__grupo { padding: 6px 0; border-bottom: 1px solid #e3e6ee; }
.menu__grupo:last-of-type { border-bottom: 0; }
.menu__grupo-titulo { font-size: 11.5px; font-weight: 700; color: #6a7190; margin: 0 0 4px; }
.menu__check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.menu__check:hover { background: #f0f2f7; }
.menu__check input { accent-color: var(--contrato); width: 15px; height: 15px; margin: 0; flex: 0 0 auto; }
.menu__check .qtd { margin-left: auto; padding-left: 16px; color: #8a90a8; font-size: 12px; }
.menu__check.principal { font-size: 14.5px; font-weight: 700; color: #1b2236; padding-top: 6px; }
.menu__check.principal input { width: 16px; height: 16px; }
.menu__arvore + .menu__arvore { margin-top: 4px; }
.menu__subs { margin-left: 13px; padding-left: 12px; border-left: 1.5px solid #c9cedc; }
.menu__subs .menu__check { position: relative; font-size: 12.5px; color: #3c4360; }
.menu__subs .menu__check::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 9px;
  border-top: 1.5px solid #c9cedc;
}
.menu__rodape { display: flex; justify-content: flex-end; padding-top: 8px; }
.menu__limpar { background: none; border: 0; color: var(--contrato); font-weight: 600; cursor: pointer; padding: 4px; }
.menu__opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  color: #1b2236;
  font-size: 13px;
}
.menu__opcao:hover { background: #f0f2f7; }
.menu__opcao[aria-selected="true"] { background: #ece6fe; font-weight: 600; }
.menu__opcao::before { content: ""; display: inline-block; width: 12px; flex-shrink: 0; }
.menu__opcao[aria-selected="true"]::before { content: "✓"; color: var(--contrato); }
#painelOrdem { min-width: 360px; }
#painelOrdem .menu__opcao span:first-child { white-space: nowrap; }
.menu__padrao { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--creditos); background: #e0f5ea; border-radius: 999px; padding: 1px 8px; }
.menu__separador { height: 1px; background: #e3e6ee; margin: 4px 6px; }

/* ---------------------------------------------------------------- marcador de origem A/M */
.tabela th.col-origem, .tabela td.c-origem { width: 56px; padding: 4px 6px; }
.origem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
  padding: 0;
  line-height: 1;
}
.origem.A { color: #4fd8c4; }
.origem.M { color: #8cc8ff; }
button.origem { cursor: pointer; }
button.origem:hover { background: rgba(255, 255, 255, .08); }
.origem { position: relative; cursor: default; }
.origem::after {
  content: attr(data-rotulo);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #1b2236;
  border: 1.5px solid #34394e;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.origem:hover::after, .origem:focus-visible::after { opacity: 1; }

@media (max-width: 900px) {
  .topo { grid-template-columns: 1fr; grid-template-areas: "logo" "titulo" "nav"; row-gap: 12px; }
  .topo__logo { justify-self: start; }
  .topo__titulo { justify-self: center; }
  .topo__titulo h1 { font-size: 34px; }
}

/* ---------------------------------------------------------------- página Licenças de clientes */
.kpi__chip.neutro { background: #3a4060; color: #c9d1e3; }
.kpi__valor { padding: 14px 14px 0; font-family: var(--fonte-titulo); font-size: 26px; font-weight: 700; color: #fff; }

.plano {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}
.plano--basic { color: #8cc8ff; }
.plano--standard { color: #b79cf8; }
.plano--enterprise { color: #4fd8c4; }
.kpi__chip.plano { padding: 3px 10px; border-width: 1.5px; border-color: currentColor; background: transparent; }
.kpi__chip.plano b { color: #fff; }
.kpi__chip.plano.selecionado { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 2px currentColor; }
.c-licenca { min-width: 150px; }
.licenca__det { font-size: 12px; color: var(--texto-suave); margin-top: 4px; white-space: nowrap; }
.grupo-licenca { display: grid; gap: 4px; min-width: 150px; }
.grupo-licenca label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--texto-suave); }
.grupo-licenca label .campo { width: 64px; flex: 0 0 auto; }
.menu__vazio { font-size: 12.5px; color: #8a90a8; margin: 4px 6px; }
.tabela--licencas { min-width: 1200px; }

/* ---------------------------------------------------------------- licenças: abas, novos status e arquivados */
.kpis--3 { grid-template-columns: minmax(200px, 0.8fr) minmax(320px, 1.5fr) minmax(240px, 1fr); }

:root {
  --proximo-fundo: #ffb889; --proximo-texto: #7a2e00;
  --grace-fundo: #e2d3ff;   --grace-texto: #4a1d9e;
}
.status.proximo { background: var(--proximo-fundo); color: var(--proximo-texto); }
.status.grace { background: var(--grace-fundo); color: var(--grace-texto); }
.status.arquivado { background: #3a4060; color: #c9d1e3; font-weight: 600; }
.kpi__chip.proximo { background: var(--proximo-fundo); color: var(--proximo-texto); }
.kpi__chip.grace { background: var(--grace-fundo); color: var(--grace-texto); }
.alertas button.proximo { background: var(--proximo-fundo); color: var(--proximo-texto); }
.alertas button.grace { background: var(--grace-fundo); color: var(--grace-texto); }

.abas-tabela {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 1760px;
  margin: 4px auto -16px;
}
.abas-tabela button {
  background: var(--ardosia-escura);
  color: var(--texto-suave);
  border: 1px solid var(--linha);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.abas-tabela button:hover { color: #fff; }
.abas-tabela button[aria-selected="true"] {
  background: var(--cabecalho);
  color: #fff;
  box-shadow: inset 0 3px 0 var(--contrato-claro);
}
.abas-tabela button[data-aba="knime"][aria-selected="true"] { box-shadow: inset 0 3px 0 #fdd800; }
.abas-tabela__qtd {
  display: inline-block;
  min-width: 22px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
}
.painel--com-abas .painel__barra { border-radius: 6px 6px 0 0; }

.tabela tbody tr.arquivada td { opacity: .55; }
.c-arquivar { text-align: center; }
.arquivar { display: inline-flex; padding: 6px; cursor: pointer; }
.arquivar input { width: 17px; height: 17px; accent-color: var(--contrato-claro); cursor: pointer; }

/* ---------------------------------------------------------------- softwares: colunas de data e consumo */
.tabela th.col-data { width: 128px; min-width: 128px; }
.uso__saldo { font-size: 11.5px; color: var(--texto-suave); margin-top: 3px; }

/* ---------------------------------------------------------------- página Computadores */
.tabela--computadores { min-width: 1450px; }
/* rolagem lateral só na Edição ou em telas estreitas, para o cabeçalho fixo funcionar (regras gerais) */
.tabela--computadores td { font-size: 13px; }
.c-host, .c-serie { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 12.5px !important; }
.c-host { white-space: nowrap; }
.c-serie { word-break: break-all; min-width: 125px; max-width: 150px; }
.c-usuario { min-width: 130px; }

/* seletor de versões (canto superior esquerdo da tabela) */
.menu__botao--versao { background: var(--contrato); border-color: #5a3fd0; color: #fff; }
.menu__botao--versao:hover, .menu__botao--versao[aria-expanded="true"] { border-color: #b79cf8; }
.menu__botao--versao .seta { width: 14px; height: 14px; }
.versao__atual { background: var(--ok-fundo); color: var(--ok-texto); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; margin-left: 2px; }
.menu__painel--versoes { min-width: 380px; max-height: 70vh; overflow-y: auto; padding: 4px 14px 10px; }
.versoes__ano { display: flex; justify-content: center; padding: 12px 0 6px; border-bottom: 3px solid var(--marinho); margin-bottom: 6px; }
.versoes__ano span { font-family: var(--fonte-titulo); font-size: 24px; font-weight: 800; color: var(--marinho); line-height: 1; }
.versoes__item { display: flex; align-items: baseline; gap: 6px; width: 100%; background: none; border: 0; border-radius: 4px; padding: 6px 8px; text-align: left; color: #1b2236; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.versoes__item:hover { background: #f0f2f7; }
.versoes__item[aria-selected="true"] { background: #ece6fe; font-weight: 600; }
.versoes__qtd { margin-left: auto; padding-left: 16px; font-size: 11.5px; color: #8a90a8; font-weight: 400; }
.versoes__acoes { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid #e3e6ee; margin-top: 10px; padding-top: 10px; }
.versoes__acoes button { border: 1px solid #c9cedc; background: #fff; color: #1b2236; border-radius: 4px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.versoes__acoes button:first-child { background: var(--contrato); border-color: var(--contrato); color: #fff; }
.versoes__acoes button.perigo { color: #b0122a; border-color: #f0b4bd; margin-left: auto; }
.versoes__acoes button:disabled { opacity: .45; cursor: not-allowed; }

.faixa-versao {
  width: 100%; max-width: 1760px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #3d3566; border-left: 4px solid #b79cf8; border-radius: 4px; padding: 9px 14px;
}
.faixa-versao button { background: #fff; color: var(--marinho); border: 0; border-radius: 4px; padding: 4px 10px; font-weight: 600; cursor: pointer; margin-left: auto; }

/* interruptor e legenda de mudanças */
.interruptor { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texto-suave); cursor: pointer; white-space: nowrap; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor__trilho { width: 32px; height: 18px; border-radius: 999px; background: #3a4060; position: relative; transition: background .15s; }
.interruptor__trilho::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #c9d1e3; transition: transform .15s; }
.interruptor input:checked + .interruptor__trilho { background: var(--contrato-claro); }
.interruptor input:checked + .interruptor__trilho::after { transform: translateX(14px); background: #fff; }
.interruptor input:focus-visible + .interruptor__trilho { outline: 2px solid #ffd76a; outline-offset: 2px; }
.legenda { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 12px; font-size: 12.5px; background: #20273b; border-bottom: 1px solid var(--linha); }
.legenda__item { padding: 1px 8px; border-radius: 3px; }
.legenda__dica { color: var(--texto-suave); }

:root { --mud-adicao: rgba(46, 204, 113, .26); --mud-remocao: rgba(231, 76, 94, .30); --mud-troca: rgba(64, 140, 255, .30); }
.tabela td.mud-adicao, .legenda__item.mud-adicao, .spec.mud-adicao { background: var(--mud-adicao) !important; box-shadow: inset 3px 0 0 #2ecc71; }
.tabela td.mud-remocao, .legenda__item.mud-remocao, .spec.mud-remocao { background: var(--mud-remocao) !important; box-shadow: inset 3px 0 0 #e74c5e; }
.tabela td.mud-troca, .legenda__item.mud-troca, .spec.mud-troca { background: var(--mud-troca) !important; box-shadow: inset 3px 0 0 #408cff; }
.tabela tr.linha-nova td { background: var(--mud-adicao) !important; }
.tabela tr.linha-removida td { background: var(--mud-remocao) !important; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); opacity: .85; }
.tag-removido { display: inline-block; text-decoration: none; background: #e74c5e; color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 3px; padding: 0 5px; margin: 0 4px 3px 0; }
.spec.mud-adicao, .spec.mud-remocao, .spec.mud-troca { border-radius: 3px; padding-left: 4px; }

/* propriedade, status e usuário livre (cores da planilha) */
.dono { display: inline-block; padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.dono--hupdata { background: #232546; color: #fff; border: 1px solid #6b6fa8; }
.dono--caixa { background: #0070af; color: #fff; }
.dono--rabobank { background: #ffc000; color: #3d2c00; }
.dono--pessoal { background: #3a4060; color: #e8ecf5; }
.st { display: inline-block; padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 11.5px; line-height: 1.25; max-width: 170px; }
.st-em_uso { background: #00b050; color: #03240f; }
.st-sem_config { background: #ffc000; color: #3d2c00; }
.st-pronto { background: #92d050; color: #1d3608; }
.st-formatar { background: #f5ec4a; color: #3a3500; }
.st-outros { background: #3a4060; color: #e8ecf5; }
.kpi__chip.st-em_uso { background: #00b050; color: #03240f; }
.kpi__chip.st-sem_config { background: #ffc000; color: #3d2c00; }
.kpi__chip.st-pronto { background: #92d050; color: #1d3608; }
.kpi__chip.st-formatar { background: #f5ec4a; color: #3a3500; }
.kpi__chip.vago, .vago { background: #ffff00; color: #2e2e00; }
.vago { display: inline-block; padding: 2px 9px; border-radius: 4px; font-weight: 800; font-size: 12px; letter-spacing: .04em; }

/* especificações */
.c-specs { text-align: left !important; min-width: 200px; max-width: 250px; }
.spec { display: flex; gap: 8px; align-items: baseline; padding: 1px 0; }
.spec__rot { flex: 0 0 38px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--texto-apagado); text-transform: uppercase; }
.c-pilha { min-width: 150px; }
.c-pilha .campo + .campo, .spec-ed + .spec-ed { margin-top: 4px; }
.spec-ed { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 6px; }
.spec-ed span { font-size: 10.5px; font-weight: 700; color: var(--texto-apagado); }
.c-specs-ed { min-width: 230px; }

/* chave do Windows */
.chave { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chave__mascara { font-family: Consolas, ui-monospace, monospace; color: var(--texto-suave); letter-spacing: .05em; }
.chave__ver { background: none; border: 1px solid var(--linha); border-radius: 4px; padding: 3px 5px; cursor: pointer; color: var(--texto-suave); display: inline-flex; flex-shrink: 0; }
.chave__ver:hover { color: #fff; border-color: #7c84a6; }
.chave__ver svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.campo--chave { min-width: 150px; font-family: Consolas, ui-monospace, monospace; }
.balao-chave {
  position: absolute; z-index: 30; display: flex; align-items: center; gap: 10px;
  background: #fff; color: #1b2236; border: 2px solid #34394e; border-radius: 6px;
  padding: 8px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.balao-chave code { font-family: Consolas, ui-monospace, monospace; font-size: 14px; font-weight: 700; user-select: all; }
.balao-chave button { background: var(--contrato); color: #fff; border: 0; border-radius: 4px; padding: 4px 10px; font-weight: 600; cursor: pointer; }

/* janela de confirmação */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(8, 12, 22, .65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__caixa { background: #fff; color: #1b2236; border-radius: 8px; border-top: 5px solid var(--contrato); width: min(480px, 100%); padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.modal__titulo { margin: 0 0 10px; font-size: 19px; font-family: var(--fonte-titulo); }
.modal__corpo p { margin: 0 0 10px; line-height: 1.45; font-size: 14px; }
.modal__campo { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.modal__campo input { border: 1px solid #c9cedc; border-radius: 4px; padding: 7px 9px; font-size: 14px; color: #1b2236; width: 200px; }
.modal__acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal__botao { border: 0; border-radius: 4px; padding: 8px 16px; font-weight: 700; cursor: pointer; background: var(--contrato); color: #fff; }
.modal__botao.secundario { background: #eef0f5; color: #1b2236; }
.modal__botao.perigo { background: #c8102e; }
/* larguras dos campos no modo Edição de Computadores */
body.edicao .tabela--computadores { min-width: 2050px; }
.tabela--computadores [data-campo="propriedade"] { min-width: 100px; }
.tabela--computadores [data-campo="status"] { min-width: 200px; }
.tabela--computadores [data-campo="patrimonio"] { min-width: 60px; }
.tabela--computadores [data-campo="hostname"] { min-width: 140px; }
.tabela--computadores [data-campo="departamento"] { min-width: 130px; }
.tabela--computadores [data-campo="usuario"] { min-width: 170px; }
.tabela--computadores [data-campo="numero_serie"] { min-width: 190px; }
.tabela--computadores [data-campo="marca"], .tabela--computadores [data-campo="modelo"] { min-width: 150px; }
.tabela--computadores .c-specs-ed .campo { min-width: 190px; }
.tabela--computadores textarea.campo { min-width: 200px; }

/* ---------------------------------------------------------------- Computadores: grafite técnico */
.painel--grafite {
  --tq: #2dd4bf;            /* turquesa de destaque */
  --tq-claro: #5eead4;
  --tq-escuro: #04342c;
  --gf-fundo: #15181e;      /* linhas */
  --gf-fundo-alt: #181c23;  /* linhas alternadas */
  --gf-barra: #1b1f27;      /* barra de ferramentas */
  --gf-hover: #1f2530;
  --gf-linha: #262c36;      /* bordas */
  --gf-texto: #e2e8f0;
  --gf-suave: #94a3b8;
  --gf-apagado: #64748b;
  background: var(--gf-fundo);
  border: 1px solid #2a2f38;
  border-top: 3px solid var(--tq);
  border-radius: 8px;
}
.painel--grafite .painel__barra { background: var(--gf-barra); border-bottom-color: #2a2f38; border-radius: 5px 5px 0 0; }
.painel--grafite .legenda { background: var(--gf-fundo-alt); border-bottom-color: var(--gf-linha); color: var(--gf-texto); }
.painel--grafite .legenda__dica, .painel--grafite .salvamento, .painel--grafite .interruptor { color: var(--gf-suave); }
.painel--grafite .tabela-rolagem { border-radius: 0 0 7px 7px; }

/* barra: versão, busca, menus e abas */
.painel--grafite .menu__botao--versao { background: transparent; border: 1px solid var(--tq); color: var(--tq-claro); }
.painel--grafite .menu__botao--versao:hover, .painel--grafite .menu__botao--versao[aria-expanded="true"] { background: rgba(45, 212, 191, .12); border-color: var(--tq-claro); }
.painel--grafite .menu__botao--versao .versao__atual { background: var(--tq); color: var(--tq-escuro); }
.painel--grafite #busca, .painel--grafite .menu__botao:not(.menu__botao--versao) { background: var(--gf-fundo); border-color: #2a2f38; color: #cbd5e1; }
.painel--grafite #busca::placeholder { color: var(--gf-apagado); }
.painel--grafite .menu__botao:not(.menu__botao--versao):hover,
.painel--grafite .menu__botao.ativo:not(.menu__botao--versao),
.painel--grafite .menu__botao[aria-expanded="true"]:not(.menu__botao--versao) { border-color: var(--tq); }
.painel--grafite .contador { background: var(--tq); color: var(--tq-escuro); }
.painel--grafite .abas { background: var(--gf-fundo); border-color: #2a2f38; }
.painel--grafite .abas button { color: var(--gf-suave); }
.painel--grafite .abas button[aria-selected="true"],
body.edicao .painel--grafite .abas button[aria-selected="true"] { background: var(--tq); color: var(--tq-escuro); }
.painel--grafite .interruptor__trilho { background: #2a2f38; }
.painel--grafite .interruptor input:checked + .interruptor__trilho { background: var(--tq); }

/* tabela */
.painel--grafite .tabela th { background: var(--gf-fundo); color: var(--tq-claro); border-right-color: var(--gf-linha); border-bottom: 1px solid #2a2f38; }
.painel--grafite .tabela td { background: var(--gf-fundo); color: var(--gf-texto); border-color: var(--gf-linha); }
.painel--grafite .tabela tbody tr:nth-child(even) td { background: var(--gf-fundo-alt); }
.painel--grafite .tabela tbody tr:hover td { background: var(--gf-hover); }
.painel--grafite .tabela tbody tr.destaque td { animation: destaque-grafite 1.6s ease-out; }
@keyframes destaque-grafite { from { background: #134e4a; } }
.painel--grafite .tabela td.c-host { color: var(--tq-claro); }
.painel--grafite .tabela td.c-serie { color: #cbd5e1; }
.painel--grafite .spec { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 12px; color: #cbd5e1; }
.painel--grafite .spec__rot { font-family: var(--fonte); }
.painel--grafite .tabela td.c-obs { color: #cbd5e1; }
.painel--grafite .na, .painel--grafite .spec__rot, .painel--grafite .spec-ed span { color: var(--gf-apagado); }
.painel--grafite .chave__mascara { color: var(--gf-suave); }
.painel--grafite .chave__ver { border-color: #2f3540; color: var(--gf-suave); }
.painel--grafite .chave__ver:hover { border-color: var(--tq); color: var(--tq-claro); }
.painel--grafite .vazio { color: var(--gf-suave); }
.painel--grafite .vazio button { color: var(--tq-claro); }

/* etiqueta patrimonial */
.c-pat { text-align: center; }
.plaqueta {
  display: inline-block; min-width: 34px; padding: 1px 8px; border-radius: 4px;
  border: 1px solid var(--tq, #2dd4bf); color: var(--tq-claro, #5eead4);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 700;
}

/* cor do status na lateral da linha: barra arredondada, com espaço entre uma linha e outra */
.painel--grafite .tabela tbody tr td:first-child { position: relative; padding-left: 18px; }
.painel--grafite .tabela tbody tr td:first-child::before {
  content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 5px; border-radius: 999px; background: transparent;
}
.painel--grafite .tabela tbody tr.faixa-em_uso td:first-child::before { background: #00b050; }
.painel--grafite .tabela tbody tr.faixa-sem_config td:first-child::before { background: #ffc000; }
.painel--grafite .tabela tbody tr.faixa-pronto td:first-child::before { background: #92d050; }
.painel--grafite .tabela tbody tr.faixa-formatar td:first-child::before { background: #f5ec4a; }
.painel--grafite .tabela tbody tr.faixa-outros td:first-child::before { background: #64748b; }

/* modo edição */
.painel--grafite .campo { background: #10131a; border-color: #2f3540; color: var(--gf-texto); }
.painel--grafite .campo::placeholder { color: #566275; }
.painel--grafite .campo:hover { border-color: #475266; }
.painel--grafite .campo:focus { border-color: var(--tq); box-shadow: 0 0 0 2px rgba(45, 212, 191, .3); }
.painel--grafite .painel__rodape { background: var(--gf-barra); border-top-color: #2a2f38; border-radius: 0 0 7px 7px; }
.painel--grafite .dica { color: var(--gf-suave); }
.painel--grafite .botao-adicionar { background: var(--tq); color: var(--tq-escuro); }
.painel--grafite .botao-adicionar:hover { background: var(--tq-claro); }

/* lista de versões (balão branco) */
.versoes__item[aria-selected="true"] { background: #ccfbf1; }
.versoes__acoes button:first-child { background: #0f766e; border-color: #0f766e; color: #fff; }

.topo__versao { margin-left: auto; align-self: center; font-size: 11px; color: var(--texto-apagado); padding-bottom: 4px; }

/* ---------------------------------------------------------------- Computadores: KPIs e botão do histórico */
.kpi--turquesa .kpi__topo { background: #1c9989; color: #fff; }
.kpi--ambar .kpi__topo { background: #f2b600; color: #3d2c00; }
.painel--grafite .menu__botao--versao {
  background: #2dd4bf; border: 0; color: #04342c; border-radius: 10px;
  padding: 7px 14px; gap: 10px; min-width: 250px;
}
.painel--grafite .menu__botao--versao:hover, .painel--grafite .menu__botao--versao[aria-expanded="true"] {
  background: #5eead4; box-shadow: 0 0 0 2px rgba(94, 234, 212, .35);
}
.painel--grafite .menu__botao--versao .relogio { width: 30px; height: 30px; stroke-width: 2.2; color: #fff; stroke: #fff; filter: drop-shadow(0 1px 1px rgba(4, 52, 44, .45)); }
.versao__rotulo { display: flex; flex-direction: column; align-items: center; flex: 1; line-height: 1.2; }
.versao__titulo {
  font-family: var(--fonte-titulo); font-size: 18.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(4, 52, 44, .55);
  padding-bottom: 3px; margin-bottom: 3px; border-bottom: 2px solid rgba(255, 255, 255, .75);
}
.versao__periodo { font-size: 13px; font-weight: 700; white-space: nowrap; }
.painel--grafite .menu__botao--versao .versao__atual { background: #04342c; color: #5eead4; }
.painel--grafite .menu__botao--versao .seta { width: 16px; height: 16px; }

/* KPIs: barra colorida do topo com a mesma altura em todos os cartões */
.kpi__topo { min-height: 50px; align-items: center; }

/* destaque de mudanças só com a cor de fundo, sem a barra lateral */
.tabela td.mud-adicao, .tabela td.mud-remocao, .tabela td.mud-troca,
.spec.mud-adicao, .spec.mud-remocao, .spec.mud-troca,
.legenda__item.mud-adicao, .legenda__item.mud-remocao, .legenda__item.mud-troca,
.painel--grafite .tabela td.mud-adicao, .painel--grafite .tabela td.mud-remocao, .painel--grafite .tabela td.mud-troca,
.painel--grafite .spec.mud-adicao, .painel--grafite .spec.mud-remocao, .painel--grafite .spec.mud-troca { box-shadow: none; }

/* ---------------------------------------------------------------- Computadores: limite de 4 linhas com "Ver mais" */
.tabela--computadores .celula { max-height: 66px; overflow: hidden; }
.tabela--computadores tr.expandida .celula { max-height: none; }
/* com o botão, a célula mostra 3 linhas: texto + botão ocupam a mesma altura das 4 linhas */
.tabela--computadores .celula.cortada { max-height: 46px; }
.tabela--computadores .celula.cortada {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.ver-mais {
  display: block; margin: 1px auto 0; background: none; cursor: pointer; line-height: 1.25;
  border: 1px solid #2dd4bf; color: #5eead4; border-radius: 999px; font-size: 11.5px; font-weight: 600; padding: 1px 12px;
}
.ver-mais:hover { background: rgba(45, 212, 191, .15); }

/* ---------------------------------------------------------------- página Patrimônio */
.kpis--patrimonio { grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 2fr); }
.aviso-inventario { flex-direction: row; gap: 14px; align-items: center; padding: 14px 18px; border-left: 4px solid #2dd4bf; border-radius: 0 6px 6px 0; }
.aviso-inventario svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: #5eead4; stroke-width: 2; stroke-linecap: round; }
.aviso-inventario p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--texto-suave); }
.aviso-inventario .aviso-inventario__titulo { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.aviso-inventario a { color: #5eead4; }
.abas-tabela--turquesa button[aria-selected="true"] { background: #1b1f27; box-shadow: inset 0 3px 0 #2dd4bf; }
.abas-tabela--turquesa + .painel--grafite { border-top-width: 1px; }
.tabela--patrimonio { min-width: 1000px; }
.tabela--patrimonio .c-local { min-width: 170px; }
.tabela--patrimonio .c-desc { text-align: left; min-width: 220px; }
.painel--grafite .tabela td.c-fone { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; color: var(--tq-claro); white-space: nowrap; }
.c-equip { text-align: left !important; min-width: 240px; }
.c-equip b { color: #fff; }
.c-equip__serie { margin-top: 2px; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--gf-suave, #94a3b8); }
.plaqueta--repetida { border-color: #f05c68 !important; color: #ffb3bd !important; }
.cat { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cat--computador { color: #5eead4; }
.cat--celular { color: #93c5fd; }
.cat--monitor { color: #c4b5fd; }
.cat--periferico { color: #fcd34d; }
.cat--mobiliario { color: #fda4af; }
.cat--outros { color: #94a3b8; }
/* barra lateral com a cor da categoria */
.painel--grafite .tabela tbody tr.faixa-cat-computador td:first-child::before { background: #5eead4; }
.painel--grafite .tabela tbody tr.faixa-cat-celular td:first-child::before { background: #93c5fd; }
.painel--grafite .tabela tbody tr.faixa-cat-monitor td:first-child::before { background: #c4b5fd; }
.painel--grafite .tabela tbody tr.faixa-cat-periferico td:first-child::before { background: #fcd34d; }
.painel--grafite .tabela tbody tr.faixa-cat-mobiliario td:first-child::before { background: #fda4af; }
.painel--grafite .tabela tbody tr.faixa-cat-outros td:first-child::before { background: #64748b; }
.tabela--patrimonio .c-pilha .campo { min-width: 200px; }
.tabela--patrimonio [data-campo="patrimonio"] { width: 70px; }

/* logo com fundo transparente direto no cabeçalho */
.topo__logo { background: none; padding: 0; border-radius: 0; }

/* Patrimônio: equipamentos inativos */
.tabela tbody tr.inativa td { opacity: .5; }
.tabela tbody tr.inativa td:first-child { opacity: .85; }
.tag-inativo {
  display: block; width: fit-content; margin: 4px auto 0; padding: 0 7px; border-radius: 3px;
  background: #3a4252; color: #cbd5e1; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
}

/* ---------------------------------------------------------------- exportar, PDF e copiar linhas (todas as páginas) */
.menu--exportar { position: relative; }
.botao-exportar { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
.botao-exportar svg { width: 20px !important; height: 20px !important; }
.menu__painel--exportar { left: auto; right: 0; min-width: 240px; }
.menu__painel--exportar .menu__opcao::before { display: none; }
.menu__painel--exportar .menu__opcao svg { width: 18px; height: 18px; fill: none; stroke: #4c5671; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.menu__painel--exportar .menu__opcao { gap: 10px; font-weight: 600; }

/* modo de seleção para copiar */
.tabela .col-selecao { width: 42px; min-width: 42px; text-align: center; padding: 4px !important; }
.tabela .col-selecao input { width: 17px; height: 17px; cursor: pointer; accent-color: #2dd4bf; }
body.copiando .tabela tbody tr { cursor: pointer; }
.tabela tbody tr.selecionada td { box-shadow: inset 0 0 0 9999px rgba(45, 212, 191, .16); }
.barra-copia {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px;
  background: #10192a; border: 2px solid #2dd4bf; border-radius: 999px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}
.barra-copia__texto { color: #e2e8f0; font-weight: 600; font-size: 14px; white-space: nowrap; }
.barra-copia button { border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.barra-copia__cancelar { background: #2a3248; color: #cbd5e1; }
.barra-copia__copiar { background: #2dd4bf; color: #04342c; font-size: 15px; padding: 9px 26px !important; }
.barra-copia__copiar:disabled { opacity: .45; cursor: not-allowed; }

/* cabeçalho que só aparece no PDF */
.cabecalho-impressao { display: none; }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 10px; }
  .topo, .painel__barra, .legenda, .faixa-versao, .painel__rodape, .so-edicao, .abas-tabela,
  .ver-mais, .chave__ver, .barra-copia, .modal, .aviso-flutuante, .menu__painel,
  .balao-chave, #vazio[hidden] { display: none !important; }
  .cabecalho-impressao {
    display: flex !important; justify-content: space-between; align-items: center;
    border-bottom: 3px solid #1b2236; padding-bottom: 8px; margin-bottom: 10px;
  }
  .cabecalho-impressao h1 { margin: 0; font-size: 26px; color: #10192a; font-family: var(--fonte-titulo); }
  .cabecalho-impressao h1 span { color: #6b46d6; }
  .cabecalho-impressao p { margin: 2px 0 0; font-size: 12px; color: #333; }
  .cabecalho-impressao__data { color: #666 !important; font-size: 10px !important; }
  .cabecalho-impressao img { height: 52px; }
  .conteudo { padding: 0 !important; gap: 10px !important; max-width: none !important; }
  .kpis, .alertas, .painel { max-width: none !important; width: 100% !important; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 8px !important; }
  .kpi, .aviso-inventario { background: #fff !important; border: 1px solid #c9cedc !important; break-inside: avoid; }
  .kpi__rodape, .aviso-inventario p { color: #333 !important; }
  .aviso-inventario .aviso-inventario__titulo { color: #111 !important; }
  .alertas { background: #f5f6fa !important; color: #111 !important; }
  .painel, .painel--grafite { background: #fff !important; border: 0 !important; box-shadow: none !important; }
  .tabela-rolagem { overflow: visible !important; background: #fff !important; }
  .tabela { min-width: 0 !important; width: 100% !important; font-size: 9px; }
  .tabela th { position: static !important; background: #1b2236 !important; color: #fff !important; font-size: 9px; padding: 5px 4px !important; }
  .tabela td { background: #fff !important; color: #111 !important; border-color: #c9cedc !important; padding: 4px !important; font-size: 9px !important; box-shadow: none !important; }
  .tabela tbody tr:nth-child(even) td { background: #f5f6fa !important; }
  .tabela tr { break-inside: avoid; }
  .tabela tr.linha-removida { display: none !important; }
  .celula { max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .plaqueta { color: #0f766e !important; border-color: #0f766e !important; }
  .cat, .plano { filter: brightness(.55); }
  .c-obs, .spec, .c-equip__serie, .chave__mascara { color: #222 !important; }
  .na { color: #999 !important; }
  .tabela tbody tr td:first-child::before { top: 3px !important; bottom: 3px !important; }
  .tabela tbody tr.inativa td, .tabela tbody tr.arquivada td { opacity: .6; }
  .c-obs { max-width: none !important; }
  .c-equip b { color: #111 !important; }
  .c-equip__serie, .spec, .c-host, .c-serie, .c-fone { font-size: 8.5px !important; }
  .plaqueta, .cat, .plano, .st, .status, .tipo, .dono, .vago, .tag-inativo { font-size: 8.5px !important; padding: 1px 5px !important; }
  .kpi__total { font-size: 20px !important; }
  .kpi__link, .kpi__rodape strong, .kpi__valor { color: #111 !important; }
  .licenca__det, .uso__saldo { font-size: 8.5px !important; color: #333 !important; }
  .alertas button { font-size: 8.5px !important; }
  .aviso-inventario p { font-size: 10px !important; }
  .aviso-inventario a { color: #0f766e !important; }
}
body.copiando .aviso-flutuante { bottom: 92px; }

/* ---------------------------------------------------------------- Softwares: coluna Área */
.origem.area--suporte { color: #2dd4bf; }
.origem.area--desenvolvimento { color: #b79cf8; }
.origem.area--marketing { color: #f9a8d4; }
.origem.area--comercial { color: #7cb8ff; }
.origem.area--financeiro { color: #86efac; }
.origem.area--rhadm { color: #fcd34d; }
.campo--area { min-width: 140px; font-weight: 600; }
.campo--area.area--suporte { color: #2dd4bf; }
.campo--area.area--desenvolvimento { color: #b79cf8; }
.campo--area.area--marketing { color: #f9a8d4; }
.campo--area.area--comercial { color: #7cb8ff; }
.campo--area.area--financeiro { color: #86efac; }
.campo--area.area--rhadm { color: #fcd34d; }
.campo--area option { color: var(--texto); background: #1c2133; }
.tabela th.col-origem, .tabela td.c-origem { width: auto; }

/* ---------------------------------------------------------------- v0.6.0: cabeçalho, menu do usuário e rodapé */
body { display: flex; flex-direction: column; min-height: 100vh; }
.conteudo { flex: 1 0 auto; width: 100%; }
.topo__logo { grid-area: logo; justify-self: start; }
.topo__logo img { height: 50px !important; }
.topo__nav { align-items: flex-end; }
.topo__externo { display: inline-flex; align-items: center; gap: 5px; }
.topo__externo svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.usuario { grid-area: usuario; justify-self: end; position: relative; }
.usuario__avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #9c897c; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--fonte);
}
.usuario__avatar:hover, .usuario__avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(156, 137, 124, .45); }
.usuario__avatar--mini { width: 26px; height: 26px; font-size: 10.5px; cursor: default; }
.usuario__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 250px;
  background: #fff; color: #1b2236; border-radius: 8px; padding: 6px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}
.usuario__cabecalho { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; font-weight: 600; border-bottom: 1px solid #e3e6ee; margin-bottom: 4px; }
.usuario__opcao { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: #1b2236; text-decoration: none; font-size: 14px; }
.usuario__opcao:hover, .usuario__opcao.ativo { background: #f0ece9; }
.usuario__opcao svg { width: 18px; height: 18px; fill: none; stroke: #6b5d53; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.usuario__separador { height: 1px; background: #e3e6ee; margin: 4px 2px; }

.rodape {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #10192a; color: #a4acc2; font-size: 12.5px; padding: 8px 28px; margin-top: 24px;
  border-top: 1px solid #26304a;
}
.rodape__marca { display: flex; align-items: center; gap: 10px; color: #e8ecf5; font-weight: 600; }
.rodape__marca img { width: 24px; height: 24px; border-radius: 4px; display: block; }
.rodape__versao { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .topo { grid-template-columns: auto 1fr auto; grid-template-areas: "logo titulo usuario" "nav nav nav"; }
  .topo__titulo h1 { font-size: 28px; }
}
@media print { .rodape, .usuario { display: none !important; } }

/* ---------------------------------------------------------------- Servidores: identidade laranja (OCI) */
.kpi--laranja .kpi__topo { background: #f2711c; color: #2a1200; }
.abas-tabela--laranja button[aria-selected="true"] { background: #24201d; box-shadow: inset 0 3px 0 #f2711c; }
.painel--oci {
  --lj: #f2711c; --lj-claro: #ff9a52; --lj-escuro: #2a1200;
  --oc-fundo: #1c1a19; --oc-fundo-alt: #211e1c; --oc-barra: #24201d; --oc-hover: #2b2622;
  --oc-linha: #3a332d; --oc-texto: #f1ebe6; --oc-suave: #b8aaa0; --oc-apagado: #85776d;
  background: var(--oc-fundo); border: 1px solid #3a332d; border-top: 3px solid var(--lj); border-radius: 8px;
}
.painel--oci .painel__barra { background: var(--oc-barra); border-bottom-color: var(--oc-linha); border-radius: 5px 5px 0 0; }
.painel--oci .salvamento, .painel--oci .dica { color: var(--oc-suave); }
.painel--oci #busca, .painel--oci .menu__botao { background: var(--oc-fundo); border-color: var(--oc-linha); color: #eadfd7; }
.painel--oci #busca::placeholder { color: var(--oc-apagado); }
.painel--oci .menu__botao:hover, .painel--oci .menu__botao.ativo, .painel--oci .menu__botao[aria-expanded="true"] { border-color: var(--lj); }
.painel--oci .contador { background: var(--lj); color: var(--lj-escuro); }
.painel--oci .abas { background: var(--oc-fundo); border-color: var(--oc-linha); }
.painel--oci .abas button { color: var(--oc-suave); }
.painel--oci .abas button[aria-selected="true"], body.edicao .painel--oci .abas button[aria-selected="true"] { background: var(--lj); color: var(--lj-escuro); }
.painel--oci .tabela th { background: var(--oc-fundo); color: var(--lj-claro); border-right-color: var(--oc-linha); border-bottom: 1px solid var(--oc-linha); }
.painel--oci .tabela td { background: var(--oc-fundo); color: var(--oc-texto); border-color: #2e2924; }
.painel--oci .tabela tbody tr:nth-child(even) td { background: var(--oc-fundo-alt); }
.painel--oci .tabela tbody tr:hover td { background: var(--oc-hover); }
.painel--oci .tabela td.c-obs { color: #e2d6cd; }
.painel--oci .na, .painel--oci .spec__rot, .painel--oci .spec-ed span { color: var(--oc-apagado); }
.painel--oci .campo { background: #161412; border-color: #4a4038; color: var(--oc-texto); }
.painel--oci .campo:focus { border-color: var(--lj); box-shadow: 0 0 0 2px rgba(242, 113, 28, .3); }
.painel--oci .painel__rodape { background: var(--oc-barra); border-top-color: var(--oc-linha); border-radius: 0 0 7px 7px; }
.painel--oci .botao-adicionar { background: var(--lj); color: var(--lj-escuro); }
.painel--oci .vazio { color: var(--oc-suave); }
.painel--oci .vazio a, .painel--oci .vazio button { color: var(--lj-claro); }
.painel--oci .spec { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 12px; color: #e2d6cd; }
.painel--oci .spec__rot { font-family: var(--fonte); flex: 0 0 52px; }
.tabela--servidores { min-width: 1100px; }
.tabela--servidores .c-srv-nome { text-align: left !important; min-width: 170px; }
.tabela--servidores .c-srv-nome b { color: #fff; font-size: 13.5px; }
.tabela--servidores .c-ip, .tabela--servidores .c-specs, .tabela--servidores .c-custo { text-align: left !important; }
.tabela--servidores .c-ip { min-width: 190px; }
.tabela--servidores .c-specs { min-width: 230px; }
.tabela--servidores .c-custo { min-width: 170px; }
.painel--oci .tabela td.c-ocid { font-family: Consolas, ui-monospace, monospace; font-size: 11px; word-break: break-all; max-width: 220px; color: var(--oc-suave); }
.tag-manual { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #3a332d; color: var(--oc-suave, #b8aaa0); font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.marca-oci { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; border: 1px solid #f2711c; color: #ff9a52; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.celula-oci { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; text-align: left; }
.campo--moeda { width: 80px; margin-bottom: 4px; }
.tabela--servidores .spec-ed { grid-template-columns: 52px 1fr; }
.tabela--servidores .spec-ed + .spec-ed { margin-top: 4px; }

.st-oci { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.st-oci::before { content: "●"; margin-right: 5px; font-size: 10px; }
.st-oci--ligado { background: #0f3d23; color: #4ade80; }
.st-oci--desligado { background: #34302d; color: #c9bfb7; }
.st-oci--transicao { background: #4a3708; color: #fcd34d; }
.st-oci--provisionando { background: #12305a; color: #93c5fd; }
.st-oci--removido { background: #4c1a1d; color: #fca5a5; }
.st-oci--neutro { background: transparent; color: #85776d; }
.st-oci--transicao::before, .st-oci--provisionando::before { animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .25; } }
.painel--oci .tabela tbody tr.faixa-oci-ligado td:first-child::before { background: #4ade80; }
.painel--oci .tabela tbody tr.faixa-oci-desligado td:first-child::before { background: #6b625b; }
.painel--oci .tabela tbody tr.faixa-oci-transicao td:first-child::before { background: #fcd34d; }
.painel--oci .tabela tbody tr.faixa-oci-provisionando td:first-child::before { background: #93c5fd; }
.painel--oci .tabela tbody tr.faixa-oci-removido td:first-child::before { background: #f87171; }
.painel--oci .tabela tbody tr td:first-child { position: relative; padding-left: 18px; }
.painel--oci .tabela tbody tr td:first-child::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 5px; border-radius: 999px; background: transparent; }

.ultima-atualizacao { font-size: 12px; color: var(--oc-suave, #b8aaa0); white-space: nowrap; }
.ultima-atualizacao.erro { color: #fca5a5; }
.botao-atualizar { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
.botao-atualizar svg { width: 19px !important; height: 19px !important; }
.botao-atualizar.girando svg { animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.aviso-oci { border-left-color: #f2711c; }
.aviso-oci svg { stroke: #ff9a52; }
.aviso-oci a { color: #ff9a52; }
.aviso-oci--erro { border-left-color: #f87171; background: #2c1d1f !important; }
.aviso-oci--erro svg { stroke: #fca5a5; }
.aviso-oci__botao { display: inline-block; margin-top: 8px; background: #f2711c; color: #2a1200 !important; font-weight: 700; text-decoration: none; padding: 6px 14px; border-radius: 4px; font-size: 13px; }

/* ---------------------------------------------------------------- Administração do sistema */
.admin { display: grid !important; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; max-width: 1240px; margin: 0 auto; }
.admin__lateral { position: sticky; top: 16px; background: #252a3e; border: 1px solid var(--linha); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin__lateral-titulo { margin: 4px 8px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-suave); }
.admin__lateral a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--texto); text-decoration: none; font-weight: 600; font-size: 14px; }
.admin__lateral a:hover { background: #2f3550; }
.admin__lateral a.ativo { background: #3b3f5c; box-shadow: inset 3px 0 0 #9c897c; }
.admin__lateral svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.admin__secao h2 { margin: 0 0 6px; font-family: var(--fonte-titulo); font-size: 24px; color: #fff; }
.admin__intro { margin: 0 0 16px; color: var(--texto-suave); line-height: 1.5; }
.admin__intro code, .admin__sobre code, .admin__passos code { background: #1c2133; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; word-break: break-all; }
.admin__cartao { background: #252a3e; border: 1px solid var(--linha); border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.admin__cartao h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.admin__ajuda { margin: 4px 0 12px; font-size: 13px; color: var(--texto-suave); }
.admin__grade { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px 16px; }
.admin__grade--3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.admin__grade label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #dfe4ef; }
.admin__grade small { font-weight: 400; color: var(--texto-suave); }
.admin__grade input { background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 8px 10px; color: var(--texto); font-family: Consolas, ui-monospace, monospace; font-size: 13px; }
.admin__grade input:focus { outline: none; border-color: #9c897c; box-shadow: 0 0 0 2px rgba(156, 137, 124, .35); }
.admin__senha { align-self: end; font-size: 13px; color: var(--texto-suave); padding-bottom: 8px; }
.admin__acoes { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.admin__botao { background: #9c897c; color: #fff; border: 0; border-radius: 5px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.admin__botao:hover { background: #ad9a8c; }
.admin__botao:disabled { opacity: .6; cursor: wait; }
.admin__botao--secundario { background: #3a4060; }
.admin__botao--perigo { background: #7a2530; }
.admin__link { background: none; border: 0; color: #e8c9b4; text-decoration: underline; cursor: pointer; padding: 0; }
.admin__situacao { display: flex; align-items: center; gap: 14px; }
.admin__situacao > div { flex: 1; }
.admin__situacao p { margin: 3px 0 0; font-size: 13px; color: var(--texto-suave); }
.admin__ponto { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: #6b7389; }
.admin__situacao--ok .admin__ponto { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.admin__situacao--erro .admin__ponto { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .2); }
.admin__alerta { color: #fcd34d !important; }
.admin__teste { margin: 14px 0 0; padding: 12px 14px 12px 32px; background: #1c2133; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.admin__teste .ok::marker { content: "✓  "; color: #4ade80; }
.admin__teste .erro::marker { content: "✕  "; color: #f87171; }
.admin__chave { margin: 4px 0; font-size: 14px; }
.admin__chave--ok::before { content: "🔒 "; }
.admin__passos summary { cursor: pointer; font-weight: 700; color: #fff; }
.admin__passos ol { margin: 12px 0 0; padding-left: 22px; line-height: 1.6; font-size: 13.5px; color: #dfe4ef; }
.admin__passos li { margin-bottom: 8px; }
.admin__passos pre { background: #1c2133; padding: 10px 12px; border-radius: 6px; overflow-x: auto; font-size: 12.5px; margin: 6px 0; }
.admin__sobre { display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.admin__sobre dt { color: var(--texto-suave); font-weight: 600; }
.admin__sobre dd { margin: 0; }
.admin__sobre small { color: var(--texto-suave); }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .admin__lateral { position: static; } .admin__grade, .admin__grade--3 { grid-template-columns: 1fr; } }

.celula-oci__conteudo { flex: 1; min-width: 0; }
.marca-oci { white-space: nowrap; flex-shrink: 0; }
body.edicao .tabela--servidores { min-width: 1500px; }
body.edicao .tabela--servidores .c-specs { min-width: 260px; }
body.edicao .tabela--servidores .c-ocid { min-width: 200px; }
.usuario__menu { min-width: 280px; } .usuario__opcao { white-space: nowrap; }

/* ---------------------------------------------------------------- Monitoramento OCI */
.kpis--4 { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
.pagina-monitor .kpi__valor { font-size: 24px; padding: 12px 14px 0; }
.pagina-monitor .kpi__rodape { padding-top: 6px; }
.sobe { color: #fca5a5; font-weight: 700; }
.desce { color: #86efac; font-weight: 700; }
.aviso-monitor { width: 100%; max-width: 1480px; margin: 0 auto; background: #2c1d1f; border-left: 4px solid #f87171; border-radius: 4px; padding: 10px 14px; font-size: 13px; }
.aviso-monitor p { margin: 0 0 4px; }
.aviso-monitor a { color: #ff9a52; font-weight: 700; }
.periodo { width: 100%; max-width: 1760px; margin: 0 auto -6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.periodo__titulo { color: #e8ecf5; font-weight: 700; margin-right: 4px; }
.periodo > button, .periodo__aplicar { background: #2a2f45; color: #e8ecf5; border: 1px solid #4b5272; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-weight: 600; }
.periodo > button[aria-pressed="true"] { background: #f2711c; border-color: #f2711c; color: #2a1200; }
.periodo__personalizado { display: inline-flex; align-items: center; gap: 6px; color: #e8ecf5; }
.periodo__personalizado input, .periodo__personalizado select { background: #1c2133; border: 1px solid #4b5272; color: #fff; border-radius: 4px; padding: 4px 6px; }
.periodo__personalizado input { width: 64px; }
.periodo__aplicar { background: #f2711c !important; color: #2a1200 !important; border-color: #f2711c !important; }
.periodo__info { color: #c9d1e3; font-size: 12px; margin-left: 8px; }
.painel__titulo { font-weight: 700; color: #ff9a52; font-size: 14px; }
.monitor__corpo { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.monitor__grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cartao-grafico { background: #211e1c; border: 1px solid #2e2924; border-radius: 8px; padding: 12px 14px 10px; min-width: 0; }
.cartao-grafico--largo { grid-column: 1 / -1; }
.cartao-grafico h3, .monitor__subtitulo { margin: 0 0 8px; font-size: 13.5px; color: #ff9a52; font-weight: 700; }
.monitor__subtitulo { margin: 4px 0 -4px; }
.monitor__nota { margin: 8px 0 0; font-size: 12px; color: #b8aaa0; }
.grafico-area { width: 100%; min-height: 60px; }
.grafico { display: block; overflow: visible; }
.grafico .eixo { fill: #85776d; font-size: 10.5px; font-family: var(--fonte); }
.grafico .eixo--nome { fill: #e2d6cd; font-size: 11.5px; }
.grafico .grade { stroke: #2e2924; stroke-width: 1; }
.grafico .cursor { stroke: #f1ebe6; stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.grafico .marca-vertical { stroke: #f1ebe6; stroke-dasharray: 2 3; opacity: .5; }
.grafico .marca-vertical__texto { fill: #f1ebe6; opacity: .75; }
.grafico .linha-media { stroke: #f1ebe6; stroke-dasharray: 4 4; opacity: .55; }
.grafico .linha-media__texto { fill: #e2d6cd; }
.grafico .sem-dados { fill: #2a2522; stroke: #3a332d; stroke-dasharray: 3 2; }
.grafico-vazio { display: flex; align-items: center; justify-content: center; color: #85776d; font-size: 13px; border: 1px dashed #3a332d; border-radius: 6px; text-align: center; padding: 0 16px; }
.grafico-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #c9bfb7; margin-top: 6px; }
.grafico-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legenda-sem-dados { background: #2a2522 !important; outline: 1px dashed #85776d; }
.grafico-dica { position: absolute; z-index: 60; pointer-events: none; background: #0f0d0c; color: #f1ebe6; border: 1px solid #f2711c; border-radius: 6px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); min-width: 150px; }
.grafico-dica i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.grafico-dica__titulo { font-weight: 700; margin-bottom: 4px; color: #ff9a52; }
.grafico-dica__total { margin-top: 4px; padding-top: 4px; border-top: 1px solid #3a332d; }

.creditos { background: #211e1c; border: 1px solid #2e2924; border-radius: 8px; padding: 14px 16px; }
.creditos__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #b8aaa0; }
.creditos__topo h3 { margin: 0; font-size: 15px; color: #fff; }
.creditos__topo small { font-weight: 400; color: #b8aaa0; margin-left: 6px; font-size: 12px; }
.creditos__barra { position: relative; height: 22px; border-radius: 999px; background: #134e4a; margin: 12px 0 10px; overflow: visible; }
.creditos__usado { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #f2711c, #ff9a52); }
.creditos__tempo { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px #1c1a19; }
.creditos__numeros { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: #e2d6cd; }
.creditos__numeros i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cor-usado { background: #f2711c; } .cor-disponivel { background: #134e4a; outline: 1px solid #5eead4; } .cor-tempo { background: #fff; width: 3px !important; }
.creditos__previsao { margin: 10px 0 0; font-size: 13px; color: #e2d6cd; }
.creditos__vazio { color: #e2d6cd; font-size: 13px; }
.creditos__vazio a { color: #ff9a52; }

.tabela--monitor { min-width: 760px; }
.painel--oci .tabela--monitor td.c-texto { text-align: left; font-weight: 600; }
.tabela--monitor .c-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela--monitor .c-pct { text-align: left; white-space: nowrap; }
.barrinha { display: inline-block; height: 7px; max-width: 100px; background: #f2711c; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.ponto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.painel--oci .tabela tr.linha-grupo td { background: #2b2622 !important; color: #ff9a52; font-weight: 700; }
.painel--oci .tabela tr.linha-total td { background: #2b2622 !important; font-weight: 800; }
.tabela--recursos td:nth-child(2), .tabela--recursos td:nth-child(3) { text-align: left; }

.cartoes-servidor { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cartao-servidor { text-align: left; font: inherit; color: inherit; cursor: pointer; background: #211e1c; border: 1px solid #2e2924; border-left: 4px solid var(--cor); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cartao-servidor:hover { border-color: #4a4038; border-left-color: var(--cor); }
.cartao-servidor.selecionado { box-shadow: 0 0 0 2px #f2711c; }
.cartao-servidor__topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cartao-servidor__topo b { font-size: 15px; color: #fff; }
.cartao-servidor__tempo { margin: 0; font-size: 12.5px; color: #e2d6cd; }
.cartao-servidor__medidores { display: flex; align-items: center; gap: 10px; }
.cartao-servidor__medidores > div { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #b8aaa0; }
.cartao-servidor__medidores dl { margin: 0 0 0 6px; display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: 11.5px; }
.cartao-servidor__medidores dt { color: #85776d; }
.cartao-servidor__medidores dd { margin: 0; color: #e2d6cd; }
.medidor__valor { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--fonte); }
.cartao-servidor__mini .mini { width: 100%; height: 40px; display: block; }
.mini-vazio { font-size: 11px; color: #85776d; height: 40px; display: flex; align-items: center; }
.cartao-servidor__spec { margin: 0; font-size: 11.5px; color: #85776d; font-family: Consolas, ui-monospace, monospace; }
.cartao-servidor__alerta { margin: 0; font-size: 12px; color: #fcd34d; background: #3b2f0b; border-radius: 5px; padding: 6px 8px; }
.detalhe-servidor { background: #1a1716; border: 1px solid #f2711c; border-radius: 8px; padding: 12px 14px; }
.detalhe-servidor__topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.detalhe-servidor__topo h3 { margin: 0; font-size: 16px; color: #fff; display: flex; gap: 10px; align-items: center; }
.detalhe-servidor__fechar { background: none; border: 1px solid #3a332d; color: #e2d6cd; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 1100px) { .kpis--4 { grid-template-columns: repeat(2, 1fr); } .monitor__grade { grid-template-columns: 1fr; } }
@media print { .periodo, .aviso-monitor { display: none !important; } .cartao-grafico, .creditos, .cartao-servidor { background: #fff !important; border-color: #ccc !important; color: #111 !important; } .grafico .eixo { fill: #333; } }

.cartao-servidor__medidores .cartao-servidor__mini { flex: 1; align-items: stretch; gap: 2px; }
.cartao-servidor__dados { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; }
.cartao-servidor__dados dt { color: #85776d; white-space: nowrap; }
.cartao-servidor__dados dd { margin: 0; color: #e2d6cd; }

/* ---------------------------------------------------------------- v0.6.3 */
.aviso-monitor--info { background: #2b2216; border-left-color: #f2711c; }

/* Botão do usuário com borda branca */
.usuario__avatar:not(.usuario__avatar--mini) { border: 2px solid #fff; }

/* Softwares e Licenças de clientes: destaque roxo (#3B1FA0); as células continuam iguais */
.painel--roxo { --roxo: #3b1fa0; --roxo-claro: #b79cf8; border: 1px solid #3a3570; border-top: 3px solid var(--roxo); }
.painel--roxo .painel__barra { background: #1d1a3a; border-bottom-color: #3a3570; }
.painel--roxo .tabela th { background: #1d1a3a; color: var(--roxo-claro); border-bottom: 2px solid var(--roxo); }
.painel--roxo .menu__botao:hover, .painel--roxo .menu__botao[aria-expanded="true"], .painel--roxo .menu__botao.ativo { border-color: var(--roxo-claro); }
.painel--roxo .contador { background: var(--roxo); }
.painel--roxo .abas button[aria-selected="true"],
body.edicao .painel--roxo .abas button[aria-selected="true"] { background: var(--roxo); color: #fff; }
.painel--roxo #busca:focus, .painel--roxo .campo:focus { border-color: var(--roxo-claro); box-shadow: 0 0 0 2px rgba(59, 31, 160, .55); outline: none; }
.painel--roxo .painel__rodape { background: #1d1a3a; border-top-color: #3a3570; }
.painel--roxo .botao-adicionar { background: var(--roxo); }
.painel--roxo .botao-adicionar:hover { background: #4d2fc0; }
.painel--roxo .botao-exportar:hover, .painel--roxo .menu--exportar .menu__botao[aria-expanded="true"] { border-color: var(--roxo-claro); }
.painel--roxo .tabela tbody tr:hover td { background: #2d2a52; }
.abas-tabela button[data-aba="demais"][aria-selected="true"] { box-shadow: inset 0 3px 0 #3b1fa0; }

/* ---------------------------------------------------------------- Base de Conhecimento (destaque azul) */
.kb { --kb: #3b82f6; --kb-claro: #93c5fd; --kb-fundo: #1b2233; --kb-linha: #2f3a55;
  display: grid !important; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1760px; margin: 0 auto; }
body.kb--expandido .kb { grid-template-columns: minmax(0, 1fr); }
body.kb--expandido .kb-lista { display: none; }
.kb-lista { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 10px;
  background: var(--kb-fundo); border: 1px solid var(--kb-linha); border-top: 3px solid var(--kb); border-radius: 8px; padding: 12px; }
.kb-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #141a28; border-radius: 7px; padding: 3px; }
.kb-abas button { background: none; border: 0; border-radius: 5px; padding: 7px; color: #a4acc2; font-weight: 700; cursor: pointer; }
.kb-abas button span { font-weight: 600; font-size: 11.5px; opacity: .8; margin-left: 3px; }
.kb-abas button[aria-selected="true"] { background: var(--kb); color: #fff; }
.kb-busca { background: #141a28; border: 1px solid var(--kb-linha); border-radius: 5px; padding: 8px 10px; color: var(--texto); }
.kb-busca:focus { outline: none; border-color: var(--kb); }
.kb-lista__acoes { display: flex; gap: 6px; }
.kb-lista__acoes .kb-botao:first-child { flex: 1; }
.kb-botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #26314a; color: #e8ecf5; border: 1px solid var(--kb-linha);
  border-radius: 5px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.kb-botao:hover { border-color: var(--kb-claro); }
.kb-botao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kb-botao--principal { background: var(--kb); border-color: var(--kb); color: #fff; }
.kb-botao--principal:hover { background: #2f6fdc; }
.kb-botao--perigo:hover { border-color: #f87171; color: #fca5a5; }
.kb-botao--icone { padding: 7px 9px; }
.kb-arvore { overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.kb-grupo { margin-bottom: 6px; }
.kb-grupo__topo { display: flex; align-items: center; }
.kb-grupo__nome { flex: 1; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 4px; cursor: pointer; text-align: left; }
.kb-grupo__nome svg { width: 14px; height: 14px; fill: none; stroke: var(--kb-claro); stroke-width: 2.4; transition: transform .15s; transform: rotate(90deg); }
.kb-grupo.fechado .kb-grupo__nome svg { transform: none; }
.kb-grupo.fechado .kb-grupo__docs { display: none; }
.kb-grupo__nome small { margin-left: auto; background: #26314a; border-radius: 999px; padding: 0 7px; font-size: 11px; color: #a4acc2; }
.kb-grupo__docs { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 1px solid var(--kb-linha); margin-left: 10px; }
.kb-item { display: flex; align-items: center; border-radius: 5px; }
.kb-item:hover { background: #222b42; }
.kb-item.ativo { background: #24345c; box-shadow: inset 3px 0 0 var(--kb); }
.kb-item__abrir { flex: 1; min-width: 0; background: none; border: 0; text-align: left; color: #e8ecf5; padding: 6px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.kb-item__abrir span { font-size: 13.5px; line-height: 1.3; }
.kb-item__abrir small { font-size: 11px; color: #8a93ad; }
.kb-mais { background: none; border: 0; color: #8a93ad; padding: 4px; border-radius: 4px; cursor: pointer; display: inline-flex; opacity: .55; }
.kb-mais svg { width: 18px; height: 18px; fill: currentColor; }
.kb-item:hover .kb-mais, .kb-grupo__topo:hover .kb-mais, .kb-mais:focus-visible { opacity: 1; }
.kb-mais:hover { background: #2f3a55; color: #fff; }
.kb-vazio-grupo, .kb-vazio-lista { font-size: 12.5px; color: #8a93ad; padding: 4px 8px; list-style: none; }

.kb-menu-flutuante { position: absolute; z-index: 70; min-width: 220px; background: #fff; border-radius: 8px; padding: 5px; box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.kb-menu-flutuante button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 5px; padding: 8px 10px; color: #1b2236; font-size: 13.5px; cursor: pointer; text-align: left; }
.kb-menu-flutuante button:hover { background: #eef3fe; }
.kb-menu-flutuante button.perigo { color: #b0122a; }
.kb-menu-flutuante svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kb-menu__sep { height: 1px; background: #e3e6ee; margin: 4px 2px; }

.kb-painel { min-width: 0; background: var(--kb-fundo); border: 1px solid var(--kb-linha); border-top: 3px solid var(--kb); border-radius: 8px; padding: 14px 18px 22px; min-height: 60vh; }
.kb-painel__topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--kb-linha); margin-bottom: 16px; }
.kb-painel__topo h2 { margin: 2px 0 0; font-size: 20px; color: #fff; font-family: var(--fonte-titulo); }
.kb-trilha { margin: 0; font-size: 12px; color: var(--kb-claro); font-weight: 600; }
.kb-acoes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kb-salvamento { font-size: 12px; color: #fcd34d; margin-right: 6px; }
.kb-leitura { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.kb-leitura.sem-sumario { grid-template-columns: minmax(0, 1fr); }
.kb-sumario { position: sticky; top: 14px; font-size: 13px; border-left: 2px solid var(--kb-linha); padding-left: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.kb-sumario p { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: #a4acc2; text-transform: uppercase; letter-spacing: .05em; }
.kb-sumario a { display: block; color: #cfd6e6; text-decoration: none; padding: 4px 0; line-height: 1.35; }
.kb-sumario a:hover { color: var(--kb-claro); }
.kb-sumario a.nivel-3 { padding-left: 12px; font-size: 12.5px; color: #a4acc2; }
.kb-sumario a.nivel-4 { padding-left: 24px; font-size: 12px; color: #8a93ad; }
.kb-boas-vindas { text-align: center; padding: 60px 20px; color: #cfd6e6; }
.kb-boas-vindas svg { width: 54px; height: 54px; fill: none; stroke: var(--kb-claro); stroke-width: 1.6; }
.kb-boas-vindas h2 { color: #fff; margin: 10px 0 6px; }
.kb-boas-vindas .kb-acoes { justify-content: center; margin-top: 16px; }

/* documento em formato "folha", confortável para leitura e para prints claros */
.kb-doc { background: #fbfcfe; color: #1f2937; border-radius: 8px; padding: 34px 44px 40px; max-width: 920px; width: 100%; margin: 0 auto;
  font-size: 15px; line-height: 1.65; box-shadow: 0 8px 26px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.kb-doc__impressao { display: none; }
.kb-doc__titulo { margin: 0 0 4px; font-size: 28px; line-height: 1.25; color: #10192a; font-family: var(--fonte-titulo); }
.kb-doc__meta { margin: 0 0 22px; font-size: 12.5px; color: #6b7389; padding-bottom: 14px; border-bottom: 2px solid #e3e8f3; }
.kb-doc__vazio { color: #8a93ad; font-style: italic; }
.kb-doc h2 { font-size: 21px; color: #10192a; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e3e8f3; scroll-margin-top: 16px; }
.kb-doc h3 { font-size: 17.5px; color: #1d4ed8; margin: 24px 0 8px; scroll-margin-top: 16px; }
.kb-doc h4 { font-size: 15.5px; color: #374151; margin: 20px 0 6px; scroll-margin-top: 16px; }
.kb-doc p { margin: 0 0 12px; }
.kb-doc a { color: #1d4ed8; }
.kb-doc ul, .kb-doc ol { margin: 0 0 12px; padding-left: 26px; }
.kb-doc li { margin: 3px 0; }
.kb-doc li > ul, .kb-doc li > ol { margin: 4px 0; }
.kb-doc figure { margin: 14px 0 18px; text-align: center; }
.kb-doc img { max-width: 100%; height: auto; border: 1px solid #e3e8f3; border-radius: 6px; box-shadow: 0 2px 8px rgba(16, 25, 42, .08); }
.kb-doc code { background: #eef2f8; color: #be185d; padding: 1px 6px; border-radius: 4px; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: .9em; }
.md-codigo { position: relative; margin: 6px 0 14px; }
.md-codigo pre { margin: 0; background: #10192a; color: #e2e8f0; border-radius: 6px; padding: 12px 70px 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.md-codigo pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.md-copiar { position: absolute; top: 7px; right: 7px; background: #26314a; color: #e8ecf5; border: 1px solid #3b4766; border-radius: 4px; font-size: 11.5px; padding: 3px 9px; cursor: pointer; }
.md-copiar:hover { border-color: var(--kb-claro, #93c5fd); }
.kb-doc blockquote { margin: 0 0 14px; padding: 10px 14px; background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 0 6px 6px 0; color: #1e3a8a; }
.kb-doc hr { border: 0; border-top: 1px solid #e3e8f3; margin: 22px 0; }
.md-tabela { overflow-x: auto; margin: 6px 0 16px; }
.md-tabela table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md-tabela th, .md-tabela td { border: 1px solid #d5dbe8; padding: 7px 10px; text-align: left; vertical-align: top; }
.md-tabela th { background: #eef2f8; }

/* editor */
.kb-editor { display: flex; flex-direction: column; gap: 10px; }
.kb-editor__campos { display: grid; grid-template-columns: 1fr 180px 240px; gap: 10px; }
.kb-editor__campos label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: #cfd6e6; }
.kb-editor__campos input, .kb-editor__campos select { background: #141a28; border: 1px solid var(--kb-linha); border-radius: 5px; padding: 8px 10px; color: #fff; font-size: 14px; }
.kb-editor__campos input:focus, .kb-editor__campos select:focus, #edTexto:focus { outline: none; border-color: var(--kb); }
.kb-editor__barra { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: #141a28; border: 1px solid var(--kb-linha); border-radius: 6px; padding: 5px; }
.kb-editor__barra button { background: #26314a; border: 1px solid transparent; color: #e8ecf5; border-radius: 4px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.kb-editor__barra button:hover { border-color: var(--kb-claro); }
.kb-editor__barra .sep { width: 1px; height: 22px; background: var(--kb-linha); margin: 0 3px; }
.kb-editor__dica { margin-left: auto; font-size: 12px; color: #8a93ad; padding-right: 6px; }
.kb-editor__lados { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
#edTexto { min-height: 62vh; resize: vertical; background: #10141f; color: #e8ecf5; border: 1px solid var(--kb-linha); border-radius: 6px; padding: 14px;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; }
.kb-doc--previa { max-width: none; padding: 24px 28px; max-height: 70vh; overflow-y: auto; box-shadow: none; }

/* importação */
.kb-modal { width: min(760px, 100%) !important; max-height: 90vh; overflow-y: auto; }
.kb-importar__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kb-importar__campos select, .kb-importar__linha input { border: 1px solid #c9cedc; border-radius: 4px; padding: 7px 9px; font-size: 14px; color: #1b2236; width: 100% !important; }
.kb-soltar { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; padding: 22px; border: 2px dashed #b9c3d9; border-radius: 8px; cursor: pointer; text-align: center; color: #3b4766; }
.kb-soltar.ativo { border-color: #3b82f6; background: #eff6ff; }
.kb-soltar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kb-soltar small { color: #6b7389; }
.kb-convertendo { color: #1d4ed8; font-weight: 600; }
.kb-importar__lista { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.kb-importar__item { border: 1px solid #dfe4ee; border-radius: 6px; padding: 10px; font-size: 13px; }
.kb-importar__item.erro { border-color: #f0b4bd; background: #fff5f6; color: #8a1424; }
.kb-importar__item.erro p { margin: 4px 0 0; }
.kb-importar__item small { color: #4c5671; }
.kb-importar__item ul { margin: 6px 0 0; padding-left: 18px; color: #6b5d00; }
.kb-importar__linha { display: flex; gap: 8px; margin-bottom: 5px; }
.kb-importar__linha .kb-botao { background: #eef2f8; color: #1b2236; border-color: #c9cedc; }
.kb-importar__previa { margin-top: 12px; max-height: 50vh; border: 1px solid #dfe4ee; }

@media (max-width: 1100px) { .kb { grid-template-columns: 1fr; } .kb-lista { position: static; max-height: none; } .kb-leitura { grid-template-columns: 1fr; } .kb-sumario { display: none; } .kb-editor__lados, .kb-editor__campos { grid-template-columns: 1fr; } }

/* PDF: imprime só o documento */
@media print {
  body.kb-imprimir > *:not(main), body.kb-imprimir .kb-lista, body.kb-imprimir .kb-painel__topo, body.kb-imprimir .kb-sumario, body.kb-imprimir .cabecalho-impressao { display: none !important; }
  body.kb-imprimir .kb { display: block !important; }
  body.kb-imprimir .kb-painel { border: 0 !important; padding: 0 !important; background: #fff !important; }
  body.kb-imprimir .kb-leitura { display: block !important; }
  body.kb-imprimir .kb-doc { box-shadow: none !important; padding: 0 !important; max-width: none !important; font-size: 11.5pt; }
  body.kb-imprimir .kb-doc__impressao { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 2px solid #1b2236; padding-bottom: 6px; margin-bottom: 14px; font-size: 9pt; color: #555; }
  body.kb-imprimir .kb-doc__impressao img { height: 34px; border: 0; box-shadow: none; }
  body.kb-imprimir .md-copiar { display: none !important; }
  body.kb-imprimir .md-codigo pre { white-space: pre-wrap; }
  body.kb-imprimir .kb-doc figure, body.kb-imprimir .kb-doc img, body.kb-imprimir .md-codigo { break-inside: avoid; }
  body.kb-imprimir .kb-doc h2, body.kb-imprimir .kb-doc h3 { break-after: avoid; }
  body.kb-imprimir .kb-doc { page: documento-kb; }
}
@page documento-kb { size: A4 portrait; margin: 14mm; }   /* só o PDF da base sai em pé; as tabelas continuam deitadas */
.kb-lista__acoes { display: grid; grid-template-columns: 1fr auto auto; }
.kb-lista__acoes .kb-botao { padding: 7px 9px; font-size: 12.5px; }
.kb-lista__acoes { grid-template-columns: 1fr auto; }

/* ---------------------------------------------------------------- Base de Conhecimento v0.7.1 (Word e PDF) */
.kb-pdf { display: block; width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 0; border-radius: 6px; background: #525659; }
body.kb--expandido .kb-pdf { height: calc(100vh - 170px); }
.kb-revisao { margin: 6px 0 0; font-size: 12.5px; color: #a4acc2; }
.kb-revisao span { display: inline-block; background: #24345c; color: #cfe0ff; border: 1px solid #3b5a9e; border-radius: 999px; padding: 1px 10px; font-weight: 700; margin-right: 6px; }
.kb-tipo { display: inline-block; min-width: 22px; margin-right: 6px; padding: 0 4px; border-radius: 3px; font-style: normal; font-size: 9.5px; font-weight: 800; text-align: center; vertical-align: 1px; }
.kb-tipo--docx { background: #2b579a; color: #fff; }
.kb-tipo--pdf { background: #c8102e; color: #fff; }
.kb-gerando { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 420px; color: #cfd6e6; text-align: center; border: 1px dashed var(--kb-linha); border-radius: 8px; }
.kb-gerando p { margin: 0; }
.kb-gerando--erro { color: #fca5a5; }
.kb-gerando .kb-acoes { margin-top: 12px; }
.kb-girando { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2f3a55; border-top-color: var(--kb); animation: girar .9s linear infinite; margin-bottom: 10px; }
a.kb-botao { text-decoration: none; }
.kb-versao { margin-top: 14px; padding: 12px 14px; background: #f3f6fb; border: 1px solid #dfe4ee; border-radius: 8px; font-size: 13.5px; }
.kb-versao p { margin: 0 0 6px; }
.kb-versao ol { margin: 0 0 4px; padding-left: 20px; }
.kb-versao a { color: #1d4ed8; font-weight: 600; }
.modal__campo input#edTitulo { width: 100%; }
.kb-importar__campos { margin-top: 8px; }

/* campo de envio: sinal verde quando há arquivo escolhido */
.kb-soltar { flex-direction: row !important; justify-content: center; gap: 14px !important; }
.kb-soltar__texto { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.kb-soltar__ok { display: none; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #22a845; color: #fff;
  font-weight: 800; font-size: 16px; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #d9f5e1; }
.kb-soltar.com-arquivo { border-color: #22a845; background: #f3fcf5; }
.kb-soltar.com-arquivo .kb-soltar__ok { display: inline-flex; }

/* Base de Conhecimento v0.7.3: aviso de envio e duplicatas */
.kb-lista__acoes { grid-template-columns: 1fr !important; }
.kb-aviso-envio { margin: 0 0 12px; padding: 10px 12px; background: #eff6ff; border: 1px solid #bfd6fb; border-left: 4px solid #3b82f6; border-radius: 6px; color: #1e3a8a; font-size: 13.5px; line-height: 1.45; }
.kb-dups { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; }
.kb-dup { border: 1px solid #dfe4ee; border-left-width: 4px; border-radius: 6px; padding: 10px 12px; font-size: 13.5px; }
.kb-dup p { margin: 0 0 8px; line-height: 1.45; }
.kb-dup label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.kb-dup--mesmo { border-left-color: #3b82f6; background: #f6f9ff; }
.kb-dup--outro { border-left-color: #f59e0b; background: #fffaf0; }

/* Administração › Base de Conhecimento */
.admin__colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kb-adm h3 small { font-weight: 400; color: var(--texto-suave); font-size: 12.5px; margin-left: 6px; }
.kb-adm__lista { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kb-adm__lista li { display: flex; align-items: center; gap: 10px; background: #1c2133; border: 1px solid var(--linha); border-radius: 6px; padding: 8px 10px; }
.kb-adm__posicao { width: 22px; height: 22px; border-radius: 50%; background: #3b3f5c; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kb-adm__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kb-adm__nome { font-weight: 600; }
.kb-adm__info small { color: var(--texto-suave); font-size: 11.5px; }
.kb-adm__botoes { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.kb-adm__botoes .admin__botao { padding: 5px 10px; font-size: 12.5px; }
.kb-adm__botoes .admin__botao:disabled { opacity: .4; cursor: not-allowed; }
.kb-adm__seta { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--linha); background: #252a3e; color: #e8ecf5; cursor: pointer; font-weight: 700; }
.kb-adm__seta:disabled { opacity: .3; cursor: default; }
.kb-adm__seta:not(:disabled):hover { border-color: #9c897c; }
.kb-adm__input { background: #10141f; border: 1px solid #9c897c; border-radius: 4px; padding: 6px 8px; color: #fff; font-size: 13.5px; }
.kb-adm__vazio { color: var(--texto-suave); font-size: 13px; justify-content: center; }
.kb-adm__nova { display: flex; gap: 8px; }
.kb-adm__nova input { flex: 1; background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 8px 10px; color: var(--texto); }
.kb-adm__nova input:focus { outline: none; border-color: #9c897c; }
@media (max-width: 1100px) { .admin__colunas { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Repositórios GitHub (tons do GitHub + dourado) */
.kpi--dourado .kpi__topo { background: #e3b341; color: #2b1d00; }
.painel--github {
  --gh: #e3b341; --gh-claro: #f2cc60; --gh-escuro: #2b1d00;
  --gh-fundo: #0d1117; --gh-fundo-alt: #11161e; --gh-barra: #161b22; --gh-hover: #1a212b; --gh-linha: #30363d;
  --gh-texto: #e6edf3; --gh-suave: #8b949e;
  background: var(--gh-fundo); border: 1px solid var(--gh-linha); border-top: 3px solid var(--gh); border-radius: 8px;
}
.painel--github .painel__barra { background: var(--gh-barra); border-bottom-color: var(--gh-linha); border-radius: 5px 5px 0 0; }
.painel--github .salvamento, .painel--github .dica, .painel--github .ultima-atualizacao { color: var(--gh-suave); }
.painel--github #busca, .painel--github .menu__botao { background: var(--gh-fundo); border-color: var(--gh-linha); color: var(--gh-texto); }
.painel--github #busca::placeholder { color: #6e7681; }
.painel--github .menu__botao:hover, .painel--github .menu__botao.ativo, .painel--github .menu__botao[aria-expanded="true"] { border-color: var(--gh); }
.painel--github .contador { background: var(--gh); color: var(--gh-escuro); }
.painel--github .abas { background: var(--gh-fundo); border-color: var(--gh-linha); }
.painel--github .abas button { color: var(--gh-suave); }
.painel--github .abas button[aria-selected="true"], body.edicao .painel--github .abas button[aria-selected="true"] { background: var(--gh); color: var(--gh-escuro); }
.painel--github .tabela th { background: var(--gh-fundo); color: var(--gh-claro); border-right-color: var(--gh-linha); border-bottom: 1px solid var(--gh-linha); }
.painel--github .tabela td { background: var(--gh-fundo); color: var(--gh-texto); border-color: #21262d; }
.painel--github .tabela tbody tr:nth-child(even) td { background: var(--gh-fundo-alt); }
.painel--github .tabela tbody tr:hover td { background: var(--gh-hover); }
.painel--github .na { color: #6e7681; }
.painel--github .campo { background: #010409; border-color: var(--gh-linha); color: var(--gh-texto); }
.painel--github .campo:focus { border-color: var(--gh); box-shadow: 0 0 0 2px rgba(227, 179, 65, .3); }
.painel--github .painel__rodape { background: var(--gh-barra); border-top-color: var(--gh-linha); border-radius: 0 0 7px 7px; }
.painel--github .vazio { color: var(--gh-suave); }
.painel--github .vazio a, .painel--github .vazio button { color: var(--gh-claro); }
/* faixa lateral pela situação manual */
.painel--github .tabela tbody tr td:first-child { position: relative; padding-left: 18px; }
.painel--github .tabela tbody tr td:first-child::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 5px; border-radius: 999px; background: #30363d; }
.painel--github .tabela tbody tr.faixa-gh-desenvolvimento td:first-child::before { background: #e3b341; }
.painel--github .tabela tbody tr.faixa-gh-finalizado td:first-child::before { background: #3fb950; }
.tabela--repositorios { min-width: 1150px; }
.c-gh-nome { text-align: left !important; min-width: 220px; }
.c-gh-nome b { display: block; color: #fff; font-size: 14px; }
.c-gh-nome small { display: block; color: var(--gh-suave, #8b949e); font-size: 11.5px; font-family: Consolas, ui-monospace, monospace; }
.gh-tag { display: inline-block; margin-top: 4px; margin-right: 4px; padding: 0 7px; border-radius: 999px; border: 1px solid #9e6a03; color: #e3b341; font-size: 11px; font-weight: 700; }
.gh-tag--removido { border-color: #f85149; color: #ff7b72; }
.gh-vis { display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid #30363d; font-size: 12px; font-weight: 700; }
.gh-vis--public { color: #3fb950; border-color: #238636; }
.gh-vis--private { color: #e3b341; border-color: #9e6a03; }
.gh-vis--internal { color: #79c0ff; border-color: #1f6feb; }
.gh-ling { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gh-ling i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.c-gh-pessoas { text-align: left !important; min-width: 280px; max-width: 420px; }
.gh-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gh-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; background: #161b22; border: 1px solid #30363d; font-size: 12px; color: #e6edf3; white-space: nowrap; }
.gh-chip b { font-weight: 700; font-size: 10.5px; color: #8b949e; font-family: Consolas, ui-monospace, monospace; }
.gh-chip--admin b { color: #ff7b72; }
.gh-chip--maintain b { color: #d2a8ff; }
.gh-chip--write b, .gh-chip--push b { color: #79c0ff; }
.gh-chip--equipe { border-style: dashed; }
.gh-chip--mais { background: #21262d; color: var(--gh-claro, #f2cc60); cursor: help; }
.gh-ha { display: block; font-size: 11px; color: var(--gh-suave, #8b949e); }
.gh-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.gh-status--desenvolvimento { background: #3b2e0a; color: #f2cc60; border: 1px solid #9e6a03; }
.gh-status--finalizado { background: #0f2d18; color: #56d364; border: 1px solid #238636; }
.gh-link { display: inline-flex; align-items: center; gap: 5px; color: var(--gh-claro, #f2cc60); text-decoration: none; font-weight: 600; font-size: 13px; padding: 3px 9px; border: 1px solid #30363d; border-radius: 6px; }
.gh-link:hover { border-color: #e3b341; background: #161b22; }
.gh-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.aviso-github { border-left-color: #e3b341; }
.aviso-github svg { stroke: #f2cc60; }
.aviso-github a { color: #f2cc60; }
.aviso-github--erro { border-left-color: #f87171; background: #2c1d1f !important; }
.aviso-github--erro svg { stroke: #fca5a5; }
.aviso-github__botao { display: inline-block; margin-top: 8px; background: #e3b341; color: #2b1d00 !important; font-weight: 700; text-decoration: none; padding: 6px 14px; border-radius: 4px; font-size: 13px; }
.aviso-github__expira { color: #fcd34d !important; margin-top: 4px !important; }
@media print { .gh-chip, .gh-vis, .gh-tag, .gh-status { filter: brightness(.6); } }

/* Administração › Softwares e sinal de dado automático */
.sw-cartao h3 { margin: 0; }
.sw-chave { display: flex; gap: 8px; margin: 6px 0 12px; }
.sw-chave input { flex: 1; background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 8px 10px; color: var(--texto); font-family: Consolas, ui-monospace, monospace; }
.sw-checks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.sw-checks label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 5px; background: #1c2133; font-size: 13px; cursor: pointer; }
.sw-checks label.sugerido { box-shadow: inset 3px 0 0 #9c897c; }
.admin__grade select, .sw-tabela select { background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 7px 8px; color: var(--texto); font-size: 13px; width: 100%; }
.sw-tabela { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.sw-tabela th { text-align: left; color: var(--texto-suave); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--linha); }
.sw-tabela td { padding: 6px; border-bottom: 1px solid #2b3047; }
/* v0.10.5: dado automático = barra laranja na lateral da célula (aviso no title da célula) */
.marca-auto { display: none; }
.tabela td.td-auto { position: relative; cursor: help; }
.tabela td.td-auto::after { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 999px; background: #f2711c; }
.campo--auto { opacity: .55; cursor: not-allowed; border-style: dashed !important; }

/* v0.8.2: seletor de período dentro da barra do painel (Monitoramento dos Servidores) */
.periodo--painel { width: auto; max-width: none; margin: 0; flex: 1; }
.periodo--painel .periodo__titulo { color: #eadfd7; }
.painel--oci .periodo > button { background: #1c1a19; border-color: #3a332d; color: #eadfd7; }
.painel--oci .periodo > button[aria-pressed="true"] { background: #f2711c; border-color: #f2711c; color: #2a1200; }
.painel--oci .periodo__info { color: #b8aaa0; }

/* ---------------------------------------------------------------- v0.9.0: login, permissões e usuários */
.faixa-dev { background: #7a2530; color: #fff; text-align: center; font-size: 12.5px; padding: 5px 12px; }
.aviso-sessao { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; background: #fff; color: #1b2236; border-left: 5px solid #f2b600;
  border-radius: 6px; box-shadow: 0 12px 34px rgba(0,0,0,.45); padding: 12px 16px; font-size: 14px; max-width: min(720px, 92vw); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aviso-sessao button { background: #3b1fa0; color: #fff; border: 0; border-radius: 5px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.usuario__cabecalho > span:last-child { display: flex; flex-direction: column; }
.usuario__cabecalho small { font-weight: 400; color: #6b7389; font-size: 12px; }

/* tela de acesso */
body.acesso { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; background: #10192a; padding: 24px; }
.acesso__caixa { width: min(440px, 100%); }
.acesso__marca { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 18px; }
.acesso__hupdata { height: 44px; }
.acesso__marca h1 { font-size: 30px; margin: 0; }
.acesso__form { background: #fff; color: #1b2236; border-radius: 10px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.acesso__form--largo { width: min(540px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.acesso__form h2 { margin: 0 0 2px; font-size: 20px; color: #10192a; }
.acesso__form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; }
.acesso__form input { border: 1px solid #c9cedc; border-radius: 6px; padding: 10px 12px; font-size: 15px; color: #10192a; }
.acesso__form input:focus { outline: none; border-color: #3b1fa0; box-shadow: 0 0 0 3px rgba(59, 31, 160, .2); }
.acesso__codigo { font-family: Consolas, ui-monospace, monospace; font-size: 22px !important; letter-spacing: .3em; text-align: center; }
.acesso__botao { background: #3b1fa0; color: #fff; border: 0; border-radius: 6px; padding: 11px; font-size: 15px; font-weight: 700; cursor: pointer; }
.acesso__botao:hover { background: #4d2fc0; }
.acesso__botao:disabled { opacity: .6; cursor: wait; }
.acesso__botao--sec { background: #eef0f6; color: #1b2236; }
.acesso__link { background: none; border: 0; color: #3b1fa0; font-size: 13px; cursor: pointer; text-align: center; text-decoration: underline; }
.acesso__erro { margin: 0; color: #b0122a; background: #fdecee; border-radius: 5px; padding: 8px 10px; font-size: 13.5px; }
.acesso__info { margin: 0; color: #1e3a8a; background: #eff6ff; border-radius: 5px; padding: 8px 10px; font-size: 13.5px; }
.acesso__texto, .acesso__chave { margin: 0; font-size: 14px; line-height: 1.5; color: #3b4766; }
.acesso__chave code { font-size: 14px; background: #eef0f6; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.acesso__regras, .acesso__passos { margin: 0; padding-left: 20px; font-size: 13px; color: #3b4766; line-height: 1.6; }
.acesso__qr { align-self: center; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #dfe4ee; border-radius: 8px; padding: 6px; color: #6b7389; font-size: 13px; text-align: center; }
.acesso__qr svg { width: 100%; height: 100%; }
.acesso__lista-codigos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.acesso__lista-codigos code { background: #eef0f6; color: #10192a; border-radius: 5px; padding: 6px; text-align: center; font-size: 15px; letter-spacing: .05em; }
.acesso__rodape { color: #6b7389; font-size: 12px; margin-top: 18px; }

/* sem acesso */
.sem-acesso { text-align: center; padding: 70px 20px; color: #dfe4ef; }
.sem-acesso svg { width: 54px; height: 54px; fill: none; stroke: #b79cf8; stroke-width: 1.8; }
.sem-acesso h2 { color: #fff; margin: 10px 0 6px; }
.sem-acesso__botao { display: inline-block; margin-top: 12px; color: #fff; background: #3b1fa0; padding: 8px 16px; border-radius: 5px; text-decoration: none; font-weight: 700; }

/* somente visualização: esconde os controles de edição (o servidor também bloqueia) */
body.somente-leitura #abaEdicao, body.somente-leitura .botao-adicionar, body.somente-leitura .so-edicao,
body.somente-leitura #kbImportar, body.somente-leitura [data-enviar], body.somente-leitura [data-acao-doc="editar"], body.somente-leitura [data-acao-doc="excluir"],
body.somente-leitura [data-menu-acao^="editar"], body.somente-leitura [data-menu-acao^="excluir"], body.somente-leitura [data-versao-acao="nova"],
body.somente-leitura [data-versao-acao="data"], body.somente-leitura [data-versao-acao="excluir"] { display: none !important; }

/* perfil */
.perfil { max-width: 980px; margin: 0 auto; }
.perfil__titulo { color: #fff; font-family: var(--fonte-titulo); margin: 0 0 12px; }
.pf-linha { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pf-codigo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #dfe4ef; }
.pf-codigo input { width: 130px; background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 7px 10px; color: #fff; font-family: Consolas, monospace; letter-spacing: .2em; }
.pf-novo { display: flex; gap: 16px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pf-novo .acesso__qr { width: 180px; height: 180px; }
.admin__cartao .acesso__lista-codigos code { background: #1c2133; color: #fff; }

/* administração dos usuários */
.usuarios-adm { max-width: 1400px; margin: 0 auto; }
.ua-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ua-topo h3 { margin: 0; }
.ua-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ua-tabela th { text-align: left; color: var(--texto-suave); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.ua-tabela td { padding: 8px; border-bottom: 1px solid #2b3047; vertical-align: middle; }
.ua-tabela td small { display: block; color: var(--texto-suave); font-size: 11.5px; }
.ua-acoes { white-space: nowrap; }
.ua-acoes button, .ua-tabela button { background: #2a2f45; color: #e8ecf5; border: 1px solid #4b5272; border-radius: 4px; padding: 4px 8px; font-size: 12px; cursor: pointer; margin: 2px; }
.ua-tabela button:hover { border-color: #9c897c; }
.ua-tabela button.perigo { border-color: #7a2530; color: #fca5a5; }
.ua-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ua-tag--ok { background: #12391f; color: #86efac; }
.ua-tag--pend { background: #3b2f0b; color: #fcd34d; }
.ua-tag--off { background: #3a2023; color: #fca5a5; }
.ua-tag--dev { background: #7a2530; color: #fff; }
.ua-acessos { max-width: 380px; }
.ua-perm { display: inline-block; margin: 1px 2px; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; background: #2a2f45; border: 1px solid #4b5272; }
.ua-perm--editar { border-color: #9b6bf5; color: #d8c8ff; }
.ua-modal { width: min(640px, 100%) !important; }
.ua-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ua-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ua-form input, .ua-form select { border: 1px solid #c9cedc; border-radius: 4px; padding: 7px 9px; font-size: 14px; color: #1b2236; }
.ua-perms { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ua-perms th, .ua-perms td { padding: 6px 8px; border-bottom: 1px solid #e3e6ee; text-align: center; }
.ua-perms th:first-child, .ua-perms td:first-child { text-align: left; }
.ua-perms.desativada { opacity: .35; pointer-events: none; }
.ua-senha { display: flex; gap: 10px; align-items: center; }
.ua-senha code { font-size: 20px; background: #eef0f6; color: #10192a; padding: 6px 12px; border-radius: 6px; letter-spacing: .05em; }
.ua-config { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linha); }
.ua-subabas { display: inline-flex; background: #141a28; border-radius: 6px; padding: 3px; gap: 3px; }
.ua-subabas button { background: none; border: 0; color: #a4acc2; padding: 6px 10px; border-radius: 4px; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ua-subabas button[aria-selected="true"] { background: #3b1fa0; color: #fff; }
.ua-logs select, .ua-logs input[type=date] { background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 6px 8px; color: var(--texto); }
.tabela--logs td.c-log { text-align: left; max-width: 360px; overflow-wrap: anywhere; }
.tabela--logs td.ua-falha { color: #fca5a5; }

/* Administração › Backup */
.bk-opcao { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.bk-opcao input { margin-top: 4px; }
.bk-alerta { margin: 12px 0 0; padding: 8px 12px; background: #3b2f0b; color: #fcd34d; border-radius: 5px; font-size: 13px; }
.bk-ultimos { margin-top: 16px !important; }
.bk-lista { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #dfe4ef; line-height: 1.6; }

/* Desfazer / Refazer */
.desfazer { display: inline-flex; gap: 4px; }
.desfazer__botao { width: 36px; height: 34px; padding: 0 !important; justify-content: center; }
.desfazer__botao svg { width: 18px !important; height: 18px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.desfazer__botao:disabled { opacity: .35; cursor: default; }
@media print { .desfazer { display: none !important; } }

/* v0.9.2: categorias recolhíveis em Custos por serviço */
.grupo-seta { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 6px 0 0; vertical-align: middle; display: inline-flex; }
.grupo-seta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .15s; }
.linha-grupo.recolhido .grupo-seta svg { transform: none; }
@media print { .grupo-seta { display: none; } }
#monFiltroPainel, #monOrdemPainel { left: auto; right: 0; }
.acesso__ajuda { margin: 4px 0 0; font-size: 12.5px; color: #6b7389; text-align: center; line-height: 1.45; }

/* restauração de backup */
.bk-soltar { margin-top: 4px; background: #1c2133; border-color: #4b5272; color: #dfe4ef; }
.bk-soltar small { color: var(--texto-suave) !important; }
.bk-soltar.com-arquivo { background: #12301c; border-color: #22a845; }
.bk-conferencia { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linha); }
.bk-ok { color: #86efac; font-weight: 700; margin: 0 0 8px; }
.bk-alerta--forte { background: #3a2023; color: #fca5a5; }
.bk-confirmar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; }
.bk-confirmar input { background: #10141f; border: 1px solid #7a2530; border-radius: 4px; padding: 6px 10px; color: #fff; font-family: Consolas, monospace; letter-spacing: .1em; width: 160px; }

/* ---------------------------------------------------------------- v0.9.3: calendário de período e botões de utilidade */
.calendario { position: absolute; z-index: 80; width: 286px; background: #fff; color: #1b2236; border-radius: 10px; padding: 12px; box-shadow: 0 14px 38px rgba(0,0,0,.45); font-size: 13px; }
.calendario__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendario__topo b { font-size: 14px; }
.calendario__topo button { width: 30px; height: 30px; border: 1px solid #dfe4ee; background: #fff; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; color: #1b2236; }
.calendario__topo button:hover { background: #f0f2f8; }
.calendario__grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendario__grade > span { text-align: center; font-size: 11px; font-weight: 700; color: #8a93ad; padding: 4px 0; }
.calendario__dia { height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: #1b2236; font-size: 13px; }
.calendario__dia:hover:not(:disabled) { background: #eef0f6; }
.calendario__dia.fora { color: #b0b6c6; }
.calendario__dia.hoje { box-shadow: inset 0 0 0 1.5px #3b1fa0; }
.calendario__dia.na-faixa { background: #e7e2fb; border-radius: 0; }
.calendario__dia.ponta { background: #3b1fa0; color: #fff; border-radius: 6px; font-weight: 700; }
.calendario__dia:disabled { color: #d3d7e2; cursor: not-allowed; }
.calendario__texto { margin: 10px 0 8px; text-align: center; color: #4c5671; font-weight: 600; }
.calendario__acoes { display: flex; justify-content: space-between; gap: 8px; }
.calendario__acoes button { flex: 1; border: 1px solid #c9cedc; background: #fff; border-radius: 6px; padding: 7px; font-weight: 700; cursor: pointer; color: #1b2236; }
.calendario__acoes .principal { background: #3b1fa0; border-color: #3b1fa0; color: #fff; }
.calendario__acoes button:disabled { opacity: .45; cursor: not-allowed; }

/* botões de utilidade (filtros dos logs): borda mais grossa para se destacarem */
.botao-utilidade { display: inline-flex; align-items: center; gap: 7px; background: #1c2133; color: #e8ecf5; border: 2px solid #6b7389 !important;
  border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.botao-utilidade:hover, .botao-utilidade.ativo, .botao-utilidade[aria-expanded="true"] { border-color: #b79cf8 !important; }
.botao-utilidade svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
select.botao-utilidade { padding: 6px 10px; }
.seletor-linhas { position: relative; display: inline-block; }
.seletor-linhas__lista { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 10px 28px rgba(0,0,0,.4); min-width: 130px; }
.seletor-linhas__lista button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 5px; padding: 7px 10px; color: #1b2236; cursor: pointer; font-size: 13px; }
.seletor-linhas__lista button:hover { background: #eef0f6; }
.seletor-linhas__lista button[aria-selected="true"] { font-weight: 700; background: #e7e2fb; }
.ua-logs .painel__busca { flex-wrap: wrap; gap: 8px; }
.bk-ultimos small { font-weight: 400; color: var(--texto-suave); font-size: 12px; }
.calendario__dia.ponta:hover:not(:disabled) { background: #4d2fc0; color: #fff; }

/* v0.10.0: Base de Conhecimento com três abas e PowerPoint */
.kb { grid-template-columns: 400px minmax(0, 1fr) !important; }
body.kb--expandido .kb { grid-template-columns: minmax(0, 1fr) !important; }
.kb-abas { grid-template-columns: repeat(3, 1fr) !important; }
.kb-abas button { padding: 7px 4px; font-size: 13px; white-space: nowrap; }
.kb-tipo--pptx { background: #c43e1c; color: #fff; }
.admin__colunas { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1300px) { .admin__colunas { grid-template-columns: 1fr !important; } }
@media (max-width: 1100px) { .kb { grid-template-columns: 1fr !important; } }
.menu__painel--largo { min-width: 330px; }
.menu__opcao--descrita > span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.menu__opcao--descrita small { font-weight: 400; color: #6b7389; font-size: 12px; line-height: 1.35; white-space: normal; }
.menu__opcao--descrita b .menu__padrao, .menu__opcao--descrita .menu__padrao { margin-left: 8px; }

/* v0.10.0: confirmação extra, termo de uso e modo bloqueio */
.confirmar-mfa { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 22, .65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.confirmar-mfa__caixa { background: #fff; color: #1b2236; border-radius: 10px; padding: 22px 24px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 48px rgba(0,0,0,.45); }
.confirmar-mfa__caixa h2 { margin: 0; font-size: 18px; }
.confirmar-mfa__caixa p { margin: 0; font-size: 14px; color: #3b4766; line-height: 1.45; }
.confirmar-mfa__caixa input { border: 1px solid #c9cedc; border-radius: 6px; padding: 10px; font-family: Consolas, monospace; font-size: 22px; letter-spacing: .3em; text-align: center; }
.confirmar-mfa__caixa input:focus { outline: none; border-color: #3b1fa0; box-shadow: 0 0 0 3px rgba(59,31,160,.2); }
.confirmar-mfa__erro { color: #b0122a !important; }
.confirmar-mfa__acoes { display: flex; gap: 8px; justify-content: flex-end; }
.confirmar-mfa__acoes button { border: 1px solid #c9cedc; background: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.confirmar-mfa__acoes button[type=submit] { background: #3b1fa0; border-color: #3b1fa0; color: #fff; }
.faixa-bloqueio { background: #b0122a; }
.faixa-bloqueio a { color: #fff; font-weight: 700; margin-left: 6px; }
.acesso__form--termo { width: min(720px, 94vw); }
.acesso__termo { max-height: 46vh; overflow-y: auto; border: 1px solid #dfe4ee; border-radius: 8px; padding: 6px 16px; font-size: 13.5px; line-height: 1.55; color: #24304a; background: #fbfcfe; }
.acesso__termo h3 { font-size: 16px; margin: 12px 0 6px; }
.acesso__termo h4 { font-size: 14px; margin: 12px 0 4px; }
.acesso__termo ul { padding-left: 20px; margin: 4px 0 8px; }
.acesso__termo p { margin: 6px 0; }
.acesso__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; line-height: 1.45; cursor: pointer; }
.acesso__check input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }
.ua-bloqueio { margin-top: 18px; padding: 14px; border: 1px solid #7a2530; border-radius: 8px; background: #2a1a1d; }
.ua-bloqueio h3 { margin: 0 0 6px; color: #fca5a5; }
.ua-bloqueio p { margin: 0 0 10px; font-size: 13.5px; color: #e8d6d8; }
.ua-aviso-inativos { margin: 0 0 10px; padding: 8px 12px; border-radius: 6px; background: #3b2f0b; color: #fcd34d; font-size: 13px; }

.tm-texto { width: 100%; min-height: 380px; background: #10141f; color: #e8ecf5; border: 1px solid #4b5272; border-radius: 6px; padding: 12px; font-size: 13.5px; line-height: 1.55; resize: vertical; font-family: var(--fonte); }
.tm-texto:focus { outline: none; border-color: #9c897c; }

/* v0.10.1: backup parcial e automático */
.bk-secao { color: #fff; font-size: 16px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--linha); }
.bk-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin: 4px 0 10px; }
.bk-grupo { display: flex; align-items: flex-start; gap: 8px; background: #1c2133; border: 1px solid var(--linha); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; cursor: pointer; }
.bk-grupo:has(input:checked) { border-color: #9c897c; background: #2a2730; }
.bk-grupo span { display: flex; flex-direction: column; }
.bk-grupo small { color: var(--texto-suave); font-size: 11.5px; }
.bk-freq { display: flex; gap: 6px; }
.bk-freq input { width: 80px; }
.bk-freq select { flex: 1; background: #1c2133; border: 1px solid #4b5272; border-radius: 4px; padding: 7px 8px; color: var(--texto); }
.bk-auto-campos { margin-top: 12px; }
.bk-auto-campos input:disabled, .bk-auto-campos select:disabled { opacity: .45; }
.bk-proximo { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #12301c; border: 1px solid #22a845; color: #d8f5e0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.bk-proximo b { color: #86efac; font-size: 14.5px; }
.bk-proximo small { color: #a7c9b2; }
.bk-proximo.erro { background: #2a1a1d; border-color: #7a2530; }
.bk-proximo__erro { color: #fca5a5; }

/* v0.10.2: planos do KNIME Server */
.plano--small { color: #fcd34d; }
.plano--medium { color: #fdba74; }
.plano--large { color: #f9a8d4; }

/* v0.10.3: status de uso + status do vencimento */
.status-duplo { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; }

/* Administração › Listas e opções */
.ls-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ls-cartao h3 small { font-weight: 400; color: var(--texto-suave); font-size: 12.5px; margin-left: 6px; }
.ls-itens { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ls-itens li, .ls-nova { display: flex; align-items: center; gap: 8px; background: #1c2133; border: 1px solid var(--linha); border-radius: 6px; padding: 6px 8px; }
.ls-nova { background: transparent; border-style: dashed; }
.ls-amostra { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.ls-hex { width: 86px; background: #10141f; border: 1px solid #4b5272; border-radius: 4px; padding: 5px 7px; color: #fff; font-family: Consolas, monospace; font-size: 12.5px; }
.ls-hex.invalido { border-color: #f87171; }
.ls-nome { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.ls-nome-campo, .ls-nova input[name=rotulo] { flex: 1; min-width: 0; background: #10141f; border: 1px solid #4b5272; border-radius: 4px; padding: 5px 8px; color: #fff; font-size: 13.5px; }
.ls-uso { color: var(--texto-suave); font-size: 11.5px; white-space: nowrap; }
.ls-acoes { display: flex; gap: 4px; }
.ls-excluir { padding: 4px 9px !important; font-size: 12px !important; }
.ls-excluir:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 1300px) { .ls-listas { grid-template-columns: 1fr; } }

/* v0.10.4: nova identidade — Sentinela · Central de Monitoramento (emblema 1A) */
.topo__emblema svg { width: 44px !important; height: 44px !important; }
.topo__nome { display: flex; flex-direction: column; line-height: 1; }
.topo__sub { font-size: 14px; font-weight: 600; color: #a4acc2; letter-spacing: .04em; margin-bottom: 4px; white-space: nowrap; }
.topo__nome h1 { line-height: 1; }
.acesso__marca .topo__sub { font-size: 13px; }
.acesso__marca .topo__emblema { width: 48px; height: 48px; border-radius: 12px; }
.acesso__marca .topo__emblema svg { width: 38px !important; height: 38px !important; }
@media (max-width: 900px) { .topo__sub { font-size: 12px; } }

/* v0.10.5: cabeçalho — emblema um pouco maior que o bloco de título e subtítulo alinhado ao título */
.topo__titulo .topo__emblema { width: 76px; height: 76px; border-radius: 18px; }
.topo__titulo .topo__emblema svg { width: 62px !important; height: 62px !important; }
.topo__titulo .topo__sub { padding-left: 4px; }
.acesso__marca .topo__titulo .topo__emblema { width: 54px; height: 54px; border-radius: 13px; }
.acesso__marca .topo__titulo .topo__emblema svg { width: 44px !important; height: 44px !important; }
.acesso__marca .topo__titulo .topo__sub { padding-left: 2px; }
@media (max-width: 900px) { .topo__titulo .topo__emblema { width: 60px; height: 60px; } .topo__titulo .topo__emblema svg { width: 48px !important; height: 48px !important; } }

/* v0.10.5: escolha das colunas ao copiar linhas */
.barra-copia__grupo-colunas { position: relative; }
.barra-copia__colunas { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 6px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.barra-copia__lista { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 95; background: #fff; color: #1b2236; border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0,0,0,.45); padding: 10px 12px; width: 280px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.barra-copia__lista[hidden] { display: none; }
.barra-copia__lista-topo { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e3e6ee; }
.barra-copia__lista-topo b { flex: 1; font-size: 13px; }
.barra-copia__lista-topo button { background: #eef0f6; border: 0; border-radius: 4px; padding: 3px 8px; font-size: 12px; cursor: pointer; color: #1b2236; }
.barra-copia__lista label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 2px; cursor: pointer; border-radius: 4px; }
.barra-copia__lista label:hover { background: #f3f4f8; }

/* v0.10.5: notas de atualização (sanfona) */
.notas { display: flex; flex-direction: column; gap: 6px; }
.nota { background: #1c2133; border: 1px solid var(--linha); border-radius: 8px; }
.nota summary { cursor: pointer; padding: 10px 14px; font-size: 14px; color: #dfe4ef; list-style: none; display: flex; align-items: center; gap: 8px; }
.nota summary::-webkit-details-marker { display: none; }
.nota summary::before { content: "▸"; color: #9c897c; transition: transform .15s; }
.nota[open] summary::before { transform: rotate(90deg); }
.nota summary b { color: #fff; }
.nota__versao { padding: 4px 16px 10px 36px; }
.nota__versao h4 { margin: 8px 0 4px; font-size: 13.5px; color: #fff; }
.nota__versao h4 small { font-weight: 400; color: var(--texto-suave); margin-left: 6px; }
.nota__versao ul { margin: 0; padding-left: 18px; font-size: 13px; color: #dfe4ef; line-height: 1.55; }

.ua-sem-email { color: #fcd34d; }

/* v0.11.0: Notificações */
.nt-largo { grid-column: 1 / -1; }
.nt-avisos { margin-top: 14px; }
.nt-opcoes { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0; }
.nt-opcao { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.nt-titulo { margin: 14px 0 6px; font-size: 13.5px; color: #fff; }
.nt-destinos { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.nt-destino { display: flex; gap: 8px; align-items: flex-start; background: #1c2133; border: 1px solid var(--linha); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.nt-destino span { display: flex; flex-direction: column; }
.nt-destino small { color: var(--texto-suave); font-size: 11.5px; }
.nt-destino.sem-email { opacity: .55; cursor: not-allowed; }
.nt-destino:has(input:checked) { border-color: #9c897c; }
.nt-nota { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #1c2133; border-left: 3px solid #9c897c; color: #c9d1e3; font-size: 12.5px; line-height: 1.5; }
.nt-horario { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 6px; }
.nt-horario input { background: #10141f; border: 1px solid #4b5272; border-radius: 4px; padding: 5px 8px; color: #fff; }
.nt-modelo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.nt-modelo__campos { display: flex; flex-direction: column; gap: 8px; }
.nt-modelo__campos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.nt-modelo__campos input, .nt-modelo__campos select, .nt-modelo__campos textarea { background: #10141f; border: 1px solid #4b5272; border-radius: 4px; padding: 7px 9px; color: #fff; font-size: 13.5px; font-family: inherit; }
.nt-previa { display: flex; flex-direction: column; gap: 6px; }
.nt-previa small { color: var(--texto-suave); }
.nt-previa iframe { width: 100%; min-height: 520px; border: 1px solid var(--linha); border-radius: 8px; background: #eef0f6; }
#ntHistorico small { display: block; color: #fca5a5; font-size: 11px; }
@media (max-width: 1200px) { .nt-modelo { grid-template-columns: 1fr; } }

/* v0.11.0: sininho de notificações */
.usuario { display: flex; align-items: center; gap: 12px; }
.sino { position: relative; }
.sino__botao { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a4560; background: #1b2438; color: #dfe4ef; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sino__botao:hover, .sino__botao[aria-expanded="true"] { border-color: #9c897c; }
.sino__botao svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sino__qtd { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sino__painel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 360px; max-height: 70vh; overflow-y: auto; background: #fff; color: #1b2236; border-radius: 10px; box-shadow: 0 14px 38px rgba(0,0,0,.45); }
.sino__topo { padding: 10px 14px; border-bottom: 1px solid #e3e6ee; font-size: 14px; }
.sino__item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0f2f7; text-decoration: none; color: inherit; }
.sino__item:hover { background: #f6f7fb; }
.sino__item.nova { background: #f4f0ff; }
.sino__item span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sino__item b { font-size: 13px; }
.sino__item small { font-size: 12px; color: #4c5671; line-height: 1.4; }
.sino__item i { font-style: normal; font-size: 11px; color: #8a93ad; }
.sino__icone { font-size: 18px; line-height: 1.2; }
.sino__vazio { padding: 18px 14px; margin: 0; color: #6b7389; font-size: 13px; text-align: center; }
@media print { .sino { display: none !important; } }

/* v0.11.2: instalação a partir de backup */
.acesso__caixa--larga { width: min(520px, 100%); }
.acesso__codigo--texto { letter-spacing: .15em !important; font-size: 18px !important; text-transform: uppercase; }
.acesso__ajuda--esq { text-align: left; }
.acesso__arquivo { border: 2px dashed #c9cedc; border-radius: 8px; padding: 14px; cursor: pointer; text-align: center; }
.acesso__arquivo input { display: none; }
.acesso__arquivo span { font-weight: 400; color: #4c5671; font-size: 13.5px; }
.acesso__arquivo.ativo, .acesso__arquivo:hover { border-color: #3b1fa0; }
.acesso__arquivo.com-arquivo { border-color: #22a845; background: #f0fbf3; }

/* v0.11.3: instalação por backup ou do zero */
.inst-abas { display: grid; grid-template-columns: 1fr 1fr; background: #eef0f6; border-radius: 8px; padding: 3px; gap: 3px; }
.inst-abas button { border: 0; background: none; padding: 8px; border-radius: 6px; font-weight: 700; color: #4c5671; cursor: pointer; font-size: 13.5px; }
.inst-abas button[aria-selected="true"] { background: #fff; color: #3b1fa0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.inst-modo { display: flex; flex-direction: column; gap: 12px; }
.inst-modo[hidden] { display: none; }
.acesso__aviso { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fff7e6; border-left: 4px solid #f2b600; color: #5b4300; font-size: 13.5px; line-height: 1.5; }
