/* Área do produtor (P2 telas, 22/10/2026). Mobile primeiro, paleta Sálvia.
   Tokens copiados de propostas/marca/paletas.json (test/produtor-telas.test.mjs confere que estão iguais).
   Nada de estilo embutido nas páginas: todo visual mora aqui. */
:root {
  --pr-fundo: #F4F7F3;
  --pr-superficie: #FFFFFF;
  --pr-texto: #14261D;
  --pr-texto-secundario: #4F6157;
  --pr-borda: #DCE5DE;
  --pr-borda-campo: #7E9488;
  --pr-primaria: #0F7A55;
  --pr-primaria-hover: #0B6B4A;
  --pr-texto-botao: #FFFFFF;
  --pr-destaque: #E9B949;
  --pr-texto-sobre-destaque: #2A1E00;
  --pr-destaque-suave: #E7F3EC;
  --pr-sucesso: #146C43;
  --pr-erro: #C0362C;
  --pr-aviso: #9A5B00;

  --raio: 14px;
  --raio-p: 10px;
  --sombra: 0 1px 2px rgba(20, 38, 29, .06), 0 4px 16px rgba(20, 38, 29, .06);
  --altura-nav: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pr-fundo);
  color: var(--pr-texto);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1 { font-size: 1.4rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--pr-primaria); text-underline-offset: 2px; }
a:hover { color: var(--pr-primaria-hover); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
img, svg { max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--pr-primaria); outline-offset: 2px; border-radius: 6px; }

.oculto-visual {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--pr-primaria); color: var(--pr-texto-botao); padding: 10px 14px; border-radius: var(--raio-p); }
.pular:focus { top: 12px; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--raio-p);
  background: var(--pr-primaria); color: var(--pr-texto-botao);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { background: var(--pr-primaria-hover); color: var(--pr-texto-botao); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sec { background: var(--pr-superficie); color: var(--pr-primaria); border-color: var(--pr-primaria); }
.btn.sec:hover:not(:disabled) { background: var(--pr-destaque-suave); color: var(--pr-primaria-hover); }
.btn.perigo { background: var(--pr-superficie); color: var(--pr-erro); border-color: var(--pr-erro); }
.btn.perigo:hover:not(:disabled) { background: #FBEDEC; color: var(--pr-erro); }
.btn.cheio { width: 100%; }
.btn.pequeno { min-height: 44px; padding: 8px 14px; font-size: .88rem; }
.btn-link {
  min-height: 44px; padding: 10px 4px; background: none; border: 0;
  color: var(--pr-primaria); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.botoes .btn { flex: 1 1 auto; }

.campo { display: block; margin-bottom: 14px; }
.campo > span, .rotulo-campo { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.campo small, .ajuda { display: block; color: var(--pr-texto-secundario); font-size: .84rem; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="date"], input[type="url"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--pr-borda-campo); border-radius: var(--raio-p);
  background: var(--pr-superficie); color: var(--pr-texto);
  font: inherit; font-size: 1rem;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--pr-texto-secundario); opacity: .85; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--pr-primaria); box-shadow: 0 0 0 3px var(--pr-destaque-suave), 0 0 0 5px var(--pr-primaria);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--pr-erro); }
