/* Dossiê Next v1.0.0.0 — identidade da Next (petróleo + laranja) com o estilo mobile do Panota.
   Regra dos temas: TODA diferença do escuro fica em variáveis. O bloco de variáveis do escuro existe duas vezes
   (html[data-tema=escuro] e @media prefers-color-scheme: dark → html[data-tema=auto]), então o Automático
   escuro é idêntico ao Escuro. Nenhum estilo é escrito dentro das páginas (CSP style-src 'self'). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(fonts/Inter-ExtraBold.woff2) format("woff2"); }

/* ============================================================== TOKENS */
:root {
  color-scheme: light;
  --marca: #0f5c7a; --marca-funda: #0b4a63; --marca-claro: #e8f2f6; --marca-hover: #f1f7fa; --marca-txt: #0f5c7a;
  --marca-borda: #c5dde7; --botao: #0f5c7a; --botao-hover: #0b4a63; --lateral: #0f5c7a; --cab: #0f5c7a;
  --bico: #e9561e; --bico-txt: #fff;               /* laranja da Next: só destaques pequenos, nunca botão */
  --fundo: #f4f6f8; --sup: #fff; --sup2: #f9fafb; --texto: #17212b; --titulo: #0f2733; --suave: #5d6b79;
  --rotulo: #7b8794; --icone: #4a5868; --borda: #e2e7ec; --borda-f: #cfd7df;
  --verde: #1d7a4a; --verde-c: #e4f4ea; --laranja: #8a5a00; --laranja-c: #fff3d6; --laranja-b: #f3d68f;
  --verm: #b42318; --verm-c: #fbe9e7; --verm-b: #f1c9c3; --azul: #2d5bd1; --azul-c: #e8eefc; --cinza-c: #eef1f4;
  --sombra: 0 1px 2px rgba(15, 39, 51, .06), 0 4px 14px rgba(15, 39, 51, .06);
  --sombra-pop: 0 12px 32px rgba(10, 30, 40, .18), 0 2px 6px rgba(10, 30, 40, .08);
  --seg-on: #fff; --veu: rgba(10, 22, 30, .42);
  --e1b: #e8eefc; --e1f: #2d5bd1; --e2b: #e4f4ea; --e2f: #1d7a4a; --e3b: #fff3d6; --e3f: #8a5a00; --e4b: #f1ecfb; --e4f: #6b4fa8;
  --e5b: #fbe9e7; --e5f: #b42318; --e6b: #e3f0f5; --e6f: #0f5c7a; --e7b: #fce7f1; --e7f: #a3245e; --e8b: #eef1f4; --e8f: #4d5a66;
  --raio: 14px; --raio-b: 10px;
}
html[data-tema=escuro] {
  color-scheme: dark;
  --marca: #4aa8cc; --marca-funda: #0b4a63; --marca-claro: #16303c; --marca-hover: #142832; --marca-txt: #7cc3e0;
  --marca-borda: #24495a; --botao: #1a7aa0; --botao-hover: #1d88b2; --lateral: #0b3a4d; --cab: #0b4a63;
  --bico: #f26a33; --bico-txt: #fff;
  --fundo: #0e1419; --sup: #161e26; --sup2: #131a21; --texto: #e3eaf0; --titulo: #eef3f7; --suave: #9aa9b6;
  --rotulo: #7d8c99; --icone: #a9b8c8; --borda: #24303b; --borda-f: #334250;
  --verde: #6fd19b; --verde-c: #15302a; --laranja: #f2c766; --laranja-c: #33290f; --laranja-b: #5a4718;
  --verm: #f39a8d; --verm-c: #3a1e1c; --verm-b: #5a2a26; --azul: #9db4f5; --azul-c: #1c2540; --cinza-c: #202b35;
  --sombra: none; --sombra-pop: 0 14px 36px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  --seg-on: #334250; --veu: rgba(0, 0, 0, .55);
  --e1b: #1c2540; --e1f: #9db4f5; --e2b: #15302a; --e2f: #6fd19b; --e3b: #33290f; --e3f: #f2c766; --e4b: #2a2340; --e4f: #c3b0f5;
  --e5b: #3a1e1c; --e5f: #f39a8d; --e6b: #12303b; --e6f: #7cc3e0; --e7b: #3a1a2a; --e7f: #f19cc4; --e8b: #222c36; --e8f: #b2bfcb;
}
@media (prefers-color-scheme: dark) {
  html[data-tema=auto] {
    color-scheme: dark;
    --marca: #4aa8cc; --marca-funda: #0b4a63; --marca-claro: #16303c; --marca-hover: #142832; --marca-txt: #7cc3e0;
    --marca-borda: #24495a; --botao: #1a7aa0; --botao-hover: #1d88b2; --lateral: #0b3a4d; --cab: #0b4a63;
    --bico: #f26a33; --bico-txt: #fff;
    --fundo: #0e1419; --sup: #161e26; --sup2: #131a21; --texto: #e3eaf0; --titulo: #eef3f7; --suave: #9aa9b6;
    --rotulo: #7d8c99; --icone: #a9b8c8; --borda: #24303b; --borda-f: #334250;
    --verde: #6fd19b; --verde-c: #15302a; --laranja: #f2c766; --laranja-c: #33290f; --laranja-b: #5a4718;
    --verm: #f39a8d; --verm-c: #3a1e1c; --verm-b: #5a2a26; --azul: #9db4f5; --azul-c: #1c2540; --cinza-c: #202b35;
    --sombra: none; --sombra-pop: 0 14px 36px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
    --seg-on: #334250; --veu: rgba(0, 0, 0, .55);
    --e1b: #1c2540; --e1f: #9db4f5; --e2b: #15302a; --e2f: #6fd19b; --e3b: #33290f; --e3f: #f2c766; --e4b: #2a2340; --e4f: #c3b0f5;
    --e5b: #3a1e1c; --e5f: #f39a8d; --e6b: #12303b; --e6f: #7cc3e0; --e7b: #3a1a2a; --e7f: #f19cc4; --e8b: #222c36; --e8f: #b2bfcb;
  }
}

