/* =====================================================================
   CTECH NC - estilos
   Tamanho base escala com --zoom (configuração de zoom por usuário)
   ===================================================================== */
:root {
  --zoom: 1;
  --marca: #0d366b;
  --marca-2: #104281;
  --pri: #2a78d6;
  --pri-escuro: #1c5cab;
  --pri-claro: #cde2fb;
  --fundo: #f4f5f7;
  --sup: #ffffff;
  --sup-2: #f8f8f6;
  --borda: #e3e2dd;
  --borda-forte: #c9c8c1;
  --txt: #0b0b0b;
  --txt-2: #52514e;
  --txt-3: #8a8984;
  --st-bom: #0a7d32;
  --st-atencao: #b86e00;
  --st-serio: #d95926;
  --st-critico: #c62828;
  --st-bom-bg: #e3f4e8;
  --st-atencao-bg: #fdf1dc;
  --st-critico-bg: #fde7e7;
  --sombra: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.05);
  --sombra-alta: 0 10px 40px rgba(0,0,0,.18);
  --raio: 10px;
  --lateral: 16.5rem;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #121211; --sup: #1a1a19; --sup-2: #222220; --borda: #33332f; --borda-forte: #4a4a45;
    --txt: #ffffff; --txt-2: #c3c2b7; --txt-3: #8f8e87; --pri: #3987e5; --pri-escuro: #5598e7; --pri-claro: #184f95;
    --st-bom: #3fbf6a; --st-atencao: #e0a030; --st-critico: #ef6b6b; --st-bom-bg: #173322; --st-atencao-bg: #3a2c12; --st-critico-bg: #3d1a1a;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --sombra: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #121211; --sup: #1a1a19; --sup-2: #222220; --borda: #33332f; --borda-forte: #4a4a45;
  --txt: #ffffff; --txt-2: #c3c2b7; --txt-3: #8f8e87; --pri: #3987e5; --pri-escuro: #5598e7; --pri-claro: #184f95;
  --st-bom: #3fbf6a; --st-atencao: #e0a030; --st-critico: #ef6b6b; --st-bom-bg: #173322; --st-atencao-bg: #3a2c12; --st-critico-bg: #3d1a1a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --sombra: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(15px * var(--zoom)); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--fundo); color: var(--txt); line-height: 1.45; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