.marcar { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: .92rem; }
.marcar input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--pr-primaria); }
.opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.opcoes label { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--pr-borda-campo); border-radius: var(--raio-p); background: var(--pr-superficie); cursor: pointer; font-weight: 600; }
.opcoes input { accent-color: var(--pr-primaria); width: 18px; height: 18px; margin: 0; }
.armadilha { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.msg { font-size: .9rem; margin-top: 10px; min-height: 1.2em; }
.msg.erro, .erro-texto { color: var(--pr-erro); }
.msg.ok { color: var(--pr-sucesso); }
.erro-campo { color: var(--pr-erro); font-size: .84rem; margin-top: 6px; }

/* ---------- telas públicas (entrar, cadastro, segunda etapa, definir senha) ---------- */
.tela-publica { min-height: 100vh; display: flex; justify-content: center; padding: 24px 16px 40px; }
.publica-caixa { width: 100%; max-width: 440px; }
.publica-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 700; font-size: 1.05rem; }
.marca-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--pr-primaria); flex: none; position: relative; }
.marca-ico::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 3px solid var(--pr-texto-botao); }
.publica-titulo { margin-bottom: 6px; }
.publica-sub { color: var(--pr-texto-secundario); margin-bottom: 18px; }
.cartao-publico { background: var(--pr-superficie); border: 1px solid var(--pr-borda); border-radius: var(--raio); padding: 20px 16px; box-shadow: var(--sombra); }
.abas-publicas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--pr-destaque-suave); border-radius: 12px; margin-bottom: 16px; }
.abas-publicas button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--pr-texto-secundario); font: inherit; font-weight: 600; cursor: pointer; }
.abas-publicas button[aria-selected="true"] { background: var(--pr-superficie); color: var(--pr-primaria); box-shadow: var(--sombra); }
.confirmacao { text-align: left; padding: 8px 0; }
.confirmacao h2 { margin-bottom: 8px; }
.confirmacao p { color: var(--pr-texto-secundario); }
.passos-totp { padding-left: 20px; margin: 12px 0 16px; color: var(--pr-texto-secundario); }
.passos-totp li { margin-bottom: 6px; }
.chave { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
.chave code { flex: 1 1 200px; padding: 10px 12px; border-radius: var(--raio-p); background: var(--pr-fundo); border: 1px dashed var(--pr-borda-campo); overflow-wrap: anywhere; font-size: .95rem; letter-spacing: .04em; }
.codigos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.codigos li { padding: 10px; border-radius: var(--raio-p); background: var(--pr-fundo); border: 1px solid var(--pr-borda); text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.aviso-forte { padding: 12px; border-radius: var(--raio-p); background: #FFF6E0; border: 1px solid var(--pr-aviso); color: var(--pr-texto); font-size: .92rem; }
.campo-codigo { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.regras-senha { list-style: none; padding: 0; margin: -4px 0 14px; font-size: .86rem; color: var(--pr-texto-secundario); }
.regras-senha li::before { content: "\2022  "; }
.regras-senha li.ok { color: var(--pr-sucesso); }
.regras-senha li.ok::before { content: "\2713  "; }
.carregando { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--pr-texto-secundario); }

/* ---------- casca do app ---------- */
.app { min-height: 100vh; }
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 8px 16px;
  background: var(--pr-superficie); border-bottom: 1px solid var(--pr-borda);
}
.topo-marca { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.topo-marca .marca-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-icone {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: var(--raio-p);
  border: 1px solid var(--pr-borda); background: var(--pr-superficie); color: var(--pr-texto);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none;
}
.btn-icone:hover { background: var(--pr-destaque-suave); }
.btn-icone svg { width: 20px; height: 20px; }

.navegacao {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: var(--altura-nav); padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--pr-superficie); border-top: 1px solid var(--pr-borda);
}
.navegacao a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 6px 4px; color: var(--pr-texto-secundario); text-decoration: none;
  font-size: .74rem; font-weight: 600;
}
.navegacao a svg { width: 22px; height: 22px; }
.navegacao a[aria-current="page"] { color: var(--pr-primaria); }
.navegacao a[aria-current="page"] .nav-ico { background: var(--pr-destaque-suave); }
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 28px; border-radius: 14px; }
.so-largo { display: none !important; }