/* ============================================================== BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.45;
  background: var(--fundo); color: var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { color: var(--titulo); letter-spacing: -.02em; margin: 0; font-weight: 700; line-height: 1.2; }
a { color: var(--marca-txt); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
svg { display: block; flex: none; width: 20px; height: 20px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--marca) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--suave); }
.pad { padding: 1rem; } .pad-t { padding-top: .8rem; font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sup); padding: .6rem 1rem; border-radius: 8px; }
.pular:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }
.js .so-sem-js { display: none; }
.so-cel { display: none; }
@media (max-width: 760px) { .so-cel { display: block; } .so-pc, .so-pc-flex { display: none !important; } }
@media (min-width: 761px) { .so-pc-flex { display: inline-flex; } }

/* ============================================================== BOTÕES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border-radius: var(--raio-b); border: 1px solid var(--borda-f); background: var(--sup); color: var(--texto); font-weight: 600;
  font-size: .94rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--marca-hover); }
.btn svg { width: 18px; height: 18px; }
.btn.primario { background: var(--botao); border-color: var(--botao); color: #fff; }
.btn.primario:hover { background: var(--botao-hover); border-color: var(--botao-hover); }
.btn.perigo { color: var(--verm); border-color: var(--verm-b); }
.btn.perigo:hover { background: var(--verm-c); }
.confirma .btn.perigo { background: var(--verm); border-color: var(--verm); color: #fff; }
html[data-tema=escuro] .confirma .btn.perigo { color: #1a0d0b; }
.btn.mini { min-height: 36px; padding: 0 .75rem; font-size: .85rem; }
.btn.largo { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-link { color: var(--marca-txt); font-weight: 600; font-size: .9rem; align-self: center; }
.btn-ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--icone); display: grid;
  place-items: center; cursor: pointer; flex: none; }
.btn-ic:hover { background: var(--marca-hover); }
.btn-ic svg { width: 18px; height: 18px; }

/* ============================================================== ESTRUTURA (computador) */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.app:not(:has(.lateral)) { display: block; }
.lateral { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--lateral); color: #fff; display: flex;
  flex-direction: column; padding: 1rem .85rem; gap: .3rem; overflow-y: auto; z-index: 30; }
