/* Manrope (SIL OFL 1.1), hospedada localmente: sem pedir nada à internet */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #F6F6F6; --card: #fff; --ink: #0D0D0D; --muted: #595959; --line: #DCDCDC;
  --navy: #1F1F1F; --navy-d: #0D0D0D; --gold: #fdca2c; --ok: #1f7a4d; --err: #b3261e; --warn: #9a6700;
  --radius: 8px;
}
/* tema escuro do sistema operacional desativado: todas as telas usam o visual claro */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
header.top { background: linear-gradient(100deg,#000000 0%,#0D0D0D 55%,#1A1A1A 100%); color: #fff; padding: 10px 20px; display: flex; align-items: center; gap: 16px; border-bottom: 4px solid var(--gold); }
header.top h1 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: .2px; }
header.top .sp { flex: 1; }
header.top small { opacity: .85; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card h3 { margin: 18px 0 8px; font-size: 14px; color: var(--navy-d); }
.auth { max-width: 420px; margin: 28px auto; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 10px; }
.row.full { grid-template-columns: 1fr; }
label.f { display: block; font-size: 12px; color: var(--muted); }
label.f > span { display: block; margin-bottom: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; font-size: 11px; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
input.bad, select.bad, textarea.bad { border-color: var(--err); }
.btn { background: var(--navy); color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--navy-d); }
.btn.sec { background: transparent; color: var(--navy-d); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #2a2200; }
.btn.sm { padding: 3px 9px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.tabs button.on { color: var(--navy-d); border-bottom-color: var(--gold); }
.tabs .badge { background: var(--err); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; margin-left: 6px; }
table.t { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 3px 4px; vertical-align: top; }
table.t td input, table.t td select { padding: 5px 7px; }
table.t tr.tot td { font-weight: 700; padding: 8px 6px; border-top: 2px solid var(--line); }
.yn { display: flex; gap: 16px; align-items: center; padding: 6px 0; }
.yn label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.muted { color: var(--muted); font-size: 13px; }
.save { font-size: 12px; opacity: .9; }
.save.err { color: #ffb4ab; font-weight: 700; }
.pend { list-style: none; padding: 0; margin: 0; }
.pend li { padding: 8px 10px; border-left: 4px solid var(--line); margin-bottom: 6px; background: var(--bg); border-radius: 0 6px 6px 0; cursor: pointer; }
.pend li.erro { border-left-color: var(--err); }
.pend li.aviso { border-left-color: var(--warn); }
.pend b { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.callout { padding: 10px 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); margin: 8px 0; }
.callout.ok { border-color: var(--ok); }
.calc { font-variant-numeric: tabular-nums; font-weight: 700; }
.list a { display: flex; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; text-decoration: none; color: inherit; cursor: pointer; background: var(--card); }
.list a:hover { border-color: var(--navy); }
.banner { background: #fff4ce; color: #4a3800; border: 1px solid #e5c24a; padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
@media (max-width: 640px) { .tabs button { padding: 8px 9px; font-size: 13px; } table.t { display: block; overflow-x: auto; } }
.st { display:inline-block; padding:2px 9px; border-radius:10px; font-size:12px; font-weight:600; background:#EBEBEB; color:#1F1F1F; }
.st-enviada { background:#fff1c2; color:#6b4a00; } .st-aguardando_coem { background:#ffe58a; color:#5c4000; } .st-aguardando_relatorio { background:#dbe9fb; color:#1b4a8a; } .st-enviar_cppde { background:#ffe3c9; color:#8a3d00; } .st-em_analise { background:#E4E4E4; color:#1A1A1A; }
.st-exigencia { background:#ffe0cc; color:#8a3300; } .st-aprovada { background:#d6f2dd; color:#146c2e; }
.st-indeferida { background:#fbd5d5; color:#9b1c1c; } .st-arquivada { background:#e5e5e5; color:#555; }
.kpis { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr)); gap:10px; margin:12px 0; }
.kpi { min-width:0; overflow:hidden; display:flex; flex-direction:column; gap:4px; text-align:left; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--card); cursor:pointer; font:inherit; }
.kpi:hover { border-color:var(--navy); } .kpi .n { font-size:21px; font-weight:700; color:var(--navy); }
.kpi.alerta { border-color:#c0392b; } .kpi.alerta .n { color:#c0392b; } .kpi.atencao { border-color:#d98c00; } .kpi.static { cursor:default; }
.tl { list-style:none; margin:0; padding:0 0 0 14px; border-left:2px solid var(--line); }
.tl li { margin:0 0 12px; padding-left:10px; position:relative; } .tl li::before { content:''; position:absolute; left:-20px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--navy); }
.tl li.interna::before { background:#d98c00; }
.tag { display:inline-block; font-size:11px; padding:1px 6px; border-radius:4px; background:#EEEEEE; color:#404040; margin-left:6px; } .tag.req { background:#fde8e8; color:#9b1c1c; }
.doc { border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin-bottom:8px; background:var(--card); }
.upl { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:6px; }
.acoes, .acoes-doc, .filtros { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:10px 0; }
table.t.click tbody tr { cursor:pointer; } table.t.click tbody tr:hover { background:#fff7dc; }
.callout.item { border-left:4px solid var(--navy); background:#F9F9F9; padding:8px 12px; margin:8px 0; }
iframe.pdf { width:100%; height:80vh; border:1px solid var(--line); border-radius:6px; }
.nav.on { background:#ffffff33; } header.top .nav { color:#fff; border-color:#ffffff55; }
.pend li.aviso { color:#8a6100; }
.filtros select, .filtros input { width:auto; min-width:180px; }

header.top { padding: 8px 20px; }
.tabs button.on { border-bottom-color: var(--gold); }
main.largo { max-width: none; padding: 0; }
iframe.simulador { display:block; width:100%; height: calc(100vh - 62px); border:0; background: var(--bg); }
header.top h1 { display:flex; align-items:center; gap:12px; }
header.top h1 img { height:34px; width:auto; display:block; }
header.top h1 span { font-size:15px; font-weight:600; border-left:1px solid #ffffff44; padding-left:12px; }
.marca { display:block; margin:5vh auto 0; height:64px; width:auto; }
.tipos { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.tipo-card { text-align:left; background:#fff; border:1px solid var(--line); border-left:5px solid #FFC20E; border-radius:6px; padding:12px 14px; cursor:pointer; display:flex; flex-direction:column; gap:6px; font:inherit; }
.tipo-card:hover { background:#FFF8DC; }
.ck { display:inline-block; width:20px; height:20px; line-height:20px; text-align:center; border-radius:50%; border:1px solid #999; font-size:12px; color:#999; }
.ck.on { background:#1E7B34; border-color:#1E7B34; color:#fff; }
.prog { height:8px; background:#e5e5e5; border-radius:4px; overflow:hidden; margin:4px 0 10px; } .prog div { height:100%; background:#1E7B34; }
.checklist { display:grid; gap:2px; margin-bottom:14px; } .chk { font-size:13px; color:#555; text-decoration:none; padding:2px 0; } .chk.on { color:#1E7B34; } .chk .ck { width:18px; height:18px; line-height:18px; }

/* rodapé das telas de login: duas linhas, centralizado, rente ao fim da página, sem faixa */
#app:has(> .rodape-login), body:has(> .rodape-login) { min-height: 100vh; display: flex; flex-direction: column; }
#app:has(> .rodape-login) > main, body:has(> .rodape-login) > main { width: 100%; box-sizing: border-box; }
.rodape-login { margin-top: auto; text-align: center; padding: 12px 16px 16px; font-size: 13px; line-height: 1.6; color: #595959; }
.rodape-login div:first-child { font-weight: 600; color: #0D0D0D; }

.sim-barra { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:8px 16px; background:#fff; border-bottom:1px solid var(--line); }
.sim-barra select { max-width:380px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.sim-barra + iframe.simulador { height: calc(100vh - 62px - 52px); }
.list a { align-items: center; }
.lista-dir { display: flex; align-items: center; gap: 12px; }
.btn-excluir { background: transparent; color: #b00020; border: 1px solid #b00020; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.btn-excluir:hover { background: #b00020; color: #fff; }
.zona-perigo { border-color: #b00020; }
.zona-perigo h2 { color: #b00020; }
.guia-ass { background: #fffbea; border: 1px solid #e6c200; border-radius: 6px; padding: 10px 14px; margin: 8px 0; }
.guia-ass ol { margin: 6px 0 10px 18px; padding: 0; }
.selo-ass { font-size: 13px; background: #eaf7ee; border: 1px solid #2e7d32; color: #1b5e20; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.selo-ass.ruim { background: #fdecea; border-color: #b00020; color: #8a0018; }

/* lista simples de usuários/convites (aba Equipe) */
.linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: var(--card); }
.auth a { color: var(--navy); }

/* relatórios (COD-08) */
.campo-rel { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted,#555); } .campo-rel input,.campo-rel select { font:inherit; padding:6px; }
.kpi small { font-size:11px; line-height:1.3; }
.rolagem { overflow-x:auto; } td.bar { width:35%; min-width:90px; }
.barra { background:#e8edf3; border-radius:4px; height:10px; } .barra i { display:block; height:100%; border-radius:4px; background:var(--navy,#1f3a5f); } .barra i.ok { background:#2e8b57; }

/* ===== telas de entrada (login) =====
   Empresas: painel de marca + formulário (.entrada-dividida). CODIN: cartão centralizado, sem barra superior (.entrada-central).
   Cores fixas (tema claro) para o login ficar igual com o modo escuro do sistema operacional. */
body.em-entrada { background: #F6F6F3; color: #141414; }
.entrada { font-family: "Manrope", system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: #141414; min-height: 100vh; }
:where(.entrada h1, .entrada h2, .entrada p) { margin: 0; }

.entrada-dividida { display: flex; }
.entrada-marca { width: 44%; max-width: 620px; min-width: 380px; background: #0D0D0D; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.entrada-marca::before { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: #FFC72C; opacity: .12; }
.entrada-marca::after { content: ""; position: absolute; left: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; border: 44px solid #FFC72C; opacity: .10; }
.entrada-marca > * { position: relative; z-index: 1; }
.entrada-logo { height: 40px; width: auto; align-self: flex-start; }
.entrada-texto { display: flex; flex-direction: column; gap: 20px; }
.entrada-texto .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FFC72C; }
.entrada-texto h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.entrada-texto ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.entrada-texto li { position: relative; padding-left: 42px; font-size: 15px; line-height: 1.5; color: #D9D9D4; }
.entrada-texto li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 8px; background: #FFC72C; color: #0D0D0D; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.entrada-rodape { font-size: 12px; line-height: 1.6; color: #9A9A94; }
.entrada-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.entrada-form .auth-box { width: 100%; max-width: 400px; }

.entrada-central { display: flex; flex-direction: column; position: relative; overflow: hidden; background: #F2F2EE; border-top: 6px solid #FFC72C; min-height: 100vh; }
.entrada-central::before { content: ""; position: absolute; right: -120px; top: 12vh; width: 460px; height: 460px; border-radius: 50%; background: #FFC72C; opacity: .16; }
.entrada-central::after { content: ""; position: absolute; left: -100px; bottom: 12vh; width: 320px; height: 320px; border-radius: 50%; background: #0D0D0D; opacity: .05; }
.entrada-centro { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; position: relative; z-index: 1; }
.entrada-central .auth-box { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 40px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.10); }
.entrada-central .rodape-login { position: relative; z-index: 1; margin-top: 0; padding-bottom: 28px; font-size: 12px; color: #6B6B66; }
.entrada-central .rodape-login div:first-child { color: #2A2A28; font-weight: 700; }
.entrada-central .auth-box form { text-align: center; }
.entrada-central .auth-box .auth-sub { margin-bottom: 22px; }
.entrada-central .auth-box label.f, .entrada-central .auth-box .auth-erro { text-align: left; }
.marca-card { display: block; height: 44px; width: auto; margin: 0 auto 18px; }

/* formulário compartilhado */
.auth-box h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.entrada-central .auth-box h2 { font-size: 24px; letter-spacing: -.01em; }
.auth-sub { font-size: 15px; line-height: 1.5; color: #5C5C57; margin: 0 0 26px; }
.auth-box label.f { display: block; margin-bottom: 18px; }
.auth-box label.f > span.rot { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 7px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #141414; }
.link-rot { font-size: 13px; font-weight: 600; color: #141414; }
.auth-box a { color: #141414; }
.campo { position: relative; }
.campo input { width: 100%; height: 48px; border: 1px solid #D4D4CE; border-radius: 10px; padding: 0 14px; font-size: 15px; font-weight: 500; background: #fff; color: #141414; }
.campo input::placeholder { color: #8A8A85; }
.campo.com-icone input { padding-left: 42px; }
.campo input:focus { outline: 3px solid rgba(255,199,44,.55); outline-offset: 0; border-color: #0D0D0D; }
.campo .ic { position: absolute; left: 14px; top: 15px; color: #7A7A75; display: flex; }
.campo .olho { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: #5C5C57; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.campo .olho:hover { background: #EFEFEA; }
.campo .olho:focus-visible { outline: 3px solid rgba(255,199,44,.8); }
.campo:has(.olho) input { padding-right: 46px; }
.auth-erro { color: #B3261E; font-size: 13.5px; font-weight: 600; margin: -6px 0 14px; min-height: 0; }
.auth-erro:empty { display: none; }
.btn-entrar, .btn-contorno { display: block; width: 100%; height: 50px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn-entrar { border: 0; background: #0D0D0D; color: #fff; box-shadow: 0 2px 0 #FFC72C; }
.entrada-central .btn-entrar { background: #FFC72C; color: #0D0D0D; font-weight: 800; box-shadow: none; }
.btn-entrar:hover { filter: brightness(1.12); } .entrada-central .btn-entrar:hover { filter: brightness(.95); }
.btn-entrar:focus-visible, .btn-contorno:focus-visible { outline: 3px solid rgba(255,199,44,.8); outline-offset: 2px; }
.btn-contorno { height: 48px; border: 1.5px solid #0D0D0D; background: transparent; color: #0D0D0D; font-size: 15px; margin-top: 12px; }
.btn-contorno:hover { background: #EFEFEA; }
.auth-ou { display: flex; align-items: center; gap: 14px; color: #8A8A85; font-size: 13px; margin: 26px 0 14px; }
.auth-ou::before, .auth-ou::after { content: ""; flex: 1; height: 1px; background: #DDDDD7; }
.auth-nota { font-size: 12.5px; line-height: 1.5; color: #7A7A75; text-align: center; margin-top: 18px; }
.auth-nota a { font-weight: 700; }

@media (max-width: 860px) {
  .entrada-dividida { flex-direction: column; }
  .entrada-marca { width: 100%; max-width: none; min-width: 0; padding: 28px 24px; gap: 18px; }
  .entrada-texto h1 { font-size: 24px; } .entrada-texto ul, .entrada-rodape { display: none; }
  .entrada-form { align-items: flex-start; padding: 32px 20px 48px; }
}
@media (max-width: 480px) { .entrada-central .auth-box { padding: 28px 22px; } }

/* ===== visual geral (Manrope em todas as telas) ===== */
body { font-family: "Manrope", system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
[hidden] { display: none !important; }
.card { border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #0D0D0D; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.migalha { font-size: 12px; color: #7A7A75; font-weight: 600; }
.migalha a { color: inherit; text-decoration: none; } .migalha a:hover { text-decoration: underline; }

/* ===== portal da CODIN: menu lateral escuro ===== */
.shell { display: flex; min-height: 100vh; }
.menu-lateral { width: 252px; flex: none; background: #0D0D0D; color: #fff; display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.menu-lateral .sp { flex: 1; }
.ml-logo { padding: 2px 10px 22px; border-bottom: 1px solid #262626; } .ml-logo img { height: 32px; width: auto; display: block; }
.ml-rotulo { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7C7C76; padding: 22px 12px 8px; }
.ml-nav { display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #B5B5AE; text-decoration: none; }
.menu-item:hover { background: #181818; color: #fff; }
.menu-item.on { background: #1F1F1F; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.menu-item:focus-visible, .ml-sair:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.mi-ic { display: inline-flex; flex: none; } .mi-txt { flex: 1; }
.mi-badge { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #0D0D0D; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ml-usuario { display: flex; align-items: center; gap: 11px; padding: 14px 10px 2px; border-top: 1px solid #262626; }
.ml-quem { flex: 1; min-width: 0; line-height: 1.3; } .ml-quem b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ml-quem small { font-size: 12px; color: #8C8C86; }
.ml-sair { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #B5B5AE; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .ml-sair:hover { background: #1F1F1F; color: #fff; }
.shell-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pagina-topo { height: 60px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 36px; background: #fff; border-bottom: 1px solid #E3E3DD; }
.pagina-topo .sp { flex: 1; }
.busca { display: flex; align-items: center; gap: 10px; width: 320px; max-width: 45vw; height: 40px; padding: 0 14px; border: 1px solid #D9D9D3; border-radius: 10px; background: #FAFAF8; color: #7A7A75; }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: #141414; padding: 0; width: auto; }
.busca:focus-within { border-color: #0D0D0D; box-shadow: 0 0 0 3px rgba(255,199,44,.5); }
.shell-corpo > main { max-width: 1500px; width: 100%; margin: 0; padding: 24px 36px 80px; }
.shell-corpo > main.largo { max-width: none; padding: 0; }
.shell-corpo iframe.simulador { height: calc(100vh - 60px); }
.shell-corpo .sim-barra + iframe.simulador { height: calc(100vh - 60px - 52px); }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .menu-lateral { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; }
  .ml-logo { padding: 0 8px 0 0; border: 0; } .ml-logo img { height: 26px; } .ml-rotulo, .ml-quem { display: none; }
  .ml-nav { flex-direction: row; } .menu-item { height: 38px; white-space: nowrap; } .ml-usuario { border: 0; padding: 0; }
  .pagina-topo { padding: 0 16px; } .shell-corpo > main { padding: 16px 16px 60px; } .busca { width: 200px; }
}

/* ===== portal das empresas: barra superior e editor por etapas ===== */
header.top { padding: 0 32px; height: 64px; justify-content: space-between; }
.top-esq, .top-dir { display: flex; align-items: center; gap: 22px; } .top-dir { gap: 12px; }
.top-logo { height: 28px; width: auto; }
.top-nav { display: flex; gap: 6px; }
.nav-link { border: 0; background: transparent; color: #BDBDB6; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.nav-link:hover { color: #fff; background: #1A1A1A; } .nav-link.on { background: #1F1F1F; color: #fff; font-weight: 700; }
.nav-link:focus-visible { outline: 2px solid var(--gold); }
.top-user { text-align: right; line-height: 1.3; color: #fff; } .top-user b { display: block; font-size: 13px; } .top-user small { font-size: 12px; color: #9A9A94; opacity: 1; }
main.editor-largo { max-width: 1280px; padding: 28px 32px 80px; }
.pagina-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagina-cab h1 { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.cab-dir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.cab-dir .save { color: #5C5C57; opacity: 1; } .cab-dir .save.err { color: #B3261E; }
.apoio { border: 0; background: transparent; font-size: 13px; font-weight: 700; color: #5C5C57; padding: 6px 4px; cursor: pointer; border-bottom: 2px solid transparent; }
.apoio:hover { color: #0D0D0D; } .apoio.on { color: #0D0D0D; border-bottom-color: var(--gold); }
.etapas { list-style: none; margin: 0 0 22px; padding: 14px 20px; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #E3E3DD; border-radius: 14px; overflow-x: auto; }
.etapa { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: max-content; }
.etapa button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px; border-radius: 10px; cursor: pointer; text-align: left; color: inherit; }
.etapa button:focus-visible { outline: 2px solid var(--gold); }
.bol { flex: none; width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #fff; color: #8A8A85; border: 2px solid #D9D9D3; }
.etapa.on .bol { background: var(--gold); color: #0D0D0D; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,199,44,.35); }
.etapa.ok .bol { background: #1E8A55; color: #fff; border-color: #1E8A55; }
.et-txt { display: flex; flex-direction: column; line-height: 1.25; } .et-txt b { font-size: 13.5px; } .et-txt small { font-size: 11.5px; color: #7A7A75; opacity: 1; }
.etapa:not(.on):not(.ok) .et-txt b { color: #4A4A46; }
.et-linha { flex: 1; min-width: 14px; height: 2px; background: #E3E3DD; } .et-linha.feita { background: #1E8A55; }
.etapa:last-child .et-linha { display: none; }
.editor-grid { display: flex; gap: 22px; align-items: flex-start; }
.editor-main { flex: 1; min-width: 0; }
.editor-lateral { width: 330px; flex: none; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.lat-card { background: #fff; border: 1px solid #E3E3DD; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lat-tit { display: flex; justify-content: space-between; align-items: baseline; } .lat-tit h3 { margin: 0; font-size: 15px; font-weight: 800; color: #141414; } .lat-cont { font-size: 12px; font-weight: 700; color: #7A7A75; }
.prog2 { height: 8px; background: #EEEEE9; border-radius: 6px; margin: 12px 0 14px; overflow: hidden; } .prog2 div { height: 100%; background: var(--gold); border-radius: 6px; transition: width .3s; }
.lat-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lat-lista button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: #141414; text-align: left; }
.lat-lista button:hover { background: #F4F4F1; } .lat-lista button.feito { color: #7A7A75; font-weight: 500; }
.lat-ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D9D9D3; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.feito .lat-ck { background: #E3F4EA; border-color: #E3F4EA; color: #1E8A55; }
.lat-pend { margin-top: 14px; padding-top: 12px; border-top: 1px solid #EEEEE9; font-size: 12.5px; color: #B3261E; } .lat-pend ul { margin: 6px 0 0; padding-left: 18px; color: #3A3A37; } .lat-pend li { margin: 3px 0; }
.lat-ajuda { background: #FFF8DC; border: 1px solid #F0DC8C; border-radius: 14px; padding: 14px 18px; font-size: 13px; line-height: 1.55; color: #4A3A00; }
.nav-etapas { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding: 16px 4px 0; }
.ne-dir { display: flex; gap: 10px; }
.btn-contorno-sm, .btn-suave, .btn-escuro { height: 44px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-contorno-sm { border: 1.5px solid #0D0D0D; background: #fff; color: #0D0D0D; } .btn-suave { border: 0; background: #E9E9E4; color: #141414; } .btn-escuro { border: 0; background: #0D0D0D; color: #fff; box-shadow: 0 2px 0 var(--gold); }
.btn-contorno-sm:hover, .btn-suave:hover { filter: brightness(.96); } .btn-escuro:hover { filter: brightness(1.15); }
@media (max-width: 960px) {
  .editor-grid { flex-direction: column; align-items: stretch; } .editor-main { width: 100%; } .editor-lateral { width: 100%; position: static; order: -1; }
  header.top { padding: 0 14px; } .top-user { display: none; } .top-esq { gap: 10px; } main.editor-largo { padding: 20px 14px 60px; }
}

/* 7 etapas não cabem com subtítulo em telas médias: só a etapa atual mostra o subtítulo */
@media (max-width: 1500px) { .etapa:not(.on) .et-txt small { display: none; } .etapa { gap: 4px; } }

@media (max-width: 600px) {
  header.top { height: auto; min-height: 56px; padding: 8px 12px; flex-wrap: wrap; gap: 6px 10px; }
  .top-esq { flex-wrap: wrap; gap: 6px 10px; } .top-logo { height: 22px; }
  .top-nav { gap: 2px; } .top-nav .nav-link, .top-dir .nav-link { padding: 7px 9px; font-size: 13px; white-space: nowrap; }
}

/* ---- Responsivo (celular e tablet): só ajustes de layout, sem mudar comportamento ---- */
code { overflow-wrap: anywhere; word-break: break-all; }
img, iframe, video { max-width: 100%; }
@media (max-width: 640px) {
  .btn.sm, .btn-excluir, .acoes-doc .btn, .filtros .btn { min-height: 38px; }
  .filtros { flex-wrap: wrap; } .filtros > * { flex: 1 1 100%; min-width: 0; }
  .acoes { flex-wrap: wrap; } .acoes .btn { flex: 1 1 auto; }
  .row > * { min-width: 0; }
  input, select, textarea { font-size: 16px; }   /* evita o zoom automático do iOS ao focar um campo */
  .t td.num, .t th.num { white-space: nowrap; }
}
@media (max-width: 640px) {
  table.t.empilha { display: table; overflow: visible; width: 100%; }
  .t.empilha thead { display: none; }
  .t.empilha, .t.empilha tbody { display: block; width: 100%; }
  .t.empilha tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  .t.empilha td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; padding: 4px 0; text-align: right; overflow-wrap: anywhere; }
  .t.empilha td::before { content: attr(data-label); flex: none; max-width: 42%; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
  .t.empilha td:first-child { font-size: 15px; }
}
@media (max-width: 640px) {
  .list a { flex-wrap: wrap; gap: 8px; align-items: flex-start; }
  .list a > span:first-child { flex: 1 1 100%; min-width: 0; }
  .lista-dir { width: 100%; justify-content: space-between; display: flex; align-items: center; gap: 10px; }
}

/* ---- Página "Sobre" ---- */
.sobre { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.sobre-hero { position: relative; overflow: hidden; background: #0D0D0D; color: #fff; border-radius: 18px; padding: 36px 36px 34px; }
.sobre-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--gold); opacity: .14; }
.sobre-hero > * { position: relative; z-index: 1; }
.sobre-logo { height: 34px; width: auto; display: block; margin-bottom: 22px; }
.sobre-etq { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sobre-etq-esc { color: #7A7A75; }
.sobre-hero h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.sobre-hero p { margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: #D9D9D4; }
.sobre .card p { line-height: 1.65; margin: 8px 0 0; }
.sobre-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sobre-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 18px 20px; }
.sobre-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; } .sobre-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #3A3A37; }
.sobre-lista { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; }
.sobre-dev { display: flex; align-items: center; gap: 20px; }
.sobre-dev h2 { margin: 4px 0 0; } .sobre-dev p { margin: 6px 0 0; color: #3A3A37; }
.sobre-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #0D0D0D; color: var(--gold); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(255,199,44,.35); }
.sobre-rodape { text-align: center; font-size: 12px; color: #6B6B66; margin: 6px 0 20px; }
@media (max-width: 800px) { .sobre-grid { grid-template-columns: 1fr; } .sobre-hero { padding: 26px 22px; } .sobre-hero h1 { font-size: 26px; } }
@media (max-width: 480px) { .sobre-dev { flex-direction: column; align-items: flex-start; } }

/* ---- Nome do sistema (SINFIC) nas telas de entrada e na página Sobre ---- */
.entrada-texto .eyebrow { font-size: 22px; letter-spacing: .22em; }
.eyebrow-sub { margin: 4px 0 18px; font-size: 14px; font-weight: 600; color: #BDBDB6; }
.marca-sistema { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 18px; text-align: center; }
.marca-sistema b { font-size: 22px; font-weight: 800; letter-spacing: .22em; color: #0D0D0D; }
.marca-sistema span { font-size: 13px; font-weight: 600; color: #5C5C57; }
.sobre-nome { margin: -4px 0 14px; font-size: 18px; font-weight: 600; color: #FFC72C; }
.sobre-hero h1 { letter-spacing: .12em; }

/* ---- Logo do SINFIC: versão escura para fundos escuros, versão clara para fundos claros ---- */
.sinfic-logo { align-self: flex-start; display: block; height: 66px; width: auto; max-width: 100%; margin: 0 0 6px -4px; }
.eyebrow-sub { margin: 0 0 20px; }
.marca-sistema img { display: block; height: 58px; width: auto; max-width: 100%; }
.marca-sistema { gap: 6px; margin: 2px 0 18px; }
.sobre-hero h1 { margin: 6px 0 10px; letter-spacing: 0; line-height: 1; }
.sinfic-logo-sobre { display: block; height: 80px; width: auto; max-width: 100%; margin-left: -6px; }
@media (max-width: 480px) { .sinfic-logo { height: 54px; } .sinfic-logo-sobre { height: 58px; } .marca-sistema img { height: 50px; } }

/* celular: etapas só com a atual por extenso; edição de usuário empilhada */
@media (max-width: 640px) {
  .etapas { padding: 12px; }
  .etapa { min-width: 0; flex: 0 0 auto; }
  .etapa:not(.on) .et-txt { display: none; }
  .etapa .et-linha { min-width: 14px; }
  .t.empilha tr.edita td { flex-direction: column; align-items: stretch; text-align: left; gap: 4px; }
  .t.empilha tr.edita td::before { max-width: none; }
  .t.empilha tr.edita input, .t.empilha tr.edita select { width: 100%; min-width: 0; }
}

/* ===== telas de entrada com foto (Portal das Empresas e Portal Interno) ===== */
.entrada-foto { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; color: #fff; background: #0B1B33 center / cover no-repeat; }
.fundo-interno  { background-image: linear-gradient(90deg, rgba(7,18,42,.82) 0%, rgba(7,18,42,.5) 38%, rgba(7,18,42,.08) 72%), url("/imagens/fundo-portal-interno.jpg"); }
.fundo-empresas { background-image: linear-gradient(90deg, rgba(7,18,42,.86) 0%, rgba(7,18,42,.55) 40%, rgba(7,18,42,.1) 72%), url("/imagens/fundo-portal-empresas.jpg"); }
.entrada-foto > * { position: relative; z-index: 1; }
/* triângulos nos cantos opostos da janela (fixos, atrás do conteúdo): aparecem mesmo quando a página rola */
.entrada-foto::before, .entrada-foto::after { content: ""; position: fixed; width: 150px; height: 150px; pointer-events: none; z-index: 0; }
.entrada-foto::before { left: 0; top: 0; background: linear-gradient(135deg, #FFC72C 0 38%, transparent 38%); }
.entrada-foto::after { right: 0; bottom: 0; background: linear-gradient(315deg, #FFC72C 0 38%, transparent 38%); }
.ef-marcas { display: flex; align-items: center; gap: 26px; padding: 44px 6vw 0 calc(6vw + 24px); }
.ef-codin { height: 54px; width: auto; }
.ef-div { width: 1px; height: 66px; background: rgba(255,255,255,.55); }
.ef-sinfic { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ef-sinfic img { height: 52px; width: auto; }
.ef-sinfic span { font-size: 13px; font-weight: 500; color: #fff; }
.ef-corpo { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 56px; align-items: center; padding: 28px 6vw 28px calc(6vw + 24px); }
.ef-texto { max-width: 560px; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.ef-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #FFC72C; }
.ef-eyebrow::before { content: ""; width: 34px; height: 5px; background: #FFC72C; border-radius: 2px; }
.ef-texto h1 { margin: 0 0 22px; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.ef-lead { margin: 0; font-size: 18px; line-height: 1.5; max-width: 440px; color: #fff; }
.ef-texto ul { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ef-texto li { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.4; max-width: 400px; }
.ef-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #FFC72C; color: #FFC72C; display: flex; align-items: center; justify-content: center; background: rgba(7,18,42,.35); }
.ef-form { display: flex; justify-content: flex-end; }
.ef-form .auth-box { width: 100%; max-width: 520px; background: rgba(255,255,255,.96); color: #141414; border-radius: 20px; padding: 40px 44px; box-shadow: 0 24px 60px rgba(0,0,0,.35); text-shadow: none; }
.ef-form .auth-box h2 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 8px; }
.ef-form .auth-sub { margin-bottom: 26px; }
.card-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #F0A800; }
.card-eyebrow .ic-escudo { display: flex; color: #F0B400; }
.ef-form .btn-entrar { display: flex; align-items: center; justify-content: center; gap: 10px; background: #0B1730; color: #fff; box-shadow: 0 3px 0 #FFC72C; }
.ef-form .btn-contorno { display: flex; align-items: center; justify-content: center; gap: 10px; border-color: #0B1730; color: #0B1730; }
.ef-form .btn-entrar:hover { filter: brightness(1.25); }
.ic-btn { display: flex; }
.ef-form .auth-nota-link { margin-top: 0; }
.ef-form .auth-nota-link a, .ef-form .auth-nota a { color: #0B3D8C; text-decoration: underline; font-weight: 600; }
.ef-form .link-rot { color: #0B3D8C; text-decoration: underline; }
.ef-rodape { padding: 0 6vw 26px calc(6vw + 24px); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 960px) {
  .ef-marcas { padding: 28px 22px 0 62px; gap: 14px; }
  .ef-codin { height: 40px; } .ef-div { height: 48px; } .ef-sinfic img { height: 38px; } .ef-sinfic span { font-size: 11px; }
  .ef-corpo { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 20px; align-items: start; }
  .ef-texto h1 { font-size: 28px; margin-bottom: 12px; } .ef-eyebrow { font-size: 15px; margin-bottom: 12px; }
  .ef-lead { font-size: 15px; } .ef-texto ul { display: none; }
  .ef-form { justify-content: stretch; } .ef-form .auth-box { max-width: none; padding: 28px 22px; } .ef-form .auth-box h2 { font-size: 28px; }
  .ef-rodape { padding: 0 20px 22px; }
  .entrada-foto::before, .entrada-foto::after { width: 90px; height: 90px; }
  .fundo-interno, .fundo-empresas { background-position: 62% center; }
}
.upl input { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .upl input[type=file] { flex: 1 1 100%; } }
.fundo-interno .ef-lead { font-size: 22px; line-height: 1.5; max-width: 480px; }
@media (max-width: 960px) { .fundo-interno .ef-lead { font-size: 16px; } }

/* ===== ajustes das telas de entrada no celular (ACH-013) ===== */
.entrada-foto { min-height: 100vh; min-height: 100dvh; }
@media (max-width: 960px) {
  /* gradiente vertical: texto no alto sobre céu claro e rodapé sobre mata ficam legíveis */
  .fundo-interno  { background-image: linear-gradient(180deg, rgba(7,18,42,.82) 0%, rgba(7,18,42,.5) 38%, rgba(7,18,42,.45) 70%, rgba(7,18,42,.75) 100%), url("/imagens/fundo-portal-interno.jpg"); }
  .fundo-empresas { background-image: linear-gradient(180deg, rgba(7,18,42,.85) 0%, rgba(7,18,42,.55) 38%, rgba(7,18,42,.45) 70%, rgba(7,18,42,.78) 100%), url("/imagens/fundo-portal-empresas.jpg"); }
  .ef-form { justify-content: center; }
  .ef-form .auth-box { max-width: 560px; }
  .ef-rodape { padding-right: 84px; }
  /* alvos de toque de 44 px e fonte de 16 px (evita zoom automático no iPhone) */
  .campo input { font-size: 16px; }
  .campo .olho { width: 44px; height: 44px; right: 2px; top: 2px; }
  .campo:has(.olho) input { padding-right: 50px; }
  .auth-box a, .link-rot { display: inline-block; padding: 10px 2px; }
  .auth-box label.f > span.rot { align-items: center; }
  .auth-box label.f > span.rot .link-rot { padding: 6px 0; }
}
@media (max-width: 480px) {
  /* CODIN | SINFIC na primeira linha; nome do sistema por extenso na linha de baixo */
  .ef-marcas { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 8px; padding-right: 16px; }
  .ef-sinfic { display: contents; }
  .ef-sinfic img { height: 36px; max-width: 100%; object-fit: contain; object-position: left center; }
  .ef-sinfic span { grid-column: 1 / -1; font-size: 12px; line-height: 1.3; }
}
@media (max-width: 340px) { .ef-codin { height: 34px; } .ef-sinfic img { height: 30px; } .ef-marcas { column-gap: 10px; padding-left: 58px; } }

/* ===== aviso de proteção de dados (LGPD) ===== */
.lgpd-aviso { margin: 4px 0 16px; padding: 10px 12px; border-left: 4px solid #FFC72C; background: #FAF7EA; border-radius: 6px; font-size: 12.5px; line-height: 1.5; color: #3A3A36; text-align: left; }
.ef-lgpd { margin-top: 8px; max-width: 720px; font-size: 11.5px; line-height: 1.5; opacity: .92; }

/* triângulos dos cantos menores no celular: ficam só nos cantos, sem cruzar o cartão do formulário */
@media (max-width: 960px) { .entrada-foto::before, .entrada-foto::after { width: 64px; height: 64px; } }
@media (max-width: 480px) { .entrada-foto::before, .entrada-foto::after { width: 50px; height: 50px; } }

/* ===== termo de ciência e aceite (LGPD) e logotipo SINFIC nos cabeçalhos ===== */
.lgpd-bloco { margin: 2px 0 14px; text-align: left; }
.lgpd-det { border: 1px solid #E2DFD2; border-radius: 8px; background: #FAF7EA; margin-bottom: 10px; }
.lgpd-det > summary { cursor: pointer; padding: 9px 12px; font-size: 13px; font-weight: 700; color: #141414; }
.lgpd-det .lgpd-termo { border: 0; max-height: 230px; margin: 0; background: transparent; }
.lgpd-termo { max-height: 260px; overflow-y: auto; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #E2DFD2; border-radius: 8px; background: #FAF7EA; font-size: 12.5px; line-height: 1.55; color: #3A3A36; text-align: left; }
.lgpd-termo h4 { margin: 0 0 8px; font-size: 13px; color: #141414; } .lgpd-termo p { margin: 0 0 8px; }
.lgpd-ck { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: #141414; cursor: pointer; text-align: left; margin: 0 0 14px; }
.lgpd-ck input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: #B8860B; }
.top-sinfic { height: 42px; width: auto; }
.ml-logo .ml-sinfic { display: block; height: 52px; width: auto; max-width: 100%; }
@media (max-width: 900px) { .ml-logo .ml-sinfic { height: 30px; margin: 0; } .ml-logo { display: flex; align-items: center; flex: none; } .ml-logo img { flex: none; } }
@media (max-width: 480px) { .top-sinfic { height: 32px; } }

/* modo supervisão (administrador no portal das empresas) */
.faixa-supervisao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #FFC72C; background: #FFF8DC; border-radius: 8px; font-size: 13px; color: #3A3A36; }

/* menu da barra superior (inclui o modo supervisão, com mais itens) não estoura a largura no celular */
@media (max-width: 600px) { .top-nav { flex-wrap: wrap; max-width: 100%; } .top-esq { max-width: 100%; } .top-dir { flex-wrap: wrap; } }

/* celular estreito (320 px): rodapé de etapas e campo de arquivo não estouram a largura */
input[type=file] { max-width: 100%; }
@media (max-width: 480px) { .nav-etapas { flex-wrap: wrap; } .ne-dir { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; } }

.sobre-cargo { margin: 4px 0 0; font-weight: 600; color: #3A3A37; }
.sobre-versao { text-align: center; font-size: 13px; font-weight: 600; color: #3A3A37; margin: 6px 0 0; }

/* Perfil COEM: formulário do relatório */
.grade-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; margin-bottom: 8px; }
.grade-rel label.f, .card label.f { min-width: 0; }
.grade-rel input, .grade-rel select, .grade-rel textarea { width: 100%; box-sizing: border-box; }
.linha-rel { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; margin-bottom: 6px; align-items: center; }
.linha-rel input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 520px) { .linha-rel { grid-template-columns: 1fr 90px auto; } .grade-rel { grid-template-columns: 1fr; } }

/* pop-up de aviso (ex.: notificação enviada à empresa) */
.popup-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.popup { background: #fff; border-top: 5px solid var(--gold); border-radius: var(--radius); max-width: 420px; width: 100%; padding: 22px 20px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.35); max-height: 90vh; overflow: auto; }
.popup h3 { margin: 6px 0 8px; font-size: 20px; }
.popup p { margin: 0 0 18px; color: var(--muted); word-break: break-word; }
.popup-icone { width: 52px; height: 52px; line-height: 52px; margin: 0 auto; border-radius: 50%; background: #0D0D0D; color: var(--gold); font-size: 26px; }
.popup .btn { min-width: 120px; min-height: 44px; }

/* indicadores: números longos não podem estourar o cartão */
.kpi .n { line-height:1.15; overflow-wrap:anywhere; word-break:break-word; }
.kpi .n.longo { font-size:18px; }
.kpi .n.mlongo { font-size:16px; }
.kpi > span { overflow-wrap:anywhere; min-width:0; }

/* logo SINFIC nova (já traz o nome completo do sistema): proporção preservada em qualquer largura */
.ml-logo .ml-sinfic { height: auto; width: 100%; max-width: 205px; }
@media (max-width: 900px) { .ml-logo .ml-sinfic { height: 32px; width: auto; max-width: none; } }
.top-sinfic, .ef-sinfic img, .sinfic-logo-sobre { object-fit: contain; }
.ef-sinfic img { max-width: 100%; }
@media (min-width: 901px) { .ef-sinfic img { height: 62px; } }

/* ---- Lei 4.178/2003: simulador, matriz e relatório ---- */
.l4-etapas { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.l4-etapas button { flex: 1 1 auto; text-align: center; }
.l4-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.l4-pills button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); min-height: 34px; }
.l4-pills button.on { background: var(--navy-d); color: #fff; border-color: var(--navy-d); }
.l4-pills.ano { margin-top: 0; align-items: center; }
.l4-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; max-height: 78vh; }
.l4-grade { border-collapse: collapse; table-layout: fixed; font-size: 12.5px; background: #fff; }
.l4-grade td { padding: 3px 6px; vertical-align: middle; overflow-wrap: anywhere; line-height: 1.3; }
.l4-grade td.bd { border: 1px solid #cfcfcf; }
.l4-grade td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l4-grade td.b { font-weight: 700; }
.l4-grade td.al-center, .l4-grade td.al-centerContinuous { text-align: center; }
.l4-grade td.al-right { text-align: right; }
.l4-grade td.oculta { visibility: hidden; }
.l4-grade .l4-cab { background: #2b2b2b; color: #fff; font-weight: 700; text-align: center; }
.l4-grade .l4-dest { background: #fff1bf; font-weight: 700; }
.l4-grade .l4-leve { background: #f2f2f2; }
.l4-in { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #bfc7d1; border-radius: 5px; padding: 3px 5px; font: inherit; background: #fff; text-align: right; color: var(--ink); }
select.l4-in, textarea.l4-in { text-align: left; }
textarea.l4-in { resize: vertical; min-height: 44px; }
.l4-in:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.l4-in.o-carta, .l4-in.o-memoria, .l4-leg.o-carta { background: #eaf3ff; border-color: #93bfee; }
.l4-in.o-coem { background: #eaf8ee; border-color: #8fce9f; }
.l4-in.o-calculado { background: #f4edff; border-color: #c4a5f0; }
.l4-in.o-manual, .l4-leg.o-manual { background: #fff4c7; border-color: #e0b100; }
.l4-in.inv { background: #fdeceb; border-color: var(--err); }
.l4-leg { display: inline-block; border: 1px solid; border-radius: 4px; padding: 0 6px; font-size: 12px; }
.l4-f.erro { color: #8c8c8c; }
.l4-rel .larga { grid-column: 1 / -1; }
.l4-rel textarea { min-height: 70px; }
@media (max-width: 720px) {
  .l4-grade { font-size: 12px; }
  .l4-etapas button { padding: 8px 6px; font-size: 12.5px; }
  .l4-scroll { max-height: 70vh; }
  .l4-pills button { padding: 6px 10px; font-size: 12.5px; }
}
@media (max-width: 720px) { .l4-corpo .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l4-corpo .kpi { padding: 9px; } .l4-corpo .kpi .n { font-size: 16px; } }

/* ---- Relatório de Apresentação (CPPDE) ---- */
.ap-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; margin: 10px 0; }
.ap-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.ap-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ap-qtd { background: #548235; color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.ap-tipo { color: #002465; font-weight: 700; }
.ap-emp { background: #002465; color: #fff; padding: 4px 10px; border-radius: 4px; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.ap-sei { margin: 4px 0 6px; overflow-wrap: anywhere; }
.ap-sec { color: #BF8F00; font-weight: 700; font-size: 13px; margin: 8px 0 4px; }
.ap-dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 16px; font-size: 13px; overflow-wrap: anywhere; }
.ap-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.ap-bloco { min-width: 0; }
.ap-par { margin-bottom: 4px; }
.ap-lb { background: #1F3864; color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 3px 6px; border-radius: 3px 3px 0 0; }
.ap-vl { background: #B4C6E7; font-weight: 700; padding: 4px 6px; border-radius: 0 0 3px 3px; font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.ap-vl.ok { background: #C6EFCE; color: #006100; } .ap-vl.ruim { background: #FFC7CE; color: #9C0006; }
.ap-graficos { display: grid; gap: 8px; min-width: 0; }
.ap-graf { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; min-width: 0; } .ap-graf svg { display: block; width: 100%; height: auto; }
.ap-tabelas { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin: 10px 0; }
.ap-texto { text-align: justify; line-height: 1.5; }
.ap-fs { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 8px 12px 12px; min-width: 0; } .ap-fs legend { font-weight: 700; color: var(--navy-d); padding: 0 6px; }
.ap-etapas input { width: 100%; box-sizing: border-box; min-width: 90px; }
.ap-etapas tr.tot td { background: #eef2fa; }
@media (max-width: 900px) { .ap-layout, .ap-tabelas { grid-template-columns: minmax(0, 1fr); } .ap-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ap-dados { grid-template-columns: minmax(0, 1fr); } .ap-card { padding: 8px; } .ap-etapas input { min-width: 110px; } }

.ap-seletor { border: 1px solid var(--line); border-left: 4px solid #BF8F00; border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: #fffdf5; } .ap-seletor.on { border-left-color: #548235; background: #f4faf0; }
.ap-seletor label { display: flex; gap: 8px; align-items: center; cursor: pointer; } .ap-seletor input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.ap-barra { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0; } .ap-barra input[type=search] { flex: 1 1 220px; min-width: 0; }
.ap-sel input[type=checkbox] { width: 20px; height: 20px; } .ap-sel input[type=text] { width: 52px; text-align: center; } .ap-sel tr.sel td { background: #f4faf0; } .btn.peq { padding: 4px 10px; font-size: 12px; min-height: 0; }
tfoot tr.tot td { background: #eef2fa; }
@media (max-width: 560px) { .ap-barra { flex-direction: column; align-items: stretch; } .ap-barra input[type=search] { flex: none; width: 100%; box-sizing: border-box; } }

/* ---- Metodologia COEM (painel do administrador) ---- */
.met-linha { display: grid; grid-template-columns: 110px 1fr 190px 110px 140px auto; gap: 8px 10px; align-items: end; padding: 8px 0; border-top: 1px solid var(--line, #d9dee8); }
.met-faixa { display: grid; grid-template-columns: 90px 90px 1fr auto; gap: 8px 10px; align-items: end; margin-bottom: 6px; }
.met-linha input, .met-linha select, .met-faixa input, .met-faixa select { width: 100%; min-width: 0; box-sizing: border-box; }
.met-bloco { margin-bottom: 8px; } .met-bloco h4 { margin: 10px 0 4px; }
@media (max-width: 900px) { .met-linha { grid-template-columns: 1fr 1fr; } .met-linha > label:nth-child(2) { grid-column: 1 / -1; } .met-linha > button { justify-self: end; } }
@media (max-width: 520px) { .met-faixa { grid-template-columns: 1fr 1fr auto; } .met-faixa > label:nth-child(3) { grid-column: 1 / 3; } }

/* ---- senha temporária / política de senha ---- */
.regras-senha { list-style: none; margin: 2px 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: 12.5px; color: #6b6b66; }
.regras-senha li::before { content: '○ '; } .regras-senha li.ok { color: #1b7a3a; font-weight: 600; } .regras-senha li.ok::before { content: '✓ '; }
@media (max-width: 420px) { .regras-senha { grid-template-columns: 1fr; } }
.senha-temp { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.senha-temp code { font: 600 18px/1 ui-monospace, Consolas, monospace; letter-spacing: .5px; padding: 10px 12px; background: #fff; border: 1px dashed #BF8F00; border-radius: 8px; word-break: break-all; user-select: all; }

/* ---- Relatórios e indicadores: KPIs coloridos e gráficos ---- */
.rk-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 14px 0 12px; }
.rk { min-width: 0; color: #fff; border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 16px rgba(20,30,50,.16); position: relative; overflow: hidden; }
.rk::after { content: ''; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.rk-azul { background: linear-gradient(135deg, #1f5fbf, #3b8ae6); } .rk-verde { background: linear-gradient(135deg, #14804a, #2fbf7a); }
.rk-roxo { background: linear-gradient(135deg, #5b3bb0, #9a6ff0); } .rk-ambar { background: linear-gradient(135deg, #c77f00, #f2b01e); }
.rk-topo { display: flex; align-items: center; gap: 8px; } .rk-ic { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.2); align-items: center; justify-content: center; flex: none; }
.rk-rot { font-size: 13px; font-weight: 600; opacity: .95; }
.rk-val { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.5px; overflow-wrap: anywhere; } .rk-val.longo { font-size: 26px; } .rk-val.mlongo { font-size: 20px; }
.rk small { font-size: 11.5px; line-height: 1.35; opacity: .92; display: block; overflow-wrap: anywhere; }
.rk-com-anel { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .rk-anel { width: 76px; height: 76px; flex: none; }
.rk-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin-bottom: 4px; }
.rk-mini { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e3e7ec; border-left: 5px solid var(--c, #1f5fbf); }
.rk-mini .rk-ic { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); width: 38px; height: 38px; }
.rk-m-azul { --c: #1f5fbf; } .rk-m-verde { --c: #1b9e5a; } .rk-m-ciano { --c: #169bb5; } .rk-m-ambar { --c: #e6a100; } .rk-m-roxo { --c: #7a4fd0; } .rk-m-vermelho { --c: #d64545; }
.rk-mini > div { min-width: 0; } .rk-mrot { font-size: 12px; color: #55606e; font-weight: 600; display: block; } .rk-mval { font-size: 22px; font-weight: 800; color: #1c2733; line-height: 1.15; }
.rk-mini small { display: block; font-size: 11px; color: #6b7380; line-height: 1.3; overflow-wrap: anywhere; }
.rk-card h2 { display: flex; align-items: center; gap: 8px; } .rk-card h2::before { content: ''; width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(#1f5fbf, #7a4fd0); }
.rk-sub { margin: -6px 0 8px; font-size: 12.5px; }
.rk-svg { display: block; width: 100%; height: auto; } .rk-leg-h { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin: 2px 0 6px; } .rk-leg-h span { display: inline-flex; align-items: center; gap: 6px; }
.rk-leg-h i, .rk-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.rk-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; align-items: start; } .rk-duas > .card { margin: 0; min-width: 0; }
.rk-rosca-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .rk-rosca { width: 190px; height: 190px; flex: none; margin: 0 auto; }
.rk-leg { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; flex: 1 1 200px; min-width: 0; }
.rk-leg li { display: flex; align-items: center; gap: 8px; min-width: 0; } .rk-leg li span { flex: 1; min-width: 0; overflow-wrap: anywhere; } .rk-leg li b { font-variant-numeric: tabular-nums; } .rk-leg li em { font-style: normal; color: #6b7380; width: 48px; text-align: right; }
.rk-pilha { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #e8edf3; } .rk-pilha i { display: block; height: 100%; min-width: 3px; }
.rk-titulo-barra { margin: 12px 0 6px; font-weight: 600; font-size: 13px; }
.rk-grupo { display: grid; gap: 12px; } .rk-gl { min-width: 0; } .rk-gn { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; } .rk-gn span { font-size: 11.5px; }
.rk-det { margin-top: 10px; } .rk-det summary { cursor: pointer; font-size: 13px; color: #1f5fbf; font-weight: 600; padding: 4px 0; }
@media (max-width: 520px) { .rk-val { font-size: 28px; } .rk-rosca { width: 160px; height: 160px; } .rk { padding: 14px; } }

/* ---- Painel: cartões clicáveis e atividade recente ---- */
button.rk, button.rk-mini { font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.rk { border: 0; } .rk-click { transition: transform .15s, box-shadow .15s; }
.rk-click:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,30,50,.2); } .rk-click:focus-visible { outline: 3px solid rgba(255,199,44,.9); outline-offset: 2px; }
.rk-rosa { background: linear-gradient(135deg, #b02f6e, #e366a0); } .rk-laranja { background: linear-gradient(135deg, #c25a00, #f59a45); } .rk-ciano { background: linear-gradient(135deg, #0f7f96, #2cc0d9); } .rk-vermelho { background: linear-gradient(135deg, #b3261e, #ef6a5f); }
.rk-m-rosa { --c: #c2437f; } .rk-m-cinza { --c: #8a929c; }
.rk-minis-col { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rk-grade.cinco { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); } .rk-grade.seis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 900px) { .rk-minis-col { grid-template-columns: 1fr 1fr; } .rk-minis-col > .rk-mini:nth-child(4) { grid-column: 1 / -1; } } .rk-minis-col > .rk-mini:first-child { grid-column: 1 / -1; }
.ar { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; position: relative; display: grid; gap: 8px; }
.ar::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#cfd6e0, #eef1f5); border-radius: 2px; }
.ar > li { position: relative; --c: #8a929c; } .ar > li::before { content: ''; position: absolute; left: -15px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); }
.ar-azul { --c: #1f5fbf; } .ar-verde { --c: #1b9e5a; } .ar-ambar { --c: #e6a100; } .ar-roxo { --c: #7a4fd0; } .ar-ciano { --c: #169bb5; } .ar-vermelho { --c: #d64545; } .ar-cinza { --c: #8a929c; }
.ar-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 10px 12px; background: #fff; border: 1px solid #e3e7ec; border-left: 4px solid var(--c); border-radius: 10px; }
.ar-item:hover { background: #f7f9fc; box-shadow: 0 3px 10px rgba(20,30,50,.08); } .ar-item:focus-visible { outline: 3px solid rgba(255,199,44,.9); }
.ar-ic { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; flex: none; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.ar-corpo { flex: 1; min-width: 0; } .ar-topo { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .ar-topo b { font-size: 13px; color: #1c2733; }
.ar-prot { font: 700 11px/1 ui-monospace, Consolas, monospace; padding: 4px 7px; border-radius: 6px; background: #eef1f5; color: #3a4553; }
.ar-txt { margin-top: 3px; font-size: 13px; color: #4a5563; overflow-wrap: anywhere; }
.ar-quando { flex: none; text-align: right; font-size: 12px; font-weight: 600; color: #4a5563; white-space: nowrap; } .ar-quando small { display: block; font-weight: 400; color: #8a929c; font-size: 11px; }
@media (max-width: 520px) { .ar-item { flex-wrap: wrap; } .ar-quando { width: 100%; text-align: left; padding-left: 44px; display: flex; gap: 8px; align-items: baseline; } .rk-minis-col { grid-template-columns: 1fr; } }
/* Indicadores do projeto (5 cartões): valores um pouco menores e sem quebra no meio da palavra */
.rk-grade.cinco .rk-val { font-size: 26px; overflow-wrap: normal; word-break: normal; } .rk-grade.cinco .rk-val.longo { font-size: 22px; } .rk-grade.cinco .rk-val.mlongo { font-size: 18px; }

/* relatório COEM: panorama em 3 colunas e autocompletar de município */
.grade-rel.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .grade-rel.tres { grid-template-columns: 1fr; } }
.ac-wrap { position: relative; min-width: 0; }
.ac-lista { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 240px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.ac-lista[hidden] { display: none; }
.ac-lista li { padding: 9px 12px; cursor: pointer; font-size: 14px; }
.ac-lista li:hover, .ac-lista li.on { background: var(--bg); font-weight: 600; }
.met-mat { display: grid; grid-template-columns: 1fr 110px 110px 110px auto; gap: 8px 10px; align-items: end; padding: 8px 0; border-top: 1px solid var(--line); }
.met-mat input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 900px) { .met-mat { grid-template-columns: 1fr 1fr 1fr; } .met-mat > label:first-child { grid-column: 1 / -1; } .met-mat > button { justify-self: end; } }
.met-det { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; } .met-det > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* item 4 do relatório COEM: Ano 1 e Ano 2, cada um com MP, PD e SD na mesma linha */
.grade-rel.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .grade-rel.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