.aviso-conta { margin: 12px 16px 0; padding: 12px; border-radius: var(--raio-p); background: #FBEDEC; border: 1px solid var(--pr-erro); color: var(--pr-texto); font-size: .92rem; }
.conteudo { padding: 16px 16px calc(var(--altura-nav) + 32px); max-width: 980px; margin: 0 auto; }
.conteudo:focus { outline: none; }
.cabecalho-tela { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cabecalho-tela p { color: var(--pr-texto-secundario); font-size: .92rem; width: 100%; }
.secao { margin-top: 24px; }
.secao > h2 { margin-bottom: 10px; }
.carregando-inline, .vazio { color: var(--pr-texto-secundario); padding: 12px 0; }

.cartao { background: var(--pr-superficie); border: 1px solid var(--pr-borda); border-radius: var(--raio); padding: 16px; box-shadow: var(--sombra); }
.cartao + .cartao { margin-top: 12px; }
.lista-cartoes { display: grid; gap: 12px; }
.lista-cartoes > .cartao + .cartao { margin-top: 0; }
.cartao-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cartao-topo h3 { overflow-wrap: anywhere; }
.cartao .linha { color: var(--pr-texto-secundario); font-size: .92rem; margin-top: 4px; overflow-wrap: anywhere; }
.cartao .motivo { margin-top: 8px; padding: 10px; border-radius: var(--raio-p); background: #FBEDEC; color: var(--pr-texto); font-size: .9rem; }
.cartao .nota { margin-top: 8px; padding: 10px; border-radius: var(--raio-p); background: var(--pr-destaque-suave); color: var(--pr-texto); font-size: .9rem; }
.link-oferta { margin-top: 10px; padding: 10px 12px; border-radius: var(--raio-p); background: var(--pr-fundo); border: 1px solid var(--pr-borda); font-size: .86rem; overflow-wrap: anywhere; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--pr-superficie); border: 1px solid var(--pr-borda); border-radius: var(--raio); padding: 14px; box-shadow: var(--sombra); min-width: 0; }
.kpi .rotulo { color: var(--pr-texto-secundario); font-size: .8rem; font-weight: 600; }
.kpi .valor { font-size: 1.2rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi.largo { grid-column: 1 / -1; }

.passos { list-style: none; padding: 0; display: grid; gap: 8px; }
.passo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--raio-p); background: var(--pr-superficie); border: 1px solid var(--pr-borda); }
.passo-marca { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pr-borda-campo); color: var(--pr-texto-secundario); font-weight: 700; font-size: .85rem; }
.passo.feito .passo-marca { background: var(--pr-sucesso); border-color: var(--pr-sucesso); color: var(--pr-texto-botao); }
.passo-texto { flex: 1 1 auto; min-width: 0; }
.passo-texto small { display: block; color: var(--pr-texto-secundario); font-size: .82rem; }
.passo .btn { flex: none; }
.progresso { height: 8px; border-radius: 4px; background: var(--pr-borda); overflow: hidden; margin: 8px 0 12px; }
.progresso-barra { display: block; height: 100%; background: var(--pr-primaria); border-radius: 4px; }
.progresso-barra.p0 { width: 0; } .progresso-barra.p1 { width: 20%; } .progresso-barra.p2 { width: 40%; }
.progresso-barra.p3 { width: 60%; } .progresso-barra.p4 { width: 80%; } .progresso-barra.p5 { width: 100%; }

.grafico-caixa { margin-top: 12px; }
.grafico { display: block; width: 100%; height: auto; }
.grafico .barra { fill: var(--pr-primaria); }
.grafico .barra:hover { fill: var(--pr-primaria-hover); }
.grafico .base { stroke: var(--pr-borda-campo); stroke-width: 1; }
.grafico .eixo { fill: var(--pr-texto-secundario); font-size: 10px; font-family: inherit; }

.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.selo.analise { background: var(--pr-destaque); color: var(--pr-texto-sobre-destaque); }
.selo.aprovada { background: var(--pr-destaque-suave); color: var(--pr-sucesso); border-color: var(--pr-sucesso); }
.selo.recusada { background: #FBEDEC; color: var(--pr-erro); border-color: var(--pr-erro); }
.selo.pausada { background: var(--pr-fundo); color: var(--pr-texto-secundario); border-color: var(--pr-borda-campo); }
.selo.neutro { background: var(--pr-fundo); color: var(--pr-texto-secundario); border-color: var(--pr-borda); }

.filtros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.filtros .campo { margin-bottom: 0; }
.filtros .largo { grid-column: 1 / -1; }

.lista-vendas { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; }
.venda-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; min-height: 44px;
  padding: 12px; border-radius: var(--raio-p); border: 1px solid var(--pr-borda); background: var(--pr-superficie);
  color: var(--pr-texto); font: inherit; text-align: left; cursor: pointer;
}
.venda-item:hover { border-color: var(--pr-primaria); }
.venda-item .nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venda-item .valor { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.venda-item .sub { color: var(--pr-texto-secundario); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lancamentos { list-style: none; padding: 0; }
.lancamentos li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pr-borda); }
.lancamentos li:last-child { border-bottom: 0; }
.lancamentos .desc { min-width: 0; overflow-wrap: anywhere; }
.lancamentos .desc small { display: block; color: var(--pr-texto-secundario); font-size: .82rem; }
.lancamentos .valor { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nota-repasse { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--raio-p); background: var(--pr-destaque-suave); margin-top: 12px; font-size: .92rem; }