small { font-size: .82em; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--txt-3); }
.centro { text-align: center; }
.pequeno { font-size: .85rem; }
.pad { padding: 1rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
[hidden] { display: none !important; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- faixa de treinamento ---------- */
.faixa-teste { position: sticky; top: 0; z-index: 60; background: #eb6834; color: #fff; text-align: center; font-weight: 700; font-size: .8rem; letter-spacing: .06em; padding: .3rem; }

/* ---------- estrutura ---------- */
.app { display: flex; min-height: 100vh; }
.lateral { width: var(--lateral); background: var(--marca); color: #dfe8f5; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; transition: transform .25s, width .25s; overflow-y: auto; }
.base-teste .lateral { top: 1.6rem; }
.marca { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.marca img { border-radius: 8px; }
.marca-txt { display: flex; flex-direction: column; min-width: 0; }
.marca-txt b { color: #fff; font-size: 1rem; }
.marca-txt small { color: #9fb6d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { padding: .6rem .5rem; flex: 1; }
.menu-link { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .62rem .75rem; border-radius: 8px; color: #dfe8f5; background: none; border: 0; font: inherit; font-size: .95rem; cursor: pointer; text-align: left; }
.menu-link:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.menu-link.ativo { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.menu-link span { flex: 1; }
.menu-toggle .seta { display: flex; transition: transform .2s; opacity: .7; }
.menu-grupo.aberto > .menu-toggle .seta { transform: rotate(90deg); }
.submenu { display: block; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.menu-grupo.aberto .submenu { max-height: 40rem; }
.submenu-link { display: flex; align-items: center; gap: .55rem; padding: .48rem .75rem .48rem 2.4rem; border-radius: 8px; color: #b9cae3; font-size: .9rem; }
.submenu-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.submenu-link.ativo { color: #fff; background: rgba(42,120,214,.45); }
.lateral-rodape { padding: .8rem 1rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: .35rem; color: #8ea6c8; }
.chip-base { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; width: max-content; }
.chip-base.prd { background: #0a7d32; color: #fff; }
.chip-base.trn { background: #eb6834; color: #fff; }
.principal { flex: 1; margin-left: var(--lateral); min-width: 0; transition: margin-left .25s; }
.menu-recolhido .lateral { transform: translateX(-100%); }
.menu-recolhido .principal { margin-left: 0; }
.cortina { display: none; }

.topo { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; background: var(--sup); border-bottom: 1px solid var(--borda); }
.base-teste .topo { top: 1.6rem; }
.topo-titulo { flex: 1; min-width: 0; }
.topo-titulo h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-titulo small { color: var(--txt-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-acoes { display: flex; align-items: center; gap: .35rem; }
.icone-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 8px; border: 0; background: none; color: var(--txt-2); cursor: pointer; position: relative; }
.icone-btn:hover { background: var(--sup-2); color: var(--txt); }
.icone-btn.mini { width: 1.9rem; height: 1.9rem; }
.icone-btn.perigo:hover { color: var(--st-critico); }
.zoom { display: flex; align-items: center; background: var(--sup-2); border-radius: 8px; }
.zoom-valor { border: 0; background: none; font: inherit; font-size: .78rem; color: var(--txt-2); width: 2.8rem; cursor: pointer; }
.contador { position: absolute; top: .1rem; right: .1rem; background: var(--st-critico); color: #fff; font-style: normal; font-size: .65rem; font-weight: 700; min-width: 1.05rem; height: 1.05rem; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 .25rem; }
.avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 0; background: var(--pri); color: #fff; font-weight: 700; cursor: pointer; font-size: 1rem; }
.suspenso { position: relative; }
.suspenso-painel { display: none; position: absolute; right: 0; top: calc(100% + .4rem); background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-alta); min-width: 15rem; z-index: 70; overflow: hidden; }
.suspenso.aberto .suspenso-painel { display: block; animation: surgir .15s ease; }
.suspenso-cab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--borda); }
.suspenso-item { display: flex; gap: .6rem; align-items: center; padding: .65rem 1rem; color: var(--txt); }
.suspenso-item:hover { background: var(--sup-2); text-decoration: none; }
.avisos-painel { width: min(24rem, 92vw); }
.avisos-lista { max-height: 60vh; overflow-y: auto; }
.aviso-item { display: block; padding: .65rem 1rem; border-bottom: 1px solid var(--borda); color: var(--txt); }
.aviso-item:hover { background: var(--sup-2); text-decoration: none; }
.aviso-item.nao-lido { border-left: 3px solid var(--pri); background: color-mix(in srgb, var(--pri) 6%, transparent); }
.aviso-item.urgente { border-left-color: var(--st-critico); }
.aviso-item b { display: block; font-size: .9rem; }
.aviso-item span { display: block; font-size: .82rem; color: var(--txt-2); }
.aviso-item small { color: var(--txt-3); }
.conteudo { padding: 1.25rem; max-width: 100rem; margin: 0 auto; }
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- carregando (GIF) ---------- */
.carregando { position: fixed; inset: 0; z-index: 200; background: rgba(10,20,40,.35); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .15s; }
.carregando.ativo { opacity: 1; pointer-events: all; }
.carregando-caixa { background: var(--sup); border-radius: 14px; padding: 1.2rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; box-shadow: var(--sombra-alta); min-width: 11rem; }
.carregando-caixa span { font-weight: 600; color: var(--txt-2); font-size: .92rem; }

/* ---------- componentes ---------- */
.cartao { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--sombra); }
.cartao.sem-pad { padding: 0; overflow: hidden; }
.cartao-titulo { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.cartao-titulo .num { background: var(--pri); color: #fff; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem; }
.cartao-cab h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.acoes-cab { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sub { font-size: .95rem; margin: 1.1rem 0 .6rem; color: var(--txt-2); }
.secao-titulo { display: flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--txt-2); margin: 1.2rem 0 .6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--borda-forte); background: var(--sup); color: var(--txt); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; background: var(--sup-2); }
.btn-primario { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn-primario:hover { background: var(--pri-escuro); }
.btn-contorno { border-color: var(--pri); color: var(--pri); background: transparent; }
.btn-texto { border-color: transparent; background: transparent; color: var(--txt-2); }
.btn-perigo { background: var(--st-critico); border-color: var(--st-critico); color: #fff; }
.btn-pequeno { padding: .4rem .7rem; font-size: .84rem; }
.btn-grande { padding: .85rem 1.3rem; font-size: 1.02rem; }
.btn-bloco { width: 100%; }
.perigo { color: var(--st-critico) !important; }
.link { background: none; border: 0; color: var(--pri); cursor: pointer; font: inherit; padding: 0; }
.link.pequeno { font-size: .8rem; }
.link-voltar { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .6rem; font-weight: 600; }

.alerta { position: relative; padding: .75rem 2.4rem .75rem 1rem; border-radius: 8px; margin-bottom: .9rem; border: 1px solid; font-size: .93rem; }
.alerta ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alerta-sucesso { background: var(--st-bom-bg); border-color: var(--st-bom); color: var(--txt); }
.alerta-erro { background: var(--st-critico-bg); border-color: var(--st-critico); color: var(--txt); }
.alerta-aviso { background: var(--st-atencao-bg); border-color: var(--st-atencao); color: var(--txt); }
.alerta-info { background: color-mix(in srgb, var(--pri) 10%, var(--sup)); border-color: var(--pri); color: var(--txt); }
.alerta-x { position: absolute; right: .5rem; top: .45rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--txt-3); }
.dica { display: flex; gap: .75rem; align-items: flex-start; background: color-mix(in srgb, var(--pri) 8%, var(--sup)); border: 1px solid color-mix(in srgb, var(--pri) 30%, var(--borda)); border-radius: var(--raio); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; color: var(--txt-2); }
.dica .ic { color: var(--pri); margin-top: .1rem; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .45rem; border-radius: 5px; background: var(--sup-2); color: var(--txt-2); border: 1px solid var(--borda); vertical-align: middle; }
.tag .ic { margin-right: .2rem; }
.tag-critico { background: var(--st-critico-bg); color: var(--st-critico); border-color: transparent; }
.acao-login { color: var(--st-bom); } .acao-login_falha, .acao-negado, .acao-excluir, .acao-erro { color: var(--st-critico); background: var(--st-critico-bg); }
.acao-editar { color: var(--st-atencao); } .acao-incluir { color: var(--pri); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 99px; border: 1px solid var(--borda); background: var(--sup); color: var(--txt-2); font: inherit; font-size: .83rem; cursor: pointer; }
.chip:hover { border-color: var(--pri); color: var(--pri); text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--txt); white-space: nowrap; }
.badge i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); flex: none; }
.prazo { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .18rem .5rem; border-radius: 6px; white-space: nowrap; }
.prazo-critico { background: var(--st-critico-bg); color: var(--st-critico); }
.prazo-atencao { background: var(--st-atencao-bg); color: var(--st-atencao); }
.prazo-bom { background: var(--st-bom-bg); color: var(--st-bom); }
.prazo-neutro { background: var(--sup-2); color: var(--txt-3); }
.progresso { display: flex; align-items: center; gap: .55rem; min-width: 8rem; }
.progresso-barra { flex: 1; height: .6rem; background: var(--sup-2); border: 1px solid var(--borda); border-radius: 99px; overflow: hidden; }
.progresso-barra span { display: block; height: 100%; border-radius: 99px; background: var(--pri); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progresso.p-ok .progresso-barra span { background: var(--st-bom); }
.progresso.p-meio .progresso-barra span { background: var(--s4); }
.progresso b { font-size: .85rem; min-width: 2.6rem; text-align: right; }
.progresso.mini { min-width: 6rem; }
.progresso.mini .progresso-barra { height: .45rem; }
.progresso.mini b { font-size: .78rem; }
.cat { font-weight: 700; font-size: .82rem; }
.cat-incidente { color: var(--st-critico); } .cat-nao_conformidade { color: var(--pri); } .cat-evento { color: var(--st-atencao); }
.sim { color: var(--st-bom); font-weight: 600; }
.amostra { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; vertical-align: middle; border: 1px solid var(--borda); }

/* ---------- formulários ---------- */
.grade { display: grid; gap: .9rem 1rem; }
.grade.g1 { grid-template-columns: 1fr; }
.grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade .col2 { grid-column: span 2; }
.grade .col3 { grid-column: span 3; }
.grade.sem-margem { gap: .6rem; }
.campo { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .2rem; min-width: 0; }
.campo > span { font-size: .84rem; font-weight: 600; color: var(--txt-2); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--txt); background: var(--sup); border: 1px solid var(--borda-forte); border-radius: 8px; padding: .55rem .7rem; min-height: 2.5rem; }
textarea { resize: vertical; min-height: 4rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
input[readonly], textarea[readonly] { background: var(--sup-2); color: var(--txt-2); }
input[type=color] { width: 3.2rem; height: 2.4rem; border: 1px solid var(--borda-forte); border-radius: 8px; background: var(--sup); padding: .15rem; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--pri); }
.check-linha { display: flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; padding: .3rem 0; }
.input-botao { display: flex; gap: .4rem; }
.input-botao input { flex: 1; }
.senha-wrap { position: relative; }
.senha-wrap .link { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: .8rem; }
.alternar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.alternar label { display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1px solid var(--borda-forte); border-radius: 8px; cursor: pointer; font-size: .92rem; }
.alternar label:has(input:checked) { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 9%, var(--sup)); font-weight: 600; }
.opcoes-cartao { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.opcao-cartao { position: relative; cursor: pointer; }
.opcao-cartao input { position: absolute; opacity: 0; }
.opcao-cartao span { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 2px solid var(--borda); border-radius: var(--raio); border-left: 6px solid var(--c); height: 100%; }
.opcao-cartao small { color: var(--txt-3); }
.opcao-cartao input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--sup)); }
.opcao-cartao input:focus-visible + span { outline: 2px solid var(--pri); }
.soltar-arquivos { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1.1rem; border: 2px dashed var(--borda-forte); border-radius: var(--raio); cursor: pointer; color: var(--txt-2); }
.soltar-arquivos:hover, .soltar-arquivos.arrastando { border-color: var(--pri); color: var(--pri); }
.soltar-arquivos span { display: flex; flex-direction: column; }
.soltar-arquivos small { color: var(--txt-3); }
.soltar-arquivos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.soltar-arquivos.compacto { padding: .7rem; margin: .5rem 0; }
.previas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.previas figure { margin: 0; width: 5.5rem; text-align: center; font-size: .7rem; color: var(--txt-3); }
.previas img, .previas .arq { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); display: flex; align-items: center; justify-content: center; background: var(--sup-2); }
.previas figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filtro-select { margin-bottom: .3rem; font-size: .85rem !important; min-height: 2rem !important; padding: .35rem .6rem !important; }
.barra-acoes { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.barra-acoes.fixa { position: sticky; bottom: 0; background: color-mix(in srgb, var(--fundo) 85%, transparent); backdrop-filter: blur(6px); padding: .75rem 0; z-index: 5; }
.barra-acoes.topo-lista { margin: 0 0 1rem; }
.form-linha { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.form-linha input[type=search], .form-linha select { width: auto; min-width: 12rem; flex: 1; }

/* ---------- abas, filtros, tabelas ---------- */
.abas { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .9rem; border-bottom: 1px solid var(--borda); }
.aba { padding: .6rem .95rem; color: var(--txt-2); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .4rem; align-items: center; }
.aba em { font-style: normal; background: var(--sup-2); border: 1px solid var(--borda); border-radius: 99px; padding: 0 .45rem; font-size: .78rem; }
.aba.ativa { color: var(--pri); border-bottom-color: var(--pri); }
.aba:hover { text-decoration: none; color: var(--txt); }
.aba-alerta { color: var(--st-critico); margin-left: auto; }
.filtros { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end; padding: .9rem 1rem; }
.filtros .campo { flex: 1 1 9rem; margin: 0; }
.filtros .campo.busca { flex: 3 1 16rem; }
.filtros-botoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabela-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--txt-3); font-weight: 700; padding: .65rem .75rem; border-bottom: 1px solid var(--borda); background: var(--sup-2); white-space: nowrap; }
.tabela th small { display: block; text-transform: none; font-weight: 500; letter-spacing: 0; }
.tabela td { padding: .65rem .75rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela tbody tr:hover { background: var(--sup-2); }
.tabela tr[data-href] { cursor: pointer; }
.tabela tr.atrasado td:first-child { box-shadow: inset 3px 0 0 var(--st-critico); }
.tabela tr.cancelado { opacity: .5; }
.tabela tr.cancelado td { text-decoration: line-through; }
.tabela tr.inativo { opacity: .55; }
.acoes-linha { white-space: nowrap; text-align: right; }
.paginacao { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; gap: .5rem; flex-wrap: wrap; }
.col-evolucao { min-width: 9rem; }
.col-status select { min-width: 10rem; font-size: .85rem; min-height: 2.1rem; padding: .3rem .5rem; }
.item-perc { margin-top: .4rem; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .2rem; color: var(--txt); box-shadow: var(--sombra); border-top: 3px solid var(--pri); }
.kpi:hover { text-decoration: none; border-color: var(--pri); }
.kpi span { font-size: .8rem; color: var(--txt-2); font-weight: 600; }
.kpi b { font-size: 1.75rem; line-height: 1.1; }
.kpi small { color: var(--txt-3); }
.kpi-n1 { border-top-color: var(--s1); } .kpi-n2 { border-top-color: var(--s7); } .kpi-n3 { border-top-color: var(--s4); }
.kpi-n4 { border-top-color: var(--s2); } .kpi-n5 { border-top-color: var(--s5); } .kpi-critico { border-top-color: var(--st-critico); }
.kpi-critico b { color: var(--st-critico); }
.kpi-evol { grid-column: span 2; justify-content: center; }

/* ---------- vazio ---------- */
.vazio { text-align: center; padding: 3rem 1rem; color: var(--txt-2); }
.vazio.pequeno { padding: 1.5rem 1rem; }
.vazio-icone { color: var(--txt-3); margin-bottom: .6rem; }
.vazio-icone.ok { color: var(--st-bom); }
.vazio h2 { margin-bottom: .4rem; }

/* ---------- notificação ---------- */
.nc-cab-linha { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nc-protocolo { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nc-meta { color: var(--txt-2); font-size: .9rem; margin-top: .2rem; }
.nc-cab-dir { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.nc-evolucao { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .6rem; }
.nc-evolucao > span { font-size: .85rem; font-weight: 600; color: var(--txt-2); white-space: nowrap; }
.nc-evolucao .progresso { flex: 1; }
.nc-evolucao .progresso-barra { height: .9rem; }
.etapas { list-style: none; display: flex; padding: 0; margin: 1rem 0 .6rem; counter-reset: e; }
.etapas li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; position: relative; font-size: .78rem; color: var(--txt-3); text-align: center; }
.etapas li::before { content: ""; position: absolute; top: .8rem; left: -50%; right: 50%; height: 2px; background: var(--borda); z-index: 0; }
.etapas li:first-child::before { display: none; }
.etapas li i { width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--sup); border: 2px solid var(--borda-forte); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: .75rem; z-index: 1; }
.etapas li.feita i { background: var(--st-bom); border-color: var(--st-bom); color: #fff; }
.etapas li.feita::before, .etapas li.atual::before { background: var(--st-bom); }
.etapas li.atual i { border-color: var(--pri); background: var(--pri); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 25%, transparent); }
.etapas li.atual { color: var(--txt); font-weight: 700; }
.etapas li.cancelada i { background: var(--txt-3); border-color: var(--txt-3); color: #fff; }
.nc-atalhos { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.sanfona { padding: 0; }
.sanfona-cab { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: none; border: 0; cursor: pointer; font: inherit; color: var(--txt); text-align: left; }
.sanfona-cab h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.sanfona-cab h2 small { color: var(--txt-3); font-weight: 500; font-size: .8rem; }
.sanfona-cab > i { transition: transform .2s; display: flex; color: var(--txt-3); }
.sanfona.aberta .sanfona-cab > i { transform: rotate(90deg); }
.sanfona-corpo { display: none; padding: 0 1.2rem 1.2rem; }
.sanfona.aberta .sanfona-corpo { display: block; animation: surgir .2s; }
.dado { background: var(--sup-2); border-radius: 8px; padding: .55rem .75rem; margin-bottom: .5rem; }
.dado > span { display: block; font-size: .75rem; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .03em; }
.dado > div { font-size: .95rem; word-wrap: break-word; }
.dado.texto-longo > div { white-space: normal; }
.ishikawa { display: grid; grid-template-columns: repeat(3, 1fr) ; gap: .6rem; position: relative; margin-bottom: .8rem; }
.ish-cat { border: 1px solid var(--borda); border-radius: 8px; padding: .6rem; min-height: 5rem; background: var(--sup-2); }
.ish-cat > b { display: block; font-size: .82rem; color: var(--txt-2); text-transform: uppercase; margin-bottom: .35rem; }
.ish-causa { display: flex; justify-content: space-between; align-items: flex-start; gap: .3rem; background: var(--sup); border: 1px solid var(--borda); border-radius: 6px; padding: .35rem .5rem; margin-bottom: .3rem; font-size: .88rem; }
.ish-causa.raiz { border-color: var(--st-critico); box-shadow: inset 3px 0 0 var(--st-critico); font-weight: 600; }
.ish-acoes { display: flex; }
.ish-cabeca { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; justify-content: center; padding: .6rem; border-radius: 8px; background: var(--marca); color: #fff; font-weight: 700; }
.ish-add { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.ish-add select { width: auto; } .ish-add input[type=text] { flex: 1; min-width: 12rem; }
.porques { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.plano-resumo { border: 1px solid var(--borda); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .7rem; }
.plano-resumo-cab { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; margin-bottom: .5rem; }
.plano-resumo-cab .progresso { grid-column: 1 / -1; }
.itens-mini { list-style: none; padding: 0; margin: 0 0 .6rem; }
.itens-mini li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--borda); flex-wrap: wrap; font-size: .9rem; }
.itens-mini li.cancelado { opacity: .5; text-decoration: line-through; }
.it-txt { flex: 1; min-width: 10rem; }
.anexos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.anexo { border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; position: relative; background: var(--sup-2); }
.anexo-prev { display: flex; align-items: center; justify-content: center; height: 7rem; background: var(--sup-2); color: var(--txt-3); }
.anexo-prev img { width: 100%; height: 100%; object-fit: cover; }
.anexo-info { padding: .4rem .55rem; }
.anexo-info b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anexo-info small { color: var(--txt-3); font-size: .7rem; }
.anexo form { position: absolute; top: .3rem; right: .3rem; background: var(--sup); border-radius: 6px; }
.comentar textarea { margin-bottom: .5rem; }
.comentar-rodape { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.linha-tempo { list-style: none; padding: 0 0 0 1.2rem; margin: 1rem 0 0; border-left: 2px solid var(--borda); }
.linha-tempo li { position: relative; padding: 0 0 1rem .9rem; }
.linha-tempo li::before { content: ""; position: absolute; left: -1.62rem; top: .3rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--sup); border: 2px solid var(--pri); }
.linha-tempo li.lt-comentario::before { border-color: var(--s3); background: var(--s3); }
.linha-tempo li.lt-cancelamento::before, .linha-tempo li.lt-devolucao::before { border-color: var(--st-critico); }
.linha-tempo li.lt-validacao::before { border-color: var(--st-bom); background: var(--st-bom); }
.linha-tempo li.interno .lt-texto { background: var(--st-atencao-bg); }
.lt-cab { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.lt-tipo { color: var(--txt-3); }
.lt-cab time { margin-left: auto; color: var(--txt-3); font-size: .8rem; }
.lt-texto { margin-top: .35rem; background: var(--sup-2); padding: .55rem .75rem; border-radius: 8px; font-size: .92rem; }

/* ---------- plano 5W2H ---------- */
.nc-mini-dados { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.nc-mini-desc { margin: .3rem 0 0; color: var(--txt-2); font-size: .9rem; }
.legenda-status { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .8rem; }
.tabela-5w2h td { min-width: 7rem; }
.tabela-5w2h td:first-child { min-width: 0; font-weight: 700; color: var(--txt-3); }
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.cartao-plano { display: flex; flex-direction: column; gap: .5rem; color: var(--txt); margin: 0; }
.cartao-plano:hover { text-decoration: none; border-color: var(--pri); }
.cartao-plano h3 { font-size: 1rem; }
.cp-cab, .cp-rodape { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- início ---------- */
.boas-vindas { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--marca), var(--marca-2)); color: #fff; border: 0; }
.boas-vindas .muted { color: #c6d6ec; margin: .3rem 0 0; max-width: 40rem; }
.lista-simples { list-style: none; padding: 0; margin: 0; }
.lista-simples li a { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .6rem .2rem; border-bottom: 1px solid var(--borda); color: var(--txt); }
.lista-simples li a:hover { background: var(--sup-2); text-decoration: none; }
.lista-simples li a span { flex: 1; min-width: 8rem; color: var(--txt-2); font-size: .9rem; }
.lista-simples li.aviso-urgente b { color: var(--st-critico); }

/* ---------- dashboard ---------- */
.periodos { display: flex; border: 1px solid var(--borda-forte); border-radius: 8px; overflow: hidden; }
.periodos button { border: 0; background: var(--sup); padding: .55rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--txt-2); border-right: 1px solid var(--borda); }
.periodos button:last-child { border-right: 0; }
.periodos button.ativo { background: var(--pri); color: #fff; }
.dash-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grafico { margin: 0; display: flex; flex-direction: column; min-height: 20rem; }
.grafico.largo, .grafico-kpi { grid-column: 1 / -1; }
.grafico-kpi { min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.grafico-kpi .kpis { margin: 0; }
.grafico-cab { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.grafico-cab h2 { font-size: 1rem; }
.grafico-acoes { display: flex; gap: .15rem; }
.grafico-corpo { flex: 1; position: relative; min-height: 14rem; }
.esqueleto { height: 100%; min-height: 14rem; border-radius: 8px; background: linear-gradient(90deg, var(--sup-2) 25%, var(--borda) 50%, var(--sup-2) 75%); background-size: 200% 100%; animation: brilho 1.3s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- admin ---------- */
.matriz-perm td, .matriz-perm th { padding: .45rem .6rem; }
.matriz-perm tr.grupo td { background: var(--sup-2); }
.matriz-perm.desabilitada { opacity: .7; }
.grade-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem .9rem; max-height: 22rem; overflow-y: auto; margin-top: .6rem; }
.check-cartao { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--borda); border-radius: 8px; cursor: pointer; }
.check-cartao span { display: flex; flex-direction: column; }
.check-cartao small { color: var(--txt-3); }
.check-cartao:has(input:checked) { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 7%, var(--sup)); }
.filtro-lista { max-width: 22rem; }
.mv-resultado { margin-top: .8rem; max-height: 50vh; overflow-y: auto; }
.mv-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .3rem; border-bottom: 1px solid var(--borda); }
.layout-lateral { display: grid; grid-template-columns: 18rem 1fr; gap: 1rem; align-items: start; }
.item-perfil { display: flex; flex-direction: column; padding: .6rem .7rem; border-radius: 8px; color: var(--txt); }
.item-perfil small { color: var(--txt-3); }
.item-perfil:hover { background: var(--sup-2); text-decoration: none; }
.item-perfil.ativo { background: color-mix(in srgb, var(--pri) 12%, var(--sup)); }
.novo-perfil { display: flex; flex-direction: column; gap: .45rem; margin-top: 1rem; border-top: 1px solid var(--borda); padding-top: .5rem; }
.locais { display: flex; flex-wrap: wrap; gap: .5rem; }
pre.detalhe { background: var(--sup-2); padding: .8rem; border-radius: 8px; white-space: pre-wrap; word-break: break-word; font-size: .82rem; max-height: 60vh; overflow: auto; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(10,20,40,.45); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal-caixa { background: var(--sup); border-radius: 14px; width: min(52rem, 100%); box-shadow: var(--sombra-alta); animation: surgir .18s; }
.modal-cab { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--borda); }
.modal-cab h3 { font-size: 1.05rem; }
.modal-corpo { padding: 1.1rem 1.2rem; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: #1a1a19; color: #fff; padding: .7rem 1.1rem; border-radius: 10px; z-index: 250; box-shadow: var(--sombra-alta); font-size: .92rem; max-width: 90vw; }
.toast.erro { background: var(--st-critico); }

/* ---------- login ---------- */
.tela-login { min-height: 100vh; }
.login-fundo { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-lado { background: linear-gradient(150deg, #0d366b, #104281 55%, #2a78d6); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.login-lado h1 { font-size: 2rem; }
.login-lado p { color: #d3e1f4; max-width: 30rem; font-size: 1.05rem; }
.login-lado img { border-radius: 18px; }
.login-passos { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: 1rem; }
.login-passos li { display: flex; align-items: center; gap: .7rem; color: #e6eef9; }
.login-passos b { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.login-caixa { align-self: center; justify-self: center; width: min(26rem, 92vw); background: var(--sup); border: 1px solid var(--borda); border-radius: 16px; padding: 2rem; box-shadow: var(--sombra-alta); display: flex; flex-direction: column; gap: .8rem; margin: 2rem 0; }
.login-caixa h2 { font-size: 1.5rem; }
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.base-opcao { cursor: pointer; }
.base-opcao input { position: absolute; opacity: 0; }
.base-opcao span { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem; border: 2px solid var(--borda); border-radius: 10px; text-align: center; }
.base-opcao span small { color: var(--txt-3); }
.base-opcao.prd input:checked + span { border-color: #0a7d32; background: color-mix(in srgb, #0a7d32 10%, var(--sup)); }
.base-opcao.trn input:checked + span { border-color: #eb6834; background: color-mix(in srgb, #eb6834 12%, var(--sup)); }
.base-opcao input:focus-visible + span { outline: 2px solid var(--pri); }

/* ---------- formulário público ---------- */
.publico-topo { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; background: var(--marca); color: #fff; }
.publico-topo div { display: flex; flex-direction: column; }
.publico-topo small { color: #c6d6ec; }
.conteudo.publico { max-width: 60rem; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .grade.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade.g4 .col3 { grid-column: span 2; }
  .dash-grade { grid-template-columns: 1fr; }
  .porques { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .lateral { transform: translateX(-100%); box-shadow: var(--sombra-alta); }
  .principal { margin-left: 0; }
  .menu-aberto .lateral { transform: none; }
  .menu-aberto .cortina { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
  .menu-recolhido .lateral { transform: translateX(-100%); }
  .menu-recolhido.menu-aberto .lateral { transform: none; }
  .layout-lateral { grid-template-columns: 1fr; }
  .login-fundo { grid-template-columns: 1fr; }
  .login-lado { padding: 2rem 1.5rem; }
  .login-lado p, .login-passos { display: none; }
  .login-lado h1 { font-size: 1.4rem; }
}
@media (max-width: 760px) {
  html { font-size: calc(15.5px * var(--zoom)); }
  .conteudo { padding: .8rem; }
  .topo { padding: .5rem .6rem; gap: .4rem; }
  .zoom .zoom-valor { display: none; }
  .grade.g2, .grade.g4 { grid-template-columns: 1fr; }
  .grade .col2, .grade .col3, .grade.g4 .col3 { grid-column: auto; }
  .ishikawa { grid-template-columns: 1fr; }
  .porques { grid-template-columns: 1fr; }
  .kpi-evol { grid-column: 1 / -1; }
  .etapas li span { display: none; }
  .etapas li.atual span { display: block; position: absolute; top: 2rem; white-space: nowrap; }
  .etapas { margin-bottom: 1.8rem; }
  .nc-evolucao { flex-direction: column; align-items: stretch; gap: .3rem; }
  .cartao { padding: .9rem; }
  .sanfona-cab { padding: .9rem; } .sanfona-corpo { padding: 0 .9rem .9rem; }
  /* tabela vira cartões */
  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr { border-bottom: 6px solid var(--fundo); padding: .4rem 0; }
  .tabela td { border: 0; padding: .3rem .8rem; display: flex; gap: .6rem; }
  .tabela td[data-rotulo]::before { content: attr(data-rotulo); flex: 0 0 6.5rem; font-size: .75rem; font-weight: 700; color: var(--txt-3); text-transform: uppercase; padding-top: .15rem; }
  .tabela td > * { min-width: 0; }
  .tabela tr.atrasado td:first-child { box-shadow: none; }
  .tabela tr.atrasado { box-shadow: inset 4px 0 0 var(--st-critico); }
  .acoes-linha { justify-content: flex-end; }
  .tabela td.col-status { flex-wrap: wrap; }
  .matriz-perm td { justify-content: space-between; }
  .abas { overflow-x: auto; flex-wrap: nowrap; }
  .aba { white-space: nowrap; }
  .aba-alerta { margin-left: 0; }
  .barra-acoes .btn { flex: 1; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-caixa { border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; }
  .filtros .campo { flex: 1 1 100%; }
}

/* ---------- impressão ---------- */
@media print {
  .lateral, .topo, .nc-atalhos, .barra-acoes, form.comentar, .ish-add, .acoes-linha, .faixa-teste, .grafico-acoes, .filtros, .form-linha, .toast, .carregando, .sanfona-cab > i { display: none !important; }
  .principal { margin: 0; }
  .sanfona-corpo { display: block !important; }
  .cartao { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- gráficos (graficos.js) ---------- */
.gr-svg { display: block; overflow: visible; }
.gr-eixo text, .gr-rotulo { fill: var(--txt-3); font-size: 11px; }
.gr-valor { fill: var(--txt-2); font-size: 11px; font-weight: 600; }
.gr-grade { stroke: var(--borda); stroke-width: 1; stroke-dasharray: 2 3; }
.gr-base { stroke: var(--borda-forte); stroke-width: 1; }
.gr-hit { fill: transparent; }
.gr-hit:hover { fill: color-mix(in srgb, var(--txt) 4%, transparent); }
.gr-marca { transition: opacity .15s; }
.gr-svg:hover .gr-marca { opacity: .85; }
.gr-svg .gr-marca:hover { opacity: 1; }
.gr-fatia { stroke: var(--sup); stroke-width: 2; }
.gr-centro { fill: var(--txt); font-size: 22px; font-weight: 800; }
.gr-centro-sub { fill: var(--txt-3); font-size: 11px; }
.gr-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--sup); color: var(--txt); border: 1px solid var(--borda); box-shadow: var(--sombra-alta); border-radius: 8px; padding: .45rem .65rem; font-size: .82rem; max-width: 18rem; line-height: 1.5; }
.gr-tip i, .gr-legenda i, .gr-lista i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.gr-legenda { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; font-size: .82rem; color: var(--txt-2); }
.gr-rosca { display: flex; align-items: center; gap: 1.2rem; }
.gr-rosca.empilhada { flex-direction: column; }
.gr-lista { list-style: none; padding: 0; margin: 0; flex: 1; width: 100%; }
.gr-lista li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .5rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--borda); font-size: .88rem; }
.gr-lista small { color: var(--txt-3); min-width: 2.5rem; text-align: right; }
.gr-vazio { display: flex; align-items: center; justify-content: center; min-height: 12rem; color: var(--txt-3); }
.gr-tabela td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .gr-tabela thead { display: table-header-group; } .gr-tabela, .gr-tabela tbody { display: table; } .gr-tabela tr { display: table-row; } .gr-tabela td { display: table-cell; } }
.dash-grade { grid-auto-flow: dense; }
.tabela-nc td:first-child a b { white-space: nowrap; }
.tabela-nc .badge { white-space: normal; }
