/* ==========================================================================
   BI Roldao Atacadista - identidade visual
   Paleta extraida da logo: #002856 (azul marinho) | #FCC200 (amarelo)
                            #3DA1DC (azul claro)
   ========================================================================== */

:root {
  /* marca */
  --marinho:        #002856;
  --marinho-900:    #001a39;
  --marinho-800:    #002249;
  --marinho-700:    #002856;
  --marinho-600:    #063a72;
  --marinho-500:    #0b4c92;
  --amarelo:        #FCC200;
  --amarelo-claro:  #ffd84d;
  --amarelo-escuro: #d9a600;
  --azul-claro:     #3DA1DC;

  /* superficie */
  --fundo:          #f4f6fa;
  --painel:         #ffffff;
  --painel-alt:     #fafbfd;
  --borda:          #dfe5ee;
  --borda-forte:    #c3cddd;

  /* barras e cabecalhos */
  --cab-tabela:     #002856;
  --cab-tabela-txt: #ffffff;
  --lateral-bg:     #002856;
  --topo-bg:        #ffffff;

  /* texto */
  --texto:          #12213a;
  --texto-2:        #4d5f7c;
  --texto-3:        #8496b0;
  --texto-inv:      #ffffff;

  /* semantica */
  --positivo:       #0f8f5c;
  --positivo-bg:    #e4f5ed;
  --negativo:       #cf2a3f;
  --negativo-bg:    #fdeaec;
  --neutro:         #8496b0;
  --alerta:         #e08700;

  --hover-linha:    #f2f7fd;
  --total-linha:    #eef3fa;

  --hm5: #b3ddc7; --hm4: #d6eee1; --hm3: #f2f5f8; --hm2: #fbdde1; --hm1: #f4b8c0;

  --sombra-1: 0 1px 2px rgba(0,40,86,.06), 0 1px 3px rgba(0,40,86,.05);
  --sombra-2: 0 4px 12px rgba(0,40,86,.09);
  --sombra-3: 0 12px 32px rgba(0,40,86,.16);

  --raio:    10px;
  --raio-sm: 6px;
  --nav-w:   232px;
  --topo-h:  60px;

  --fonte: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------- TEMA ESCURO */
:root[data-tema="escuro"] {
  --fundo:          #0a1626;
  --painel:         #11223a;
  --painel-alt:     #16294480;
  --borda:          #1d3352;
  --borda-forte:    #2a4467;

  --cab-tabela:     #0d1f38;
  --cab-tabela-txt: #cfe0f2;
  --lateral-bg:     #081426;
  --topo-bg:        #0d1c30;

  --texto:          #e6eefa;
  --texto-2:        #a8bdd8;
  --texto-3:        #7189aa;

  --positivo:       #35c98d;
  --positivo-bg:    #10322a;
  --negativo:       #ff6b7d;
  --negativo-bg:    #3a1520;
  --alerta:         #f0a93a;

  --hover-linha:    #16294a;
  --total-linha:    #16294a;

  --hm5: #1c5741; --hm4: #163b30; --hm3: #16233a; --hm2: #401f2b; --hm1: #6b2434;

  --sombra-1: 0 1px 2px rgba(0,0,0,.4);
  --sombra-2: 0 4px 12px rgba(0,0,0,.45);
  --sombra-3: 0 12px 32px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: var(--fonte);
  background: var(--fundo);
  color: var(--texto);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
html { transition: background .18s; }

a { color: var(--marinho-500); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ------------------------------------------------------------------ LOGIN */
.login-tela { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .login-tela { grid-template-columns: 1fr; } }

.login-arte {
  background:
    radial-gradient(1200px 600px at 20% 10%, #063a72 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 90%, #0b4c92 0%, transparent 55%),
    #002856;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px clamp(32px, 6vw, 96px);
  position: relative; overflow: hidden;
}
.login-arte::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.login-arte img { width: 260px; max-width: 70%; margin-bottom: 34px; border-radius: 8px; }
.login-arte h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; margin: 0 0 14px; font-weight: 700; }
.login-arte h1 span { color: var(--amarelo); }
.login-arte p { color: #b9cbe2; max-width: 46ch; line-height: 1.65; margin: 0 0 30px; }
.login-selos { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.login-selo {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; color: #cfe0f2;
}

.login-form-area { display: flex; align-items: center; justify-content: center; padding: 40px 24px;
  background: var(--painel); }
.login-caixa { width: 100%; max-width: 380px; }
.login-caixa h2 { margin: 0 0 6px; font-size: 22px; }
.login-caixa .sub { color: var(--texto-2); margin: 0 0 28px; }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 12px; font-weight: 600; color: var(--texto-2);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.campo input, .campo select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--borda-forte);
  border-radius: var(--raio-sm); background: var(--painel); color: var(--texto); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo select:focus {
  border-color: var(--marinho-500); box-shadow: 0 0 0 3px rgba(11,76,146,.13);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--raio-sm); border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--marinho); color: #fff; width: 100%; }
.btn-primario:hover { background: var(--marinho-600); }
.btn-amarelo { background: var(--amarelo); color: #001a39; }
.btn-amarelo:hover { background: var(--amarelo-claro); }
.btn-claro { background: var(--painel); border-color: var(--borda-forte); color: var(--texto); }
.btn-claro:hover { background: var(--painel-alt); border-color: var(--marinho-500); }
.btn-perigo { background: var(--negativo); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.aviso { padding: 10px 13px; border-radius: var(--raio-sm); font-size: 13px; margin-bottom: 14px; display: none; }
.aviso.erro { display: block; background: var(--negativo-bg); color: var(--negativo); border: 1px solid var(--negativo); }
.aviso.ok { display: block; background: var(--positivo-bg); color: var(--positivo); border: 1px solid var(--positivo); }
.aviso.info { display: block; background: var(--painel-alt); color: var(--marinho-500); border: 1px solid var(--borda-forte); }

/* ------------------------------------------------------------------- APP */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.app.recolhido { grid-template-columns: 62px 1fr; }

.lateral {
  background: var(--lateral-bg); color: #cfe0f2; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.lateral-topo {
  height: var(--topo-h); display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.lateral-topo img { height: 30px; border-radius: 5px; }
.lateral-marca { font-weight: 700; color: #fff; font-size: 14px; letter-spacing: .02em; }
.lateral-marca em { display: block; font-style: normal; font-size: 10px; color: var(--amarelo); letter-spacing: .16em; }
.app.recolhido .lateral-marca, .app.recolhido .nav-grupo-titulo, .app.recolhido .nav-item span { display: none; }

.nav { flex: 1; overflow-y: auto; padding: 10px 0 20px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.nav-grupo-titulo {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #7d9dc4; padding: 16px 18px 7px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 18px; cursor: pointer;
  border-left: 3px solid transparent; font-size: 13.5px; color: #cfe0f2;
  transition: background .12s, color .12s;
}
.nav-item-v2, button.nav-item { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; background: transparent; font-family: inherit; }
.nav-item-v2 em { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: var(--amarelo); color: #001a39;
  font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.nav-item[hidden] { display: none !important; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.ativo { background: rgba(252,194,0,.14); border-left-color: var(--amarelo); color: #fff; font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.nav-rodape { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: #7d9dc4; }

.conteudo { display: flex; flex-direction: column; min-width: 0; }

.topo {
  height: var(--topo-h); background: var(--topo-bg); border-bottom: 1px solid var(--borda);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.topo h1 { font-size: 17px; margin: 0; font-weight: 700; }
.topo .sub { font-size: 12px; color: var(--texto-3); }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icone-btn {
  width: 34px; height: 34px; border-radius: var(--raio-sm); border: 1px solid var(--borda);
  background: var(--painel); display: grid; place-items: center; cursor: pointer; color: var(--texto-2);
}
.icone-btn:hover { border-color: var(--marinho-500); color: var(--marinho-500); }
.nav-item:focus-visible, .icone-btn:focus-visible, .btn:focus-visible, .usuario-chip:focus-visible {
  outline: 3px solid rgba(252,194,0,.65); outline-offset: 2px;
}
.usuario-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 5px;
  border: 1px solid var(--borda); border-radius: 999px; cursor: pointer; background: var(--painel);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--marinho-500); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.usuario-chip small { display: block; color: var(--texto-3); font-size: 10.5px; line-height: 1.2; }
.usuario-chip b { font-size: 12.5px; font-weight: 600; }

/* tema: sol/lua */
:root[data-tema="escuro"] .icone-sol { display: block; }
:root[data-tema="escuro"] .icone-lua { display: none; }
.icone-sol { display: none; }
.icone-lua { display: block; }

/* --------------------------------------------------------------- FILTROS */
.barra-filtros {
  background: var(--painel); border-bottom: 1px solid var(--borda); padding: 11px 20px;
  display: block;
  position: sticky; top: var(--topo-h); z-index: 30;
}
.filtros-basicos, .filtros-avancados { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
.filtros-avancados { display: none; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--borda); }
.filtros-avancados.aberto { display: flex; }
.filtros-toggle { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; padding: 7px 10px;
  border: 1px solid var(--borda-forte); border-radius: var(--raio-sm); background: var(--painel-alt); color: var(--texto-2);
  cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.filtros-toggle:hover, .filtros-toggle.tem-selecao { border-color: var(--marinho-500); color: var(--marinho-500); }
.filtros-toggle[aria-expanded="true"] svg { color: var(--amarelo-escuro); }
.filtro { display: flex; flex-direction: column; gap: 3px; }
.filtro > label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--texto-3); font-weight: 700; }
.filtro input[type="date"], .filtro select {
  padding: 6.5px 9px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  background: var(--painel); color: var(--texto); min-width: 120px;
}
:root[data-tema="escuro"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.chip-periodos { display: flex; gap: 5px; }
.chip {
  padding: 6px 11px; border: 1px solid var(--borda-forte); border-radius: 999px;
  background: var(--painel); cursor: pointer; font-size: 12px; color: var(--texto-2); white-space: nowrap;
}
.chip:hover { border-color: var(--marinho-500); color: var(--marinho-500); }
.chip.ativo { background: var(--marinho-500); border-color: var(--marinho-500); color: #fff; font-weight: 600; }

.multi { position: relative; }
.multi-botao {
  padding: 6.5px 9px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  background: var(--painel); color: var(--texto); cursor: pointer;
  min-width: 150px; max-width: 230px; display: flex; align-items: center; gap: 7px; text-align: left;
}
.multi-botao span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-botao.tem-selecao { border-color: var(--marinho-500); background: var(--painel-alt); }
.multi-badge { background: var(--marinho-500); color: #fff; border-radius: 999px;
  font-size: 10px; padding: 1px 6px; font-weight: 700; }
.multi-painel {
  display: none; position: absolute; top: calc(100% + 5px); left: 0; z-index: 60;
  background: var(--painel); border: 1px solid var(--borda-forte); border-radius: var(--raio);
  box-shadow: var(--sombra-3); width: 300px; max-height: 340px; overflow: hidden; flex-direction: column;
}
.multi.aberto .multi-painel { display: flex; }
.multi-busca { padding: 9px; border-bottom: 1px solid var(--borda); }
.multi-busca input { width: 100%; padding: 7px 9px; border: 1px solid var(--borda-forte);
  border-radius: var(--raio-sm); background: var(--painel); color: var(--texto); }
.multi-lista { overflow-y: auto; padding: 5px 0; flex: 1; }
.multi-opcao { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.multi-opcao:hover { background: var(--painel-alt); }
.multi-opcao input { accent-color: var(--marinho-500); }
.multi-acoes { border-top: 1px solid var(--borda); padding: 8px 10px; display: flex; gap: 7px; }

/* ---------------------------------------------------------------- PAINEL */
.painel-corpo { padding: 18px 20px 40px; flex: 1; min-width: 0; }

/* --------------------------------------------------------- CENTRAL AJUDA */
.ajuda { max-width: 1280px; margin: 0 auto; }
.ajuda-cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ajuda-cabecalho h2 { margin: 6px 0; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; }
.ajuda-cabecalho p { margin: 0; max-width: 700px; color: var(--texto-2); line-height: 1.5; }
.ajuda-dica { color: var(--texto-3); font-size: 12px; white-space: nowrap; }
.ajuda-dica kbd { padding: 3px 7px; border: 1px solid var(--borda-forte); border-radius: 5px; background: var(--painel); color: var(--texto); font-weight: 700; }
.ajuda-busca { display: flex; align-items: center; gap: 10px; max-width: 760px; min-height: 48px; padding: 0 12px; margin-bottom: 9px; border: 1px solid var(--borda-forte); border-radius: 12px; background: var(--painel); box-shadow: var(--sombra-1); }
.ajuda-busca > span { display: grid; place-items: center; color: var(--marinho-500); }
.ajuda-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font: inherit; }
.ajuda-busca input::placeholder { color: var(--texto-3); }
.ajuda-limpar { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--texto-3); font-size: 22px; line-height: 1; cursor: pointer; }
.ajuda-limpar:hover { background: var(--painel-alt); color: var(--texto); }
.ajuda-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 2px 12px; color: var(--texto-3); font-size: 11px; }
.ajuda-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ajuda-topico { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--borda); border-radius: 12px; background: var(--painel); box-shadow: var(--sombra-1); }
.ajuda-topico-cab { min-height: 58px; }
.ajuda-grupo { display: block; color: var(--marinho-500); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ajuda-topico h3 { margin: 6px 0 0; font-size: 16px; }
.ajuda-resumo { min-height: 45px; margin: 10px 0 13px; color: var(--texto-2); font-size: 12.5px; line-height: 1.45; }
.ajuda-bloco { display: grid; gap: 3px; padding: 9px 10px; margin-top: 7px; border-left: 3px solid var(--borda-forte); border-radius: 6px; background: var(--painel-alt); }
.ajuda-bloco b { color: var(--texto-3); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.ajuda-bloco span { color: var(--texto); font-size: 12px; line-height: 1.45; }
.ajuda-acoes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 14px; }
.ajuda-vazio { grid-column: 1 / -1; display: grid; gap: 6px; padding: 28px; border: 1px dashed var(--borda-forte); border-radius: 12px; color: var(--texto-2); text-align: center; }
.ajuda-vazio b { color: var(--texto); }

@media (max-width: 1100px) { .ajuda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ajuda-cabecalho { display: block; }
  .ajuda-dica { margin-top: 9px; }
  .ajuda-meta { display: block; line-height: 1.6; }
  .ajuda-meta span { display: block; }
  .ajuda-grid { grid-template-columns: 1fr; }
  .ajuda-resumo { min-height: 0; }
}

/* ---------------------------------------------------- EXECUTIVO V2 */
.v2-cabecalho { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px;
  padding: 4px 2px 18px; animation: v2-entrada .22s ease-out; }
.v2-sobretitulo { display: flex; align-items: center; gap: 10px; color: var(--texto-3); font-size: 11px; font-weight: 600; }
.v2-sobretitulo span { color: var(--marinho-500); background: rgba(61,161,220,.11); border: 1px solid rgba(61,161,220,.24);
  padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.v2-cabecalho h2 { max-width: 860px; margin: 9px 0 6px; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15;
  letter-spacing: -.025em; color: var(--texto); }
.v2-cabecalho p { max-width: 760px; margin: 0; color: var(--texto-2); line-height: 1.55; }
.v2-cabecalho-compacto h2 { font-size: clamp(21px, 1.8vw, 29px); }
.v2-status { min-width: 235px; padding: 11px 13px; border: 1px solid var(--borda); background: var(--painel);
  border-radius: 12px; box-shadow: var(--sombra-1); }
.v2-status span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--positivo); }
.v2-status span.pendente { color: var(--alerta); }
.v2-status span i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--positivo-bg); }
.v2-status small { display: block; margin-top: 7px; color: var(--texto-3); font-size: 10.5px; line-height: 1.4; }

.v2-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.v2-kpi { position: relative; min-width: 0; padding: 17px; overflow: hidden; background: var(--painel); border: 1px solid var(--borda);
  border-radius: 12px; box-shadow: var(--sombra-1); animation: v2-entrada .24s ease-out both; }
.v2-kpi:nth-child(2) { animation-delay: 35ms; }.v2-kpi:nth-child(3) { animation-delay: 70ms; }
.v2-kpi:nth-child(4) { animation-delay: 105ms; }.v2-kpi:nth-child(5) { animation-delay: 140ms; }
.v2-kpi.principal { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--marinho) 0%, var(--marinho-500) 100%);
  box-shadow: 0 10px 26px rgba(0,40,86,.22); }
.v2-kpi-topo { display: flex; align-items: center; justify-content: space-between; color: var(--texto-3); font-size: 10px;
  font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.v2-kpi-topo i { width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); }
.v2-kpi.principal .v2-kpi-topo { color: #cfe0f2; }.v2-kpi.principal .v2-kpi-topo i { background: var(--amarelo); }
.v2-kpi strong { display: block; margin: 11px 0 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -.035em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-kpi-base { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2-kpi-base small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-3); font-size: 10.5px; }
.v2-kpi.principal .v2-kpi-base small { color: #cfe0f2; }
.v2-delta { flex-shrink: 0; padding: 3px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.v2-delta.positivo { color: var(--positivo); background: var(--positivo-bg); }
.v2-delta.negativo { color: var(--negativo); background: var(--negativo-bg); }
.v2-delta.neutro { color: var(--texto-2); background: var(--painel-alt); }
.v2-kpi.principal .v2-delta { color: #001a39; background: var(--amarelo); }

.v2-grade-principal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, .72fr); gap: 14px; margin-bottom: 14px; }
.v2-grade-secundaria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.v2-card { background: var(--painel); border: 1px solid var(--borda); border-radius: 12px; box-shadow: var(--sombra-1); overflow: hidden; }
.v2-card > header { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 18px 8px; }
.v2-card h3 { margin: 4px 0 0; font-size: 15px; }.v2-card header > small { color: var(--texto-3); font-size: 10.5px; }
.v2-etiqueta { color: var(--texto-3); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.v2-grafico { height: 330px; min-height: 260px; }
.v2-legenda { display: flex; gap: 14px; color: var(--texto-3); font-size: 10.5px; }
.v2-legenda span { display: flex; align-items: center; gap: 5px; }.v2-legenda i { width: 14px; height: 3px; border-radius: 3px; }
.v2-legenda .atual { background: var(--marinho-500); }.v2-legenda .anterior { background: var(--amarelo); }
.v2-resumo { padding-bottom: 8px; }
.v2-resumo-bloco { margin: 0 14px 10px; padding: 13px 14px; border-left: 3px solid var(--borda-forte); border-radius: 8px; background: var(--painel-alt); }
.v2-resumo-bloco.positivo { border-left-color: var(--positivo); }.v2-resumo-bloco.negativo { border-left-color: var(--negativo); }
.v2-resumo-bloco > span { display: block; color: var(--texto-3); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v2-resumo-bloco strong { display: block; margin: 5px 0 3px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-resumo-bloco small { color: var(--texto-2); font-size: 10.5px; }
.v2-stock-pulse { margin-bottom: 14px; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--painel); box-shadow: var(--sombra-1); overflow: hidden; }
.v2-stock-pulse > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--borda); }
.v2-stock-pulse h3 { margin: 3px 0 0; font-size: 15px; }
.v2-stock-pulse-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.v2-stock-pulse-grid article { padding: 15px 16px; border-right: 1px solid var(--borda); }
.v2-stock-pulse-grid article:last-child { border-right: 0; }
.v2-stock-pulse-grid span, .v2-stock-pulse-grid small { display: block; color: var(--texto-3); font-size: 10.5px; }
.v2-stock-pulse-grid b { display: block; margin: 7px 0 4px; font-size: 21px; color: var(--texto); }
.v2-stock-pulse > footer { padding: 8px 16px; font-size: 10.5px; border-top: 1px solid var(--borda); background: var(--painel-alt); }
.v2-stock-pulse > footer.ok { color: var(--positivo); }.v2-stock-pulse > footer.pendente { color: var(--alerta); }
.v2-valor.positivo { color: var(--positivo); font-weight: 700; }
.v2-valor.negativo { color: var(--negativo); font-weight: 700; }
.v2-valor.neutro { color: var(--texto-2); }
.v2-seletor-corpo { display: flex; align-items: flex-end; gap: 18px; padding: 14px 18px; }
.v2-seletor-corpo p { margin: 4px 0 0; color: var(--texto-2); font-size: 12px; }
.v2-seletor select { min-width: 190px; padding: 7px 10px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  background: var(--painel); color: var(--texto); }
.v2-acoes-tabela { display: flex; align-items: flex-end; justify-content: flex-end; gap: 9px; }
.v2-acoes-tabela > small { align-self: center; color: var(--texto-3); white-space: nowrap; }
.v2-busca { display: grid; gap: 3px; color: var(--texto-3); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.v2-busca input { width: min(230px, 30vw); min-height: 31px; padding: 6px 9px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  background: var(--painel); color: var(--texto); font: inherit; text-transform: none; letter-spacing: normal; }
.v2-instrucao { display: block; margin-top: 4px; color: var(--texto-3); font-size: 10px; }
.v2-linha-clicavel { cursor: pointer; }
.v2-linha-clicavel:hover td, .v2-linha-clicavel:focus td { background: rgba(61,161,220,.08); }
.v2-linha-clicavel:focus { outline: 2px solid var(--azul-claro); outline-offset: -2px; }
.v2-paginacao { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--borda); }
.v2-paginacao span { color: var(--texto-3); font-size: 10.5px; }
.somente-v2 { display: none; }
body[data-painel="executivo-v2"] .somente-v2,
body[data-painel="estoque-360"] .somente-v2 { display: grid; }
body.modo-apresentacao .app { grid-template-columns: 1fr; }
body.modo-apresentacao .lateral, body.modo-apresentacao .barra-filtros, body.modo-apresentacao #btn-recolher,
body.modo-apresentacao .usuario-chip { display: none !important; }
body.modo-apresentacao .topo { position: static; }
body.modo-apresentacao .painel-corpo { padding: 26px clamp(28px, 4vw, 70px) 48px; }

@keyframes v2-entrada { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1450px) { .v2-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1050px) { .v2-grade-principal, .v2-grade-secundaria { grid-template-columns: 1fr; }
  .v2-cabecalho { flex-direction: column; }.v2-status { width: 100%; }.v2-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v2-stock-pulse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.v2-stock-pulse-grid article:nth-child(2) { border-right: 0; } }
@media (max-width: 650px) { .v2-kpis { grid-template-columns: 1fr; }.v2-cabecalho h2 { font-size: 23px; }
  .v2-legenda { display: none; }.v2-grafico { height: 290px; }.v2-seletor-corpo { align-items: stretch; flex-direction: column; }
  .v2-card > header, .v2-acoes-tabela, .v2-stock-pulse > header { align-items: stretch; flex-direction: column; }.v2-busca input { width: 100%; }
  .v2-stock-pulse-grid { grid-template-columns: 1fr; }.v2-stock-pulse-grid article { border-right: 0; border-bottom: 1px solid var(--borda); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
}
.grade { display: grid; gap: 14px; }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-2-1 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
@media (max-width: 1280px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .g-3, .g-2, .g-2-1 { grid-template-columns: minmax(0,1fr); }
  .admin-import-config { order: 1; }
  .admin-upload-col { order: 2; }
}
@media (max-width: 700px)  { .g-4 { grid-template-columns: minmax(0,1fr); } }

.cartao {
  background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: var(--sombra-1); overflow: hidden; min-width: 0;
}
.cartao-topo { padding: 12px 16px; border-bottom: 1px solid var(--borda);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cartao-topo h3 { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.cartao-topo .desc { font-size: 11.5px; color: var(--texto-3); }
.cartao-topo .acoes { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cartao-corpo { padding: 14px 16px; min-width: 0; }
.cartao-corpo.sem-padding { padding: 0; }

/* KPI */
.kpi { padding: 15px 16px; position: relative; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--marinho-500); }
.kpi.destaque::before { background: var(--amarelo); }
.kpi.verde::before { background: var(--positivo); }
.kpi.vermelho::before { background: var(--negativo); }
.kpi-rotulo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--texto-3); font-weight: 700; margin-bottom: 7px; }
.kpi-valor { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.kpi-rodape { margin-top: 9px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12px; color: var(--texto-2); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; font-size: 11.5px; }
.delta.pos { background: var(--positivo-bg); color: var(--positivo); }
.delta.neg { background: var(--negativo-bg); color: var(--negativo); }
.delta.neutro { background: var(--painel-alt); color: var(--texto-3); }

/* graficos */
.gr { width: 100%; height: 300px; }
.gr.alto { height: 380px; }
.gr.baixo { height: 220px; }
.grafico-vazio { height: 100%; min-height: 180px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  color: var(--texto-3); padding: 24px; }
.grafico-vazio b { color: var(--texto-2); font-size: 14px; }
.grafico-vazio span { font-size: 12px; }

/* --------------------------------------------------- LISTAS DE RANKING */
.lista-rank { list-style: none; margin: 0; padding: 4px 0; }
.lr-item {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) 78px auto auto;
  align-items: center; gap: 10px;
  padding: 7px 16px; border-bottom: 1px solid var(--borda);
  font-size: 12.5px;
}
.lr-item:last-child { border-bottom: none; }
.lr-item:hover { background: var(--hover-linha); }
.lr-pos {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--painel-alt); border: 1px solid var(--borda);
  font-size: 11px; font-weight: 700; color: var(--texto-2);
}
.lr-item:nth-child(1) .lr-pos { background: var(--marinho-500); border-color: var(--marinho-500); color: #fff; }
.lr-item:nth-child(2) .lr-pos { background: var(--azul-claro); border-color: var(--azul-claro); color: #fff; }
.lr-item:nth-child(3) .lr-pos { background: var(--amarelo); border-color: var(--amarelo); color: #001a39; }
.lr-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lr-barra { height: 7px; border-radius: 4px; background: var(--painel-alt);
  border: 1px solid var(--borda); overflow: hidden; }
.lr-barra i { display: block; height: 100%; background: var(--marinho-500); }
.lr-barra i.neg { background: var(--negativo); }
.lr-valor { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; min-width: 92px; }
.lr-var { font-variant-numeric: tabular-nums; font-size: 11.5px; text-align: right;
  min-width: 62px; font-weight: 700; }
.lr-valor.pos, .lr-var.pos { color: var(--positivo); }
.lr-valor.neg, .lr-var.neg { color: var(--negativo); }
@media (max-width: 620px) {
  .lr-item { grid-template-columns: 24px minmax(0,1fr) auto auto; gap: 6px; padding: 9px 11px; }
  .lr-barra { display: none; }
  .lr-valor, .lr-var { min-width: 0; }
}

/* --------------------------------------------------------------- TABELAS */
/* Em telas estreitas, a tabela preserva legibilidade com rolagem horizontal. */
.tabela-scroll { overflow-x: auto; overflow-y: auto; max-height: 620px; width: 100%; }
.tabela-scroll.alta { max-height: 900px; }

table.dados {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  font-size: 12.5px;
}
table.dados.compacta { font-size: 11.5px; }

table.dados th {
  position: sticky; top: 0; z-index: 2; background: var(--cab-tabela); color: var(--cab-tabela-txt);
  font-weight: 600; text-align: right; padding: 8px 8px;
  font-size: 10.5px; letter-spacing: .01em; line-height: 1.3;
  border-bottom: 1px solid var(--borda);
  overflow-wrap: anywhere; hyphens: auto;
}
table.dados th:first-child, table.dados td:first-child { text-align: left; }
table.dados th.esq, table.dados td.esq { text-align: left; }
table.dados th.ordenavel { cursor: pointer; }
table.dados th.ordenavel:hover { filter: brightness(1.35); }

table.dados td {
  padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--borda);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.dados td.esq { white-space: normal; overflow-wrap: anywhere; }
table.dados tbody tr:hover td { background: var(--hover-linha); }
table.dados tbody tr.total td { background: var(--total-linha); font-weight: 700; }
table.dados td.pos { color: var(--positivo); font-weight: 600; }
table.dados td.neg { color: var(--negativo); font-weight: 600; }
table.dados td.fixa { position: sticky; left: 0; background: var(--painel); z-index: 1;
  border-right: 1px solid var(--borda); font-weight: 600; }
table.dados tbody tr:hover td.fixa { background: var(--hover-linha); }
table.dados tbody tr.total td.fixa { background: var(--total-linha); }
table.dados th.fixa { position: sticky; left: 0; z-index: 3; }
table.dados td.clicavel { cursor: pointer; color: var(--marinho-500); }
:root[data-tema="escuro"] table.dados td.clicavel { color: var(--azul-claro); }
table.dados td.clicavel:hover { text-decoration: underline; }
table.dados tr.linha-selecionada td { background: rgba(11,76,146,.08); }
:root[data-tema="escuro"] table.dados tr.linha-selecionada td { background: rgba(96,165,250,.14); }

/* JBP — detalhamento por tipo de verba (clique na linha Verba/Contrato/Bonif.) */
table.dados tr.jbp-verba-linha td.fixa { color: var(--marinho-500); cursor: pointer; }
:root[data-tema="escuro"] table.dados tr.jbp-verba-linha td.fixa { color: var(--azul-claro); }
table.dados tr.jbp-verba-linha:hover td { background: var(--hover-linha); }
table.dados tr.jbp-verba-sub td { background: var(--painel-alt); font-size: 10.5px; color: var(--texto-2); }
table.dados tr.jbp-verba-sub td.fixa { background: var(--painel-alt); font-weight: 400; padding-left: 18px; }
/* coluna "Indicador" mais larga para o rotulo nao truncar (ex. "Verba/Contrato/Bonif. $",
   "Contratos (desconto financeiro)" do detalhamento). */
table.jbp-composicao th.fixa, table.jbp-composicao td.fixa {
  width: 190px; min-width: 190px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25;
}

/* matriz do evolutivo: muitas colunas em pouca largura */
table.dados.matriz { font-size: 11px; }
table.dados.matriz th, table.dados.matriz td { padding: 5px 4px; }
.evolutivo-scroll { overflow-x: hidden; padding-right: 10px; }
.evolutivo-scroll table.dados.matriz { width: 100%; min-width: 0; table-layout: fixed; }
.evolutivo-scroll table.dados.matriz th,
.evolutivo-scroll table.dados.matriz td { padding-left: 4px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evolutivo-scroll table.dados.matriz th:not(.fixa),
.evolutivo-scroll table.dados.matriz td:not(.fixa) { text-align: right; }
.evo-atualizando { min-height: 110px; display: grid; place-items: center; color: var(--texto-fraco); font-weight: 600; }

.hm-5 { background: var(--hm5) !important; }
.hm-4 { background: var(--hm4) !important; }
.hm-3 { background: var(--hm3) !important; }
.hm-2 { background: var(--hm2) !important; }
.hm-1 { background: var(--hm1) !important; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
  font-weight: 700; letter-spacing: .03em; }
.tag.a { background: var(--positivo-bg); color: var(--positivo); }
.tag.b { background: rgba(224,135,0,.14); color: var(--alerta); }
.tag.c { background: var(--negativo-bg); color: var(--negativo); }
.tag.cinza { background: var(--painel-alt); color: var(--texto-2); }

/* -------------------------------------------------------------- DIVERSOS */
.carregando {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--fundo) 74%, transparent);
  z-index: 200; display: none; flex-direction: column; gap: 8px; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.carregando.ativo { display: flex; }
.girador {
  width: 42px; height: 42px; border: 3px solid var(--borda);
  border-top-color: var(--marinho-500); border-radius: 50%; animation: girar .8s linear infinite;
}
.carrinho-loading-global { width: 250px; height: 120px; position: relative; display: flex; align-items: center; justify-content: center; }
.holo-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 9px rgba(40,220,224,.26)); }
.holo-cart { transform-origin: 120px 65px; animation: holoCartRun 1.7s cubic-bezier(.45,.05,.55,.95) infinite; }
.holo-stroke { fill: none; stroke: #3de3e1; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.holo-light { stroke: #f4c74a; stroke-width: 1.7; opacity: .8; }
.holo-wheel { fill: #07192c; stroke: #59f0e9; stroke-width: 2; animation: holoWheelSpin .9s linear infinite; }
.holo-item { fill: rgba(44,216,215,.28); stroke: #42e5df; stroke-width: 1.6; animation: holoItemPulse 1.4s ease-in-out infinite; }
.holo-item-2 { fill: rgba(250,193,50,.3); stroke: #f4c74a; animation-delay: .16s; }
.holo-item-3 { fill: rgba(68,133,241,.3); stroke: #6aa8ff; animation-delay: .31s; }
.holo-bottle { fill: rgba(61,227,225,.22); }
.holo-scan { fill: none; stroke: #f4c74a; stroke-width: 1.3; stroke-dasharray: 8 7; animation: holoScan 1.1s linear infinite; }
.holo-scanlines { fill: none; stroke: rgba(61,227,225,.18); stroke-width: 1; stroke-dasharray: 4 8; animation: holoScanlines 1.2s linear infinite; }
.holo-dot { fill: #f4c74a; filter: drop-shadow(0 0 4px #f4c74a); animation: holoDot 1.1s ease-in-out infinite; }
.holo-dot-2 { animation-delay: .35s; fill: #42e5df; }
.holo-track { position: absolute; left: 24px; right: 24px; bottom: 11px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(59,227,225,.3), #f4c74a, rgba(59,227,225,.3), transparent); box-shadow: 0 0 12px rgba(59,227,225,.6); overflow: hidden; }
.holo-track::after { content: ""; position: absolute; inset: 0 auto 0 -35%; width: 35%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: holoTrack 1.15s linear infinite; }
.holo-track i { position: absolute; width: 4px; height: 4px; top: -1px; border-radius: 50%; background: #f4c74a; box-shadow: 0 0 8px #f4c74a; animation: holoTrackDots 1.6s linear infinite; }
.holo-track i:nth-child(1) { left: 18%; }.holo-track i:nth-child(2) { left: 52%; animation-delay: .45s; }.holo-track i:nth-child(3) { left: 78%; animation-delay: .9s; }
.carregando-texto { color: var(--texto-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Mascote no lugar do carrinho de carregamento */
.mascote-loading-wrap { position: relative; width: 200px; height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.mascote-loading { height: 168px; width: auto; display: block; filter: drop-shadow(0 12px 16px rgba(18,33,58,.28));
  animation: mascoteFlutua 1.9s ease-in-out infinite; transform-origin: 50% 90%; }
.mascote-sombra { position: absolute; bottom: 12px; left: 50%; width: 118px; height: 16px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(18,33,58,.30), transparent 78%); border-radius: 50%;
  animation: mascoteSombra 1.9s ease-in-out infinite; }
.mascote-loading-wrap .holo-track { left: 30px; right: 30px; bottom: 6px; }
@keyframes mascoteFlutua { 0%,100% { transform: translateY(0) rotate(-1.3deg); } 50% { transform: translateY(-13px) rotate(1.3deg); } }
@keyframes mascoteSombra { 0%,100% { transform: translateX(-50%) scale(1); opacity: .85; } 50% { transform: translateX(-50%) scale(.8); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .mascote-loading, .mascote-sombra { animation: none; } }
@keyframes holoCartRun { 0%,100% { transform: translateX(-12px) translateY(1px) rotate(-1deg); opacity: .82; } 50% { transform: translateX(12px) translateY(-2px) rotate(1deg); opacity: 1; } }
@keyframes holoWheelSpin { to { stroke-dasharray: 2 4; transform: rotate(360deg); transform-origin: center; } }
@keyframes holoItemPulse { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes holoScan { to { stroke-dashoffset: -30; } }
@keyframes holoScanlines { to { stroke-dashoffset: -24; } }
@keyframes holoDot { 0%,100% { opacity: .3; transform: scale(.7); transform-origin: center; } 50% { opacity: 1; transform: scale(1.4); transform-origin: center; } }
@keyframes holoTrack { to { transform: translateX(380%); } }
@keyframes holoTrackDots { from { opacity: .25; transform: translateX(-10px); } 50% { opacity: 1; } to { opacity: .25; transform: translateX(24px); } }
/* Nome mantido para compatibilidade com o contrato visual legado. */
@keyframes carrinhoTrilha { to { background-position: -32px 0; } }
@keyframes girar { to { transform: rotate(360deg); } }

.vazio { padding: 46px 20px; text-align: center; color: var(--texto-3); }
.vazio b { display: block; color: var(--texto-2); margin-bottom: 5px; font-size: 15px; }

.modal-fundo {
  position: fixed; inset: 0; background: rgba(0,10,26,.6); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-fundo.ativo { display: flex; }
.modal {
  background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra-3);
  width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column;
  border: 1px solid var(--borda);
}
.modal.largo { max-width: 1080px; }
.modal-topo { padding: 15px 20px; border-bottom: 1px solid var(--borda); display: flex; align-items: center; }
.modal-topo h3 { margin: 0; font-size: 16px; }
.modal-topo .fechar { margin-left: auto; background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--texto-3); line-height: 1; }
.modal-corpo { padding: 20px; overflow-y: auto; }
.modal-rodape { padding: 13px 20px; border-top: 1px solid var(--borda); display: flex;
  justify-content: flex-end; gap: 9px; }

.mini-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--texto-2);
  align-items: center; }
.mini-legenda i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px;
  vertical-align: -1px; }

.linha-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) { .linha-form { grid-template-columns: minmax(0,1fr); } }

.nota {
  font-size: 12px; color: var(--texto-2); background: var(--painel-alt);
  border-left: 3px solid var(--azul-claro); padding: 10px 13px;
  border-radius: 0 var(--raio-sm) var(--raio-sm) 0; line-height: 1.6;
}

.caixa-upload {
  border: 2px dashed var(--borda-forte); border-radius: var(--raio); padding: 30px 20px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.caixa-upload:hover, .caixa-upload.arrastando { border-color: var(--marinho-500); background: var(--painel-alt); }
.caixa-upload b { display: block; margin-bottom: 5px; }
.caixa-upload small { color: var(--texto-3); }

.lista-arquivos { margin-top: 14px; max-height: 260px; overflow-y: auto; }
.arq-linha {
  display: flex; align-items: center; gap: 10px; padding: 7px 11px;
  border: 1px solid var(--borda); border-radius: var(--raio-sm); margin-bottom: 6px; font-size: 12.5px;
}
.arq-linha .nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arq-linha .estado { font-size: 11px; font-weight: 700; }
.arq-linha .estado.ok { color: var(--positivo); }
.arq-linha .estado.erro { color: var(--negativo); }
.arq-linha .estado.andamento { color: var(--marinho-500); }

.barra-prog { height: 5px; background: var(--borda); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.barra-prog > div { height: 100%; background: var(--marinho-500); transition: width .25s; }

.toast-area { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex;
  flex-direction: column; gap: 8px; }
.toast {
  background: var(--marinho-900); color: #fff; padding: 11px 16px; border-radius: var(--raio-sm);
  box-shadow: var(--sombra-3); font-size: 13px; max-width: 380px; animation: entrar .2s ease-out;
}
.toast.erro { background: var(--negativo); }
.toast.ok { background: var(--positivo); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }

.somente-admin { display: none; }
body[data-perfil="ADMIN"] .somente-admin { display: block; }
body[data-perfil="ADMIN"] .nav-item.somente-admin { display: flex; }

.sub-titulo {
  margin: 26px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--texto-3);
  display: flex; align-items: center; gap: 12px;
}
.sub-titulo::after { content: ""; flex: 1; height: 1px; background: var(--borda); }

.menu-overlay { display: none; position: fixed; inset: 0; border: 0; background: rgba(0,10,26,.58); z-index: 89; }
@media (max-width: 900px) {
  html, body { min-height: 100%; overflow-x: hidden; }

  /* Campo com menos de 16px faz o iPhone dar zoom sozinho ao tocar. */
  input, select, textarea { font-size: 16px; }

  /* Celular com notch: nada fica embaixo da barra do sistema. */
  .lateral { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .topo { padding-top: max(8px, env(safe-area-inset-top)); }
  .painel-corpo { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .toast-area { bottom: max(16px, env(safe-area-inset-bottom)); }

  /* Matriz do Evolutivo: no celular e' melhor rolar do que espremer. */
  .evolutivo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .evolutivo-scroll table.dados.matriz { width: max-content; min-width: 100%; table-layout: auto; }

  /* Tabelas largas: rolagem horizontal com o toque, sem cortar coluna. */
  .tabela-scroll, .e360-table-wrap, .cartao-corpo.sem-padding { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabela-scroll table.dados, .e360-table-wrap table.dados { min-width: max-content; }

  /* Graficos mais baixos: cabem na tela sem rolar duas vezes. */
  .grafico, .gr, .e360-chart, .v2-grafico { height: 240px !important; min-height: 0; }

  /* Area de toque: botao pequeno demais erra o dedo. */
  .btn, .chip, .nav-item, .pp-abas button { min-height: 38px; }

  /* Login: marca compacta e formulario ainda na primeira dobra. */
  .login-tela { min-height: 100dvh; }
  .login-arte { min-height: 220px; justify-content: center; padding: 24px; }
  .login-arte img { width: 148px; max-width: 52vw; margin-bottom: 14px; }
  .login-arte h1 { margin-bottom: 0; font-size: clamp(23px, 7vw, 29px); }
  .login-arte p, .login-selos { display: none; }
  .login-form-area { align-items: flex-start; padding: 28px 20px 34px; }
  .login-caixa { max-width: 440px; }
  .login-caixa .sub { margin-bottom: 22px; }
  .campo input, .campo select, .btn-primario { min-height: 46px; }

  /* Navegacao off-canvas com alvos de toque confortaveis. */
  .app, .app.recolhido { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(292px, 86vw); z-index: 90; transform: translateX(-102%);
    transition: transform .2s ease-out; box-shadow: var(--sombra-3); }
  .app.menu-aberto .lateral { transform: translateX(0); }
  .app.menu-aberto ~ .menu-overlay { display: block; }
  .nav-item { min-height: 44px; padding: 11px 18px; }

  /* Cabecalho prioriza menu, titulo e acoes essenciais. */
  .topo { min-height: 60px; height: auto; padding: 8px 10px; gap: 8px; }
  .topo > div:nth-child(2) { min-width: 0; flex: 1; }
  .topo h1 { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .topo .sub { display: none; }
  .topo-dir { flex: 0 0 auto; gap: 4px; }
  .icone-btn { width: 40px; height: 40px; }
  #btn-tema, #btn-atualizar { display: none !important; }
  .usuario-chip > div:not(.avatar) { display: none; }
  .usuario-chip { min-width: 40px; min-height: 40px; padding: 6px; justify-content: center; }
  .avatar { width: 28px; height: 28px; }

  /* Filtros deixam de ser uma faixa longa e viram uma grade legivel. */
  .barra-filtros { padding: 10px; position: relative; top: auto; }
  .filtros-basicos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0; }
  .filtros-basicos > .filtro:first-child,
  .filtros-basicos > .filtro:nth-child(2),
  .filtros-basicos > .filtro:nth-child(5),
  .filtros-basicos > .filtros-toggle { grid-column: 1 / -1; }
  .filtros-basicos > .filtro:first-child > div { display: grid !important; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .filtros-basicos > .filtro:first-child input { min-width: 0; width: 100%; }
  .filtros-avancados { overflow: visible; padding: 10px 0 0; }
  .filtros-avancados.aberto { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .filtro { min-width: 0; }
  .filtro input[type="date"], .filtro select { min-height: 42px; }
  .chip-periodos { max-width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .chip { min-height: 38px; }
  .multi-botao { width: 100%; min-width: 0; max-width: none; min-height: 42px; }
  .multi-painel { position: fixed; inset: 18vh 12px auto; width: auto; max-height: 64vh; z-index: 110; }
  .filtros-toggle { width: 100%; min-height: 42px; justify-content: center; }

  /* Conteudo e graficos com densidade propria para telefone. */
  .painel-corpo { padding: 12px 10px 28px; }
  .grade { gap: 10px; }
  .cartao { border-radius: 10px; }
  .cartao-topo { padding: 11px 12px; }
  .cartao-topo .acoes { width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .cartao-corpo { padding: 12px; }
  .kpi { padding: 14px; }
  .kpi-valor { font-size: clamp(22px, 7vw, 29px); }
  .gr { height: 260px; }
  .gr.alto { height: 310px; }
  .gr.baixo { height: 210px; }
  .tabela-scroll { max-height: none; overflow-y: visible; -webkit-overflow-scrolling: touch; }
  table.dados { min-width: 720px; table-layout: auto; font-size: 11.5px; }
  table.dados.matriz { min-width: 960px; }

  /* Modais funcionam como folhas inferiores e nao escapam da viewport. */
  .modal-fundo { align-items: flex-end; padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 14px; }
  .modal-topo, .modal-corpo { padding: 14px; }
  .modal-rodape { padding: 11px 14px; flex-wrap: wrap; }
  .modal-rodape .btn { min-height: 42px; }
  .toast-area { right: 10px; bottom: 10px; left: 10px; }
  .toast { max-width: none; }
}

@media (max-width: 420px) {
  .topo-dir { gap: 2px; }
  .icone-btn, .usuario-chip { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .filtros-basicos { grid-template-columns: 1fr; }
  .filtros-basicos > .filtro, .filtros-basicos > .filtros-toggle { grid-column: 1; }
  .lr-item { grid-template-columns: 22px minmax(0,1fr) auto; }
  .lr-var { grid-column: 2 / -1; justify-self: end; }
}

@media print {
  @page { size: A4 landscape; margin: 8mm; }

  /* Imprimir SEMPRE com a paleta clara, mesmo com a tela no tema escuro.
     Sem isto o relatorio sai com as cores pensadas pra fundo preto: texto
     claro somindo no papel e blocos escuros chapados -- que e' o que faz a
     impressao parecer "preto e branco". Aqui o tema escuro volta aos valores
     do :root claro so' no momento da impressao. */
  :root[data-tema="escuro"] {
    --fundo: #f4f6fa; --painel: #ffffff; --painel-alt: #fafbfd;
    --borda: #dfe5ee; --borda-forte: #c3cddd;
    --cab-tabela: #002856; --cab-tabela-txt: #ffffff;
    --lateral-bg: #002856; --topo-bg: #ffffff;
    --texto: #12213a; --texto-2: #4d5f7c; --texto-3: #8496b0;
    --positivo: #0f8f5c; --positivo-bg: #e4f5ed;
    --negativo: #cf2a3f; --negativo-bg: #fdeaec;
    --alerta: #e08700;
    --hover-linha: #f2f7fd; --total-linha: #eef3fa;
    --hm5: #b3ddc7; --hm4: #d6eee1; --hm3: #f2f5f8; --hm2: #fbdde1; --hm1: #f4b8c0;
  }
  /* Sombra no papel vira mancha cinza; em qualquer tema a impressao sai sem. */
  :root, :root[data-tema="escuro"] { --sombra-1: none; --sombra-2: none; --sombra-3: none; }

  html, body { width: 100%; min-height: 0; overflow: visible !important; background: #fff !important; color: #14243a !important; }
  /* Manda o navegador imprimir fundo e cor de verdade, em vez de descartar
     como faz por padrao. */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .lateral, .barra-filtros, .topo-dir, .cartao-topo .acoes { display: none !important; }
  .app, .conteudo { display: block; width: 100%; min-width: 0; overflow: visible !important; }
  .topo { position: static; height: auto; padding: 10px 0 14px; }
  .topo h1 { color: #002856 !important; font-size: 19px; }
  .topo .sub { display: block; color: #49627f !important; }
  .painel-corpo { width: 100%; padding: 0; overflow: visible !important; }
  .cartao { break-inside: avoid; box-shadow: none; }
  .cartao:has(table), .v2-card:has(table) { break-inside: auto; }
  .cartao-corpo, .tabela-scroll, .tabela-scroll.alta { max-height: none !important; overflow: visible !important; }
  table.dados, table { width: 100% !important; min-width: 0 !important; table-layout: auto; font-size: 7.5px; }
  thead { display: table-header-group; }
  tbody tr { break-inside: avoid; }
  th, td { padding: 4px 3px !important; }
  .gr, .gr.alto, .v2-grafico, .e360-chart { width: 100% !important; max-width: 100% !important; height: 245px !important; }
  canvas, svg { max-width: 100% !important; }
  .v2-card, .v2-kpi, .v2-cabecalho { break-inside: avoid; box-shadow: none; }
  .v2-kpis { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .v2-grade-principal { grid-template-columns: 2fr .75fr; }
  .v2-grade-secundaria { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v2-grafico { height: 245px; }
  .tabela-scroll { max-height: none; overflow: visible; }
}

/* ==========================================================================
   ANALISTA DE IA
   ========================================================================== */
.ia-caixa { display: flex; flex-direction: column; height: 520px; min-height: 0; }

.ia-conversa {
  flex: 1; overflow-y: auto; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 14px; scroll-behavior: smooth;
}
.ia-conversa::-webkit-scrollbar { width: 7px; }
.ia-conversa::-webkit-scrollbar-thumb { background: var(--borda-forte); border-radius: 4px; }

.ia-msg { display: flex; gap: 11px; max-width: 100%; animation: iaEntra .22s ease-out; }
@keyframes iaEntra { from { opacity: 0; transform: translateY(6px); } }
.ia-msg.eu { flex-direction: row-reverse; }

.ia-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.ia-avatar.bot { background: linear-gradient(135deg, var(--marinho-500), var(--azul-claro)); color: #fff; }
.ia-avatar.eu  { background: var(--amarelo); color: #001a39; }

.ia-balao {
  border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.62;
  min-width: 0; max-width: calc(100% - 44px);
}
.ia-msg.bot .ia-balao { background: var(--painel-alt); border: 1px solid var(--borda); border-top-left-radius: 3px; }
.ia-msg.eu  .ia-balao { background: var(--marinho-500); color: #fff; border-top-right-radius: 3px; }

/* markdown dentro da resposta */
.ia-balao p { margin: 0 0 8px; }
.ia-balao p:last-child { margin-bottom: 0; }
.ia-balao ul, .ia-balao ol { margin: 6px 0 8px; padding-left: 20px; }
.ia-balao li { margin-bottom: 3px; }
.ia-balao strong { font-weight: 700; }
.ia-balao code {
  background: var(--fundo); border: 1px solid var(--borda); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; font-variant-numeric: tabular-nums;
}
.ia-balao table {
  width: 100%; border-collapse: collapse; margin: 9px 0; font-size: 12px;
  table-layout: auto;
}
.ia-balao table th {
  background: var(--cab-tabela); color: var(--cab-tabela-txt); text-align: right;
  padding: 6px 8px; font-weight: 600; font-size: 11px; white-space: nowrap;
}
.ia-balao table th:first-child, .ia-balao table td:first-child { text-align: left; }
.ia-balao table td {
  padding: 5px 8px; border-bottom: 1px solid var(--borda); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ia-balao table tr:last-child td { border-bottom: none; }
.ia-tabela-rolagem { overflow-x: auto; }

.ia-passos { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.ia-passo {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--texto-3);
  animation: iaEntra .2s ease-out;
}
.ia-passo .bolinha {
  width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); flex-shrink: 0;
}
.ia-passo.ativo .bolinha { animation: iaPulsa 1s ease-in-out infinite; }
@keyframes iaPulsa { 50% { opacity: .25; transform: scale(.7); } }

.ia-fontes {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--borda);
  font-size: 11px; color: var(--texto-3); display: flex; gap: 6px; flex-wrap: wrap;
  align-items: center;
}
.ia-fonte-tag {
  background: var(--fundo); border: 1px solid var(--borda); border-radius: 999px;
  padding: 2px 9px;
}

.ia-digitando { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }
.ia-digitando i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--texto-3);
  animation: iaPonto 1.2s infinite;
}
.ia-digitando i:nth-child(2) { animation-delay: .18s; }
.ia-digitando i:nth-child(3) { animation-delay: .36s; }
@keyframes iaPonto { 0%,60%,100% { opacity:.25; transform: translateY(0); } 30% { opacity:1; transform: translateY(-3px); } }

.ia-sugestoes { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 18px 12px; }
.ia-sugestao {
  border: 1px solid var(--borda-forte); background: var(--painel); color: var(--texto-2);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; text-align: left;
}
.ia-sugestao:hover { border-color: var(--marinho-500); color: var(--marinho-500); background: var(--painel-alt); }

.ia-entrada {
  border-top: 1px solid var(--borda); padding: 12px 16px; display: flex; gap: 9px;
  align-items: flex-end; background: var(--painel);
}
.ia-entrada textarea {
  flex: 1; resize: none; border: 1px solid var(--borda-forte); border-radius: 10px;
  padding: 10px 13px; font-size: 13.5px; line-height: 1.5; max-height: 132px;
  background: var(--painel); color: var(--texto); outline: none; font-family: inherit;
}
.ia-entrada textarea:focus { border-color: var(--marinho-500); box-shadow: 0 0 0 3px rgba(11,76,146,.13); }
.ia-enviar {
  width: 40px; height: 40px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--marinho-500); color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.ia-enviar:hover { background: var(--marinho-600); }
.ia-enviar:disabled { opacity: .45; cursor: not-allowed; }

.ia-vazio { text-align: center; color: var(--texto-3); padding: 26px 20px; }
.ia-vazio .marca {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--marinho-500), var(--azul-claro));
  display: grid; place-items: center; color: #fff;
}
.ia-vazio b { display: block; color: var(--texto); font-size: 15px; margin-bottom: 5px; }
.ia-vazio span { font-size: 12.5px; line-height: 1.6; }

.ia-desligada { padding: 24px; }

/* Command Center do Analista — identidade futurista com leitura executiva. */
.ia-command-center { position: relative; border-color: color-mix(in srgb, var(--azul-claro) 28%, var(--borda)); box-shadow: 0 18px 45px rgba(0, 32, 71, .12); isolation: isolate; }
.ia-command-center::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--amarelo), #20d5d2 48%, #3888ff); }
.ia-command-center > .cartao-topo { background: color-mix(in srgb, var(--painel) 94%, #dffbff); }
.ia-command-header { min-height: 92px; padding: 20px 22px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; background: radial-gradient(circle at 74% -30%, rgba(35, 213, 210, .35), transparent 38%), radial-gradient(circle at 12% 160%, rgba(255, 199, 0, .2), transparent 34%), linear-gradient(118deg, #001b3b 0%, #043b70 58%, #075c78 100%); }
.ia-command-header::after { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%, transparent); }
.ia-command-identidade, .ia-command-status { position: relative; z-index: 1; }
.ia-command-identidade { display: flex; align-items: center; gap: 13px; }
.ia-command-identidade > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.ia-command-identidade strong { font-size: 21px; letter-spacing: -.02em; }
.ia-command-kicker { color: #77e9eb; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.ia-command-simbolo { width: 49px; height: 49px; border-radius: 15px; display: grid; place-items: center; color: #76f4f1; position: relative; border: 1px solid rgba(118,244,241,.42); background: rgba(4, 28, 57, .58); box-shadow: inset 0 0 22px rgba(50,220,219,.14), 0 0 24px rgba(50,220,219,.16); }
.ia-command-simbolo svg { width: 23px; height: 23px; }
.ia-command-simbolo span { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #38dfa2; border: 3px solid #04375f; }
.ia-command-status { min-width: 192px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(0, 18, 41, .36); backdrop-filter: blur(8px); }
.ia-command-status > span:not(.ia-status-pulso) { font-size: 11.5px; font-weight: 700; }
.ia-command-status small { grid-column: 2; color: #b8cce0; font-size: 9.5px; }
.ia-status-pulso { width: 8px; height: 8px; grid-row: 1 / 3; border-radius: 50%; background: #38dfa2; box-shadow: 0 0 0 5px rgba(56,223,162,.12); animation: iaStatus 2s ease-in-out infinite; }
.ia-command-status.offline .ia-status-pulso { background: var(--negativo); box-shadow: none; animation: none; }
@keyframes iaStatus { 50% { box-shadow: 0 0 0 9px rgba(56,223,162,0); } }
.ia-contexto { min-height: 43px; padding: 8px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--borda); background: var(--painel-alt); color: var(--texto-3); font-size: 10.5px; }
.ia-contexto > span:first-child { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-contexto b { color: var(--texto); margin-right: 8px; }
.ia-contexto-selo { border: 1px solid var(--borda-forte); background: var(--painel); color: var(--texto-2); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.ia-command-center .ia-caixa { height: 590px; background: linear-gradient(180deg, color-mix(in srgb, var(--painel-alt) 48%, transparent), var(--painel)); }
.ia-command-center .ia-conversa { padding: 20px 22px; }
.ia-command-center .ia-vazio { padding: 20px 20px 15px; max-width: 680px; align-self: center; }
.ia-command-center .ia-vazio b { font-size: clamp(21px, 2vw, 28px); letter-spacing: -.035em; margin: 5px 0 8px; }
.ia-command-center .ia-vazio span { display: block; max-width: 590px; line-height: 1.55; }
.ia-eyebrow { color: var(--azul-claro); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.ia-orbe { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; padding: 8px; position: relative; background: conic-gradient(from 15deg, var(--azul-claro), transparent 24%, var(--amarelo), transparent 62%, #31dca5); animation: iaOrbita 9s linear infinite; }
.ia-orbe::before { content: ""; position: absolute; inset: -7px; border: 1px solid color-mix(in srgb, var(--azul-claro) 36%, transparent); border-radius: 50%; }
.ia-orbe-nucleo { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: #7df3f0; background: #052a50; box-shadow: inset 0 0 24px rgba(49,220,213,.24), 0 0 30px rgba(30,160,210,.16); animation: iaOrbita 9s linear infinite reverse; }
.ia-orbe-nucleo svg { width: 25px; height: 25px; }
@keyframes iaOrbita { to { transform: rotate(360deg); } }
.ia-command-center .ia-sugestoes { width: min(900px, 100%); align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding: 0 22px 20px; }
.ia-command-center .ia-sugestao { min-height: 68px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px; border-radius: 13px; padding: 10px 12px; background: color-mix(in srgb, var(--painel) 94%, #dffbff); border-color: color-mix(in srgb, var(--azul-claro) 23%, var(--borda)); box-shadow: 0 5px 14px rgba(0,37,79,.04); }
.ia-command-center .ia-sugestao:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,61,112,.11); border-color: var(--azul-claro); }
.ia-sugestao-icone { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #087d94; background: rgba(32,213,210,.12); font-size: 9px; font-weight: 800; }
.ia-sugestao > span:nth-child(2) { min-width: 0; }
.ia-sugestao small { display: block; color: var(--texto-3); font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.ia-sugestao strong { display: block; color: var(--texto); font-size: 11.5px; line-height: 1.35; }
.ia-sugestao-seta { color: var(--azul-claro); font-size: 17px; }
.ia-command-center .ia-entrada { padding: 14px 18px 17px; background: var(--painel); }
.ia-composer { width: 100%; border: 1px solid color-mix(in srgb, var(--azul-claro) 35%, var(--borda-forte)); border-radius: 15px; background: var(--painel); box-shadow: 0 8px 26px rgba(0,40,88,.09); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.ia-composer:focus-within { border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(27,170,199,.12), 0 12px 32px rgba(0,40,88,.12); }
.ia-command-center .ia-entrada textarea { width: 100%; border: 0; border-radius: 0; padding: 13px 15px 7px; box-shadow: none; background: transparent; }
.ia-command-center .ia-entrada textarea:focus { border: 0; box-shadow: none; }
.ia-composer-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px 8px 14px; color: var(--texto-3); font-size: 9.5px; }
.ia-composer-acoes { display: flex; align-items: center; gap: 7px; }
.ia-microfone, .ia-voz-auto { min-height: 34px; padding: 0 10px; border: 1px solid var(--borda-forte); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--texto-2); background: var(--painel-alt); cursor: pointer; font-size: 10.5px; font-weight: 700; transition: color .16s, border-color .16s, background .16s, transform .16s; }
.ia-microfone:hover, .ia-voz-auto:hover, .ia-voz-auto.ativo { color: var(--marinho-500); border-color: var(--azul-claro); background: color-mix(in srgb, var(--azul-claro) 10%, var(--painel)); }
.ia-microfone.gravando { color: #fff; border-color: var(--negativo); background: var(--negativo); animation: ia-gravando 1.25s ease-in-out infinite; }
.ia-microfone:disabled, .ia-voz-auto:disabled { opacity: .45; cursor: not-allowed; }
.ia-ouvir { margin-top: 10px; min-height: 31px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--azul-claro) 45%, var(--borda)); border-radius: 8px; color: var(--marinho-500); background: color-mix(in srgb, var(--azul-claro) 8%, var(--painel)); cursor: pointer; font-size: 10.5px; font-weight: 750; }
.ia-ouvir:hover, .ia-ouvir.falando { color: #fff; border-color: var(--marinho-500); background: var(--marinho-500); }
@keyframes ia-gravando { 50% { box-shadow: 0 0 0 5px rgba(217,45,64,.15); transform: scale(1.02); } }
.ia-command-center .ia-enviar { width: auto; height: 34px; padding: 0 13px; display: flex; gap: 7px; border-radius: 9px; background: linear-gradient(120deg, var(--marinho-500), #087f9a); font-size: 11px; font-weight: 700; }
.ia-command-center .ia-msg.bot .ia-balao { box-shadow: 0 6px 20px rgba(0,33,74,.06); }

@media (max-width: 700px) {
  .ia-command-header { min-height: 86px; padding: 15px 13px; }
  .ia-command-identidade strong { font-size: 17px; }
  .ia-command-kicker { font-size: 7.5px; }
  .ia-command-status { min-width: 0; padding: 8px; }
  .ia-command-status small { display: none; }
  .ia-contexto { padding: 8px 12px; overflow-x: auto; }
  .ia-contexto > span:first-child { min-width: 230px; }
  .ia-command-center .ia-caixa { height: 620px; }
  .ia-command-center .ia-conversa { padding: 14px 12px; }
  .ia-command-center .ia-sugestoes { grid-template-columns: 1fr; padding: 0 12px 16px; }
  .ia-command-center .ia-vazio { padding: 18px 10px 13px; }
  .ia-command-center .ia-vazio b { font-size: 21px; }
  .ia-command-center .ia-entrada { padding: 10px; }
  .ia-composer-rodape > span { display: none; }
  .ia-composer-rodape { justify-content: flex-end; }
  .ia-composer-acoes { width: 100%; }
  .ia-microfone, .ia-voz-auto { flex: 1; }
}

:root[data-tema="escuro"] .ia-command-center { border-color: #174d6c; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
:root[data-tema="escuro"] .ia-command-center .ia-sugestao { background: rgba(8,35,61,.88); }
:root[data-tema="escuro"] .ia-sugestao-icone { color: #74ece9; }

/* ==========================================================================
   RANK KPI — resumo acima do cabecalho
   ========================================================================== */
/* Com as linhas Total/Comp dentro do thead, quem gruda no topo e' o bloco
   inteiro, e nao cada celula: assim o resumo e o cabecalho rolam juntos. */
table.dados.resumo-acima thead { position: sticky; top: 0; z-index: 4; }
table.dados.resumo-acima th { position: static; }
table.dados.resumo-acima thead tr.total td {
  background: var(--total-linha);
  border-bottom: 1px solid var(--borda);
  font-weight: 700;
  position: static;
}
table.dados.resumo-acima thead tr.total:first-child td { border-top: none; }
table.dados.resumo-acima thead tr:last-child th { border-bottom: 2px solid var(--marinho-500); }

/* Posicao no ranking, no amarelo da logo */
.rk-pos {
  color: var(--amarelo-escuro);
  font-weight: 700;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
:root[data-tema="escuro"] .rk-pos { color: var(--amarelo); }

/* Evolutivo historico do Estoque 360: leitura compacta e auditavel. */
.evo-estoque-nota { color: var(--texto-3); font-size: 10px; margin: 0 0 8px; }
.evo-estoque-scroll { overflow-x: auto; }
.evo-estoque-scroll table.dados.matriz { min-width: 720px; table-layout: auto; }
.evo-estoque-tabela th, .evo-estoque-tabela td { white-space: nowrap; min-width: 96px; }
.evo-estoque-tabela th:first-child, .evo-estoque-tabela td:first-child { min-width: 150px; }
.evo-faixas-celula { display: grid; gap: 2px; line-height: 1.15; font-size: 9px; text-align: left; }
.evo-faixas-celula span { color: var(--texto-2); }
.evo-faixas-td { min-width: 150px !important; }
.evo-exec-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--borda); border-radius: 8px; overscroll-behavior-x: contain; scrollbar-color: var(--marinho-500) var(--painel-alt); }
.evo-exec-table { min-width: max-content; table-layout: auto; font-variant-numeric: tabular-nums; }
.evo-exec-table th, .evo-exec-table td { white-space: nowrap; padding: 7px 8px; text-align: right; }
.evo-exec-table th.fixa, .evo-exec-table td.fixa { text-align: left; position: sticky; left: 0; z-index: 2; background: var(--painel); min-width: 145px; }
.evo-exec-table thead th { background: var(--marinho-700); color: var(--texto-inv); }
.evo-exec-table thead .evo-grupo-data { text-align: center; border-left: 1px solid var(--borda-forte); }
.evo-exec-table .evo-total-col { font-weight: 700; border-left: 1px solid var(--borda-forte); }
.evo-mix-table th, .evo-mix-table td { min-width: 62px; font-size: 10px; }
.evo-mix-table th.fixa, .evo-mix-table td.fixa { min-width: 138px; }
.evo-mix-table .pct-cell { color: var(--texto-2); font-size: 9px; }
.evo-mix-table .evo-aging-qtd { font-weight: 700; border-left: 1px solid rgba(255,255,255,.08); }
.evo-mix-table .evo-aging-pct { border-right: 1px solid rgba(255,255,255,.08); }
.evo-mix-table thead th.evo-faixa-0-5 { background: #238b62; }
.evo-mix-table thead th.evo-faixa-6-30 { background: #167f87; }
.evo-mix-table thead th.evo-faixa-31-60 { background: #236da5; }
.evo-mix-table thead th.evo-faixa-60-90 { background: #b87818; }
.evo-mix-table thead th.evo-faixa-90-180 { background: #c45f25; }
.evo-mix-table thead th.evo-faixa-180-plus { background: #a83d4f; }
.evo-mix-table tbody td.evo-faixa-0-5 { background: rgba(35,139,98,.13); }
.evo-mix-table tbody td.evo-faixa-6-30 { background: rgba(22,127,135,.13); }
.evo-mix-table tbody td.evo-faixa-31-60 { background: rgba(35,109,165,.13); }
.evo-mix-table tbody td.evo-faixa-60-90 { background: rgba(184,120,24,.15); }
.evo-mix-table tbody td.evo-faixa-90-180 { background: rgba(196,95,37,.15); }
.evo-mix-table tbody td.evo-faixa-180-plus { background: rgba(168,61,79,.16); }
.evo-mix-table tbody tr.total td.evo-faixa-0-5 { background: rgba(35,139,98,.23); }
.evo-mix-table tbody tr.total td.evo-faixa-6-30 { background: rgba(22,127,135,.23); }
.evo-mix-table tbody tr.total td.evo-faixa-31-60 { background: rgba(35,109,165,.23); }
.evo-mix-table tbody tr.total td.evo-faixa-60-90 { background: rgba(184,120,24,.25); }
.evo-mix-table tbody tr.total td.evo-faixa-90-180 { background: rgba(196,95,37,.25); }
.evo-mix-table tbody tr.total td.evo-faixa-180-plus { background: rgba(168,61,79,.26); }
.evo-legenda-faixas { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-weight: 700; color: var(--texto-2); }
.evo-legenda-faixas i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.evo-faixa-0-5 { background: #238b62; }
.evo-faixa-6-30 { background: #167f87; }
.evo-faixa-31-60 { background: #236da5; }
.evo-faixa-60-90 { background: #b87818; }
.evo-faixa-90-180 { background: #c45f25; }
.evo-faixa-180-plus { background: #a83d4f; }
.evo-loading-cart { width: 168px; height: 86px; position: relative; display: inline-flex; align-items: center; justify-content: center; animation: carrinhoAndando 1.7s cubic-bezier(.45,.05,.55,.95) infinite; }
.evo-loading-cart .holo-svg { width: 100%; height: 100%; }
.evo-loading-cart .holo-track { left: 14px; right: 14px; bottom: 7px; }
.evo-loading-cart .holo-track i:last-child { display: none; }
.evo-atualizando { min-height: 130px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; color: var(--texto-fraco); font-weight: 600; }
@keyframes carrinhoAndando { 0%,100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.evo-exec-note { color: var(--texto-3); font-size: 10px; line-height: 1.4; margin: 0 0 8px; }
.evo-ok { color: var(--positivo) !important; font-weight: 700; }
.evo-alerta { color: var(--negativo) !important; font-weight: 700; }
@media print {
  .evo-exec-scroll { overflow: visible; border: 0; }
  .evo-exec-table { min-width: 100%; font-size: 8px; }
  .evo-exec-table th.fixa, .evo-exec-table td.fixa { position: static; }
}
@media (max-width: 700px) {
  .evo-estoque-tabela th, .evo-estoque-tabela td { min-width: 88px; }
  .evo-estoque-tabela th:first-child, .evo-estoque-tabela td:first-child { min-width: 120px; }
  .evo-faixas-td { min-width: 138px !important; }
}

/* ------------------------------------------------ Importar: Atualizacao do BI */
.atu-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.atu-pct { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; min-width: 92px; }
.atu-pct.ok { color: var(--positivo); } .atu-pct.meio { color: var(--alerta); } .atu-pct.baixo { color: var(--negativo); }
.atu-resumo b { display: block; font-size: 14px; color: var(--texto); }
.atu-resumo span { font-size: 12px; color: var(--texto-3); }
.atu-barra { height: 14px; border-radius: 8px; background: var(--total-linha); border: 1px solid var(--borda); overflow: hidden; }
.atu-barra > div { height: 100%; border-radius: 8px; transition: width .5s ease; }
.atu-barra > .ok { background: var(--positivo); } .atu-barra > .meio { background: var(--alerta); } .atu-barra > .baixo { background: var(--negativo); }
.atu-ok { margin-top: 12px; padding: 10px 12px; border-radius: var(--raio-sm); background: var(--positivo-bg); color: var(--positivo); font-weight: 600; font-size: 13px; }
.atu-tit { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.atu-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.atu-lista li { border: 1px solid var(--borda); border-left: 4px solid var(--negativo); border-radius: var(--raio-sm); padding: 8px 10px; background: var(--painel-alt); }
.atu-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--texto); }
.atu-freq { margin-left: auto; font-size: 11px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .05em; }
.atu-l2 { font-size: 12px; color: var(--texto-2); margin-top: 3px; }
.atu-falta { margin-top: 5px; font-size: 12px; color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.atu-falta span { background: var(--negativo-bg); color: var(--negativo); border-radius: 10px; padding: 1px 8px; font-weight: 600; font-size: 11.5px; }
.atu-como { margin-top: 4px; font-size: 11.5px; color: var(--texto-3); }
.atu-det { margin-top: 12px; } .atu-det summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--marinho-500); padding: 4px 0; }
:root[data-tema="escuro"] .atu-det summary { color: var(--azul-claro); }

/* ------------------------------------------------------------- Simulador */
.simu-params { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .simu-params { grid-template-columns: 1fr; } }
.simu-bloco > b { display: block; font-size: 12px; color: var(--marinho-500); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
:root[data-tema="escuro"] .simu-bloco > b { color: var(--azul-claro); }
.simu-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.simu-pct span:first-child { display: block; font-size: 11px; color: var(--texto-3); margin-bottom: 3px; }
.simu-inwrap { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-2); font-size: 12px; }
.simu-pct input { width: 74px; padding: 6px 8px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm); background: var(--painel); color: var(--texto); font: inherit; }
.simu-pct input:disabled { opacity: .45; }
.simu-fino { margin-top: 8px; }
.simu-fino summary { cursor: pointer; font-size: 12px; color: var(--marinho-500); padding: 3px 0; }
:root[data-tema="escuro"] .simu-fino summary { color: var(--azul-claro); }
.simu-fino input { width: 56px; padding: 3px 4px; border: 1px solid var(--borda); border-radius: 4px; background: var(--painel); color: var(--texto); font: inherit; font-size: 11px; text-align: right; }
.simu-tab .simu-ano { text-align: center; border-left: 2px solid var(--borda-forte); }
.simu-tab th, .simu-tab td { text-align: right; }
.simu-tab td.esq, .simu-tab th.esq { text-align: left; }
.simu-tab td.simu-cel { background: rgba(252, 194, 0, .13); font-style: italic; }
:root[data-tema="escuro"] .simu-tab td.simu-cel { background: rgba(252, 194, 0, .10); }
.simu-acessos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; }
.simu-acessos-grid .check small { color: var(--texto-3); }

/* ---------------------------------------------------------- PREVENCAO */
.pp-topo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pp-filtros { position: static; border: 1px solid var(--borda); border-radius: var(--raio, 10px); margin-bottom: 14px; }
.pp-nota-filtro { justify-content: flex-end; padding-bottom: 7px; }
.pp-periodo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-periodo label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3); }
.pp-nota { font-size: 12px; color: var(--texto-3); }
.pp-cinza { color: var(--texto-3); }
.pp-abas { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--borda); }
.pp-abas button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--texto-2); padding: 8px 12px; border-bottom: 3px solid transparent; cursor: pointer; }
.pp-abas button:hover { color: var(--texto); }
.pp-abas button.ativo { color: var(--texto); border-bottom-color: #FCC200; }
.pp-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 11px; text-align: center; }
.pp-achados { display: flex; flex-direction: column; gap: 8px; }
.pp-achado { border: 1px solid var(--borda); border-left: 4px solid var(--texto-3); border-radius: 8px; padding: 9px 12px; background: var(--painel); }
.pp-achado.sev-critico { border-left-color: #c0392b; }
.pp-achado.sev-atencao { border-left-color: #e67e22; }
.pp-achado.sev-info { border-left-color: #1478A8; }
.pp-ach-topo { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.pp-sev { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); }
.sev-critico .pp-sev { color: #c0392b; } .sev-atencao .pp-sev { color: #d35400; }
.pp-regra { color: var(--texto-3); font-family: ui-monospace, monospace; }
.pp-valor { margin-left: auto; font-weight: 700; color: var(--texto); }
.pp-ach-titulo { font-weight: 700; margin: 3px 0; }
.pp-ach-linha { font-size: 12.5px; color: var(--texto-2); margin-top: 2px; }
.pp-ach-rodape { display: flex; gap: 16px; font-size: 12px; color: var(--texto-3); margin-top: 5px; }
.pp-heat td { text-align: center; font-size: 11.5px; white-space: nowrap; }
.pp-heat th { font-size: 10.5px; }
.pp-drill { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.pp-drill h4, #modal-corpo h4 { margin: 10px 0 6px; font-size: 13px; }
.pp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.pp-chat { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.pp-msg { padding: 9px 12px; border-radius: 10px; max-width: 88%; font-size: 13.5px; line-height: 1.5; }
.pp-msg.bot { background: var(--painel-alt); border: 1px solid var(--borda); align-self: flex-start; }
.pp-msg.eu { background: #002856; color: #fff; align-self: flex-end; }
.pp-msg ul { margin: 4px 0; padding-left: 18px; }
.pp-passos { font-size: 12px; color: var(--texto-3); }
.pp-digitando { font-size: 12px; color: var(--texto-3); }
.pp-sugestoes { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.pp-entrada { display: flex; gap: 8px; }
.pp-entrada input { flex: 1; padding: 8px 10px; border: 1px solid var(--borda-forte); border-radius: 8px; background: var(--painel); color: var(--texto); font: inherit; }
@media (max-width: 800px) { .pp-drill { grid-template-columns: 1fr; } }
.pp-heat td.fixa, .pp-heat th.fixa { min-width: 190px !important; width: 190px; white-space: nowrap !important; word-break: normal !important; }
table.dados.pp-heat { table-layout: auto; width: max-content; min-width: 100%; }

/* cartoes recolhiveis (Importar dados) */
.cartao.recolhido > .cartao-corpo { display: none; }
.cartao.recolhido > .cartao-topo { border-bottom: 0; }
.btn-recolher { background: none; border: 0; color: var(--texto-2); font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 10px 0 0; align-self: center; }
.btn-recolher:hover { color: var(--marinho-500); }
.cartao-topo:has(> .btn-recolher) { justify-content: flex-start; }
.cartao-topo:has(> .btn-recolher) > .acoes { margin-left: auto; }

/* Atualizacao do BI: bases separadas por origem (API x importacao manual) */
.atu-legenda { font-size: 11.5px; color: var(--texto-3); margin: 6px 0 10px; }
.atu-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .atu-colunas { grid-template-columns: 1fr; } }
.atu-col { border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 10px; background: var(--painel-alt); }
.atu-col-tit { font-weight: 700; font-size: 13.5px; }
.atu-col-tit small { font-weight: 600; color: var(--texto-3); margin-left: 6px; }
.atu-col-sub { font-size: 11.5px; color: var(--texto-3); margin: 2px 0 8px; }
.atu-base { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--borda); }
.atu-base .atu-info { flex: 1; min-width: 0; font-size: 12.5px; }
.atu-base .atu-info small { color: var(--texto-3); }
.atu-sinal { font-size: 13px; }
.atu-base.st-atrasado { background: var(--negativo-bg); border-radius: 4px; }
/* Integracao Bluesoft: secao tecnica recolhida */
.bs-tecnico { margin-top: 12px; border-top: 1px dashed var(--borda-forte); padding-top: 10px; }
.bs-tecnico > summary { cursor: pointer; font-weight: 600; color: var(--texto-2); }
.bs-etapas-guia { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin: 8px 0 12px; color: var(--texto-2); }
.bs-etapas-guia b { display: inline-block; min-width: 18px; text-align: center; border-radius: 50%; background: var(--marinho-500); color: #fff; margin-right: 4px; }

/* Venda online (tempo real) no cockpit executivo */
.v2-online { border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; margin-bottom: 16px; background: var(--painel); }
.v2-online-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-online-topo h3 { margin: 4px 0 2px; font-size: 26px; }
.v2-online-topo h3 small { font-size: 13px; font-weight: 600; color: var(--texto-3); margin-left: 8px; }
.v2-online-topo p { margin: 0; font-size: 12.5px; color: var(--texto-2); }
.v2-online-grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 1100px) { .v2-online-grade { grid-template-columns: 1fr; } }
.v2-online .v2-card { border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 10px; background: var(--painel-alt); }
.v2-online .v2-card h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--texto-2); }
.v2-online-vazio { font-size: 13px; color: var(--texto-2); }
.v2-online-lojas { margin-top: 10px; }
.v2-online-lojas > summary { cursor: pointer; font-size: 12.5px; color: var(--texto-2); }
.v2-online-cheia { margin-bottom: 0; }
.v2-online-cheia .v2-online-grade { grid-template-columns: 1.6fr 1fr 1fr; }

.atu-marcar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.atu-marcar .chip { font-size: 10.5px; padding: 2px 8px; }

/* ------------------------------------------------- APP INSTALADO (standalone)
   Quando o BI abre como aplicativo (sem barra do navegador), o topo encosta na
   barra de status do celular: por isso o respiro extra. */
@media (display-mode: standalone) {
  .topo { padding-top: max(10px, env(safe-area-inset-top)); }
  .lateral-topo { padding-top: max(10px, env(safe-area-inset-top)); }
}

/* ---------------------------------------------------- VENDAS ONLINE (app)
   Visoes do app Bluesoft de vendas, feitas primeiro para o celular: cards
   empilhados, grafico curto, abas em linha rolavel e listas com barra no
   lugar de tabela larga. No computador: 4 cards no topo, grafico largo e o
   conteudo da aba em 2-3 colunas. Tudo com prefixo .vo-. */
.vo-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 2px 10px; }
.vo-marca { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--texto-3); text-transform: uppercase; }
.vo-pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--positivo); animation: vo-pisca 2s infinite; }
@keyframes vo-pisca { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.vo-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.vo-so-movel { display: none; }

/* barra de filtros (computador: linha compacta; celular: folha que sobe) */
.vo-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--borda); border-radius: var(--raio-sm); background: var(--painel-alt); }
.vo-filtros-titulo { font-size: 15px; font-weight: 700; }
.vo-filtro { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 0; }
.vo-filtro > span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3); font-weight: 700; }
.vo-filtro select { width: 100%; padding: 6.5px 9px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  background: var(--painel); color: var(--texto); font: inherit; font-size: 12.5px; }
.vo-filtro select.tem-selecao { border-color: var(--marinho-500); box-shadow: 0 0 0 2px rgba(11,76,146,.12); }
.vo-filtros-rodape { display: flex; gap: 8px; align-items: center; }
.vo-filtros [hidden] { display: none; }   /* .btn e' inline-flex e venceria o hidden */
.vo-filtros-fundo { display: none; }

/* cards do topo */
.vo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.vo-card { border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 10px 12px;
  background: var(--painel-alt); margin-bottom: 12px; }
.vo-card h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--texto-2); }
.vo-card h4 small { font-weight: 500; color: var(--texto-3); margin-left: 6px; }
.vo-card-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vo-kpi { margin-bottom: 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vo-kpi-rotulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.vo-total { font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.vo-meta { margin-top: 2px; }
.vo-meta .vo-barra { height: 7px; margin: 4px 0; }
.vo-meta small { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--texto-3); }
.vo-sem-meta { font-size: 11.5px; color: var(--texto-3); font-style: italic; margin-top: 4px; }
.vo-nota { font-size: 11px; color: var(--texto-3); }
.vo-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.vo-duplo > div { min-width: 0; }
.vo-duplo > div > span { display: block; font-size: 11px; color: var(--texto-3); }
.vo-duplo > div > b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.vo-kpi .positivo, .vo-loja-info .positivo { color: var(--positivo); }

/* grafico por hora */
.vo-agora { font-size: 12.5px; color: var(--texto-2); margin: -2px 0 6px; }
.vo-delta.positivo { color: var(--positivo); } .vo-delta.negativo { color: var(--negativo); }
.vo-grafico { height: 220px; }
.vo-grafico-mini { height: 200px; margin-bottom: 8px; }
.vo-toggle { display: inline-flex; border: 1px solid var(--borda-forte); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.vo-toggle button { border: 0; background: var(--painel); color: var(--texto-2); padding: 5px 12px; cursor: pointer; font: inherit; font-size: 12px; }
.vo-toggle button.ativo { background: var(--marinho-500); color: #fff; font-weight: 600; }
.vo-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--texto-2); margin-top: 6px; }
.vo-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.vo-legenda i.hoje { background: var(--marinho-500); }
.vo-legenda i.media { background: var(--amarelo); }

/* abas */
.vo-abas { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vo-abas::-webkit-scrollbar { display: none; }
.vo-abas button { flex: 0 0 auto; border: 1px solid var(--borda-forte); background: var(--painel);
  color: var(--texto-2); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.vo-abas button.ativo { background: var(--marinho-500); border-color: var(--marinho-500); color: #fff; font-weight: 600; }
.vo-abas button:focus-visible, .vo-toggle button:focus-visible, .vo-mais:focus-visible, .vo-cat > summary:focus-visible {
  outline: 3px solid rgba(252,194,0,.65); outline-offset: 2px; }   /* mesmo foco de teclado dos .btn */
.vo-bloco { display: none; }
.vo-bloco.ativo { display: block; }
.vo-sub-bloco { min-width: 0; }
.vo-sub-bloco > h4 { margin: 0 0 4px; font-size: 12.5px; color: var(--texto-2); }
.vo-geral { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* listas com barra */
.vo-lista { min-width: 0; }
.vo-linha { padding: 7px 0; border-top: 1px solid var(--borda); break-inside: avoid; }
.vo-linha:first-of-type { border-top: 0; }
.vo-linha-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.vo-linha-topo > b { white-space: nowrap; }
.vo-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vo-linha small { font-size: 11.5px; color: var(--texto-3); display: block; }
.vo-barra { height: 5px; border-radius: 3px; background: var(--borda); margin: 5px 0 4px; overflow: hidden; }
.vo-barra i { display: block; height: 100%; background: var(--marinho-500); border-radius: 3px; }
.vo-barra i.ok { background: var(--positivo); }
.vo-barra i.quase { background: var(--amarelo-escuro); }
.vo-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  margin-right: 7px; border-radius: 999px; background: var(--borda); color: var(--texto-2); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.vo-top5 .vo-rank { background: var(--amarelo); color: #001a39; }
.vo-cod { color: var(--texto-3); font-weight: 700; font-size: 12px; margin-right: 6px; }
.vo-pct { display: inline-block; min-width: 48px; font-weight: 700; color: var(--marinho-500); }
:root[data-tema="escuro"] .vo-pct { color: var(--azul-claro); }
.vo-mais { margin-top: 8px; width: 100%; padding: 9px; border: 1px dashed var(--borda-forte); border-radius: var(--raio-sm);
  background: transparent; color: var(--texto-2); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.vo-oculta { display: none; }
.tudo > .vo-oculta { display: block; }
.vo-colunas-2 { columns: 2; column-gap: 24px; }
.vo-colunas-2 .vo-linha { border-top: 1px solid var(--borda); }

/* cards por loja */
.vo-grade-lojas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vo-loja { border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 10px 12px; background: var(--painel); min-width: 0; }
.vo-loja-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; }
.vo-loja-valor { font-size: 17px; font-weight: 800; white-space: nowrap; letter-spacing: -.01em; }
.vo-loja .vo-barra { height: 6px; }
.vo-loja-info { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--texto-3); margin-top: 3px; }
.vo-loja-info b { color: var(--texto-2); }
.vo-loja-info .positivo b { color: var(--positivo); }

/* categorias: lista que expande ao clique */
.vo-cats { columns: 2; column-gap: 24px; }
.vo-cat { border-top: 1px solid var(--borda); break-inside: avoid; }
.vo-cat:first-of-type { border-top: 0; }
.vo-cat > summary { list-style: none; cursor: pointer; padding: 7px 0; }
.vo-cat > summary::-webkit-details-marker { display: none; }
.vo-cat > summary .vo-nome::after { content: '▾'; margin-left: 6px; color: var(--texto-3); font-size: 11px; }
.vo-cat[open] > summary .vo-nome::after { content: '▴'; }
.vo-cat-det { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px 12px; padding: 2px 0 10px; font-size: 12.5px; }
.vo-cat-det span { display: block; font-size: 10px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .04em; }

/* rodape, vazio e carregando */
.vo-rodape { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--texto-3); padding: 4px 2px 0; }
.vo-aviso { color: var(--alerta); }
.vo-vazio { padding: 22px 12px; text-align: center; color: var(--texto-2); font-size: 13px; }
.vo-corpo { transition: opacity .15s; }
.vo-carregando { opacity: .55; pointer-events: none; }

@media (min-width: 901px) {
  .vo-grafico { height: 280px; }
  .vo-grafico-mini { height: 230px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .vo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vo-grade-lojas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vo-geral { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .v2-online-cheia, .v2-online { border: 0; padding: 0; background: transparent; }
  .vo-so-movel { display: inline-flex; }
  .vo-filtros-titulo { display: block; }
  .vo-cabeca .vo-acoes { width: 100%; }
  .vo-cabeca .vo-acoes .btn { flex: 1 1 auto; }
  /* folha de filtros: sobe de baixo, com fundo escurecido */
  .vo-filtros { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; margin: 0;
    flex-direction: column; align-items: stretch; gap: 12px; border: 0; border-radius: 14px 14px 0 0;
    background: var(--painel); box-shadow: var(--sombra-3); padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 82vh; overflow-y: auto; }
  .vo-filtros.aberto { display: flex; }
  .vo-filtro { flex: 0 0 auto; }
  .vo-filtro select { min-height: 42px; font-size: 14px; }
  .vo-filtros-rodape { justify-content: flex-end; }
  .vo-filtros-rodape .btn { min-height: 42px; }
  .vo-filtros-fundo { position: fixed; inset: 0; background: rgba(0,26,57,.45); z-index: 119; }
  .vo-filtros-fundo.aberto { display: block; }
  .vo-cards { grid-template-columns: 1fr; gap: 10px; }
  .vo-total { font-size: 30px; }
  .vo-grafico { height: 200px; }
  .vo-grafico-mini { height: 180px; }
  .vo-geral, .vo-grade-lojas { grid-template-columns: 1fr; }
  .vo-geral { gap: 14px; }
  .vo-colunas-2, .vo-cats { columns: 1; }
  .vo-cat-det { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vo-rodape { flex-direction: column; gap: 3px; }
}

/* Agente de IA: botao Enviar e caixa de texto proporcionais (Vagner, 23/09/2026).
   O composer usa .ia-composer (textarea + rodape com voz/microfone/enviar); o
   .ia-enviar caia no fallback quadrado 40x40 e destoava das pilulas de 34px. */
.ia-entrada { display: block; padding: 10px 14px 14px; }
.ia-composer textarea#ia-texto {
  width: 100%; display: block; border: none; outline: none; resize: none; background: transparent;
  padding: 12px 14px 6px; font-size: 14px; line-height: 1.5; max-height: 150px; min-height: 46px;
  color: var(--texto); font-family: inherit;
}
.ia-composer textarea#ia-texto:focus { box-shadow: none; }
.ia-composer .ia-enviar {
  width: auto; height: 34px; padding: 0 14px; border-radius: 9px; display: inline-flex;
  align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  background: linear-gradient(120deg, var(--marinho-500), #087f9a); color: #fff; border: none;
}
.ia-composer .ia-enviar svg { flex-shrink: 0; }
@media (max-width: 900px) {
  .ia-composer .ia-enviar { flex: 1; justify-content: center; }
}

/* Ranking — acoes e menu de ocultar/mostrar colunas */
.rank-acoes { display: inline-flex; gap: 8px; align-items: center; }
.rank-cols-menu {
  position: absolute; z-index: 1200; min-width: 220px; max-height: 60vh; overflow: auto;
  background: var(--painel); border: 1px solid var(--borda-forte); border-radius: var(--raio-sm);
  box-shadow: 0 10px 30px rgba(10,22,38,.22); padding: 6px;
}
.rank-cols-topo { font-size: 11px; font-weight: 700; color: var(--texto-3);
  text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px 4px; }
.rank-cols-topo small { display: block; font-weight: 500; text-transform: none;
  letter-spacing: 0; font-size: 10.5px; margin-top: 2px; opacity: .85; }
.rank-cols-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--texto); }
.rank-cols-item:hover { background: var(--painel-alt); }
.rank-cols-item.travada { color: var(--texto-3); cursor: default; }
.rank-cols-item input { width: 15px; height: 15px; accent-color: var(--marinho-500); }
.rank-cols-item .arrasta { color: var(--texto-3); font-size: 13px; line-height: 1; cursor: grab;
  user-select: none; letter-spacing: -1px; }
.rank-cols-item.movel { cursor: grab; }
.rank-cols-item.movel:active { cursor: grabbing; }
.rank-cols-item.arrastando { opacity: .45; background: var(--painel-alt); }
.rank-cols-nome { flex: 1; }
.rank-cols-rodape { border-top: 1px solid var(--borda); margin-top: 4px; padding: 6px 4px 2px;
  display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Toolbar do botao "Colunas" acima de tabelas fora do ranking */
.rank-cols-topbar { display: flex; justify-content: flex-end; margin: 0 0 8px; padding: 0 4px; }

/* ==========================================================================
   Aba Nielsen — apresentacao de mercado apresentada direto do BI
   O servidor entrega cada pagina do PDF como PNG 16:9; aqui e' so' palco,
   miniaturas e tela cheia.
   ========================================================================== */
.nsl { display: flex; flex-direction: column; gap: 12px; }
.nsl-topo { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }
.nsl-ident h3 { margin: 0 0 2px; font-size: 17px; color: var(--texto); }
.nsl-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nsl-acoes .campo { max-width: 260px; }
.nsl-acoes .ativo { background: var(--marinho-500); color: #fff; border-color: var(--marinho-500); }

/* Palco: sempre 16:9, a imagem cabe inteira (nunca corta um slide). */
.nsl-palco { position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #0b1220; border: 1px solid var(--borda); border-radius: 14px;
  overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nsl-palco img { width: 100%; height: 100%; object-fit: contain; display: block;
  user-select: none; -webkit-user-drag: none; }

.nsl-seta { position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(0, 0, 0, .34); color: #fff; font-size: 30px; line-height: 1;
  opacity: 0; transition: opacity .15s; }
.nsl-palco:hover .nsl-seta { opacity: 1; }
.nsl-seta:hover { background: rgba(0, 0, 0, .58); }
.nsl-seta:disabled { opacity: 0 !important; cursor: default; }
.nsl-seta.esq { left: 10px; }
.nsl-seta.dir { right: 10px; }

.nsl-rodape-palco { position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
  color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.nsl-progresso { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.nsl-progresso span { display: block; height: 100%; border-radius: 2px;
  background: var(--amarelo); transition: width .18s; }

/* Modo apresentacao: o palco cobre a tela por CSS, sem depender da tela cheia
   do navegador (que nem sempre e' liberada — painel embutido, iPhone). A tela
   cheia nativa, quando vem, so' tira a barra do navegador por cima disto.
   Preso a data-painel: trocar de aba do BI ja desfaz o modo sozinho. */
body.nsl-modo-apresentacao[data-painel="nielsen"] .nsl-palco.apresentando {
  position: fixed; inset: 0; z-index: 9000; width: 100vw; height: 100dvh;
  aspect-ratio: auto; border: 0; border-radius: 0; background: #000; cursor: pointer; }
body.nsl-modo-apresentacao[data-painel="nielsen"] { overflow: hidden; }
.nsl-palco.apresentando .nsl-seta { opacity: 0; }
.nsl-palco.apresentando:hover .nsl-seta { opacity: .85; }

.nsl-sair { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 0; border-radius: 8px; background: rgba(0, 0, 0, .34); color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.nsl-palco:hover .nsl-sair { opacity: 1; }
.nsl-sair:hover { background: rgba(0, 0, 0, .6); }

.nsl-notas { border: 1px solid var(--borda); border-left: 3px solid var(--amarelo);
  border-radius: 10px; background: var(--painel); padding: 10px 14px; font-size: 13px;
  color: var(--texto-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nsl-notas[hidden] { display: none; }   /* display:flex acima vence o [hidden] do navegador */
.nsl-notas b { color: var(--texto); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.nsl-notas-txt { white-space: pre-wrap; line-height: 1.5; }

/* Tira de miniaturas */
.nsl-tira { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-behavior: smooth; }
.nsl-mini { position: relative; flex: 0 0 auto; width: 132px; aspect-ratio: 16 / 9;
  border: 2px solid var(--borda); border-radius: 8px; background: var(--painel-alt);
  padding: 0; cursor: pointer; overflow: hidden; transition: border-color .12s, transform .12s; }
.nsl-mini:hover { transform: translateY(-2px); border-color: var(--borda-forte); }
.nsl-mini.atual { border-color: var(--amarelo); }
.nsl-mini-img { position: absolute; inset: 0; background-size: contain;
  background-position: center; background-repeat: no-repeat; background-color: #0b1220; }
.nsl-mini-num { position: absolute; right: 3px; bottom: 2px; font-size: 10px;
  color: #fff; background: rgba(0, 0, 0, .55); border-radius: 4px; padding: 0 4px;
  font-variant-numeric: tabular-nums; }

/* Rodape: onde mora o importador discreto */
.nsl-rodape { display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.nsl-rodape a { font-size: 12px; color: var(--texto-3); text-decoration: none;
  border-bottom: 1px dotted var(--texto-3); }
.nsl-rodape a:hover { color: var(--marinho-500); border-bottom-color: var(--marinho-500); }

/* Importador (modal) */
.nsl-imp .nsl-campo { display: block; font-size: 12px; color: var(--texto-2); margin-top: 10px; }
.nsl-imp .nsl-campo input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--borda); border-radius: 8px; background: var(--painel); color: var(--texto); }
.nsl-drop { display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 92px; margin-top: 10px; padding: 14px; cursor: pointer; font-size: 13px;
  color: var(--texto-2); border: 2px dashed var(--borda-forte); border-radius: 12px;
  background: var(--painel-alt); transition: border-color .12s, background .12s; }
.nsl-drop:hover, .nsl-drop.sobre { border-color: var(--marinho-500); background: var(--hover-linha); }
.nsl-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--amarelo); color: var(--marinho-900); border-radius: 4px; padding: 1px 5px; }
.nsl-acessos { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nsl-acessos label { display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--texto); cursor: pointer; }

@media (max-width: 900px) {
  .nsl-topo { align-items: stretch; }
  .nsl-acoes { width: 100%; }
  .nsl-acoes .campo { flex: 1; max-width: none; }
  .nsl-seta { opacity: 1; width: 38px; height: 54px; font-size: 26px; }
  .nsl-mini { width: 104px; }
}