.dados { display: grid; gap: 0; }
.dados > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pr-borda); }
.dados > div:last-child { border-bottom: 0; }
.dados dt { color: var(--pr-texto-secundario); font-size: .88rem; }
.dados dd { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- folha que sobe de baixo ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(20, 38, 29, .45); }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--pr-superficie); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 32px rgba(20, 38, 29, .18);
  padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0));
  animation: subir .2s ease-out;
}
.folha-topo { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 10px; background: var(--pr-superficie); border-bottom: 1px solid var(--pr-borda); margin-bottom: 14px; }
.folha-topo::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--pr-borda); }
.folha-topo h2 { overflow-wrap: anywhere; }
.folha .botoes { margin-bottom: 14px; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- avisos ---------- */
.avisos { position: fixed; left: 16px; right: 16px; bottom: calc(var(--altura-nav) + 12px); z-index: 60; display: grid; gap: 8px; pointer-events: none; }
.aviso { padding: 12px 14px; border-radius: var(--raio-p); background: var(--pr-texto); color: var(--pr-superficie); font-size: .92rem; box-shadow: var(--sombra); pointer-events: auto; }
.aviso.erro { background: var(--pr-erro); color: var(--pr-texto-botao); }

/* ---------- admin de produtores ---------- */
.admin-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--pr-superficie); border-bottom: 1px solid var(--pr-borda); }
.admin-conteudo { padding: 16px 16px 48px; max-width: 1100px; margin: 0 auto; }
.abas-admin { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.abas-admin button { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pr-borda); background: var(--pr-superficie); color: var(--pr-texto-secundario); font: inherit; font-weight: 600; cursor: pointer; }
.abas-admin button[aria-selected="true"] { background: var(--pr-primaria); border-color: var(--pr-primaria); color: var(--pr-texto-botao); }
.contador { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--pr-destaque-suave); color: var(--pr-texto); font-size: .78rem; text-align: center; }
.abas-admin button[aria-selected="true"] .contador { background: var(--pr-superficie); color: var(--pr-primaria); }
.admin-avisos { bottom: 16px; }

/* ---------- telas largas: barra lateral (computador a partir de 960 px; até 959 px é o layout do celular) ---------- */
@media (min-width: 600px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi.largo { grid-column: auto; }
  .filtros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filtros .largo { grid-column: auto; }
  .cartao-publico { padding: 28px 24px; }
}
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topo { grid-column: 1 / -1; }
  .navegacao {
    position: sticky; top: 56px; bottom: auto; align-self: start;
    display: flex; flex-direction: column; gap: 4px; height: calc(100vh - 56px);
    padding: 16px 12px; border-top: 0; border-right: 1px solid var(--pr-borda);
  }
  .navegacao a { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--raio-p); font-size: .95rem; }
  .navegacao a[aria-current="page"] { background: var(--pr-destaque-suave); }
  .navegacao a[aria-current="page"] .nav-ico { background: transparent; }
  .nav-ico { width: 24px; height: 24px; }
  .so-largo:not([hidden]) { display: flex !important; }
  .so-estreito { display: none !important; }
  .conteudo { padding: 28px 40px 56px; margin: 0 auto; max-width: 1200px; width: 100%; }
  .aviso-conta { margin: 16px 32px 0; }
  .avisos { left: auto; right: 24px; bottom: 24px; width: 360px; }
  .folha-fundo { display: block; }
  .folha { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: 86vh; transform: translate(-50%, -50%); border-radius: 18px; padding-bottom: 20px; animation: none; }
  .folha-topo::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 0.15.0: simulador de taxas, títulos de seção do cadastro completo e página do contrato */
