/* Salinas Access Gate — identidade Salinas Gold (#024B37 / #FFCD00 / #C6D53E / #707070) */
/* Tema claro (padrão). O tema escuro redefine só os tokens — ver fim do arquivo. */
:root {
  color-scheme: light;
  --raio: 8px;
  --fonte: "Aptos", "Calibri", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --verde: #024B37;
  --verde-hover: #013626;
  --verde-escuro: #013626;
  --verde-claro: #e6f0ec;
  --marca: #024B37;
  --marca-escuro: #013626;
  --marca-fundo: #01261b;
  --lateral: #024B37;
  --logo-fundo: #ffffff;
  --ouro: #FFCD00;
  --ouro-claro: #fff6cc;
  --lima: #C6D53E;
  --cinza: #707070;
  --cinza-claro: #f3f4f3;
  --borda: #dfe3e1;
  --borda-forte: #c9d0cc;
  --grade: #eceeed;
  --texto: #1d2522;
  --texto-2: #36403c;
  --texto-3: #4a524e;
  --fundo: #f6f7f6;
  --branco: #ffffff;
  --superficie-2: #fafbfa;
  --realce: rgba(2, 75, 55, .07);
  --sucesso: #1f7a4d;
  --sucesso-fundo: #e5f4ec;
  --sucesso-borda: #a9d9bf;
  --sucesso-texto: #12512f;
  --sucesso-fill: #1f7a4d;
  --perigo: #b42318;
  --perigo-fundo: #fdecea;
  --perigo-borda: #f2b8b2;
  --perigo-texto: #7a1a12;
  --perigo-fill: #b42318;
  --aviso: #8a6100;
  --aviso-fundo: #fff4d6;
  --aviso-borda: #f0d58a;
  --aviso-texto: #5f4300;
  --info: #1d4f91;
  --info-fundo: #e8f0fb;
  --info-borda: #b8cdee;
  --info-texto: #173e72;
  --flutuante-fundo: #1d2522;
  --flutuante-texto: #ffffff;
  --s-colaborador: #0f7b5a;
  --s-visitante: #c27f00;
  --s-terceiro: #2a78d6;
  --s-veiculo: #8a918d;
  --logo-claro: block;
  --logo-escuro: none;
  --sombra: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 6px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 15px; line-height: 1.45; color: var(--texto); background: var(--fundo); }
a { color: var(--verde); }
a:hover { color: var(--verde-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.02rem; }
h3 { font-size: .95rem; }
small { font-size: .82em; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.mudo { color: var(--cinza); }
.nowrap { white-space: nowrap; }
.maiusculo { text-transform: uppercase; }
.normal { text-transform: none; letter-spacing: 0; font-weight: 400; }
.obrigatorio { color: var(--perigo); }
.oculto-acessivel { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 34px; height: 34px; }

/* ---------- Estrutura ---------- */
.menu-toggle { display: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--lateral); color: #e9f2ee;
  display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease;
}
.sidebar-logo { background: var(--logo-fundo); padding: 14px 16px; display: flex; justify-content: center; border-bottom: 3px solid var(--ouro); }
.sidebar-logo img { height: 56px; width: auto; max-width: 100%; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.nav-grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #9fc3b5; margin: 16px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px;
  color: #e9f2ee; text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.ativo { background: var(--ouro); color: var(--verde-escuro); font-weight: 700; }
.sidebar-rodape { border-top: 1px solid rgba(255, 255, 255, .15); padding: 12px 10px; }
.usuario-nome { font-weight: 700; font-size: .9rem; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-papel { font-size: .78rem; opacity: .75; padding: 0 10px 8px; }
.menu-overlay { display: none; }

.principal { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.topo {
  display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: var(--branco);
  border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 20;
}
.topo-titulo { flex: 1; min-width: 0; }
.topo h1 { font-size: 1.3rem; color: var(--verde); }
.topo p { margin: 2px 0 0; color: var(--cinza); font-size: .88rem; }
.topo-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-menu { display: none; cursor: pointer; color: var(--verde); }
.conteudo { padding: 22px 28px 32px; flex: 1; width: 100%; max-width: 1440px; }
.rodape { padding: 14px 28px; font-size: .78rem; color: var(--cinza); border-top: 1px solid var(--borda); }

/* ---------- Cartões e grades ---------- */
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px 20px; margin-bottom: 18px; }
.cartao.sem-padding { padding: 0; overflow: hidden; }
.cartao-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cartao-cabecalho.pad { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--borda); }
.cartao-cabecalho h2 { display: flex; align-items: center; gap: 6px; }
.cartao-sucesso { border: 2px solid var(--sucesso); background: var(--sucesso-fundo); }
.titulo-primario { color: var(--verde); margin-bottom: 8px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grade-2.compacta { gap: 12px 14px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.grade-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.campo-largo { grid-column: 1 / -1; }
.grade-portaria { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.coluna-lateral { position: sticky; top: 92px; }
.vazio { padding: 28px; text-align: center; margin: 0; }
.dica { font-size: .82rem; color: var(--cinza); margin: 6px 0 0; }
.aviso-texto { color: var(--aviso); }
.passos { margin: 0; padding-left: 18px; font-size: .9rem; }
.passos li { margin-bottom: 4px; }
.rotulo-caps { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--cinza); font-weight: 700; }
.botoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 16px; display: flex; flex-direction: column; box-shadow: var(--sombra); text-decoration: none; color: inherit; border-top: 3px solid var(--lima); }
.kpi-destaque { border-top-color: var(--ouro); }
.kpi-link:hover { border-color: var(--verde); }
.kpi-rotulo { font-size: .78rem; color: var(--cinza); text-transform: uppercase; letter-spacing: .05em; }
.kpi-valor { font-size: 1.9rem; color: var(--verde); line-height: 1.2; }
.kpi small { color: var(--info); }

.lista-simples { list-style: none; margin: 0; padding: 0; }
.lista-simples li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cinza-claro); }
.lista-simples li:last-child { border-bottom: 0; }

/* ---------- Tabelas ---------- */
.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cinza); background: var(--cinza-claro); padding: 10px 12px; white-space: nowrap; }
.tabela td { padding: 10px 12px; border-top: 1px solid var(--cinza-claro); vertical-align: top; }
.tabela tbody tr:hover { background: var(--superficie-2); }
.tabela .acoes { text-align: right; white-space: nowrap; }
.tabela .acoes form { display: inline-block; vertical-align: top; }
.tabela td.acoes > * { margin-left: 4px; }
.tabela tr.destaque-alerta { background: var(--aviso-fundo); }
.sub { display: block; font-size: .8rem; color: var(--cinza); }
.paginacao { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: .85rem; }