.lat-marca { display: flex; align-items: center; gap: .7rem; padding: .25rem .35rem 1.1rem; color: #fff; text-decoration: none; }
.lat-marca:hover { text-decoration: none; }
.lat-marca img { width: 40px; height: 40px; border-radius: 12px; background: #fff; flex: none; }
.lat-marca b { display: block; font-size: .78rem; letter-spacing: .14em; font-weight: 800; }
.lat-marca small { display: block; font-size: .76rem; opacity: .8; }
.lat-nav { display: flex; flex-direction: column; gap: .2rem; }
.lat-it { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .8rem; border-radius: 10px;
  color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .92rem; text-decoration: none; }
.lat-it:hover { background: rgba(255, 255, 255, .1); text-decoration: none; color: #fff; }
.lat-it.on { background: #fff; color: #0f5c7a; }
.lat-it .cont { margin-left: auto; }
.lat-usr { margin-top: auto; position: relative; }
.lat-usr summary { list-style: none; display: flex; align-items: center; gap: .65rem; padding: .6rem; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer; min-height: 52px; }
.lat-usr summary::-webkit-details-marker { display: none; }
.lat-usr .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; flex: none; }
.lat-usr b { display: block; font-size: .9rem; }
.lat-usr small { display: block; font-size: .72rem; opacity: .75; }
.lat-pop { position: absolute; bottom: calc(100% + 8px); left: 0; width: 260px; background: var(--sup); color: var(--texto);
  border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra-pop); padding: .35rem 0; }
.lat-pop a { display: flex; align-items: center; gap: .65rem; padding: .6rem 1rem; color: var(--texto); min-height: 44px; }
.lat-pop a:hover { background: var(--marca-hover); text-decoration: none; }
.lat-pop a svg { width: 18px; height: 18px; color: var(--marca-txt); }
.lat-pop .sair, .lat-pop .sair svg { color: var(--verm); }
.pop-email { font-size: .78rem; color: var(--rotulo); padding: .5rem 1rem .3rem; overflow-wrap: anywhere; }
.lat-recolher { display: flex; align-items: center; gap: .75rem; min-height: 40px; padding: 0 .8rem; margin-top: .4rem; border: 0;
  background: none; color: rgba(255, 255, 255, .7); border-radius: 10px; cursor: pointer; font-size: .84rem; }
.lat-recolher:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app.recolhido { grid-template-columns: 76px minmax(0, 1fr); }
.app.recolhido .lb { display: none; }
.app.recolhido .lat-it, .app.recolhido .lat-recolher { justify-content: center; padding: 0; }
.app.recolhido .lat-marca { justify-content: center; padding-inline: 0; }
.app.recolhido .lat-usr summary { justify-content: center; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { display: flex; align-items: center; gap: 1rem; padding: .9rem 2rem; border-bottom: 1px solid var(--borda); background: var(--sup);
  position: sticky; top: 0; z-index: 20; min-height: 60px; }
.topo-cel, .gaveta-bt, .gaveta-fundo { display: none; }
.migalha { flex: 1; min-width: 0; font-size: .88rem; color: var(--suave); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.migalha a { font-weight: 600; }
.migalha b { color: var(--titulo); font-weight: 600; }
.migalha .sep { color: var(--rotulo); }
.topo-tema button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borda); background: var(--sup); color: var(--icone);
  display: grid; place-items: center; cursor: pointer; }
.topo-tema button:hover { background: var(--marca-hover); }
.conteudo { padding: 1.6rem 2rem 3rem; width: 100%; max-width: 1240px; }
.az-topo { display: none; }

/* cabeçalho da página */
.cab { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.cab > div:first-child, .cab-tx { flex: 1; min-width: 0; }
.cab h1 { font-size: 1.65rem; overflow-wrap: anywhere; }
.cab .sub { color: var(--suave); margin-top: .2rem; overflow-wrap: anywhere; }
.botoes { display: flex; gap: .6rem; flex-wrap: wrap; }
.ini { width: 42px; height: 42px; border-radius: 12px; background: var(--marca-claro); color: var(--marca-txt); display: grid;
  place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.ini.grande { width: 54px; height: 54px; font-size: 1.05rem; border-radius: 14px; }
.av-p { width: 24px; height: 24px; border-radius: 50%; background: var(--marca-claro); color: var(--marca-txt); font-size: .62rem;
  font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.cont { background: var(--bico); color: var(--bico-txt); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================== CARTÕES, FAIXA, SEGMENTO, BUSCA, CHIPS */
.cartao { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.caixa { overflow: hidden; }
.caixa-h { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--borda); }
.caixa-h h2 { font-size: 1rem; font-weight: 650; flex: 1; }
.caixa-h a { font-weight: 600; font-size: .86rem; }
.duas-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.grupo-t { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--rotulo); margin: 1.3rem .25rem .55rem; }
.grupo-t .n { color: var(--suave); }
.faixa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.faixa > * { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: .95rem 1rem; box-shadow: var(--sombra);
  color: inherit; text-decoration: none; min-width: 0; }
.faixa > a:hover { border-color: var(--marca-borda); text-decoration: none; }
.faixa small { display: block; font-size: .78rem; font-weight: 600; color: var(--rotulo); }
.faixa b { display: block; font-size: 1.75rem; font-weight: 700; color: var(--titulo); letter-spacing: -.02em; line-height: 1.2;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.faixa b.lar { color: var(--bico); }
.faixa em { font-style: normal; font-size: .8rem; color: var(--suave); }
.seg { display: flex; gap: .25rem; background: var(--cinza-c); border-radius: 999px; padding: .25rem; width: max-content; max-width: 100%; margin-bottom: 1rem; }
.seg.rola { overflow-x: auto; scrollbar-width: none; }
.seg.rola::-webkit-scrollbar { display: none; }
.seg a { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .85rem; border-radius: 999px; font-weight: 600;
  font-size: .86rem; color: var(--suave); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--titulo); text-decoration: none; }
.seg a i { font-style: normal; font-variant-numeric: tabular-nums; opacity: .75; }
.seg a.on { background: var(--seg-on); color: var(--titulo); box-shadow: var(--sombra); }
.busca { display: flex; align-items: center; gap: .5rem; height: 40px; border-radius: 999px; background: var(--sup); border: 1px solid var(--borda-f);
  padding: 0 .9rem; color: var(--rotulo); min-width: 0; }
.busca svg { width: 18px; height: 18px; }
.busca input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; font-size: .94rem; color: var(--texto); }
.busca:focus-within { border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 20%, transparent); }
.filtros { display: flex; gap: .6rem; margin-bottom: .8rem; }
.filtros .busca { flex: 1; max-width: 460px; height: 44px; }
.form-filtros { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.form-filtros.linha { margin-bottom: 1rem; }
.form-filtros .busca { flex: 1 1 240px; }
.form-filtros select, .form-filtros input[type=date] { height: 40px; border-radius: 999px; border: 1px solid var(--borda-f); background: var(--sup);
  padding: 0 .85rem; font-size: .88rem; max-width: 100%; }
.form-filtros .per { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--suave); }
.form-filtros .btn { min-height: 40px; }
.barra-filtros { display: flex; gap: .7rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .4rem; }
.barra-filtros .seg { margin-bottom: .6rem; }
.mais-filtros { flex: 1; min-width: 0; }
.mais-filtros summary { list-style: none; min-height: 40px; margin-left: auto; width: max-content; }
.mais-filtros summary::-webkit-details-marker { display: none; }
.mais-filtros[open] summary { margin-bottom: .6rem; }
.mais-filtros .form-filtros { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: .8rem; margin-bottom: .8rem; }
.resumo-filtro { font-size: .86rem; color: var(--suave); margin: -.2rem 0 .8rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem;
  white-space: nowrap; background: var(--cb, var(--e8b)); color: var(--cf, var(--e8f)); max-width: 100%; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip em { font-style: normal; opacity: .8; }
.chip.cinza { --cb: var(--cinza-c); --cf: var(--suave); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.cor-1 { --cb: var(--e1b); --cf: var(--e1f); } .cor-2 { --cb: var(--e2b); --cf: var(--e2f); } .cor-3 { --cb: var(--e3b); --cf: var(--e3f); }
.cor-4 { --cb: var(--e4b); --cf: var(--e4f); } .cor-5 { --cb: var(--e5b); --cf: var(--e5f); } .cor-6 { --cb: var(--e6b); --cf: var(--e6f); }
.cor-7 { --cb: var(--e7b); --cf: var(--e7f); } .cor-8 { --cb: var(--e8b); --cf: var(--e8f); }

/* avisos e aviso "Desfazer" */
.aviso { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem;
  border: 1px solid transparent; overflow-wrap: anywhere; }
.aviso svg { width: 19px; height: 19px; margin-top: .05rem; }
.aviso.ok { background: var(--verde-c); color: var(--verde); }
.aviso.erro { background: var(--verm-c); color: var(--verm); border-color: var(--verm-b); }
.aviso.info { background: var(--azul-c); color: var(--azul); }
.aviso.atencao { background: var(--laranja-c); color: var(--laranja); border-color: var(--laranja-b); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.5rem; z-index: 40; display: flex; align-items: center; gap: 1rem;
  background: var(--titulo); color: var(--fundo); padding: .55rem .6rem .55rem 1.1rem; border-radius: 14px; box-shadow: var(--sombra-pop);
  max-width: calc(100vw - 2rem); font-size: .92rem; transition: opacity .4s; }
.toast button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; color: var(--marca-claro); font-weight: 700;
  min-height: 40px; padding: 0 .6rem; border-radius: 8px; cursor: pointer; }
html[data-tema=escuro] .toast button { color: #0b4a63; }
@media (prefers-color-scheme: dark) { html[data-tema=auto] .toast button { color: #0b4a63; } }
.toast button:hover { background: rgba(127, 127, 127, .2); }
.toast.saindo { opacity: 0; pointer-events: none; }

/* ============================================================== LISTAS */
.lista-cli { overflow: hidden; }
.linha-cli { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-top: 1px solid var(--borda); color: inherit;
  text-decoration: none; min-height: 64px; }
.linha-cli:first-child { border-top: 0; }
.linha-cli:hover { background: var(--marca-hover); text-decoration: none; }
.lc-tx { flex: 1; min-width: 0; }
.lc-tx b { display: block; font-weight: 600; color: var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tx small { display: block; font-size: .82rem; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tx .lc-ult { color: var(--rotulo); }
.lc-cid { width: 150px; font-size: .86rem; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seta { color: var(--rotulo); }
.lista-reg .reg { display: block; padding: .85rem 1rem; border-top: 1px solid var(--borda); color: inherit; text-decoration: none; }
.lista-reg .reg:first-child { border-top: 0; }
.lista-reg .reg:hover { background: var(--marca-hover); text-decoration: none; }
.reg-l1 { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--suave); min-width: 0; }
.reg-l1 b { color: var(--titulo); font-weight: 650; font-size: .9rem; }
.reg-tipo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-dt { margin-left: auto; white-space: nowrap; }
.reg-cli { font-weight: 600; font-size: .86rem; color: var(--marca-txt); margin-top: .3rem; overflow-wrap: anywhere; }
.reg-tx { margin: .3rem 0 .5rem; font-size: .92rem; overflow-wrap: anywhere; color: var(--texto); }
.reg-l3 { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.reg-anx { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--marca-txt); min-width: 0; max-width: 100%; }
.reg-anx svg { width: 15px; height: 15px; }
.anx-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-cx { overflow: hidden; }
.tab { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.tab th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rotulo); font-weight: 700;
  padding: .8rem 1rem; border-bottom: 1px solid var(--borda); }
.tab td { padding: .8rem 1rem; border-top: 1px solid var(--borda); vertical-align: top; overflow-wrap: anywhere; }
.tab tr.g td { background: var(--sup2); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--rotulo); padding: .5rem 1rem; }
.tab td small { display: block; color: var(--suave); font-size: .8rem; }
.tab td b { font-weight: 600; color: var(--titulo); }
.tab td.tx a { color: var(--texto); }
.tab td.tx a:hover { color: var(--marca-txt); }
.tab .corta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .lk-linha { color: var(--titulo); font-weight: 600; }
.tab .quem { display: inline-flex; align-items: center; gap: .4rem; }
.tab .reg-anx { margin-left: 0; }
.tab .nada { color: var(--rotulo); }
.tab tbody tr:not(.g):hover td { background: var(--marca-hover); }
.c-dt { width: 120px; } .c-cli { width: 210px; } .c-et { width: 150px; } .c-quem { width: 130px; } .c-anx { width: 170px; }
.carregar { text-align: center; margin: 1rem 0; }

/* ============================================================== VAZIO E O ÍCONE NOS ESTADOS */
.masc { position: relative; width: 88px; height: 88px; margin: 0 auto; flex: none; }
.masc img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 10px 26px rgba(10, 60, 80, .22); display: block; }
.masc.masc-cinza img { filter: saturate(.12) brightness(1.08); opacity: .62; box-shadow: none; }
.masc-bd { position: absolute; right: -8px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--fundo); color: #fff; font-weight: 800; font-size: 1rem; }
.masc-bd svg { width: 17px; height: 17px; }
.masc-bd.ok { background: #2f9e5b; } .masc-bd.er { background: #d64535; }
.masc-anel { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid var(--marca-claro); border-top-color: var(--bico);
  border-right-color: var(--bico); animation: masc-gira 1s linear infinite; }
@keyframes masc-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .masc-anel { animation-duration: 3s; } }
.masc-conf i { position: absolute; width: 8px; height: 8px; border-radius: 2px; }
.masc-conf .c1 { left: -14px; top: 10px; background: #e9561e; transform: rotate(20deg); }
.masc-conf .c2 { left: 96px; top: 2px; background: #0f5c7a; transform: rotate(-15deg); }
.masc-conf .c3 { left: -8px; top: 74px; background: #0f5c7a; transform: rotate(40deg); }
.masc-conf .c4 { left: 100px; top: 64px; background: #e9561e; transform: rotate(10deg); }
.masc-conf .c5 { left: 42px; top: -18px; background: #f2b134; transform: rotate(-30deg); }
.masc-conf .c6 { left: -22px; top: 42px; background: #f2b134; transform: rotate(60deg); }
.vazio { text-align: center; padding: 1.8rem 1rem 1.5rem; }
.vazio b { display: block; font-size: 1.08rem; color: var(--titulo); margin-top: 1rem; }
.vazio span { display: block; color: var(--suave); font-size: .92rem; margin: .3rem auto 0; max-width: 420px; }
.vazio .btn { margin-top: 1rem; }
.estado { text-align: center; padding: 1.5rem 1rem 1.6rem; }
.estado h2 { font-size: 1.3rem; margin: 1.1rem 0 .3rem; }
.estado p { color: var(--suave); max-width: 520px; margin: 0 auto; overflow-wrap: anywhere; }
.estado-bt { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.ok-estado { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); margin-bottom: 1rem; box-shadow: var(--sombra); }

/* ============================================================== COMPROVANTE (detalhe do registro) */
.comprov { padding: 1.2rem 1.3rem; max-width: 760px; }
.cp-cab { display: flex; align-items: center; gap: .8rem; }
.cp-cab > div { min-width: 0; }
.cp-cli { display: block; font-weight: 700; font-size: 1.1rem; color: var(--titulo); overflow-wrap: anywhere; }
.cp-cab small { color: var(--suave); }
.cp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 .8rem; }
.cp-data { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin-right: .3rem; }
.cp-data svg { width: 17px; height: 17px; color: var(--marca-txt); }
.cp-texto { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.55; }
.picote { position: relative; border-top: 2px dashed var(--borda-f); margin: 1.2rem -1.3rem; }
.picote::before, .picote::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--fundo); }
.picote::before { left: -10px; } .picote::after { right: -10px; }
.cp-sub { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--rotulo); margin-bottom: .6rem; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.foto { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cinza-c); border: 1px solid var(--borda); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arqs { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.arq { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--borda); border-radius: 10px; padding: .4rem .5rem .4rem .8rem;
  background: var(--sup); min-height: 48px; font-size: .9rem; }
.arq > svg { width: 18px; height: 18px; color: var(--marca-txt); }
.arq b, .arq > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--titulo); }
.arq > a b { display: block; overflow: hidden; text-overflow: ellipsis; }
.arq small { color: var(--suave); white-space: nowrap; }
.arq-rm { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--verm); cursor: pointer; min-height: 40px; padding: 0 .4rem; }
.arq-rm svg { width: 16px; height: 16px; }
.arq-rm input { width: 18px; height: 18px; accent-color: var(--verm); }
.arq.novo { border-style: dashed; }
.pares { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem 1.2rem; }
.pares dt { font-size: .76rem; font-weight: 600; color: var(--rotulo); }
.pares dd { margin: .15rem 0 0; display: flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; min-width: 0; }
.acoes-redondas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.3rem; }
.acoes-redondas .ac-f { display: contents; }
.ac { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--texto); background: none;
  border: 0; cursor: pointer; text-decoration: none; padding: 0; }
.ac:hover { text-decoration: none; }
.ac svg { width: 50px; height: 50px; padding: 14px; border-radius: 50%; background: var(--marca-claro); color: var(--marca-txt); }
.ac:hover svg { background: var(--marca-borda); }
.ac.perigo svg { background: var(--verm-c); color: var(--verm); }
.hist { margin-top: 1rem; max-width: 760px; }
.hist ol { list-style: none; margin: 0; padding: .4rem 1rem .8rem; }
.hist li { padding: .55rem 0; border-top: 1px solid var(--borda); font-size: .9rem; overflow-wrap: anywhere; }
.hist li:first-child { border-top: 0; }
.hist small { display: block; color: var(--suave); }

/* ============================================================== FORMULÁRIO */
.form-lado { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.form-lado:not(:has(aside)) { grid-template-columns: minmax(0, 860px); }
.form { padding: 1.2rem 1.3rem; }
.g3 { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.campo { margin: 0 0 1rem; min-width: 0; border: 0; padding: 0; }
.campo > label:not(.anexo-cx), .campo legend, .campo .rot { display: block; font-size: .84rem; font-weight: 600; color: var(--suave); margin-bottom: .4rem; padding: 0; }
.campo input[type=text], .campo input[type=date], .campo select, .campo textarea, .campo input[type=search],
.caixa-login input, .et-form input[type=text] { width: 100%; min-height: 46px; border: 1px solid var(--borda-f); border-radius: var(--raio-b);
  background: var(--sup); padding: 0 .8rem; font-size: 1rem; }
.campo textarea { padding: .7rem .8rem; min-height: 140px; resize: vertical; line-height: 1.5; }
.campo select[size]:not([size="0"]) { padding: .3rem; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .caixa-login input:focus, .et-form input:focus {
  outline: 0; border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 22%, transparent); }
.cli-busca { margin-bottom: .45rem; }
.cli-busca .busca { height: 44px; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tg { position: relative; cursor: pointer; }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg span { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--borda-f);
  font-weight: 600; font-size: .88rem; color: var(--suave); background: var(--sup); }
.tg .tg-ok { display: none; width: 16px; height: 16px; }
.tg input:checked + span { background: var(--cb); color: var(--cf); border-color: transparent; }
.tg input:checked + span .tg-ok { display: block; }
.tg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--marca) 55%, transparent); outline-offset: 2px; }
.tg-nova { margin-top: .6rem; }
.tg-nova summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px;
  border: 1px dashed var(--borda-f); font-weight: 600; font-size: .88rem; color: var(--marca-txt); cursor: pointer; list-style: none; }
.tg-nova summary::-webkit-details-marker { display: none; }
.tg-nova summary svg { width: 16px; height: 16px; }
.tg-nova input { margin-top: .5rem; width: 100%; min-height: 44px; border: 1px solid var(--borda-f); border-radius: var(--raio-b); background: var(--sup); padding: 0 .8rem; }
.anexo-cx { display: flex; align-items: center; gap: .8rem; border: 1.5px dashed var(--borda-f); border-radius: 12px; padding: .9rem 1rem; cursor: pointer;
  color: var(--suave); font-size: .86rem; }
.anexo-cx:hover { border-color: var(--marca); background: var(--marca-hover); }
.anexo-cx b { display: block; color: var(--titulo); font-size: .94rem; }
.anexo-cx small { display: block; }
.anexo-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--marca-claro); color: var(--marca-txt); display: grid; place-items: center; flex: none; }
.arq-inp { margin-top: .5rem; max-width: 100%; }
.arq-js .arq-inp { position: absolute; opacity: 0; width: 1px; height: 1px; }
.arq-js .arq-inp:focus-visible + .arqs, .arq-js .anexo-cx:has(+ .arq-inp:focus-visible) { outline: 3px solid color-mix(in srgb, var(--marca) 55%, transparent); }
.campo .arqs { margin: .5rem 0; }
.form-pe { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }
.mini-reg { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-top: 1px solid var(--borda); color: inherit; text-decoration: none; }
.mini-reg:hover { background: var(--marca-hover); text-decoration: none; }
.mini-reg > span:nth-child(2) { flex: 1; min-width: 0; }
.mini-reg b { display: block; font-size: .88rem; font-weight: 600; color: var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-reg small { display: block; font-size: .78rem; color: var(--suave); }
.mini-reg .av-p { width: 30px; height: 30px; font-size: .7rem; }

/* etiquetas e auditoria */
.lista-et { overflow: hidden; }
.et-lin { border-top: 1px solid var(--borda); }
.et-lin:first-child { border-top: 0; }
.et-lin > summary, .et-lin.fixa { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; min-height: 56px; list-style: none; cursor: pointer; }
.et-lin.fixa { cursor: default; }
.et-lin > summary::-webkit-details-marker { display: none; }
.et-lin b { flex: 1; min-width: 0; font-weight: 600; color: var(--titulo); overflow-wrap: anywhere; }
.et-lin small { color: var(--suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
.et-ed { color: var(--rotulo); }
.et-ed svg { width: 18px; height: 18px; }
.ponto { width: 13px; height: 13px; border-radius: 50%; background: var(--cf); flex: none; }
.et-form { padding: 0 1rem 1rem; display: grid; gap: .8rem; }
.et-form label { font-size: .84rem; font-weight: 600; color: var(--suave); display: grid; gap: .35rem; }
.et-bt { display: flex; gap: .5rem; flex-wrap: wrap; }
.cores { border: 0; padding: 0; margin: 0 0 .4rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.cores legend { font-size: .84rem; font-weight: 600; color: var(--suave); margin-bottom: .4rem; padding: 0; }
.cor-op { position: relative; cursor: pointer; }
.cor-op input { position: absolute; opacity: 0; }
.cor-op i { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--cb); border: 3px solid var(--cb); box-shadow: inset 0 0 0 9px var(--cf); }
.cor-op input:checked + i { border-color: var(--titulo); }
.cor-op input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--marca) 55%, transparent); outline-offset: 2px; }
.et-nova { padding: 1.1rem 1.2rem; max-width: 640px; }
.form-pe.estatico { justify-content: flex-start; }
.lista-aud { overflow: hidden; }
.aud { display: flex; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--borda); font-size: .9rem; }
.aud:first-child { border-top: 0; }
.aud-q { width: 130px; flex: none; color: var(--suave); }
.aud-t { min-width: 0; overflow-wrap: anywhere; }
.aud-t small { display: block; color: var(--suave); }

