/* ==========================================================================
   Controle Mufasa: base visual
   ========================================================================== */
:root {
    --fundo: #f3f4f7;
    --cartao: #fff;
    --texto: #161b26;
    --texto-2: #3a4252;
    --sutil: #6b7385;
    --borda: #e3e6ec;
    --borda-forte: #cdd2db;
    --hover: #f6f7fa;

    --primaria: #2453d6;
    --primaria-hover: #1b41ad;
    --primaria-suave: #ebf0fd;

    --ok: #15803d;      --ok-fundo: #e8f6ee;     --ok-texto: #13612f;
    --aviso: #b45309;   --aviso-fundo: #fff5e0;  --aviso-texto: #7a4600;
    --perigo: #c42b32;  --erro-fundo: #fdeeee;   --erro-texto: #9b1c22;
    --neutro-fundo: #eef0f4; --neutro-texto: #4b5263;
    --roxo: #6d3fd8;    --roxo-fundo: #f1ecfd;

    --raio: 12px;
    --raio-p: 8px;
    --sombra: 0 1px 2px rgba(16, 24, 40, .05);
    --sombra-alta: 0 10px 30px rgba(16, 24, 40, .12);
    --menu-largura: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primaria); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: 1.02rem; margin: 0 0 .9rem; font-weight: 650; }