/* ---------- Badges e alertas ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; line-height: 1.5; }
.badge-neutro { background: var(--cinza-claro); color: var(--texto-3); border-color: var(--borda); }
.badge-sucesso { background: var(--sucesso-fundo); color: var(--sucesso); }
.badge-perigo { background: var(--perigo-fundo); color: var(--perigo); }
.badge-aviso { background: var(--aviso-fundo); color: var(--aviso); }
.badge-info { background: var(--info-fundo); color: var(--info); }
.badge-ouro { background: var(--ouro); color: var(--verde-escuro); }

.alerta { border-radius: var(--raio); padding: 11px 14px; margin-bottom: 14px; font-size: .9rem; border: 1px solid; }
.alerta ul { margin: 6px 0 0; padding-left: 18px; }
.alerta.compacto { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; }
.alerta-sucesso { background: var(--sucesso-fundo); border-color: var(--sucesso-borda); color: var(--sucesso-texto); }
.alerta-erro { background: var(--perigo-fundo); border-color: var(--perigo-borda); color: var(--perigo-texto); }
.alerta-aviso { background: var(--aviso-fundo); border-color: var(--aviso-borda); color: var(--aviso-texto); }
.alerta-info { background: var(--info-fundo); border-color: var(--info-borda); color: var(--info-texto); }

/* ---------- Formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--texto-2); min-width: 0; }
.campo small { font-weight: 400; color: var(--cinza); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="tel"],
input[type="number"], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; color: var(--texto); background: var(--branco); border: 1px solid var(--borda-forte);
  border-radius: 6px; padding: 8px 10px; width: 100%; min-height: 38px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 205, 0, .55); outline-offset: 1px; border-color: var(--verde); }
.alto { min-height: 46px; font-size: 1rem; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 400; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--verde); }
.caixa-risco { border: 1px solid var(--aviso-borda); background: var(--aviso-fundo); border-radius: var(--raio); padding: 10px 12px; }
.form-pilha { display: flex; flex-direction: column; gap: 14px; }
.form-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.filtros { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filtros .campo { flex: 1 1 160px; }
.erro-form { color: var(--perigo); font-size: .86rem; margin: 6px 0 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700;
  padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primario { background: var(--marca); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--marca-escuro); color: #fff; }
.btn-ouro { background: var(--ouro); color: var(--verde-escuro); }
.btn-ouro:hover:not(:disabled) { background: #f0c000; color: var(--verde-escuro); }
.btn-secundario { background: var(--branco); color: var(--verde); border-color: var(--borda-forte); }
.btn-secundario:hover:not(:disabled) { border-color: var(--verde); background: var(--verde-claro); }
.btn-perigo { background: var(--perigo-fill); color: #fff; }
.btn-perigo:hover:not(:disabled) { background: #8f1c13; color: #fff; }
.btn-sucesso { background: var(--sucesso-fill); color: #fff; }
.btn-sucesso:hover:not(:disabled) { background: #17603c; color: #fff; }
.btn-fantasma { background: none; color: var(--cinza); border-color: transparent; }
.btn-fantasma:hover { color: var(--texto); background: var(--cinza-claro); }
.btn-sm { padding: 6px 10px; font-size: .82rem; }
.btn-bloco { width: 100%; }
.link-botao { background: none; border: 0; color: var(--verde); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Portaria ---------- */
.alternador { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alt-opcao { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 6px; font-weight: 800; cursor: pointer; background: var(--cinza-claro); border: 2px solid transparent; color: var(--texto-3); }
.alt-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.alt-entrada:has(input:checked) { background: var(--ouro); color: var(--verde-escuro); border-color: #e0b400; }
.alt-saida:has(input:checked) { background: var(--marca); color: #fff; border-color: var(--marca-escuro); }
.alt-opcao:has(input:focus-visible) { outline: 3px solid rgba(255, 205, 0, .55); }

.busca { position: relative; }
.busca-icone { position: absolute; left: 12px; top: 14px; color: var(--cinza); pointer-events: none; }
.busca .busca-icone + input { padding-left: 38px; }
.resultados { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; left: 0; right: 0; z-index: 30; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 300px; overflow-y: auto; }
.resultados button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 8px 10px; font: inherit; cursor: pointer; }
.resultados button:hover, .resultados button:focus { background: var(--verde-claro); }
.resultados small { display: block; color: var(--cinza); }

.selecionado { border: 1px solid var(--borda); background: var(--superficie-2); border-radius: var(--raio); padding: 12px; margin-top: 10px; }
.selecionado-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.selecionado .dados { flex: 1; }
#solicitacao-box { margin-top: 12px; border-top: 1px dashed var(--borda); padding-top: 12px; }
.sol-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 6px; margin-top: 6px; cursor: pointer; background: var(--branco); }
.sol-item:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); }
.sol-item.desabilitada { opacity: .7; cursor: not-allowed; }
.sol-item small { display: block; color: var(--cinza); }
.sol-item input { margin-top: 4px; accent-color: var(--verde); }
details summary { cursor: pointer; font-size: .86rem; color: var(--verde); margin-top: 10px; }

