/* Tela Lotes: fundo (etapa 3) + componentes (etapa 4). Ícones e logos são espaços reservados até a etapa 5. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
p, h1, h2, h3 { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--ciano-link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--fonte);
  color: var(--texto);
  background-color: var(--fundo);
  background-image:
    radial-gradient(ellipse 38% 9% at 52% 24%, var(--fundo-brilho), transparent 70%),
    radial-gradient(ellipse 30% 14% at 70% 28%, rgba(4, 60, 110, 0.35), transparent 75%),
    linear-gradient(90deg, var(--fundo-esquerda) 0%, var(--fundo) 60%, #090e25 100%);
}

/* Arte das ondas atrás do cabeçalho (SVG: aproximação declarada no plano). */
.fundo-ondas {
  position: absolute; top: 148px; right: 0; width: 50%; height: 190px;
  background: url("ondas.svg") right top / 100% 100% no-repeat;
  pointer-events: none; z-index: -1;
}

/* ---------- ícones: espaço reservado (etapa 5 troca por SVG) ---------- */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-titulo { width: 32px; height: 32px; color: var(--ciano-link); }

/* ---------- topo ---------- */
.topo {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 38px 0 42px;
  background: var(--topo);
  border-bottom: 1px solid var(--linha-chrome);
}
.topo-marca { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.logo { display: inline-block; flex: none; }
span.logo { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.logo-ibm { width: 90px; height: auto; }
.logo-genova { width: 44px; height: 44px; margin: -4px -16px -4px 0; filter: drop-shadow(0 0 8px rgba(140, 80, 255, 0.35)); }
.topo-divisor { width: 1px; height: 36px; background: #2a3550; flex: none; }
.topo-titulo { font-size: 25px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.topo-genova { font-size: 24px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap; }
.topo-genova-tech { color: var(--ciano); }

.busca {
  display: flex; align-items: center; gap: 10px;
  width: 452px; height: 38px; padding: 0 10px 0 14px;
  background: #0f1932; border: 1px solid #2c3a58; border-radius: 8px;
}
.busca-campo { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.busca-campo::placeholder { color: var(--texto-2); }
.tecla { font-size: 12.5px; color: var(--texto-suave); background: #1d2944; border: 1px solid #2f3d5c;
  border-radius: 4px; padding: 1px 6px; line-height: 1.4; }
.topo-acoes { display: flex; align-items: center; gap: 22px; }
.topo-icone { position: relative; display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--texto); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.topo-icone .ico { width: 26px; height: 26px; }
.topo-icone.tem-aviso::after { content: ""; position: absolute; top: 3px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ciano); box-shadow: 0 0 0 2px var(--topo); }
.topo-conta { background: #1c2944; }

/* ---------- abas ---------- */
.abas {
  position: relative; z-index: 1;
  display: flex; gap: 6px; height: 56px; padding: 0 22px 0 36px;
  background: var(--abas);
  border-bottom: 1px solid var(--linha-chrome);
}
.aba {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 0 38px 0 22px; font-size: 17.5px; color: #e2e8f4; text-decoration: none;
}
.aba .ico { width: 24px; height: 24px; }
.aba:hover { color: var(--texto); }
.aba.ativa { color: var(--texto); font-weight: 600; }
.aba.ativa .ico { color: var(--ciano); }
.aba.ativa::after { content: ""; position: absolute; left: 2px; right: 18px; bottom: -1px; height: 4px;
  border-radius: 3px 3px 0 0; background: var(--degrade-aba); box-shadow: 0 0 12px rgba(15, 214, 232, 0.55); }

/* ---------- página ---------- */
.pagina { position: relative; padding: 18px 22px 20px 22px; }

.faixa {
  display: flex; align-items: center; gap: 16px;
  margin: 0 4px; min-height: 58px; padding: 0 22px 0 30px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(92, 52, 176, 0.75) 0%, rgba(44, 34, 120, 0.55) 18%, rgba(18, 26, 70, 0.7) 45%, rgba(14, 28, 64, 0.7) 80%, rgba(16, 44, 76, 0.65) 100%) padding-box,
    linear-gradient(90deg, #8a55e6 0%, #4b3fb8 30%, #2e3c8e 60%, #2c6f96 100%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 24px rgba(110, 70, 220, 0.25);
}
.faixa > .ico { width: 26px; height: 26px; color: var(--ciano); }
.faixa-texto { flex: 1; font-size: 17.5px; color: var(--texto); }
.faixa-texto strong { font-weight: 600; }
.faixa-texto a { color: var(--ciano-link); font-weight: 700; font-size: 19px; }
.btn3 {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 16px;
  font-size: 14.5px; color: var(--texto); text-decoration: none;
  background: rgba(12, 22, 48, 0.6); border: 1px solid #6a7cba; border-radius: 6px;
}
.btn3:hover { border-color: var(--ciano-link); }
.btn3 .ico { width: 15px; height: 15px; }
.faixa-fechar { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 12px;
  background: none; border: 0; cursor: pointer; }
.faixa-fechar .ico { width: 18px; height: 18px; }

.cabecalho { display: flex; align-items: center; gap: 18px; margin: 22px 0 0 20px; min-height: 66px; }
.bloco-icone { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 10px;
  background: #22304c; border: 1px solid #33425f; }
.bloco-icone .ico { width: 26px; height: 26px; }
.bloco-icone-g { width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(160deg, #0d4a82, #0b2a5c);
  border-color: #0e5a8e; color: #49b7f0; }
.bloco-icone-g .ico { width: 32px; height: 32px; }
.bloco-icone-azul { background: linear-gradient(160deg, #1846a8, #102e7a); border-color: #2457c0; color: #6fb2ff; }
.bloco-icone-p { width: 34px; height: 34px; border-radius: 7px; background: #0e2c52; border-color: #2a7fc0; color: var(--ciano-link); }
.bloco-icone-p .ico { width: 18px; height: 18px; }
.h1 { font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -0.3px; }
.t2 { font-size: 16.5px; color: var(--texto-2); margin-top: 2px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 21px; margin: 22px 20px 0 20px; }
.kpi {
  display: flex; align-items: flex-start; gap: 22px; min-height: 94px; padding: 16px 22px;
  background: linear-gradient(180deg, #16223d 0%, #111c35 100%);
  border: 1px solid #2c3a58; border-radius: var(--raio);
}
.kpi-destaque {
  background:
    linear-gradient(140deg, #24296a 0%, #1b2459 45%, #152a5a 100%) padding-box,
    linear-gradient(120deg, #5a5fd0 0%, #3a3a9a 50%, #1f6f8f 100%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 22px rgba(90, 80, 220, 0.25);
}
.kpi-corpo { min-width: 0; }
.kpi-rotulo { font-size: 16px; color: var(--texto); }
.kpi-linha { display: flex; align-items: center; gap: 14px; margin-top: 4px; white-space: nowrap; }
.kpi-numero { font-size: 32px; font-weight: 700; line-height: 1.1; }
.variacao { font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 7px; }
.variacao.sobe { color: #6ee7b0; background: rgba(28, 120, 100, 0.35); }
.variacao.piora { color: #ff9db2; background: rgba(150, 40, 70, 0.4); }
.kpi-meta { font-size: 14.5px; color: var(--texto-2); }

/* ---------- painéis ---------- */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 454px; gap: 22px; margin-top: 25px; }
.painel {
  padding: 14px 20px 10px 22px;
  background: linear-gradient(180deg, rgba(26, 40, 66, 0.92) 0%, rgba(20, 31, 54, 0.92) 100%);
  border: 1px solid var(--borda); border-radius: 12px;
  box-shadow: var(--sombra);
}
.painel-topo { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.h2 { font-size: 21px; font-weight: 600; }
.h3 { font-size: 16px; font-weight: 600; color: var(--ciano-link); }
.t3 { font-size: 13.5px; color: var(--texto-2); }
.contador { font-size: 13.5px; color: var(--texto-2); background: #2c3a56; border-radius: 6px; padding: 2px 10px; }
.atualizado { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.btn-icone { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border: 0;
  border-radius: 6px; cursor: pointer; color: var(--texto-2); }
.btn-icone:hover { background: rgba(255, 255, 255, 0.06); }
.btn-icone .ico { width: 18px; height: 18px; }

.filtros { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.filtro {
  display: flex; align-items: center; gap: 10px; width: 332px; height: 36px; padding: 0 12px;
  background: var(--campo); border: 1px solid #3a4866; border-radius: 6px;
}
.filtro .ico { width: 18px; height: 18px; }
.filtro-campo { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; }
.filtro-campo::placeholder { color: var(--texto-suave); }
.chips { display: flex; gap: 12px; margin-left: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px;
  font-size: 14px; color: var(--texto); text-decoration: none; white-space: nowrap;
  background: #172440; border: 1px solid #33425f; border-radius: 6px; cursor: pointer;
}
.chip:hover { border-color: #4b5d80; }
.chip.ativo { background: #08345a; border-color: #1690c0; box-shadow: inset 0 0 0 1px rgba(22, 144, 192, 0.25); }
.chip-menu { margin-left: auto; }
.chip-menu .ico { width: 16px; height: 16px; }

.tabela-caixa { position: relative; border: 1px solid var(--borda-suave); border-radius: 8px; overflow: hidden; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.c-lote { width: 7.5%; } .c-criado { width: 13%; } .c-origem { width: 15.5%; } .c-chamados { width: 8.5%; }
.c-situacao { width: 28.5%; } .c-exec { width: 23.5%; } .c-acoes { width: 3.5%; }
.tabela th { text-align: left; font-weight: 600; font-size: 14px; color: var(--texto); background: var(--superficie-3);
  padding: 9px 9px; white-space: nowrap; }
.tabela td { padding: 10px 9px; border-top: 1px solid var(--separador); vertical-align: middle; color: var(--texto); }
.tabela tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.ordem { color: var(--texto-suave); font-size: 11px; margin-left: 2px; }
.lnk-forte { font-size: 17px; font-weight: 600; color: var(--ciano-link); }
.com-icone { white-space: nowrap; }
.com-icone .ico { width: 16px; height: 16px; margin-right: 8px; }
.num { font-variant-numeric: tabular-nums; }
.badges { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; font-size: 12.5px; font-weight: 600;
  border-radius: var(--raio-badge); border: 1px solid; white-space: nowrap; }
.b-azul { background: var(--s-azul); border-color: var(--s-azul-b); color: var(--s-azul-t); }
.b-ambar { background: var(--s-ambar); border-color: var(--s-ambar-b); color: var(--s-ambar-t); }
.b-cinza { background: var(--s-cinza); border-color: var(--s-cinza-b); color: var(--s-cinza-t); }
.b-lilas { background: var(--s-lilas); border-color: var(--s-lilas-b); color: var(--s-lilas-t); }
.b-verde { background: var(--s-verde); border-color: var(--s-verde-b); color: var(--s-verde-t); }
.b-vermelho { background: var(--s-vermelho); border-color: var(--s-vermelho-b); color: var(--s-vermelho-t); }
.b-rodando { background: var(--s-ciano); border-color: var(--s-ciano); color: var(--s-ciano-t); border-radius: 999px; }
.b-concluida { background: var(--s-verde); border-color: var(--s-verde-b); color: var(--s-verde-t); border-radius: 999px; padding: 0 8px; }
.exec { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.exec .ico { width: 14px; height: 14px; color: var(--ciano-link); }
.exec a { font-size: 14px; }
.exec-hora { font-size: 12px; color: var(--texto-2); margin-left: 2px; }

.painel-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 4px; }
.paginacao { display: flex; gap: 10px; }
.pag { display: grid; place-items: center; min-width: 36px; height: 36px; font-size: 14.5px; color: var(--texto);
  text-decoration: none; background: #1a2741; border: 1px solid #2b3a57; border-radius: 6px; }
.pag .ico { width: 14px; height: 14px; }
.pag.ativa { background: #072b4d; border-color: #13a3c8; color: var(--texto); box-shadow: 0 0 10px rgba(19, 163, 200, 0.35); }

/* ---------- Novo lote ---------- */
.painel-novo {
  display: flex; flex-direction: column; gap: 10px;
  background:
    linear-gradient(180deg, rgba(24, 38, 64, 0.95) 0%, rgba(20, 33, 57, 0.95) 100%) padding-box,
    linear-gradient(160deg, #5a55d8 0%, #2f5ea8 35%, #1d4a7a 70%, #4a46c0 100%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 26px rgba(80, 70, 210, 0.22), var(--sombra);
}
.abas2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 3px; margin-top: 4px;
  background: #0f1a33; border: 1px solid #263450; border-radius: 8px; }
.aba2 { display: flex; align-items: center; justify-content: center; gap: 10px; height: 34px; font-size: 14.5px;
  background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; color: var(--texto); }
.aba2 .ico { width: 16px; height: 16px; }
.aba2.ativa { font-weight: 600; background: #06416f; border-color: #29a6d0; box-shadow: 0 0 10px rgba(41, 166, 208, 0.3); }
.novo-form { display: flex; flex-direction: column; gap: 12px; }
.novo-ajuda { line-height: 1.5; }
.campo-lista { min-height: 96px; resize: vertical; padding: 10px 16px; font-size: 15px; line-height: 1.4;
  background: var(--campo); border: 1px solid #2c3d5c; border-radius: 6px; }
.validacao { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--texto-2); }
.validacao .ico { width: 18px; height: 18px; border-radius: 50%; }
.validacao.ok .ico { color: #2ecc8f; }
.btn2 {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px;
  font-size: 18px; font-weight: 600; color: #fff;
  background: var(--degrade-acao); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(65, 111, 250, 0.4);
}
.btn2:hover { filter: brightness(1.08); }
.btn2 .ico { width: 18px; height: 18px; color: #fff; }
.dica { display: flex; gap: 14px; padding: 12px 18px 14px; margin-top: 8px;
  background: rgba(18, 32, 56, 0.85); border: 1px solid #2c4c74; border-radius: 8px; }
.dica > .ico { width: 20px; height: 20px; color: var(--ciano-link); }
.dica .t3 { margin-top: 4px; line-height: 1.45; }

/* cor do bloco de ícone por KPI (medido) */
.kpi:nth-child(2) .bloco-icone { background: #2b3953; border-color: #3d4c6a; color: #dbe3f2; }
.kpi:nth-child(3) .bloco-icone { background: #2c2a5c; border-color: #44408a; color: #d7d4ff; }
.kpi:nth-child(4) .bloco-icone { background: #0f3a4a; border-color: #1c5a6a; color: #8fe9f5; }
.kpi:nth-child(4) { border-color: #2a4a6a; }

/* estados comuns */
button:disabled, .chip[aria-disabled="true"], .btn2:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }
.btn2[aria-busy="true"] { cursor: progress; filter: saturate(0.6); }
.validacao.erro { color: var(--s-vermelho-t); }
.validacao.erro .ico { color: var(--s-vermelho-b); }
.tabela .vazio td { text-align: center; padding: 36px 12px; color: var(--texto-suave); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* cores dos ícones por contexto (medido) */
.busca .ico { width: 20px; height: 20px; color: var(--texto); }
.topo-icone .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.aba .ico { color: #e2e8f4; }
.aba.ativa .ico { color: var(--ciano); }
.faixa > .ico { color: var(--ciano); filter: drop-shadow(0 0 6px rgba(15, 214, 232, 0.6)); }
.bloco-icone .ico { width: 30px; height: 30px; }
.bloco-icone-g { color: #4fb8f2; }
.bloco-icone-azul { color: #78b8ff; }
.com-icone .ico { color: #dfe6f2; stroke-width: 1.6; width: 18px; height: 18px; }
.exec .ico { color: var(--ciano-link); width: 16px; height: 16px; }
.filtro .ico, .chip-menu .ico { color: var(--texto-2); }
.btn-icone .ico-mais { stroke: none; fill: currentColor; color: var(--texto); }
.validacao.ok .ico { color: #2ecc8f; }
.btn2 .ico { color: #fff; stroke-width: 2.2; }
.dica > .ico { color: var(--ciano-link); width: 22px; height: 22px; }
.bloco-icone-p .ico { width: 20px; height: 20px; stroke-width: 2; }

/* ================= responsivo (etapa 6) ================= */
.so-movel, .barra-secao, .nav-baixo, .btn-novo-movel, .folha-fechar { display: none; }

/* notebook (1181–1500): topo e KPIs mais compactos */
@media (max-width: 1500px) {
  .topo { gap: 18px; padding: 0 24px 0 28px; }
  .topo-marca { gap: 18px; }
  .topo-titulo { font-size: 21px; }
  .topo-genova { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo-genova { margin-right: 0; }
  .busca { width: clamp(240px, 26vw, 452px); }
  .kpi-linha { flex-wrap: wrap; row-gap: 2px; }
  .tabela th { white-space: normal; }
}

/* abaixo de 1600 px a tabela dimensiona as colunas pelo conteúdo e rola dentro da caixa se faltar espaço */
@media (max-width: 1600px) and (min-width: 761px) {
  .tabela { table-layout: auto; }
  .tabela col { width: auto; }
  .tabela-caixa { overflow-x: auto; }
  .tabela td { white-space: nowrap; }
  .tabela td:nth-child(5) { white-space: normal; min-width: 250px; }
  .badges { min-width: 230px; }
}

/* tablet e notebook pequeno */
@media (max-width: 1180px) {
  .topo { gap: 16px; padding: 0 20px; }
  .topo-marca { gap: 16px; }
  .topo-titulo { font-size: 20px; }
  .topo-genova { font-size: 19px; }
  .busca { width: clamp(220px, 28vw, 300px); }
  .tecla { display: none; }
  .topo-titulo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topo-genova { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .abas { mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .btn-novo-movel { display: flex; order: -1; justify-self: end; height: 40px; padding: 0 22px; font-size: 15px; text-decoration: none; }
  .logo-genova { margin-right: 0; }
  .abas { overflow-x: auto; padding-left: 16px; scrollbar-width: none; }
  .aba { padding: 0 22px 0 14px; white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; }
  .duas-colunas { grid-template-columns: minmax(0, 1fr); }
  .tabela-caixa { overflow-x: auto; }
  .tabela { min-width: 900px; }
  .tabela td:last-child, .tabela th:last-child { position: sticky; right: 0; background: var(--superficie); }
  .filtros { flex-wrap: wrap; }
  .chip-menu { margin-left: 0; }
  .fundo-ondas { width: 70%; }
}

/* celular (mock mobile.png, 390 px) */
@media (max-width: 760px) {
  .so-desktop { display: none; }
  .so-movel { display: inline; }
  svg.so-movel { display: inline-block; }
  body { padding-bottom: 66px; }

  /* topo: só marcas e título */
  .topo { height: 54px; padding: 0 14px; }
  .topo-marca { gap: 9px; min-width: 0; }
  .logo-ibm { width: 44px; }
  .topo-divisor { height: 24px; }
  .topo-titulo { font-size: 11.5px; font-weight: 600; letter-spacing: 0; white-space: nowrap; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .logo-genova { width: 30px; height: 30px; margin: 0 -4px 0 0; }
  .topo-genova { font-size: 11.5px; line-height: 1.15; display: flex; flex-direction: column; flex: none; }
  .busca, .topo-acoes, .abas { display: none; }

  /* barra da seção */
  .barra-secao { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px;
    background: var(--abas); border-bottom: 1px solid var(--linha-chrome); }
  .menu-movel summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer; }
  .menu-movel summary::-webkit-details-marker { display: none; }
  .menu-movel summary .ico { width: 24px; height: 24px; }
  .menu-movel-lista { position: absolute; top: 48px; left: 8px; z-index: 5; display: grid; min-width: 200px; padding: 6px;
    background: var(--superficie); border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--sombra); }
  .menu-movel-lista a { padding: 10px 12px; color: var(--texto); text-decoration: none; border-radius: 6px; }
  .menu-movel-lista a:hover { background: rgba(255, 255, 255, 0.06); }
  .secao-atual { position: relative; display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 14px;
    color: var(--texto); font-weight: 600; font-size: 13.5px; text-decoration: none; }
  .secao-atual .ico { color: var(--ciano); width: 19px; height: 19px; }
  .secao-atual::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--degrade-aba); box-shadow: 0 0 10px rgba(15, 214, 232, 0.55); }
  .barra-icones { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .barra-icones .topo-icone { width: 32px; height: 32px; }
  .barra-icones .topo-icone .ico { width: 20px; height: 20px; }

  /* página */
  .pagina { padding: 10px 10px 18px; }
  .faixa { margin: 0; gap: 8px; min-height: 0; padding: 7px 8px 7px 10px; align-items: center; }
  .faixa > .ico { width: 18px; height: 18px; }
  .faixa-texto { font-size: 11.5px; line-height: 1.35; }
  .faixa-texto a { font-size: 12px; }
  .btn3 { height: 26px; padding: 0 8px; font-size: 11.5px; gap: 5px; flex: none; }
  .btn3 .ico { width: 13px; height: 13px; }
  .faixa-fechar { width: 24px; height: 24px; margin-left: 0; }
  .fundo-ondas { top: 120px; width: 100%; height: 150px; }

  .cabecalho { margin: 12px 0 0 4px; gap: 10px; align-items: center; min-height: 0; }
  .bloco-icone-g { width: 40px; height: 40px; border-radius: 9px; }
  .bloco-icone-g .ico { width: 22px; height: 22px; }
  .h1 { font-size: 22px; }
  .t2 { font-size: 11.5px; line-height: 1.35; margin-top: 0; }

  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0 0; }
  .kpi-pendentes, .kpi-meta { display: none; }
  .kpi { gap: 6px; min-height: 0; padding: 8px 7px; align-items: center; min-width: 0; }
  .kpi-corpo { min-width: 0; overflow: hidden; }
  .kpi .bloco-icone { width: 26px; height: 26px; border-radius: 6px; }
  .kpi .bloco-icone .ico { width: 15px; height: 15px; }
  .kpi-rotulo { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi-linha { gap: 4px; margin-top: 1px; }
  .kpi-numero { font-size: 19px; }
  .variacao { font-size: 10px; padding: 1px 4px; border-radius: 5px; letter-spacing: -0.2px; }

  /* lista vira cartões */
  .duas-colunas { margin-top: 12px; gap: 14px; }
  .painel { padding: 0; background: none; border: 0; box-shadow: none; }
  .painel-topo, .painel-rodape .t3 { display: none; }
  .filtros { flex-wrap: nowrap; gap: 8px; margin: 0 0 12px; }
  .filtro { width: 40px; height: 34px; padding: 0 11px; flex: none; }
  .filtro-campo { width: 0; }
  .filtro:focus-within { width: 100%; flex: 1; }
  .filtro:focus-within ~ .chips, .filtro:focus-within ~ .chip-menu { display: none; }
  .filtro:focus-within .filtro-campo { width: auto; }
  .chips { flex: 1; min-width: 0; overflow-x: auto; gap: 8px; margin: 0; scrollbar-width: none; }
  .chip { height: 34px; padding: 0 12px; font-size: 12px; }
  .chip-menu { flex: none; padding: 0 10px; }

  .tabela-caixa { border: 0; overflow: visible; }
  .tabela, .tabela tbody { display: block; min-width: 0; }
  .tabela colgroup, .tabela thead { display: none; }
  .tabela tr { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px;
    margin-bottom: 9px; padding: 9px 12px 8px;
    background: linear-gradient(180deg, rgba(26, 40, 66, 0.95), rgba(20, 31, 54, 0.95));
    border: 1px solid var(--borda); border-radius: 12px; }
  .tabela td { display: flex; align-items: center; padding: 0; border: 0; font-size: 11.5px; min-width: 0; white-space: nowrap; }
  .tabela tbody tr:hover td { background: none; }
  .tabela td:nth-child(1) { grid-column: 1 / -1; }
  .tabela td:nth-child(2) { grid-column: 1; }
  .tabela td:nth-child(3) { grid-column: 2; overflow: hidden; text-overflow: ellipsis; }
  .tabela td:nth-child(4) { grid-column: 3; }
  .tabela td:nth-child(5) { grid-column: 1 / -1; }
  .tabela td:nth-child(6) { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid var(--separador); }
  .tabela td:nth-child(7) { display: none; }
  .lnk-forte { font-size: 16px; }
  .lnk-forte::before { content: ""; position: absolute; inset: 0; border-radius: 12px; }
  .card-seta { position: absolute; top: 10px; right: 10px; width: 17px; height: 17px; color: var(--texto); }
  .com-icone .ico, .c-cham .ico { width: 14px; height: 14px; margin-right: 6px; color: #dfe6f2; flex: none; }
  .c-cham::after { content: "\00a0" attr(data-sufixo); }
  .badges { gap: 5px; }
  .badge { height: 19px; padding: 0 7px; font-size: 11px; }
  .exec { gap: 8px; }
  .exec a { position: relative; z-index: 1; }
  .exec-hora { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding-left: 10px;
    border-left: 1px solid var(--separador); font-size: 11.5px; color: var(--texto); }
  .exec-hora .ico { width: 14px; height: 14px; color: #dfe6f2; }
  .painel-rodape { justify-content: center; margin-top: 4px; }

  /* Novo lote: botão + folha */
  .btn-novo-movel { display: flex; height: 44px; font-size: 16px; text-decoration: none; }
  .painel-novo { display: none; }
  .painel-novo:target { display: flex; position: fixed; inset: auto 0 0 0; z-index: 20; max-height: 88vh; overflow-y: auto;
    padding: 16px 16px 22px; border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #1a2a48 0%, #13203a 100%); border: 1px solid #3f4fae; border-bottom: 0;
    box-shadow: 0 0 0 100vmax rgba(4, 7, 20, 0.7), 0 -10px 40px rgba(0, 0, 0, 0.5); }
  .painel-novo:target .painel-topo { display: flex; }
  .painel-novo:target .folha-fechar { display: grid; place-items: center; margin-left: auto; width: 36px; height: 36px; color: var(--texto); }

  /* navegação de baixo */
  .nav-baixo { position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
    height: 60px; padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(10, 16, 38, 0.96); border-top: 1px solid var(--linha-chrome); border-radius: 16px 16px 0 0;
    backdrop-filter: blur(8px); }
  .nav-baixo a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--texto-2); text-decoration: none; font-size: 10.5px; text-align: center; line-height: 1.1; white-space: nowrap; letter-spacing: -0.1px; }
  .nav-baixo .ico { width: 21px; height: 21px; }
  .nav-baixo a.ativa { color: var(--texto); font-weight: 600; }
  .nav-baixo a.ativa .ico { color: var(--ciano); }
  .nav-baixo a.ativa::after { content: ""; position: absolute; bottom: 4px; left: 22%; right: 22%; height: 3px; border-radius: 3px;
    background: var(--degrade-aba); box-shadow: 0 0 10px rgba(15, 214, 232, 0.55); }
}

@media (max-width: 360px) {
  .topo-titulo { font-size: 11.5px; }
  .kpi-rotulo { font-size: 11.5px; }
  .kpi .bloco-icone { display: none; }
  .chip { padding: 0 11px; }
}


/* ================= etapa 7: correções da revisão ================= */
/* foco visível nos campos (o input interno não mostra contorno; o contêiner mostra) */
.busca:focus-within, .filtro:focus-within { border-color: var(--foco); box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.35); }
.campo-lista:focus-visible { outline: none; border-color: var(--foco); box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.35); }
.tabela-caixa:focus-visible { outline-offset: -2px; }
.btn2 { background: linear-gradient(90deg, #0a9fd6 0%, #3f6ff5 55%, #993cfb 100%); text-shadow: 0 1px 2px rgba(3, 10, 30, 0.45); }
.pag:hover, .aba2:hover, .topo-icone:hover, .faixa-fechar:hover { background-color: rgba(255, 255, 255, 0.06); }
.faixa[hidden] { display: none; }

@media (max-width: 760px) {
  html { scroll-padding-bottom: 84px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topo, .barra-secao { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .nav-baixo { height: calc(60px + env(safe-area-inset-bottom)); }
  .painel-novo:target { max-height: 88dvh; overscroll-behavior: contain; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* campos com 16 px: o iOS não dá zoom ao focar */
  .busca-campo, .filtro-campo, .campo-lista { font-size: 16px; }

  /* legibilidade: o plano promete 13 px no corpo e 11 px nos rótulos da barra */
  .faixa-texto, .t2 { font-size: 13px; }
  .faixa-texto a { font-size: 13.5px; }
  .tabela td { font-size: 13px; }
  .badge { font-size: 12px; height: 21px; }
  .kpi-rotulo { font-size: 12px; }
  .variacao { font-size: 11px; padding: 1px 5px; }
  .kpi:not(.kpi-destaque) .variacao { display: none; }
  .nav-baixo a { font-size: 11px; }
  .chip { font-size: 13px; }
  .exec-hora { font-size: 12.5px; }
  .btn3 { font-size: 12.5px; }

  /* cartão: data + chamados na 1ª linha, origem na 2ª (inteira) */
  .tabela tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tabela td:nth-child(2) { grid-column: 1; }
  .tabela td:nth-child(4) { grid-column: 2; justify-self: end; }
  .tabela td:nth-child(3) { grid-column: 1 / -1; order: 3; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; }
  .tabela td:nth-child(5) { order: 4; }
  .tabela td:nth-child(6) { order: 5; }
  .tabela td:nth-child(1) { padding-right: 40px; }
  /* menu "…" do lote no canto (a seta sai) */
  .card-seta { display: none; }
  .tabela td:nth-child(7) { display: block; position: absolute; top: 4px; right: 4px; z-index: 1; }
  .tabela td:nth-child(7) .btn-icone { width: 40px; height: 40px; }
  /* cabeçalho da tabela fica para leitor de tela, invisível */
  .tabela thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* filtro com texto continua aberto e marcado */
  .filtro:has(.filtro-campo:not(:placeholder-shown)) { width: auto; flex: 1; min-width: 150px; border-color: var(--foco); background: #08345a; }
  .filtro:has(.filtro-campo:not(:placeholder-shown)) .filtro-campo { width: auto; }

  /* alvos de toque de 44 px sem mudar o desenho */
  .faixa-fechar, .btn3, .barra-icones .topo-icone, .menu-movel summary, .chip, .filtro, .pag, .folha-fechar, .btn-icone, .aba2 { position: relative; }
  .faixa-fechar::before, .btn3::before, .barra-icones .topo-icone::before, .menu-movel summary::before, .chip::before,
  .filtro::before, .pag::before, .folha-fechar::before, .btn-icone::before, .aba2::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .chips { padding-block: 5px; margin-block: -5px; }
}

@media (max-width: 760px) {
  .exec { flex-wrap: wrap; row-gap: 6px; white-space: normal; }
  .tabela td:nth-child(6) { white-space: normal; }
}
@media (max-width: 360px) {
  .topo-genova { font-size: 10.5px; }
  .exec-hora { margin-left: 0; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .topo-titulo { font-size: 16px; }
  .logo-ibm { width: 64px; }
  .topo-marca { gap: 12px; }
  .busca { width: 190px; }
  .topo-acoes { gap: 10px; }
}

/* notebook: a lista ganha espaço (painel lateral mais estreito, sem a coluna Origem) */
@media (max-width: 1500px) and (min-width: 1181px) {
  .duas-colunas { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1500px) and (min-width: 761px) {
  .tabela th:nth-child(3), .tabela td:nth-child(3), .tabela col.c-origem { display: none; }
}
@media (max-width: 1260px) and (min-width: 1181px) {
  .duas-colunas { grid-template-columns: minmax(0, 1fr); }
  .btn-novo-movel { display: flex; order: -1; justify-self: end; height: 40px; padding: 0 22px; font-size: 15px; text-decoration: none; }
}
@media (max-width: 1400px) and (min-width: 761px) {
  .exec-hora { display: none; }
}
@media (max-width: 360px) { .topo-marca { overflow: hidden; } }

/* ajustes finais da etapa 7 */
@media (max-width: 1500px) and (min-width: 761px) {
  .filtros { flex-wrap: wrap; row-gap: 10px; }
  .filtro { width: 260px; }
}
@media (max-width: 760px) {
  .topo-genova { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .btn-novo-movel { order: 0; justify-self: stretch; height: 44px; padding: 0; font-size: 16px; }
}