h3 { font-size: .9rem; margin: 0 0 .5rem; }
.sutil { color: var(--sutil); margin: .15rem 0 0; font-weight: normal; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.texto { white-space: pre-line; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.p { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- menu lateral ---------- */
.com-menu .conteudo { margin-left: var(--menu-largura); }
.menu { position: fixed; inset: 0 auto 0 0; width: var(--menu-largura); background: #fff; border-right: 1px solid var(--borda); display: flex; flex-direction: column; z-index: 30; }
.menu-marca { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.25rem; color: var(--texto); font-weight: 700; font-size: 1.02rem; }
.menu-marca:hover { text-decoration: none; }
.menu-marca small { color: var(--sutil); font-weight: 500; font-size: .95rem; }
.menu-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2453d6, #6d3fd8); color: #fff; font-weight: 800; font-size: .95rem; }
.menu-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; }
.menu-grupo { margin-bottom: .9rem; }
.menu-titulo { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9aa1b0; padding: .5rem .6rem .3rem; }
.menu-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: var(--raio-p); color: var(--texto-2); font-weight: 500; font-size: .93rem; }
.menu-item .ic { color: #8a91a1; }
.menu-item:hover { background: var(--hover); text-decoration: none; color: var(--texto); }
.menu-item.ativo { background: var(--primaria-suave); color: var(--primaria); font-weight: 600; }
.menu-item.ativo .ic { color: var(--primaria); }
.menu-contador { margin-left: auto; min-width: 22px; padding: 0 .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.menu-contador.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.menu-contador.perigo { background: var(--perigo); color: #fff; }
.menu-contador.info { background: var(--primaria-suave); color: var(--primaria); }
.menu-usuario { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid var(--borda); }
.menu-usuario form { margin: 0; }
.menu-pessoa { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: var(--texto-2); font-weight: 500; font-size: .9rem; }
.menu-pessoa span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-movel, .menu-fundo { display: none; }

.botao-icone { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--raio-p); background: none; color: var(--sutil); cursor: pointer; }
.botao-icone:hover { background: var(--hover); color: var(--texto); }
button.link { background: none; border: 0; color: var(--primaria); cursor: pointer; font: inherit; padding: 0; }

/* ---------- página ---------- */
.conteudo { max-width: calc(1240px + var(--menu-largura)); padding: 1.75rem 2rem 3rem; }
.com-menu .conteudo { max-width: 1240px; }
body:not(.com-menu) .conteudo { margin: 0 auto; max-width: 1080px; }
.cabecalho { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cabecalho h1 .selo { font-size: .78rem; vertical-align: 4px; margin-left: .35rem; }
.voltar { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; margin-bottom: .35rem; color: var(--sutil); font-weight: 500; }
.voltar:hover { color: var(--primaria); text-decoration: none; }
.botoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.botoes form { margin: 0; }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.35rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--sombra); }
.cartao > h2:first-child, .cabecalho-secao h2 { display: flex; align-items: center; gap: .5rem; }
.cartao.estreito { max-width: 420px; margin: 4rem auto; padding: 2rem; }
.cartao.estreito h1 { margin-bottom: 1.5rem; }
.colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.colunas > .cartao { margin-bottom: 0; }
.cabecalho-secao { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.cabecalho-secao h2 { margin: 0; }
.cabecalho-secao a { font-size: .875rem; font-weight: 500; }

/* ---------- alertas ---------- */
.alerta { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--raio-p); margin-bottom: 1.25rem; border: 1px solid transparent; font-size: .93rem; }
.alerta > .ic { margin-top: 2px; }
.alerta > div { flex: 1; }
.alerta.ok { background: var(--ok-fundo); color: var(--ok-texto); border-color: #c7ebd4; }
.alerta.erro { background: var(--erro-fundo); color: var(--erro-texto); border-color: #f6cdcf; }
.alerta.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); border-color: #f7dfae; }
.alerta a { font-weight: 600; color: inherit; text-decoration: underline; }

/* ---------- botões ---------- */
.botao { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: var(--raio-p); border: 1px solid var(--borda-forte); background: #fff; color: var(--texto); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1.3; white-space: nowrap; box-shadow: var(--sombra); }
.botao:hover { background: var(--hover); text-decoration: none; }
.botao.primario { background: var(--primaria); border-color: var(--primaria); color: #fff; }
.botao.primario:hover { background: var(--primaria-hover); }
.botao.perigo { color: var(--perigo); border-color: #f1bcbf; }
.botao.perigo:hover { background: var(--erro-fundo); }
.botao.pequeno { padding: .3rem .65rem; font-size: .8rem; }
.botao:disabled { opacity: .6; cursor: default; }

/* ---------- formulários ---------- */
.form fieldset { border: 0; padding: 0 0 1.25rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--borda); }
.form fieldset:last-of-type { border-bottom: 0; margin-bottom: .5rem; }
.form legend { font-weight: 700; font-size: 1rem; margin-bottom: .9rem; padding: 0; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); margin-bottom: .9rem; }
.form label.check { flex-direction: row; align-items: center; font-weight: 500; }
.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.1rem; }
.grade .c2 { grid-column: span 2; }
.grade .c3 { grid-column: 1 / -1; }
input, select, textarea { font: inherit; font-size: .95rem; padding: .55rem .7rem; border: 1px solid var(--borda-forte); border-radius: var(--raio-p); background: #fff; color: var(--texto); width: 100%; font-weight: normal; transition: border-color .12s, box-shadow .12s; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primaria); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primaria); box-shadow: 0 0 0 3px rgba(36, 83, 214, .15); }
input::placeholder, textarea::placeholder { color: #a3a9b6; }
.maiusculo { text-transform: uppercase; }
label small { color: var(--sutil); font-weight: normal; }
.invalido input, .invalido select, .invalido textarea { border-color: var(--perigo); }
.campo-erro { color: var(--perigo); font-size: .8rem; font-weight: 500; margin: 0; }
.acoes { display: flex; justify-content: flex-end; gap: .5rem; }
.form.cartao > .acoes { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 35%); padding: 1rem 0 .25rem; margin: 0; }
input.carregando { background: #f7f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%232453d6' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat right .6rem center; }

/* ---------- abas de status ---------- */
.abas { display: flex; gap: .25rem; border-bottom: 1px solid var(--borda); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.aba { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--sutil); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.aba:hover { color: var(--texto); text-decoration: none; }
.aba.ativa { color: var(--primaria); border-bottom-color: var(--primaria); }
.aba-n { background: var(--neutro-fundo); color: var(--neutro-texto); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; line-height: 20px; }
.aba.ativa .aba-n { background: var(--primaria-suave); color: var(--primaria); }
.aba-n.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.aba-n.perigo { background: var(--erro-fundo); color: var(--perigo); }
.aba-n.info { background: var(--primaria-suave); color: var(--primaria); }

/* ---------- busca ---------- */
.busca { display: flex; gap: .5rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; }
.busca input[type=search] { flex: 1; min-width: 220px; padding-left: 2.3rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239aa1b0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .7rem center; }
.busca select, .busca input[type=month] { width: auto; }
.busca a { font-size: .875rem; }
.filtro-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--borda-forte); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.filtro-chip:hover { text-decoration: none; background: var(--hover); }
.filtro-chip.ligado { background: var(--aviso-fundo); border-color: #f2cf8c; color: var(--aviso-texto); }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.cartao .tabela-wrap { border: 1px solid var(--borda); box-shadow: none; border-radius: var(--raio-p); }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th, .tabela td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sutil); font-weight: 700; background: #f9fafb; white-space: nowrap; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: var(--hover); }
.tabela tr[data-href] { cursor: pointer; }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela .vazio { text-align: center; color: var(--sutil); padding: 2.5rem 1rem; }
.tabela .forte { font-weight: 600; color: var(--texto); }
.tabela td.acao { width: 1%; white-space: nowrap; text-align: right; }

/* célula com avatar + duas linhas */
.pessoa { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.pessoa-nome { display: block; font-weight: 600; color: var(--texto); }
.pessoa-nome:hover { color: var(--primaria); }
.pessoa-sub { display: block; font-size: .8rem; color: var(--sutil); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.avatar.pequeno { width: 30px; height: 30px; border-radius: 8px; font-size: .8rem; }
.avatar.grande { width: 56px; height: 56px; border-radius: 14px; font-size: 1.25rem; }
.av-0 { background: #e6edfd; color: #2453d6; } .av-1 { background: #f1ecfd; color: #6d3fd8; }
.av-2 { background: #e5f6ee; color: #15803d; } .av-3 { background: #fff1e0; color: #b45309; }
.av-4 { background: #fde9ef; color: #be185d; } .av-5 { background: #e3f5f8; color: #0e7490; }
.av-6 { background: #eef0f4; color: #4b5263; } .av-7 { background: #fdeeee; color: #b42318; }

.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { display: inline-block; padding: .1rem .5rem; border-radius: 6px; background: var(--neutro-fundo); color: var(--neutro-texto); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.valor { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.valor.vazio, .nada { color: #a3a9b6; font-weight: 500; }

.icone-aviso { display: inline-flex; color: var(--aviso); vertical-align: middle; margin-left: .3rem; }

.paginacao { display: flex; gap: .75rem; justify-content: center; align-items: center; margin-top: 1.25rem; font-size: .9rem; color: var(--sutil); }
.paginacao a, .paginacao .desab { padding: .4rem .8rem; border: 1px solid var(--borda-forte); border-radius: var(--raio-p); background: #fff; font-weight: 600; }
.paginacao a:hover { text-decoration: none; background: var(--hover); }
.paginacao .desab { color: #b0b6bf; border-color: var(--borda); }

/* ---------- copiar link ---------- */
.menu-linha { display: flex; align-items: center; gap: .15rem; }
.menu-linha .menu-item { flex: 1; min-width: 0; }
.menu-copiar { width: 32px; height: 32px; }
.menu-copiar.copiado, .barra-copiar.copiado { color: var(--ok-texto); background: var(--ok-fundo); }
.barra-copiar { margin-left: auto; }
.aviso-flutuante { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2533; color: #fff; padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--sombra-alta); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 100; }
.aviso-flutuante.visivel { opacity: 1; transform: translate(-50%, 0); }
.link-fixo { border-left: 4px solid var(--primaria); }
.link-fixo-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.link-fixo h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; font-size: 1.05rem; }
.link-fixo p { margin: 0; }
.copiar { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.copiar input { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--hover); }
.titulo-secao { font-size: 1rem; margin: 1.75rem 0 .75rem; }
.acoes-linha { white-space: nowrap; }
.acoes-linha form { display: inline; margin-left: .75rem; }

/* ---------- rolagem infinita ---------- */
.infinito { display: flex; gap: .9rem; justify-content: center; align-items: center; margin-top: 1.25rem; min-height: 2.5rem; font-size: .88rem; }

/* ---------- janelas (dialog) ---------- */
.dialogo { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--raio); background: #fff; color: inherit; box-shadow: 0 24px 64px rgba(15, 23, 42, .28); }
.dialogo::backdrop { background: rgba(15, 23, 42, .45); }
.dialogo > form { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 1rem; }
.dialogo-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dialogo-topo h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.dialogo-topo p { margin: 0; font-size: .9rem; }
.dialogo-acoes { display: flex; justify-content: flex-end; gap: .5rem; }
.dialogo .form label { margin-bottom: 0; }

/* ---------- lista de dados ---------- */
.dados { display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem 1rem; margin: 0; font-size: .93rem; }
.dados dt { color: var(--sutil); font-size: .85rem; }
.dados dd { margin: 0; word-break: break-word; }

/* ---------- selos de status ---------- */
.selo { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 650; vertical-align: middle; background: var(--neutro-fundo); color: var(--neutro-texto); white-space: nowrap; line-height: 1.5; }
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.selo.sem-ponto::before { display: none; }
.selo.ativo, .selo.ok { background: var(--ok-fundo); color: var(--ok); }
.selo.rascunho, .selo.pendente, .selo.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.selo.cancelado, .selo.perigo { background: var(--erro-fundo); color: var(--perigo); }
.selo.encerrado, .selo.inativo { background: var(--neutro-fundo); color: #6b7385; }
.selo.info { background: var(--primaria-suave); color: var(--primaria); }

.doc { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.doc:last-child { border-bottom: 0; }
.doc p { margin: 0; }
.upload { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.upload input { flex: 1; min-width: 200px; }
.zona-perigo { margin-top: 2rem; text-align: right; }

/* ---------- ficha (cliente, contrato) ---------- */
.ficha-topo-cliente { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: start; }
.ficha-identidade { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.ficha-identidade h1 { word-break: break-word; }
.ficha-identidade .sutil { margin-top: .2rem; }
.ficha-selos { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; font-size: .85rem; }
.ficha-status { grid-column: 1 / -1; border-top: 1px solid var(--borda); padding-top: .85rem; margin-top: .1rem; }
.ficha-status:empty { display: none; }
.ficha-status .alerta, .ficha-status .status-cliente.linha { margin: 0; }
.ficha-grade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.ficha-principal .colunas { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
.ficha-principal .colunas > .cartao { margin-bottom: 1.25rem; }
.ficha-lateral .cartao { padding: 1.15rem 1.25rem; }
.ficha-lateral h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sutil); margin-bottom: .75rem; }
.dados.compacto { grid-template-columns: 5.5rem 1fr; gap: .45rem .75rem; font-size: .9rem; }
.dados.compacto dt { font-size: .8rem; }
.contatos { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.contatos li { display: flex; gap: .55rem; align-items: flex-start; word-break: break-word; }
.contatos .ic { color: var(--sutil); margin-top: 3px; }
.observacoes { font-size: .85rem; line-height: 1.55; color: var(--texto-2); max-height: 22rem; overflow-y: auto; background: #f9fafb; border: 1px solid var(--borda); border-radius: var(--raio-p); padding: .75rem .85rem; }

/* números-resumo */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.numero { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.15rem; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: .15rem; }
.numero-rotulo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sutil); }
.numero-valor { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.numero-sub { font-size: .82rem; color: var(--sutil); }
.numero.ruim { box-shadow: inset 4px 0 0 var(--perigo), var(--sombra); }
.numero.ruim .numero-valor { color: var(--perigo); }

/* ---------- celular ---------- */
@media (max-width: 1100px) {
    .ficha-grade { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .com-menu .conteudo { margin-left: 0; }
    .menu { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sombra-alta); }
    body.menu-aberto .menu { transform: none; }
    body.menu-aberto .menu-fundo { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 25; }
    .barra-movel { display: flex; align-items: center; gap: .5rem; position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--borda); padding: .5rem 1rem; }
    .barra-movel .menu-marca { padding: 0; font-size: .95rem; }
    .barra-movel .menu-logo { width: 28px; height: 28px; }
}
@media (max-width: 760px) {
    .conteudo { padding: 1.1rem 1rem 2.5rem; }
    h1 { font-size: 1.35rem; }
    .cartao { padding: 1.1rem; }
    .colunas { grid-template-columns: 1fr; }
    .grade { grid-template-columns: 1fr; }
    .grade .c2, .grade .c3 { grid-column: auto; }
    .dados { grid-template-columns: 1fr; gap: .1rem; }
    .dados dd { margin-bottom: .6rem; }
    .tabela .oculta-movel { display: none; }
    .pessoa { min-width: 0; }
    .pessoa-sub { max-width: 200px; }
    .ficha-topo-cliente { grid-template-columns: 1fr; }
    .ficha-identidade { align-items: flex-start; }
    .avatar.grande { width: 46px; height: 46px; font-size: 1.05rem; }
}