.btn-registrar { width: 100%; min-height: 64px; font-size: 1.15rem; letter-spacing: .03em; margin-bottom: 18px; }
.btn-registrar .icon { width: 22px; height: 22px; }
.btn-registrar.entrada { background: var(--ouro); color: var(--verde-escuro); }
.btn-registrar.saida { background: var(--marca); color: #fff; }
.btn-registrar.entrada .ic-saida, .btn-registrar.saida .ic-entrada { display: none; }

.fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.foto-item { position: relative; margin: 0; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: var(--cinza-claro); }
.foto-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.foto-item select { border: 0; border-top: 1px solid var(--borda); border-radius: 0; font-size: .78rem; min-height: 32px; }
.foto-item figcaption { font-size: .72rem; color: var(--cinza); padding: 4px 8px; }
.foto-remover { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--perigo-fill); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

.confirmacao { display: flex; gap: 12px; align-items: flex-start; color: var(--sucesso-texto); }
.confirmacao p { margin: 4px 0 0; }

/* ---------- Dados (dl) ---------- */
.dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.dados div.largo { grid-column: 1 / -1; }
.dados dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cinza); }
.dados dd { margin: 2px 0 0; }

/* ---------- Diálogos e toast ---------- */
.dialogo { background: var(--branco); color: var(--texto); border: 0; border-radius: 12px; padding: 22px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialogo::backdrop { background: rgba(1, 54, 38, .45); }
.dialogo h2 { color: var(--verde); margin-bottom: 14px; font-size: 1.1rem; }
.dialogo form { display: flex; flex-direction: column; gap: 12px; }
.dialogo-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 380px; background: var(--flutuante-fundo); color: var(--flutuante-texto); padding: 12px 16px; border-radius: var(--raio); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px); transition: all .2s; pointer-events: none; z-index: 100; font-size: .9rem; }
.toast.visivel { opacity: 1; transform: none; }
.toast.erro { background: var(--perigo); }
.toast.sucesso { background: var(--sucesso); }
.toast.aviso { background: #7a5600; }

/* ---------- Telas simples (login, público, erro) ---------- */
.tela-simples { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(160deg, var(--marca) 0%, var(--marca-escuro) 60%, var(--marca-fundo) 100%); }
.cartao-central { background: var(--branco); width: min(420px, 100%); border-radius: 14px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); border-top: 5px solid var(--ouro); }
.cartao-central.largo { width: min(760px, 100%); }
.logo-central { display: flex; justify-content: center; margin-bottom: 14px; }
.logo-central img { height: 64px; width: auto; max-width: 100%; }
.logo-central.vertical img { height: 150px; }
.titulo-central { text-align: center; color: var(--verde); font-size: 1.35rem; margin-bottom: 4px; }
.subtitulo-central { text-align: center; color: var(--cinza); margin: 0 0 18px; font-size: .9rem; }
.nota-central { text-align: center; font-size: .84rem; color: var(--cinza); margin: 14px 0 0; }
.texto-legal h2 { font-size: 1rem; margin: 18px 0 6px; }
.texto-legal p, .texto-legal li { font-size: .9rem; line-height: 1.5; }
.texto-legal ul { padding-left: 1.2em; margin: 0; }
.rodape-simples { color: rgba(255, 255, 255, .7); font-size: .78rem; margin-top: 18px; }
.rodape-simples a { color: inherit; }
.erro-pagina { text-align: center; }
.erro-codigo { font-size: 3rem; font-weight: 800; color: var(--ouro); line-height: 1; }
.erro-pagina h1 { color: var(--verde); margin: 8px 0; font-size: 1.3rem; }