/* tema (no balão "Mais" e no menu do usuário) */
.tema-f { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; flex-wrap: wrap; }
.tema-f > span:first-child { display: inline-flex; align-items: center; gap: .65rem; flex: 1; font-size: .95rem; }
.tema-f > span:first-child svg { width: 19px; height: 19px; color: var(--marca-txt); }
.tema-op { display: flex; background: var(--cinza-c); border-radius: 999px; padding: 3px; }
.tema-op button { border: 0; background: none; min-height: 34px; padding: 0 .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--suave); cursor: pointer; }
.tema-op button.on { background: var(--seg-on); color: var(--titulo); box-shadow: var(--sombra); }

/* espera e confirmação */
.espera, .confirma { position: fixed; inset: 0; z-index: 9000; background: var(--veu); display: grid; place-items: center; padding: 1.2rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.espera-cx, .confirma-cx { background: var(--sup); border-radius: 18px; box-shadow: var(--sombra-pop); width: min(400px, 100%); padding: 2rem 1.5rem 1.5rem;
  text-align: center; border: 1px solid var(--borda); }
.espera-cx .masc { margin-bottom: 1.4rem; }
.espera-cx h2, .confirma-cx h2 { font-size: 1.15rem; }
.espera-cx p, .confirma-cx p { color: var(--suave); margin-top: .35rem; overflow-wrap: anywhere; }
.confirma-cx { text-align: left; padding: 1.4rem; }
.confirma-bt { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.3rem; flex-wrap: wrap; }

/* ============================================================== ENTRAR */
.tela-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.lado-marca { background: var(--marca); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  padding: 2rem; text-align: center; }
.lado-marca img { width: 96px; height: 96px; border-radius: 26px; background: #fff; }
.lado-marca b { font-size: 1.25rem; letter-spacing: .18em; font-weight: 800; }
.lado-marca span { opacity: .85; max-width: 320px; }
.lado-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.caixa-login { width: min(400px, 100%); background: var(--sup); border: 1px solid var(--borda); border-radius: 18px; padding: 2rem 1.8rem;
  box-shadow: var(--sombra-pop); display: grid; gap: .3rem; }
.caixa-login h1 { font-size: 1.5rem; }
.caixa-login .sub { color: var(--suave); margin-bottom: .8rem; }
.caixa-login label { font-size: .85rem; font-weight: 600; color: var(--suave); margin-top: .5rem; }
.caixa-login .btn { margin-top: 1rem; min-height: 48px; }
.caixa-login .dica { font-size: .84rem; color: var(--suave); text-align: center; margin-top: .6rem; }
.caixa-login .aviso { margin: .2rem 0 .4rem; }
.rodape-login { font-size: .78rem; color: var(--rotulo); margin-top: 1.2rem; }

/* ============================================================== IMPRESSÃO DO DOSSIÊ */
.impressao { background: #fff; color: #111; padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.imp-barra { display: flex; gap: .6rem; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; }
.imp-cab { display: flex; gap: .9rem; align-items: center; border-bottom: 2px solid #0f5c7a; padding-bottom: .8rem; }
.imp-cab img { border-radius: 12px; }
.imp-cab h1 { font-size: 1rem; color: #0f5c7a; text-transform: uppercase; letter-spacing: .08em; }
.imp-cab b { display: block; font-size: 1.15rem; overflow-wrap: anywhere; }
.imp-cab span { color: #444; font-size: .9rem; }
.imp-filtro { margin: .7rem 0; color: #444; font-size: .88rem; }
.imp-tab { width: 100%; border-collapse: collapse; font-size: .82rem; table-layout: fixed; }
.imp-tab th { text-align: left; border-bottom: 1px solid #999; padding: .4rem; font-size: .72rem; text-transform: uppercase; }
.imp-tab th:nth-child(1) { width: 80px; } .imp-tab th:nth-child(2) { width: 85px; } .imp-tab th:nth-child(3) { width: 110px; }
.imp-tab th:nth-child(5) { width: 110px; } .imp-tab th:nth-child(6) { width: 130px; }
.imp-tab td { border-bottom: 1px solid #ddd; padding: .45rem .4rem; vertical-align: top; overflow-wrap: anywhere; }
.imp-tab td.tx { white-space: pre-wrap; }
.imp-rod { margin-top: 1.2rem; font-size: .75rem; color: #666; text-align: right; }
@media print {
  .imp-barra { display: none; }
  .impressao { padding: 0; }
  @page { margin: 14mm; }
  tr { break-inside: avoid; }
}

/* ============================================================== VISUALIZADOR DE FOTOS (herdado do Panota) */
.lp { position: fixed; inset: 0; z-index: 10000; background: #0b141e; color: #fff; display: flex; flex-direction: column;
  font-family: "Inter", system-ui, sans-serif; -webkit-user-select: none; user-select: none; }
html.lp-aberta, html.lp-aberta body { overflow: hidden; }
.lp-top { display: flex; align-items: center; gap: .5rem; padding: calc(env(safe-area-inset-top) + .6rem) .75rem .6rem 1rem; }
.lp-cont { flex: 1; font-size: .95rem; font-weight: 600; }
.lp-bt { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.lp-bt:hover { background: rgba(255, 255, 255, .24); }
.lp-bt:focus-visible, .lp-sa:focus-visible, .lp-fechar:focus-visible { outline: 3px solid #f2b134; outline-offset: 2px; }
.lp-bt svg { width: 22px; height: 22px; }
.lp-meio { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lp-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; will-change: transform; cursor: zoom-in; }
.lp.lp-zoom .lp-img { cursor: grab; }
.lp-sa { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lp.lp-zoom .lp-sa { display: none; }
.lp-sa.e { left: .5rem; } .lp-sa.d { right: .5rem; }
.lp-sa svg { width: 22px; height: 22px; }
.lp-rod { padding: .75rem 1rem calc(env(safe-area-inset-bottom) + .9rem); max-width: 720px; width: 100%; margin: 0 auto; }
.lp-leg { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.lp-info { display: block; color: rgba(255, 255, 255, .72); font-size: .82rem; overflow-wrap: anywhere; }
.lp-pts { display: flex; gap: 6px; justify-content: center; margin-top: .75rem; }
.lp-pts i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lp-pts i.on { background: #e9561e; width: 18px; border-radius: 4px; }
.lp-fechar { display: block; width: 100%; margin-top: .85rem; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
  background: none; color: #fff; font: 600 .95rem "Inter", system-ui, sans-serif; cursor: pointer; }
@media (min-width: 900px) { .lp-fechar { display: none; } .lp-sa { width: 52px; height: 52px; } .lp-sa.e { left: 1.2rem; } .lp-sa.d { right: 1.2rem; } }

/* ============================================================== COMPUTADOR MÉDIO */
@media (max-width: 1100px) {
  .form-lado { grid-template-columns: minmax(0, 1fr); }
  .form-lado aside { display: none; }
  .c-cli { width: 170px; } .c-anx { width: 130px; } .lc-cid { display: none; }
}

/* ============================================================== CELULAR (até 760 px) */
.ab-barra, .ab-fundo { display: none; }
@media (max-width: 760px) {
  body { font-size: 15px; }
  .app, .app.recolhido { display: block; }
  .lateral { display: none; }
  .gaveta-bt { display: grid; }
  .app.gaveta .lateral { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); height: auto; z-index: 50;
    padding-top: calc(1rem + env(safe-area-inset-top)); box-shadow: var(--sombra-pop); }
  .app.gaveta .lat-recolher { display: none; }
  .gaveta-fundo { display: block; position: fixed; inset: 0; z-index: 49; background: var(--veu); }
  .topo { padding: calc(.35rem + env(safe-area-inset-top)) .5rem .35rem; min-height: 56px; background: var(--fundo); border-bottom: 0; gap: .3rem; }
  .migalha { display: none; }
  .topo-cel { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 0; }
  .voltar { display: inline-flex; align-items: center; gap: .1rem; min-height: 44px; padding: 0 .5rem 0 .2rem; font-weight: 600; flex: none; }
  .voltar:hover { text-decoration: none; }
  .topo-tit { font-size: 1.02rem; font-weight: 650; color: var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topo-tema button { width: 40px; height: 40px; border: 0; background: none; }
  .conteudo { padding: .6rem 1rem 1.5rem; }
  .cab { margin-bottom: .9rem; }
  .cab h1 { font-size: 1.4rem; }
  .cab .botoes { width: 100%; }
  .cab .botoes .btn { flex: 1; }
  .cab-cli { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .3rem .8rem; }
  .cab-cli h1 { font-size: 1.22rem; }
  .cab-cli .sub { font-size: .86rem; }
  .cab-cli .botoes { grid-column: 1 / -1; width: 100%; margin-top: .4rem; }
  .faixa.f4:has(> .so-pc) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faixa.f4:has(> .so-pc) b { font-size: 1.35rem; }
  .duas-col { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .duas-col .caixa { margin-bottom: .9rem; }
  .faixa, .faixa.f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .faixa > * { padding: .8rem .85rem; }
  .faixa b { font-size: 1.5rem; }
  .seg { width: auto; }
  .seg:not(.rola) { overflow-x: auto; scrollbar-width: none; }
  .seg a { padding: 0 .7rem; font-size: .82rem; }
  .filtros .busca { max-width: none; }
  .barra-filtros { display: block; }
  .mais-filtros summary { margin-left: 0; margin-bottom: .2rem; }
  .form-filtros > * { flex: 1 1 100%; }
  .form-filtros .per { flex: 1 1 calc(50% - .3rem); }
  .form-filtros .per input { flex: 1; min-width: 0; }
  .lc-cid { display: none; }
  .linha-cli .cont { font-size: .68rem; }
  .comprov { padding: 1rem; }
  .picote { margin-inline: -1rem; }
  .pares { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form { padding: 1rem; border-radius: var(--raio); }
  .g3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
  .g3 .campo:nth-child(3) { grid-column: 1 / -1; }
  .aud { flex-direction: column; gap: .1rem; }
  .aud-q { width: auto; font-size: .8rem; }

  /* cabeçalho na cor da marca nas páginas-raiz (as das abas) */
  .com-az .topo { display: none; }
  .az-topo { display: block; position: relative; overflow: hidden; background: var(--cab); color: #fff;
    padding: calc(.75rem + env(safe-area-inset-top)) 1.1rem 1.2rem; border-radius: 0 0 26px 26px; margin-bottom: .4rem; }
  .az-topo::after { content: ""; position: absolute; right: -60px; top: -50px; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .07); pointer-events: none; }
  .az-mk { display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1; }
  .az-mk img { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); background: #fff; flex: none; }
  .az-nm { flex: 1; min-width: 0; line-height: 1.2; }
  .az-nm b { display: block; font-size: .95rem; letter-spacing: .14em; font-weight: 800; }
  .az-nm small { display: block; font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .az-eu { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .45);
    color: #fff; font-weight: 700; font-size: .88rem; flex: none; cursor: pointer; }
  .az-tit { color: #fff; font-size: 1.72rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 1rem; position: relative; z-index: 1;
    overflow-wrap: anywhere; }
  .az-sub { font-size: .9rem; opacity: .88; margin-top: .15rem; position: relative; z-index: 1; }
  .az-sub:empty { display: none; }
  .com-az .conteudo { padding-top: .8rem; }
  .com-az .cab { display: none; }  /* o título já está no cabeçalho; "Novo registro" é a aba do meio */

  /* barra de abas */
  .com-abas .conteudo { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)); }
  .com-abas .conteudo:has(~ .barra-acao), .com-abas:has(.barra-acao) .conteudo, .com-abas:has(.form-pe:not(.estatico)) .conteudo {
    padding-bottom: calc(10.6rem + env(safe-area-inset-bottom)); }
  .ab-fundo { display: block; position: fixed; inset: 0; z-index: 26; background: var(--veu); }
  .ab-barra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 27;
    padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fundo) 90%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--borda); }
  .ab-aba { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 500; color: var(--rotulo);
    text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 48px; }
  .ab-aba:hover { text-decoration: none; }
  .ab-ic { position: relative; width: 52px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
  .ab-ic svg { width: 22px; height: 22px; }
  .ab-aba.on { color: var(--marca-txt); font-weight: 650; }
  .ab-aba.on .ab-ic { background: var(--botao); color: #fff; }
  .ab-aba.aberta .ab-ic { background: var(--marca-claro); color: var(--marca-txt); }
  .ab-bd { position: absolute; top: -4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bico);
    color: var(--bico-txt); font-size: .64rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fundo); line-height: 1; }
  .ab-bal { position: fixed; bottom: calc(78px + env(safe-area-inset-bottom)); width: min(290px, calc(100vw - 20px)); z-index: 28;
    background: var(--sup); border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra-pop); padding: .35rem 0;
    max-height: calc(100vh - 150px); overflow-y: auto; }
  .ab-bal.no-topo { bottom: auto; }
  .ab-bal:not(.no-topo)::after { content: ""; position: absolute; bottom: -8px; left: var(--ab-seta, 50%); width: 14px; height: 14px; margin-left: -7px;
    background: var(--sup); border-right: 1px solid var(--borda); border-bottom: 1px solid var(--borda); transform: rotate(45deg); }
  .ab-bal-t { font-size: .76rem; font-weight: 600; color: var(--rotulo); padding: .45rem 1rem .3rem; }
  .ab-bal > a { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .66rem 1rem; font-size: .95rem; color: var(--texto);
    text-decoration: none; min-height: 46px; }
  .ab-bal > a:hover, .ab-bal > a:focus-visible { background: var(--marca-hover); text-decoration: none; }
  .ab-bal > a svg { width: 19px; height: 19px; color: var(--marca-txt); }
  .ab-bal > a span { flex: 1; }
  .ab-bal a.at { background: var(--marca-claro); color: var(--marca-txt); font-weight: 600; }
  .ab-bal a.sair, .ab-bal a.sair svg { color: var(--verm); }
  .ab-bal hr { border: 0; border-top: 1px solid var(--borda); margin: .3rem 0; }

  /* barras de ação fixas logo acima das abas */
  .barra-acao, .com-abas .form-pe:not(.estatico) { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 25;
    padding: .6rem 1rem; margin: 0; background: linear-gradient(transparent, var(--fundo) 28%); }
  .com-abas .form-pe:not(.estatico) .btn { flex: 1; min-height: 48px; }
  .toast { bottom: calc(5.6rem + env(safe-area-inset-bottom)); width: calc(100vw - 2rem); justify-content: space-between; }

  /* entrar: o formulário sobe sobre a cor da marca */
  .tela-login { display: block; }
  .lado-marca { padding: calc(1.6rem + env(safe-area-inset-top)) 1rem 3.8rem; border-radius: 0 0 34px 34px; }
  .lado-marca img { width: 72px; height: 72px; border-radius: 20px; }
  .lado-form { padding: 0 1rem 2rem; }
  .caixa-login { margin-top: -2.6rem; position: relative; z-index: 1; padding: 1.5rem 1.3rem; }
}
@media (max-width: 380px) {
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .acoes-redondas .ac span { font-size: .74rem; }
}
@media (max-width: 760px) {
  .app.recolhido.gaveta .lb { display: inline; }
  .app.recolhido.gaveta .lat-it { justify-content: flex-start; padding: 0 .8rem; }
  .app.recolhido.gaveta .lat-marca { justify-content: flex-start; padding: .25rem .35rem 1.1rem; }
  .app.recolhido.gaveta .lat-usr summary { justify-content: flex-start; }
}
@media screen and (max-width: 760px) {
  .impressao { padding: 1rem; }
  .imp-tab, .imp-tab tbody, .imp-tab tr, .imp-tab td { display: block; width: 100%; }
  .imp-tab thead { display: none; }
  .imp-tab tr { border-bottom: 1px solid #ccc; padding: .5rem 0; }
  .imp-tab td { border: 0; padding: .1rem 0; }
  .imp-tab td:first-child { font-weight: 700; }
}
.campo .busca input[type=search] { border: 0; min-height: 0; height: 100%; padding: 0; box-shadow: none; background: none; }
@media (min-width: 761px) { .anexo-cx .so-cel { display: none; } }