.simulador { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--borda, #DCE5DE); border-radius: 10px; background: var(--destaque-suave, #E7F3EC); }
.simulador h3 { margin: 0 0 6px; font-size: 15px; }
.simulador ul { margin: 0; padding-left: 18px; }
.simulador li { margin: 4px 0; font-size: 14px; }
.rotulo-secao { font-size: 16px; margin: 20px 0 8px; }
.pagina-contrato { background: #F4F7F3; color: #14261D; font-family: Inter, system-ui, sans-serif; }
.contrato { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; line-height: 1.55; }
.contrato table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.contrato th, .contrato td { border: 1px solid #DCE5DE; padding: 8px; text-align: left; vertical-align: top; }
.contrato-rodape { margin-top: 24px; font-size: 13px; color: #4F6157; word-break: break-all; }
.cartao.arquivado { opacity: .75; }

/* ---------- 0.15.1: computador e celular ----------
   Mesmo HTML, CSS por largura. Até 959 px: uma coluna, barra de navegação embaixo (como antes).
   A partir de 960 px: telas públicas em duas colunas (painel da marca + cartão do formulário), cadastro em duas colunas de
   campos e área logada com menu lateral fixo e conteúdo de até 1200 px. */
.so-computador { display: none !important; }
.painel-marca { width: 100%; max-width: 440px; }
.publica-caixa > .cartao-publico { margin-top: 0; }
.grade-campos { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
.grade-campos > .largo { grid-column: 1 / -1; }
.grade-campos > .campo { min-width: 0; }
fieldset.campo { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.rotulo-secao { padding-top: 14px; border-top: 1px solid var(--pr-borda); color: var(--pr-texto); }
#form-cadastro > .ajuda:first-child + .rotulo-secao { border-top: 0; padding-top: 0; margin-top: 8px; }

/* celular: o painel da marca é só o topo, o título e a frase (como antes) */
@media (max-width: 959px) {
  .tela-publica { flex-direction: column; align-items: center; justify-content: flex-start; }
  .painel-marca .publica-titulo { margin-top: 0; }
  .painel-marca + .publica-caixa { margin-top: 0; }
}

@media (min-width: 640px) {
  .grade-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .so-computador:not([hidden]) { display: block !important; }
  .beneficios.so-computador:not([hidden]) { display: flex !important; }
  .so-celular { display: none !important; }
  .taxas div { display: flex; }

  /* telas públicas: duas colunas */
  .tela-publica { display: grid; grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); padding: 0; align-items: start; }
  .painel-marca {
    position: sticky; top: 0; max-width: none; height: 100vh; overflow-y: auto; align-self: start;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    padding: 56px clamp(32px, 4vw, 72px);
    background: var(--pr-destaque-suave); border-right: 1px solid var(--pr-borda);
  }
  .painel-marca > * { max-width: 480px; }
  .painel-logo { width: 200px; height: auto; margin: -20px 0 0 -28px; }
  .painel-rotulo { color: var(--pr-primaria); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
  .painel-marca .publica-titulo, .painel-titulo { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; color: var(--pr-texto); }
  .painel-marca .publica-sub { font-size: 1.05rem; margin-bottom: 28px; }
  .beneficios { flex-direction: column; gap: 14px; list-style: none; padding: 0; margin: 0 0 28px; }
  .beneficios li { display: flex; align-items: flex-start; gap: 12px; color: var(--pr-texto-secundario); }
  .beneficios strong { color: var(--pr-texto); font-weight: 600; }
  .beneficio-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pr-superficie); color: var(--pr-primaria); border: 1px solid var(--pr-borda); }
  .beneficio-ico svg { width: 20px; height: 20px; }
  .painel-taxas { padding: 16px 18px; border-radius: var(--raio); background: var(--pr-superficie); border: 1px solid var(--pr-borda); }
  .painel-taxas-titulo { font-weight: 700; margin-bottom: 8px; }
  .taxas { margin: 0; }
  .taxas div { justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid var(--pr-borda); }
  .taxas div:first-child { border-top: 0; }
  .taxas dt { color: var(--pr-texto-secundario); font-size: .9rem; white-space: nowrap; }
  .taxas dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

  .publica-caixa { max-width: 640px; width: 100%; justify-self: center; padding: 56px 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .publica-caixa > .cartao-publico { padding: 32px; }
  .cartao-largo { max-width: none; }
  .publica-caixa > .cartao-publico { width: 100%; max-width: 520px; align-self: center; }
  .publica-caixa > .cartao-largo:has(#aba-cadastro[aria-selected="true"]) { max-width: none; }
  #form-cadastro .btn.cheio { width: auto; min-width: 280px; }

  /* área logada */
  .navegacao { overflow-y: auto; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
  .kpi { padding: 18px; }
  .kpi .valor { font-size: 1.5rem; }
  .lista-cartoes { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .cabecalho-tela h1 { font-size: 1.6rem; }
  .avisos { bottom: 24px; }
  .grafico { max-height: 280px; }
  .cabecalho-tela select { width: auto; min-width: 220px; }
}
@media (min-width: 1280px) {
  .publica-caixa { max-width: 720px; }
}

/* ---------- 0.15.1: Google Authenticator (lojas, passo a passo, aparelho) ----------
   data-aparelho no <html> (iphone, android ou computador) vem do JS da página. Sem JS: tudo como no computador. */
html:not([data-aparelho="iphone"]):not([data-aparelho="android"]) .so-ua-celular { display: none !important; }
html[data-aparelho="iphone"] .so-ua-computador, html[data-aparelho="android"] .so-ua-computador { display: none !important; }
.lojas-autenticador { margin: 14px 0 16px; padding: 14px; border-radius: 12px; background: var(--pr-destaque-suave); border: 1px solid var(--pr-borda); }
.lojas-titulo { margin: 0 0 10px; font-weight: 700; color: var(--pr-texto); }
.lojas { display: flex; flex-wrap: wrap; gap: 8px; }
.lojas .loja { flex: 1 1 160px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
html[data-aparelho="iphone"] .loja-iphone, html[data-aparelho="android"] .loja-android { order: -1; flex-basis: 100%; background: var(--pr-primaria); border-color: var(--pr-primaria); color: var(--pr-texto-botao); }
html[data-aparelho="iphone"] .loja-iphone:hover, html[data-aparelho="android"] .loja-android:hover { background: var(--pr-primaria-hover); color: var(--pr-texto-botao); }
.qr-loja { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: .88rem; color: var(--pr-texto-secundario); }
.qr-loja img { flex: none; width: 112px; height: 112px; border-radius: 8px; border: 1px solid var(--pr-borda); background: #fff; image-rendering: pixelated; }
.qr-loja p { margin: 0; }
.passo-a-passo { padding-left: 0; list-style: none; counter-reset: passo; margin: 14px 0 16px; }
.passo-a-passo > li { counter-increment: passo; position: relative; padding: 2px 0 10px 40px; color: var(--pr-texto); }
.passo-a-passo > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pr-primaria); color: var(--pr-texto-botao); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.qr-totp { margin: 0 0 12px; display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--pr-texto-secundario); }
.qr-totp img { flex: none; width: 180px; height: 180px; border: 1px solid var(--pr-borda); border-radius: 10px; background: #fff; image-rendering: pixelated; }
.ajuda-codigo { margin: -6px 0 12px; font-size: .86rem; color: var(--pr-texto-secundario); }
.ajuda-codigo a { font-weight: 600; }
.usuario-oculto { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.motivo-estorno:empty { display: none; }
.copiar-chave { margin: 8px 0 14px; }
#totp-otpauth { margin-bottom: 12px; }

/* Central de Ajuda (propostas/ajuda): no celular o "?" fica no topo, ao lado de Conta; no computador vai no menu */
.topo .btn-ajuda-topo { margin-left: auto; margin-right: 6px; }

/* 0.16.0: catálogo da conta própria, vendedores e sócios */
.filtro-propria { margin: 0 0 14px; }
.filtro-propria .btn[aria-pressed="true"] { background: var(--pr-destaque-suave); border-color: var(--pr-primaria); color: var(--pr-primaria); }
.ofertas-proprias { list-style: none; padding: 0; margin: 8px 0; }
.oferta-propria { padding: 10px 0; border-bottom: 1px solid var(--pr-borda); }
.oferta-propria:last-child { border-bottom: 0; }
.oferta-propria-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.oferta-propria-topo strong { min-width: 0; overflow-wrap: anywhere; }
.cartao.inativo { opacity: .72; }
.tabela-rolagem { overflow-x: auto; margin: 10px 0; -webkit-overflow-scrolling: touch; }
.tabela { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabela th, .tabela td { padding: 8px 10px; border-bottom: 1px solid var(--pr-borda); text-align: left; white-space: nowrap; }
.tabela th { color: var(--pr-texto-secundario); font-weight: 600; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.motivo-estorno select { width: 100%; }
.motivo-estorno textarea { width: 100%; }