/* ---------- Diversos ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zona-perigo { border-color: var(--perigo-borda); }
.zona-perigo h2 { color: var(--perigo); }
details.recusar { display: inline-block; text-align: left; vertical-align: top; }
details.recusar summary { list-style: none; display: inline-flex; }
details.recusar summary::-webkit-details-marker { display: none; }
details.recusar[open] form { margin-top: 8px; min-width: 240px; }
.tabela .acoes form.form-pilha { display: flex; }
code.detalhes { font-family: var(--mono); font-size: .75rem; color: var(--texto-3); word-break: break-all; white-space: pre-wrap; }
.destaque-senha { background: var(--ouro-claro); padding: 3px 8px; border-radius: 4px; font-size: 1.05rem; }
.pad-lista { padding: 4px 20px 10px; }
.botoes input[type="text"] { flex: 1 1 260px; }
.form-documento { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--borda); }
.cartao h2 + .grade-3, .cartao h2 + .grade-2, .cartao h2 + .dica { margin-top: 10px; }
.cartao > h2 { margin-bottom: 10px; }

.cabecalho-impressao { display: none; }

.alternador-claro .alt-opcao { font-weight: 700; font-size: .88rem; text-align: center; padding: 6px 10px; }
.alternador-claro .alt-opcao:has(input:checked) { background: var(--verde-claro); border-color: var(--verde); color: var(--verde); }
.alternador-claro .alt-opcao:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.bloco-ad { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ldap-status dd { word-break: break-all; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grade-portaria { grid-template-columns: 1fr; }
  .coluna-lateral { position: static; order: -1; }
  .coluna-lateral .instrucoes { display: none; }
  .ocultar-lg { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .menu-toggle:checked ~ .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-toggle:checked ~ .menu-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .principal { margin-left: 0; }
  .btn-menu { display: inline-flex; }
  .topo { padding: 12px 16px; flex-wrap: wrap; }
  .conteudo { padding: 16px; }
  .grade-2, .grade-3, .grade-4 { grid-template-columns: 1fr; }
  .ocultar-md { display: none; }
}
@media (max-width: 560px) {
  .ocultar-sm { display: none; }
  .topo-acoes { width: 100%; }
  .topo-acoes .btn { flex: 1; }
  .kpi-valor { font-size: 1.5rem; }
}

/* ---------- Impressão (lista de evacuação) ---------- */
@media print {
  .sidebar, .topo-acoes, .btn-menu, .rodape, .filtros, .nao-imprimir, .toast { display: none !important; }
  .principal { margin: 0; }
  .topo { position: static; border: 0; padding: 0 0 8px; }
  .conteudo { padding: 0; max-width: none; }
  .cartao { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; font-size: 11pt; }
  .tabela th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .cabecalho-impressao { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
  .cabecalho-impressao img { height: 48px; }
  body:has(.cabecalho-impressao) .topo { display: none; }
}

/* ---------- Indicadores (modo dashboard) ----------
   Cores das séries validadas para daltonismo (protan/deutan) e contraste >= 3:1 sobre branco:
   claro: colaborador #0f7b5a · visitante #c27f00 · terceiro #2a78d6 (fundo #ffffff)
   escuro: colaborador #199e70 · visitante #c98500 · terceiro #3987e5 (fundo #171f1c) · "só veículo" = cinza neutro (Outros). */
.serie-colaborador, .serie-unica { background: var(--s-colaborador); }
.serie-visitante { background: var(--s-visitante); }
.serie-terceiro { background: var(--s-terceiro); }
.serie-veiculo { background: var(--s-veiculo); }

.filtros-indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; }
.filtros-indicadores .filtros-botoes { display: flex; gap: 8px; }
.ind-status { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--cinza); display: flex; align-items: center; gap: 6px; }
.ind-status.erro { color: var(--perigo); }
.ind-status.carregando .icon { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.ind-periodo { margin: 0 0 12px; color: var(--texto-3); font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.ind-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-heroi { grid-column: 1 / -1; border-top-color: var(--ouro); justify-content: space-between; }
@media (min-width: 1280px) {
  .ind-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpi-heroi { grid-column: span 2; }
}
@media (min-width: 1600px) {
  .modo-tv .ind-kpis { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.kpi-heroi-valor { font-size: 3.4rem; line-height: 1.05; color: var(--verde); font-weight: 700; }
.kpi-quebra { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .85rem; color: var(--texto-2); }
.kpi-quebra li { display: flex; align-items: center; gap: 6px; }
.kpi-delta { font-size: .78rem; color: var(--texto-3); margin-top: 2px; }
.kpi .kpi-delta.mudo { color: var(--cinza); }
.kpi-atencao { border-top-color: var(--perigo); }
.ind-alertas { border-left: 4px solid var(--sucesso); }
.ind-alertas.com-alerta { border-left-color: var(--perigo); }
.ind-alertas h3 { margin-bottom: 6px; }

/* Gráfico de colunas (HTML/CSS) */
.viz { margin: 0; }
.viz-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .84rem; color: var(--texto-2); }
.viz-legenda li { display: flex; align-items: center; gap: 6px; }
.viz-chave { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.viz-rolagem { overflow-x: auto; }
.viz-colunas { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: 220px auto; padding-top: 8px; }
.viz-colunas.viz-largo { min-width: 640px; }
.viz-eixo-y { grid-row: 1; grid-column: 1; position: sticky; left: 0; z-index: 1; background: var(--branco); }
.viz-y { position: absolute; right: 8px; font-size: .72rem; color: var(--cinza); transform: translateY(50%); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-y-0 { bottom: 0; } .viz-y-1 { bottom: 25%; } .viz-y-2 { bottom: 50%; } .viz-y-3 { bottom: 75%; } .viz-y-4 { bottom: 100%; }
.viz-plot { grid-row: 1; grid-column: 2; position: relative; border-bottom: 1px solid var(--borda-forte); }
.viz-grade { position: absolute; inset: 0; pointer-events: none; }
.viz-grade i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--grade); }
.viz-grade i:nth-child(1) { bottom: 25%; } .viz-grade i:nth-child(2) { bottom: 50%; } .viz-grade i:nth-child(3) { bottom: 75%; } .viz-grade i:nth-child(4) { bottom: 100%; }
.viz-barras { position: absolute; inset: 0; display: flex; gap: 2px; }
.viz-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; align-items: center; border-radius: 4px 4px 0 0; }
.viz-col:hover { background: var(--realce); }
.viz-seg { display: block; flex: none; width: 70%; max-width: 24px; }
.viz-seg + .viz-seg { margin-bottom: 2px; }
.viz-seg:last-child { border-radius: 4px 4px 0 0; }
.viz-eixo-x { grid-row: 2; grid-column: 2; display: flex; gap: 2px; padding-top: 5px; font-size: .72rem; color: var(--cinza); }
.viz-eixo-x span { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
.viz-tabela { margin-top: 10px; }
.viz-tabela summary { cursor: pointer; font-size: .82rem; color: var(--verde); }
.viz-tabela .tabela { margin-top: 8px; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela tfoot th { background: var(--cinza-claro); }

/* Barras horizontais */
.viz-hbarras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.viz-hbarras li { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); align-items: center; gap: 10px; padding: 3px 4px; border-radius: 4px; }
.viz-hbarras li:hover { background: var(--realce); }
.viz-h-rotulo { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-h-trilho { display: flex; align-items: center; gap: 8px; min-width: 0; }
.viz-h-barra { display: block; flex: none; height: 14px; border-radius: 0 4px 4px 0; }
.viz-h-valor { font-size: .86rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Dica flutuante (JS) */
.viz-dica { position: fixed; z-index: 90; pointer-events: none; background: var(--flutuante-fundo); color: var(--flutuante-texto); padding: 6px 10px; border-radius: 6px; font-size: .8rem; max-width: 320px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .1s; }
.viz-dica.visivel { opacity: 1; }

/* Modo TV */
body.modo-tv { font-size: 16px; }
.modo-tv .sidebar, .modo-tv .topo, .modo-tv .rodape, .modo-tv .menu-overlay { display: none; }
.modo-tv .principal { margin-left: 0; }
.modo-tv .conteudo { max-width: none; padding: 14px 20px 20px; }
.tv-topo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--marca); color: #fff; border-radius: var(--raio); border-bottom: 4px solid var(--ouro); padding: 10px 18px; margin-bottom: 12px; }
.tv-logo { height: 46px; width: auto; }
.tv-titulo h1 { font-size: 1.35rem; color: #fff; }
.tv-titulo p { margin: 2px 0 0; opacity: .8; font-size: .9rem; }
.tv-relogio { margin-left: auto; font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tv-acoes { display: flex; gap: 8px; }
.tv-filtros > summary { cursor: pointer; color: var(--verde); font-weight: 600; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; }
.modo-tv .viz-tabela { display: none; }
.modo-tv .kpi-valor { font-size: 2.3rem; }
.modo-tv .kpi-heroi-valor { font-size: 4.6rem; }
.modo-tv .viz-colunas { grid-template-rows: 250px auto; }
:fullscreen .tv-acoes { display: none; }

@media (max-width: 560px) {
  .ind-kpis { gap: 10px; }
  .ind-kpis .kpi { padding: 12px; }
  .kpi-heroi-valor { font-size: 2.8rem; }
  .viz-colunas { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: 180px auto; }
  .tv-relogio { font-size: 1.6rem; }
}
@media print {
  .filtros-indicadores, .tv-topo, .tv-filtros, .viz-tabela { display: none !important; }
  .serie-colaborador, .serie-unica, .serie-visitante, .serie-terceiro, .serie-veiculo, .viz-chave { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Escalas dos gráficos: .vh-N (altura %) e .vw-N (largura %) — evitam style inline (CSP) */
.vh-0 { height: 0%; }
.vh-1 { height: 1%; }
.vh-2 { height: 2%; }
.vh-3 { height: 3%; }
.vh-4 { height: 4%; }
.vh-5 { height: 5%; }
.vh-6 { height: 6%; }
.vh-7 { height: 7%; }
.vh-8 { height: 8%; }
.vh-9 { height: 9%; }
.vh-10 { height: 10%; }
.vh-11 { height: 11%; }
.vh-12 { height: 12%; }
.vh-13 { height: 13%; }
.vh-14 { height: 14%; }
.vh-15 { height: 15%; }
.vh-16 { height: 16%; }
.vh-17 { height: 17%; }
.vh-18 { height: 18%; }
.vh-19 { height: 19%; }
.vh-20 { height: 20%; }
.vh-21 { height: 21%; }
.vh-22 { height: 22%; }
.vh-23 { height: 23%; }
.vh-24 { height: 24%; }
.vh-25 { height: 25%; }
.vh-26 { height: 26%; }
.vh-27 { height: 27%; }
.vh-28 { height: 28%; }
.vh-29 { height: 29%; }
.vh-30 { height: 30%; }
.vh-31 { height: 31%; }
.vh-32 { height: 32%; }
.vh-33 { height: 33%; }
.vh-34 { height: 34%; }
.vh-35 { height: 35%; }
.vh-36 { height: 36%; }
.vh-37 { height: 37%; }
.vh-38 { height: 38%; }
.vh-39 { height: 39%; }
.vh-40 { height: 40%; }
.vh-41 { height: 41%; }
.vh-42 { height: 42%; }
.vh-43 { height: 43%; }
.vh-44 { height: 44%; }
.vh-45 { height: 45%; }
.vh-46 { height: 46%; }
.vh-47 { height: 47%; }
.vh-48 { height: 48%; }
.vh-49 { height: 49%; }
.vh-50 { height: 50%; }
.vh-51 { height: 51%; }
.vh-52 { height: 52%; }
.vh-53 { height: 53%; }
.vh-54 { height: 54%; }
.vh-55 { height: 55%; }
.vh-56 { height: 56%; }
.vh-57 { height: 57%; }
.vh-58 { height: 58%; }
.vh-59 { height: 59%; }
.vh-60 { height: 60%; }
.vh-61 { height: 61%; }
.vh-62 { height: 62%; }
.vh-63 { height: 63%; }
.vh-64 { height: 64%; }
.vh-65 { height: 65%; }
.vh-66 { height: 66%; }
.vh-67 { height: 67%; }
.vh-68 { height: 68%; }
.vh-69 { height: 69%; }
.vh-70 { height: 70%; }
.vh-71 { height: 71%; }
.vh-72 { height: 72%; }
.vh-73 { height: 73%; }
.vh-74 { height: 74%; }
.vh-75 { height: 75%; }
.vh-76 { height: 76%; }
.vh-77 { height: 77%; }
.vh-78 { height: 78%; }
.vh-79 { height: 79%; }
.vh-80 { height: 80%; }
.vh-81 { height: 81%; }
.vh-82 { height: 82%; }
.vh-83 { height: 83%; }
.vh-84 { height: 84%; }
.vh-85 { height: 85%; }
.vh-86 { height: 86%; }
.vh-87 { height: 87%; }
.vh-88 { height: 88%; }
.vh-89 { height: 89%; }
.vh-90 { height: 90%; }
.vh-91 { height: 91%; }
.vh-92 { height: 92%; }
.vh-93 { height: 93%; }
.vh-94 { height: 94%; }
.vh-95 { height: 95%; }
.vh-96 { height: 96%; }
.vh-97 { height: 97%; }
.vh-98 { height: 98%; }
.vh-99 { height: 99%; }
.vh-100 { height: 100%; }
.vw-0 { width: 0%; }
.vw-1 { width: 1%; }
.vw-2 { width: 2%; }
.vw-3 { width: 3%; }
.vw-4 { width: 4%; }
.vw-5 { width: 5%; }
.vw-6 { width: 6%; }
.vw-7 { width: 7%; }
.vw-8 { width: 8%; }
.vw-9 { width: 9%; }
.vw-10 { width: 10%; }
.vw-11 { width: 11%; }
.vw-12 { width: 12%; }
.vw-13 { width: 13%; }
.vw-14 { width: 14%; }
.vw-15 { width: 15%; }
.vw-16 { width: 16%; }
.vw-17 { width: 17%; }
.vw-18 { width: 18%; }
.vw-19 { width: 19%; }
.vw-20 { width: 20%; }
.vw-21 { width: 21%; }
.vw-22 { width: 22%; }
.vw-23 { width: 23%; }
.vw-24 { width: 24%; }
.vw-25 { width: 25%; }
.vw-26 { width: 26%; }
.vw-27 { width: 27%; }
.vw-28 { width: 28%; }
.vw-29 { width: 29%; }
.vw-30 { width: 30%; }
.vw-31 { width: 31%; }
.vw-32 { width: 32%; }
.vw-33 { width: 33%; }
.vw-34 { width: 34%; }
.vw-35 { width: 35%; }
.vw-36 { width: 36%; }
.vw-37 { width: 37%; }
.vw-38 { width: 38%; }
.vw-39 { width: 39%; }
.vw-40 { width: 40%; }
.vw-41 { width: 41%; }
.vw-42 { width: 42%; }
.vw-43 { width: 43%; }
.vw-44 { width: 44%; }
.vw-45 { width: 45%; }
.vw-46 { width: 46%; }
.vw-47 { width: 47%; }
.vw-48 { width: 48%; }
.vw-49 { width: 49%; }
.vw-50 { width: 50%; }
.vw-51 { width: 51%; }
.vw-52 { width: 52%; }
.vw-53 { width: 53%; }
.vw-54 { width: 54%; }
.vw-55 { width: 55%; }
.vw-56 { width: 56%; }
.vw-57 { width: 57%; }
.vw-58 { width: 58%; }
.vw-59 { width: 59%; }
.vw-60 { width: 60%; }
.vw-61 { width: 61%; }
.vw-62 { width: 62%; }
.vw-63 { width: 63%; }
.vw-64 { width: 64%; }
.vw-65 { width: 65%; }
.vw-66 { width: 66%; }
.vw-67 { width: 67%; }
.vw-68 { width: 68%; }
.vw-69 { width: 69%; }
.vw-70 { width: 70%; }
.vw-71 { width: 71%; }
.vw-72 { width: 72%; }
.vw-73 { width: 73%; }
.vw-74 { width: 74%; }
.vw-75 { width: 75%; }
.vw-76 { width: 76%; }
.vw-77 { width: 77%; }
.vw-78 { width: 78%; }
.vw-79 { width: 79%; }
.vw-80 { width: 80%; }
.vw-81 { width: 81%; }
.vw-82 { width: 82%; }
.vw-83 { width: 83%; }
.vw-84 { width: 84%; }
.vw-85 { width: 85%; }
.vw-86 { width: 86%; }
.vw-87 { width: 87%; }
.vw-88 { width: 88%; }
.vw-89 { width: 89%; }
.vw-90 { width: 90%; }
.vw-91 { width: 91%; }
.vw-92 { width: 92%; }
.vw-93 { width: 93%; }
.vw-94 { width: 94%; }
.vw-95 { width: 95%; }
.vw-96 { width: 96%; }
.vw-97 { width: 97%; }
.vw-98 { width: 98%; }
.vw-99 { width: 99%; }
.vw-100 { width: 100%; }
@media (min-width: 1600px) {
  .modo-tv .ind-kpis .kpi-valor { font-size: 2rem; }
}

/* ---------- Tema escuro ----------
   Automático: segue o sistema (prefers-color-scheme) quando o usuário não escolheu.
   Forçado: <html data-theme="dark|light"> definido pelo cookie sag_tema (sem piscar, sem script inline). */
.logo-claro { display: var(--logo-claro); }
.logo-escuro { display: var(--logo-escuro); }
.tela-simples .seletor-tema { position: fixed; top: 12px; right: 12px; }
.seletor-tema .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --verde: #5cc99c;
    --verde-hover: #8ddcbb;
    --verde-claro: #15372b;
    --marca: #0b5a43;
    --marca-escuro: #08432f;
    --marca-fundo: #050c0a;
    --lateral: #0f1a16;
    --logo-fundo: #0f1a16;
    --ouro-claro: #3a3210;
    --cinza: #96a19c;
    --cinza-claro: #222c28;
    --borda: #2c3833;
    --borda-forte: #3e4c46;
    --grade: #26302c;
    --texto: #e6ebe8;
    --texto-2: #cdd5d1;
    --texto-3: #b3bdb8;
    --fundo: #0e1412;
    --branco: #171f1c;
    --superficie-2: #1d2724;
    --realce: rgba(92, 201, 156, .10);
    --sucesso: #5fcf95;
    --sucesso-fundo: #12301f;
    --sucesso-borda: #245c3d;
    --sucesso-texto: #a6e6c4;
    --sucesso-fill: #17703f;
    --perigo: #ff8a7e;
    --perigo-fundo: #3a1714;
    --perigo-borda: #6b2a24;
    --perigo-texto: #ffb4ab;
    --perigo-fill: #b42318;
    --aviso: #f2c14e;
    --aviso-fundo: #33290d;
    --aviso-borda: #6a5216;
    --aviso-texto: #ffd98a;
    --info: #8db8ff;
    --info-fundo: #15243d;
    --info-borda: #2a4470;
    --info-texto: #c2d8ff;
    --flutuante-fundo: #e6ebe8;
    --flutuante-texto: #121816;
    --s-colaborador: #199e70;
    --s-visitante: #c98500;
    --s-terceiro: #3987e5;
    --s-veiculo: #7d8783;
    --logo-claro: none;
    --logo-escuro: block;
    --sombra: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 8px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --verde: #5cc99c;
  --verde-hover: #8ddcbb;
  --verde-claro: #15372b;
  --marca: #0b5a43;
  --marca-escuro: #08432f;
  --marca-fundo: #050c0a;
  --lateral: #0f1a16;
  --logo-fundo: #0f1a16;
  --ouro-claro: #3a3210;
  --cinza: #96a19c;
  --cinza-claro: #222c28;
  --borda: #2c3833;
  --borda-forte: #3e4c46;
  --grade: #26302c;
  --texto: #e6ebe8;
  --texto-2: #cdd5d1;
  --texto-3: #b3bdb8;
  --fundo: #0e1412;
  --branco: #171f1c;
  --superficie-2: #1d2724;
  --realce: rgba(92, 201, 156, .10);
  --sucesso: #5fcf95;
  --sucesso-fundo: #12301f;
  --sucesso-borda: #245c3d;
  --sucesso-texto: #a6e6c4;
  --sucesso-fill: #17703f;
  --perigo: #ff8a7e;
  --perigo-fundo: #3a1714;
  --perigo-borda: #6b2a24;
  --perigo-texto: #ffb4ab;
  --perigo-fill: #b42318;
  --aviso: #f2c14e;
  --aviso-fundo: #33290d;
  --aviso-borda: #6a5216;
  --aviso-texto: #ffd98a;
  --info: #8db8ff;
  --info-fundo: #15243d;
  --info-borda: #2a4470;
  --info-texto: #c2d8ff;
  --flutuante-fundo: #e6ebe8;
  --flutuante-texto: #121816;
  --s-colaborador: #199e70;
  --s-visitante: #c98500;
  --s-terceiro: #3987e5;
  --s-veiculo: #7d8783;
  --logo-claro: none;
  --logo-escuro: block;
  --sombra: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 8px rgba(0, 0, 0, .3);
}
@media print {
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    color-scheme: light;
    --verde: #024B37;
    --verde-hover: #013626;
    --verde-escuro: #013626;
    --verde-claro: #e6f0ec;
    --marca: #024B37;
    --marca-escuro: #013626;
    --marca-fundo: #01261b;
    --lateral: #024B37;
    --logo-fundo: #ffffff;
    --ouro: #FFCD00;
    --ouro-claro: #fff6cc;
    --lima: #C6D53E;
    --cinza: #707070;
    --cinza-claro: #f3f4f3;
    --borda: #dfe3e1;
    --borda-forte: #c9d0cc;
    --grade: #eceeed;
    --texto: #1d2522;
    --texto-2: #36403c;
    --texto-3: #4a524e;
    --fundo: #f6f7f6;
    --branco: #ffffff;
    --superficie-2: #fafbfa;
    --realce: rgba(2, 75, 55, .07);
    --sucesso: #1f7a4d;
    --sucesso-fundo: #e5f4ec;
    --sucesso-borda: #a9d9bf;
    --sucesso-texto: #12512f;
    --sucesso-fill: #1f7a4d;
    --perigo: #b42318;
    --perigo-fundo: #fdecea;
    --perigo-borda: #f2b8b2;
    --perigo-texto: #7a1a12;
    --perigo-fill: #b42318;
    --aviso: #8a6100;
    --aviso-fundo: #fff4d6;
    --aviso-borda: #f0d58a;
    --aviso-texto: #5f4300;
    --info: #1d4f91;
    --info-fundo: #e8f0fb;
    --info-borda: #b8cdee;
    --info-texto: #173e72;
    --flutuante-fundo: #1d2522;
    --flutuante-texto: #ffffff;
    --s-colaborador: #0f7b5a;
    --s-visitante: #c27f00;
    --s-terceiro: #2a78d6;
    --s-veiculo: #8a918d;
    --logo-claro: block;
    --logo-escuro: none;
    --sombra: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 6px rgba(0, 0, 0, .04);
  }
}
.logo-central img.logo-escuro, .logo-central.vertical img.logo-escuro { height: 60px; }
.chave-mfa { font-size: 1.15rem; letter-spacing: .08em; padding: 10px 12px; background: var(--fundo-suave, rgba(0,0,0,.05)); border-radius: 8px; display: inline-block; }
.mfa-cadastro { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 12px 0; }
.qr-mfa { width: 220px; max-width: 100%; margin: 0; padding: 8px; background: #fff; border-radius: 8px; }
.qr-mfa svg { display: block; width: 100%; height: auto; }
