/* BNE Estoque · painel da equipe (celular primeiro)
   Paleta do kit oficial: azul #050096, laranja #FF5300. */
:root {
  color-scheme: light;
  --azul: #050096;
  --azul-escuro: #03006b;
  --azul-10: rgba(5, 0, 150, .08);
  --azul-25: rgba(5, 0, 150, .25);
  --laranja: #ff5300;
  --laranja-escuro: #d94700;
  --verde: #0f8a4b;
  --vermelho: #c62828;
  --tinta: #16161d;
  --tinta-2: #5b5b6b;
  --tinta-3: #8c8c9b;
  --fundo: #f1f1f5;
  --papel: #ffffff;
  --linha: #e3e3ea;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(5, 0, 150, .06), 0 8px 24px -12px rgba(5, 0, 150, .25);
  --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-marca: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --topo-h: 56px;
  --abas-h: 64px;
  --seguro-topo: env(safe-area-inset-top, 0px);
  --seguro-base: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.4;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── carregando ─────────────────────────────── */
.carregando {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--azul);
}
.carregando img { width: 120px; animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }

/* ── login ──────────────────────────────────── */
.tela-login {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: calc(24px + var(--seguro-topo)) 20px calc(24px + var(--seguro-base));
  background:
    linear-gradient(102deg, transparent 0 62%, rgba(255, 83, 0, .9) 62% 66%, transparent 66%),
    var(--azul);
}
.login-caixa {
  width: 100%; max-width: 380px;
  background: var(--papel); border-radius: 20px; padding: 28px 22px 22px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}
.login-logo {
  width: 132px; margin: -64px auto 10px; padding: 14px 18px;
  background: var(--azul); border-radius: 12px; transform: skewX(-12deg);
}
.login-sub {
  text-align: center; margin: 0 0 20px;
  font: italic 700 15px/1 var(--fonte-marca); text-transform: uppercase; letter-spacing: .04em;
  color: var(--azul);
}
.login-erro { min-height: 20px; margin: 4px 0 8px; color: var(--vermelho); font-size: 14px; }
.login-ajuda { margin: 14px 0 0; text-align: center; color: var(--tinta-3); font-size: 13px; }

/* ── campos ─────────────────────────────────── */
.campo { display: block; margin-bottom: 14px; }
.campo > span, .rotulo {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--tinta-2);
}
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--linha); border-radius: 12px; background: var(--papel);
  font-size: 16px; /* 16px evita o zoom automático do iPhone */
  outline: none; transition: border-color .15s;
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); }
.campo .ajuda { display: block; margin-top: 6px; font-size: 12.5px; color: var(--tinta-3); }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prefixo { position: relative; }
.prefixo::before {
  content: attr(data-prefixo); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--tinta-3); font-weight: 600; pointer-events: none;
}
.prefixo input { padding-left: 44px; }
.sufixo { position: relative; }
.sufixo::after {
  content: attr(data-sufixo); position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--tinta-3); font-weight: 600; pointer-events: none;
}

/* escolhas em pílula (câmbio, combustível, cor, opcionais) */
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilula {
  min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--linha); border-radius: 999px; background: var(--papel);
  font-size: 14.5px; font-weight: 600; color: var(--tinta-2);
}
.pilula[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.pilula-mais { border-style: dashed; color: var(--azul); }

.interruptor {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 14px; margin-bottom: 14px;
  background: var(--papel); border: 1.5px solid var(--linha); border-radius: 12px;
  font-weight: 600;
}
.interruptor input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: #cfcfd8; position: relative; transition: background .2s; flex: none; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.interruptor input:checked { background: var(--verde); }
.interruptor input:checked::after { transform: translateX(20px); }

/* ── botões ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px;
  border: 0; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-grande { width: 100%; min-height: 54px; font-size: 17px; }
.btn-laranja { background: var(--laranja); color: #fff; }
.btn-laranja:active { background: var(--laranja-escuro); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-claro { background: var(--azul-10); color: var(--azul); }
.btn-linha { background: var(--papel); color: var(--azul); border: 1.5px solid var(--azul-25); }
.btn-perigo { background: #fdecec; color: var(--vermelho); }
.btn-whats { background: #1a9e55; color: #fff; }
.btn-whats:active { background: #158446; }
.barra-acoes .btn-vendido { flex: 0 0 auto; padding: 12px 16px; }
.msg-previa {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px 12px 12px 4px;
  background: #e5f8d9; color: #1b2a1b; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.btn-texto { background: none; color: var(--azul); padding: 8px 4px; min-height: 40px; }

/* ── topo e abas ────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: calc(var(--topo-h) + var(--seguro-topo)); padding: var(--seguro-topo) 14px 0;
  background: var(--azul); color: #fff;
}
.topo-logo { height: 20px; width: auto; flex: none; }
.topo-titulo {
  flex: 1; min-width: 0; margin: 0;
  font: italic 700 17px/1.1 var(--fonte-marca); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topo-salvo { font-size: 12.5px; opacity: .85; white-space: nowrap; }
.topo-voltar { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; color: #fff; }
.topo-voltar svg, .abas svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topo.com-voltar .topo-logo { display: none; }
/* sino dos avisos (05/11/2026) */
.sino { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: #fff; }
.sino svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sino-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--laranja); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.avisos-lista { display: grid; gap: 0; margin: 4px 0 10px; }
.aviso { display: grid; gap: 2px; width: 100%; padding: 12px 4px 12px 14px; border: 0; border-top: 1px solid var(--linha); background: none; text-align: left; color: var(--tinta); position: relative; }
.aviso:first-child { border-top: 0; }
.aviso b { font-size: 15px; }
.aviso span { font-size: 13.5px; color: var(--tinta-2); }
.aviso small { font-size: 12px; color: var(--tinta-3); }
.aviso-novo::before { content: ''; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); }
.avisos-vazio { margin: 8px 0; color: var(--tinta-3); font-size: 14px; }
.avisos-ok { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--verde); }
.avisos-dica { margin-bottom: 8px; }

.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; height: calc(var(--abas-h) + var(--seguro-base)); padding-bottom: var(--seguro-base);
  background: var(--papel); border-top: 1px solid var(--linha);
}
.abas a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--tinta-3); text-decoration: none; font-size: 12px; font-weight: 600;
}
.abas a[aria-current="page"] { color: var(--azul); }

.conteudo { padding: 16px 16px calc(var(--abas-h) + var(--seguro-base) + 96px); max-width: 720px; margin: 0 auto; }
.conteudo.sem-abas { padding-bottom: calc(var(--seguro-base) + 120px); }

/* ── estoque ────────────────────────────────── */
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros .pilula { flex: none; }
.filtros .pilula b { margin-left: 4px; opacity: .7; font-weight: 700; }
.busca { display: block; margin-bottom: 14px; }
.busca input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8c9b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 14px center / 20px; font-size: 16px; outline: none; }
.busca input:focus { border-color: var(--azul); }

.lista { display: grid; gap: 12px; }
.cartao {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px;
  padding: 10px; border-radius: var(--raio); background: var(--papel); box-shadow: var(--sombra);
  color: inherit; text-decoration: none;
}
.cartao-foto { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--azul-10); color: var(--azul-25); display: grid; place-items: center; }
.cartao-foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao-foto svg { width: 80%; }
.cartao-corpo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cartao-titulo { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-sub { margin: 0; font-size: 13.5px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-preco { margin-top: auto; font-weight: 800; font-size: 16px; color: var(--azul); }
.cartao-rodape { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--tinta-3); }

.etiqueta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.etiqueta-rascunho { background: #fff4e5; color: #a35200; }
.etiqueta-publicado { background: #e6f6ed; color: var(--verde); }
.etiqueta-vendido { background: #ececf1; color: var(--tinta-2); }
.etiqueta-exemplo { background: var(--azul-10); color: var(--azul); }

.vazio { text-align: center; padding: 48px 16px; color: var(--tinta-2); }
.vazio svg { width: 160px; color: var(--azul-25); margin: 0 auto 12px; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--abas-h) + var(--seguro-base) + 16px); z-index: 15;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--laranja); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 24px -8px rgba(255, 83, 0, .7);
}
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* ── editor do veículo ──────────────────────── */
.resumo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.resumo .progresso { font-size: 13px; color: var(--tinta-2); }
.secao {
  margin-bottom: 16px; padding: 16px 14px;
  background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra);
}
.secao-titulo {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 12px;
  font: italic 700 16px/1.1 var(--fonte-marca); text-transform: uppercase; letter-spacing: .02em; color: var(--azul);
}
.secao-titulo small { font: 600 12.5px var(--fonte); text-transform: none; letter-spacing: 0; color: var(--tinta-3); }

/* seções do veículo em abas (31/10/2026): o cabeçalho inteiro é o toque
   (sem alvo dividido), seta à direita, uma linha de resumo com o que falta */
details.secao {
  margin-bottom: 10px; padding: 0;
  scroll-margin-top: calc(var(--topo-h) + var(--seguro-topo) + 10px);
}
.secao-cab {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px;
  list-style: none; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  border-radius: var(--raio);
}
.secao-cab::-webkit-details-marker { display: none; }
.secao-cab::marker { content: ''; }
.secao-cab:focus-visible { outline: 3px solid var(--azul-25); outline-offset: 2px; }
.secao-cab-texto { flex: 1; min-width: 0; display: grid; gap: 4px; }
.secao-cab .secao-titulo { margin: 0; justify-content: flex-start; }
.secao-resumo {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13.5px; line-height: 1.3; color: var(--tinta-2);
}
.secao-resumo:empty { display: none; }
.secao[data-estado="falta"] .secao-resumo { color: #b4420a; font-weight: 650; }
.secao[data-estado="falta"] .secao-resumo::before {
  content: ''; display: inline-block; width: 9px; height: 9px; margin: 0 8px 1px 1px;
  background: var(--laranja); transform: skewX(-12deg);
}
.secao[data-estado="ok"] .secao-resumo::before { content: '✓'; margin-right: 6px; color: var(--verde); font-weight: 800; }
.secao-seta {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--azul-10); color: var(--azul);
  transition: transform .2s cubic-bezier(.2, 0, 0, 1);
}
.secao-seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
details.secao[open] > .secao-cab { border-radius: var(--raio) var(--raio) 0 0; box-shadow: inset 0 -1px 0 var(--linha); }
details.secao[open] .secao-seta { transform: rotate(180deg); }
.secao-corpo { padding: 14px 14px 16px; }
@media (prefers-reduced-motion: reduce) { .secao-seta { transition: none; } }
.dica {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--azul-10); color: var(--azul); font-size: 13.5px;
}
.dica svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foto-caixa {
  position: relative; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #fafaff;
  border: 2px dashed var(--azul-25);
}
.foto-caixa.feita { border: 2px solid transparent; background: #000; }
.foto-caixa.capa { grid-column: 1 / -1; }
.foto-area { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(5, 0, 150, .32); border: 0; background: none; padding: 0; width: 100%; }
.foto-area svg { width: 70%; height: auto; margin-top: -8%; }
.foto-area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-obrigatoria {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 2px 6px; border-radius: 5px; background: var(--laranja); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.foto-rotulo {
  position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2;
  font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--azul); text-align: left;
}
.foto-rotulo small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--tinta-3); }
.foto-caixa.feita .foto-rotulo {
  top: 0; bottom: auto; left: 0; right: 0; padding: 8px 8px 18px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent); color: #fff;
}
.foto-caixa.capa .foto-rotulo { font-size: 15px; }
.foto-ok {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--verde); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.foto-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.foto-botoes { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; padding: 6px; }
.foto-caixa.feita .foto-botoes { display: none; }
.foto-botoes .btn { min-width: 0; min-height: 44px; padding: 8px; gap: 6px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.foto-botoes .btn-galeria { width: 44px; padding: 0; }
.foto-enviando {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; align-content: center; gap: 8px;
  background: rgba(5, 0, 150, .72); color: #fff; font-size: 13px; font-weight: 700;
}
.giro { width: 30px; height: 30px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.foto-erro { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 8px; padding: 10px; background: rgba(198, 40, 40, .9); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }

.diferenca { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: #e6f6ed; color: var(--verde); font-size: 13px; font-weight: 700; }
.diferenca.acima { background: #fdecec; color: var(--vermelho); }

/* FIPE ligada à tabela: campo travado, com a versão, o código e o mês embaixo */
.campo input[readonly] { background: var(--azul-10); border-color: transparent; color: var(--azul); font-weight: 700; }
.fipe-info { margin: -6px 0 14px; font-size: 13px; color: var(--tinta-2); line-height: 1.35; }
.fipe-info b { color: var(--tinta); }
.fipe-info .aviso { color: #a35200; font-weight: 600; }
.fipe-info .fipe-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fipe-info .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* gaveta de busca na FIPE: marca → modelo → ano → valor */
.fipe-passo { margin: 0 0 12px; }
.fipe-passo > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.fipe-passo .escolhido {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--azul-10); color: var(--azul); font-weight: 700;
}
.fipe-passo .escolhido button { border: 0; background: none; color: var(--azul); font-weight: 700; font-size: 14px; padding: 4px 0; }
.fipe-lista { max-height: 38dvh; overflow-y: auto; margin-top: 8px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--papel); }
.fipe-lista button {
  display: block; width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--linha);
  background: none; text-align: left; font-size: 15px; color: var(--tinta);
}
.fipe-lista button:last-child { border-bottom: 0; }
.fipe-lista button:active { background: var(--azul-10); }
.fipe-lista .nada { padding: 12px 14px; color: var(--tinta-3); font-size: 14px; }
.fipe-carregando { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--tinta-2); font-size: 14px; }
.fipe-carregando .giro { width: 22px; height: 22px; border-width: 3px; border-color: var(--azul-25); border-top-color: var(--azul); }
.fipe-resultado { margin: 4px 0 14px; padding: 14px; border-radius: 12px; background: var(--azul); color: #fff; }
.fipe-resultado .valor { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; }
.fipe-resultado .versao { margin: 6px 0 0; font-weight: 700; }
.fipe-resultado .detalhe { margin: 4px 0 0; font-size: 13px; opacity: .85; }
.fipe-erro { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: var(--vermelho); font-size: 14px; font-weight: 600; }

.barra-acoes {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 18;
  display: flex; gap: 10px;
  padding: 12px 16px calc(12px + var(--seguro-base));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--linha);
}
.barra-acoes .btn { flex: 1; }
.barra-acoes .btn-mais { flex: none; width: 54px; padding: 0; }

.historico { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--tinta-2); }
.historico li { padding: 8px 0; border-bottom: 1px solid var(--linha); }
.historico li:last-child { border-bottom: 0; }

/* ── equipe e conta ─────────────────────────── */
.pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.pessoa:last-child { border-bottom: 0; }
.pessoa-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; }
.pessoa.inativa .pessoa-avatar { background: #b9b9c6; }
.pessoa-info { flex: 1; min-width: 0; }
.pessoa-nome { margin: 0; font-weight: 700; }
.pessoa-email { margin: 0; font-size: 13px; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.credenciais { padding: 14px; border-radius: 12px; background: var(--azul-10); font-size: 15px; word-break: break-all; }
.credenciais b { color: var(--azul); }

/* ── folha (bottom sheet) e toast ───────────── */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(10, 10, 30, .45); animation: aparecer .15s ease-out; }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 88dvh; overflow-y: auto;
  padding: 10px 16px calc(18px + var(--seguro-base));
  background: var(--papel); border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  animation: subir .2s ease-out;
}
.folha::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #d6d6df; }
.folha h2 { margin: 0 0 6px; font-size: 19px; }
.folha p { margin: 0 0 14px; color: var(--tinta-2); }
.folha .opcoes { display: grid; gap: 8px; }
.folha .opcoes .btn { justify-content: flex-start; width: 100%; }
.folha ul.faltando { margin: 0 0 16px; padding-left: 20px; color: var(--tinta); }
.folha ul.faltando li { margin-bottom: 6px; }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--abas-h) + var(--seguro-base) + 84px); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--tinta); color: #fff; font-size: 14.5px; font-weight: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
}
.toast.mostrar { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: var(--vermelho); }

.foto-cheia { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #000; }
.foto-cheia img { max-width: 100%; max-height: 100%; object-fit: contain; }
.foto-cheia button { position: absolute; top: calc(12px + var(--seguro-topo)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 24px; }

@media (min-width: 720px) {
  .fotos { grid-template-columns: 1fr 1fr 1fr; }
  .foto-caixa.capa { grid-column: span 2; grid-row: span 2; }
  .barra-acoes { justify-content: center; }
  .barra-acoes .btn { flex: 0 1 260px; }
}

/* ── Pasta do veículo (documentos.js) e aba Negócios (26/10/2026) ── */
.etiqueta-avaliacao { background: #fff1e6; color: #b4420a; }
.etiqueta-consignado { background: #eef3ff; color: #2648b5; }
.resumo .avaliacao-aviso { flex-basis: 100%; color: #b4420a; font-weight: 600; }
.docs-grupo { margin: 14px 0 8px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-caixa {
  position: relative; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #fafaff;
  border: 2px dashed var(--azul-25);
}
.doc-caixa.feita { border: 2px solid var(--verde); background: #f3fbf6; }
.doc-area { position: relative; min-height: 118px; display: grid; place-items: center; align-content: start; color: rgba(5, 0, 150, .32); border: 0; background: none; padding: 12px 8px 50px; width: 100%; }
.doc-area svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-caixa.feita .doc-area { color: var(--verde); }
.doc-rotulo { position: absolute; left: 8px; right: 36px; bottom: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--azul); text-align: left; }
.doc-rotulo small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--tinta-3); }
.doc-botoes { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; padding: 6px; }
.doc-caixa.feita .doc-botoes { display: none; }
.doc-botoes .btn { min-width: 0; min-height: 44px; padding: 8px; gap: 6px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.doc-botoes .btn-galeria { width: 44px; padding: 0; }
.doc-botoes .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-lista { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.doc-lista li { display: flex; align-items: center; gap: 8px; }
.doc-lista a { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--azul-10); color: var(--azul); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.doc-lista a svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-lista a small { display: block; font-size: 12px; font-weight: 500; color: var(--tinta-2); }
.doc-lista .btn-perigo { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; }
.doc-sem-link { flex: 1; color: var(--tinta-3); }
.lista-neg { display: grid; gap: 10px; }
.negocio { display: block; padding: 12px 14px; border-radius: 14px; background: var(--papel); box-shadow: var(--sombra); color: var(--tinta); text-decoration: none; }
.negocio-topo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font-size: 15.5px; }
.negocio-topo b { color: var(--azul); }
.negocio-topo > span:not(.etiqueta) { color: var(--tinta-3); font-size: 13px; }
.negocio-linha { font-size: 13.5px; color: var(--tinta-2); line-height: 1.45; }
.negocio-rodape { margin-top: 4px; font-size: 12.5px; color: var(--tinta-3); }
@media (min-width: 700px) { .docs { grid-template-columns: 1fr 1fr 1fr; } }

/* aba Avaliação (call de 31/10/2026): revisão em linhas, "Atenção" marcado em laranja escuro */
.revisao { display: grid; gap: 8px; }
.revisao-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.revisao-linha:last-child { border-bottom: 0; }
.revisao-linha > span { font-weight: 600; }
.revisao-linha .pilulas { flex-wrap: nowrap; }
.pilula[data-valor="atencao"][aria-pressed="true"] { background: #b4420a; border-color: #b4420a; }

/* ===== check-up do celular (01/11/2026), painel ===== */
/* alvos de toque de 44 px */
.pilula { min-height: 44px; }
.topo-voltar { width: 44px; height: 44px; margin-left: -10px; }
.btn-texto, .fipe-info .btn, .pessoa .btn { min-height: 44px; }
.fipe-passo .escolhido button { min-height: 44px; padding: 0 12px; }
/* fotos e documentos: "Câmera" só com o ícone abaixo de 390 px (estourava a caixinha a 320/360) */
@media (max-width: 389px) { .foto-botoes .btn-rotulo, .doc-botoes .btn-rotulo { display: none; } }
/* foto tirada não deixa faixa preta quando a vizinha está vazia (mais alta) */
.foto-caixa.feita .foto-area, .doc-caixa.feita .doc-area { flex-grow: 1; }
/* rótulo das caixinhas de documento não passa por cima do ícone nem estoura a caixinha */
.doc-area { overflow: hidden; }
.doc-rotulo { overflow-wrap: anywhere; }
.doc-caixa:not(.feita) .doc-rotulo { right: 8px; }
/* nome comprido de PDF não empurra a folha de lado (e o × de apagar some) */
.doc-lista a { min-width: 0; }
.doc-lista a > span { min-width: 0; overflow-wrap: anywhere; }
/* avaliação: IPVA (ano) em linha própria, meio a meio era apertado */
.campo-ipva input { max-width: 140px; }
/* barra de baixo: "Lojistas" com o ícone do WhatsApp (decisão do Pedro, 01/11/2026) */
.btn .icone-wa { fill: currentColor; stroke: none; width: 22px; height: 22px; }
/* folha do Lojistas: a mensagem rola dentro dela; os botões ficam à vista */
.folha .msg-previa { max-height: 34vh; overflow-y: auto; }
/* aviso: largura do texto (com left:50% e sem largura ficava com meia tela e quebrava em 5 linhas) */
.toast { width: max-content; max-width: calc(100vw - 32px); }
/* folhas: não rolam a página de trás; com o teclado aberto, sobem acima dele */
.folha { overscroll-behavior: contain; max-height: 88vh; max-height: 88dvh; bottom: var(--teclado, 0px); }
.tem-vv .folha { max-height: calc(var(--vv-h) * .88); }
.fipe-lista { max-height: 38vh; max-height: 38dvh; }
.tem-vv .fipe-lista { max-height: calc(var(--vv-h) * .3); }
.com-teclado .toast { bottom: calc(var(--teclado) + 12px); }
/* ✓ da caixinha de documento: a regra .doc-area svg (40 px, do ícone) pegava o ✓ e ele vazava do círculo verde */
.doc-area .foto-ok svg { width: 16px; height: 16px; margin: 0; }
/* ===== check-up do celular, detalhes (01/11/2026) ===== */
/* nomes compridos: 2 linhas no cartão do estoque; título do topo menor em celular estreito */
.cartao-titulo { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 359px) { .topo-titulo { font-size: 15px; } }
/* caixinha de foto vazia: rótulo comprido ("Pneu dianteiro esquerdo") abaixo do desenho, sem cobrir */
.foto-caixa:not(.feita) .foto-area { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding-top: 34px; }
.foto-caixa:not(.feita) .foto-area svg { width: 62%; margin-top: 0; }
.foto-caixa:not(.feita) .foto-rotulo { position: static; align-self: stretch; padding: 4px 8px 8px; }
/* FIPE e Preço (e as outras linhas meio a meio) alinhados pelo campo, não pelo rótulo de 2 linhas */
.linha-2 { align-items: end; }
@media (max-width: 359px) { .prefixo input { padding-left: 40px; } }
/* letras de 10–12 px em informação importante */
.foto-obrigatoria { font-size: 11.5px; }
.etiqueta { font-size: 12.5px; }
.cartao-rodape { font-size: 13px; }
.doc-rotulo small, .foto-rotulo small { font-size: 12px; }
/* equipe a 320: o selo "Administrador" não passa por baixo do botão */
.pessoa-info { overflow: hidden; }
/* retorno visual ao tocar */
.cartao:active, .negocio:active, .secao-cab:active { background: var(--azul-10); }
.pilula:active { transform: scale(.97); }
/* folhas com botão fechar no canto (FIPE, Outro opcional) */
.folha-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.folha-fechar { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: var(--azul-10); color: var(--azul); font-size: 24px; line-height: 1; }
/* login: altura da tela com reserva pro iPhone antigo */
.tela-login { min-height: 100vh; min-height: 100dvh; }
/* ── Abas do Everton (04/11/2026): consignação física e digital, em negociação ── */
.etiqueta-negociacao { background: #fff6d6; color: #7a5200; }
/* botão grande com uma linha de explicação embaixo (Como o veículo entrou?, Em negociação) */
.opcoes .btn small { display: block; flex-basis: 100%; margin-top: 2px; font-size: 13px; font-weight: 500; opacity: .88; }
.opcoes .btn { flex-wrap: wrap; row-gap: 0; text-align: left; }
.opcoes-origem .btn[aria-current="true"] { outline: 3px solid var(--laranja); outline-offset: 2px; }
.barra-acoes .btn-voltar-site { flex: none; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.btn-voltar-site .curto { display: none; }
@media (max-width: 359px) { .btn-voltar-site .largo { display: none; } .btn-voltar-site .curto { display: inline; } }
/* ── Modelos de contrato da loja (04/11/2026, modelos.js) ── */
.modelo-atual { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.modelo-atual small { color: var(--tinta-2); font-size: 13px; }
.modelo-vazio { color: var(--tinta-2); }
.modelo .pilulas .btn { min-height: 44px; }
.marcador { background: #fff1a8; color: #4a3b00; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.rev-avisos { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #7a3d00; font-size: 13.5px; }
.rev-avisos p { margin: 0 0 4px; }
.rev-campo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.rev-campo:last-child { border-bottom: 0; }
.rev-chave { font-weight: 700; font-size: 15px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.rev-chave small { display: block; font-weight: 500; font-size: 12.5px; color: var(--tinta-3); }
.rev-campo select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
@media (max-width: 359px) { .rev-campo { grid-template-columns: minmax(0, 1fr); } }
.rev-papel { padding: 14px; border: 1px solid #e2dccb; border-radius: 8px; background: #fffdf7; font-family: Georgia, "Times New Roman", serif; color: #26241c; font-size: 14px; line-height: 1.55; max-height: 60vh; overflow: auto; }
.rev-papel p { margin: 0 0 8px; overflow-wrap: anywhere; }
.rev-titulo { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; text-align: center; }
.rev-sub { margin: 14px 0 6px; font-size: 13.5px; text-transform: uppercase; }
.rev-tabela { color: #6b6555; font-style: italic; }
.rev-assinatura { margin-top: 18px; text-align: center; }

/* ── finanças (04/11/2026): quem fez o quê, valores, custos, lucro e comissão ── */
.fin-carregando, .fin-vazio { margin: 0; color: var(--tinta-3); font-size: 14px; }
.fin-falta { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #7a3d00; font-size: 13.5px; }
.fin select { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; }
.fin-papeis .campo { margin-bottom: 12px; }
.fin-custos { display: grid; gap: 0; margin-bottom: 12px; }
.fin-custo { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.fin-custo-info { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.fin-custo-info small { color: var(--tinta-3); }
.fin-custo-valor { white-space: nowrap; }
.fin-custo-apagar { width: 36px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--vermelho); font-size: 22px; line-height: 1; }
.fin-conta { display: grid; gap: 0; padding: 4px 12px; border-radius: 10px; background: var(--azul-10); font-size: 14.5px; }
.fin-linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(5, 0, 150, .08); }
.fin-linha:last-child { border-bottom: 0; }
.fin-linha small { display: block; font-size: 12px; color: var(--tinta-3); }
.fin-linha b { white-space: nowrap; }
.fin-total { font-weight: 800; color: var(--azul); }
.fin-total b { font-size: 16px; }
.fin-negativo b { color: var(--vermelho); }
.fin-comissao span { font-weight: 600; }
.fin-conta .fin-falta { margin: 8px 0 4px; }
.fin-previsao { margin: 8px 0 4px; font-size: 12.5px; color: var(--tinta-3); }
.fin-regra { margin-top: 14px; }
.fin-regra summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--azul); cursor: pointer; }
.fin-regra summary small { font-weight: 500; color: var(--tinta-3); }
.fin-pcts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fin-pcts .campo > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-quando { margin: 10px 0 0; font-size: 12.5px; color: var(--tinta-3); }
.fin-mes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.fin-mes h2 { margin: 0; font: italic 800 20px/1.1 var(--fonte-marca); text-transform: uppercase; color: var(--azul); text-align: center; flex: 1; }
.fin-mes h2::first-letter { text-transform: uppercase; }
.fin-mes .btn { width: 48px; min-width: 48px; padding: 0; font-size: 24px; }
.fin-cartoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.fin-cartao { padding: 10px 12px; border-radius: 12px; background: var(--papel); box-shadow: var(--sombra); min-width: 0; }
.fin-cartao small { display: block; font-size: 12px; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.fin-cartao b { display: block; font-size: 18px; overflow-wrap: anywhere; }
.fin-cartao-lucro, .fin-cartao-liquido { background: var(--azul); color: #fff; }
.fin-cartao-lucro small, .fin-cartao-liquido small { color: rgba(255, 255, 255, .75); }
/* faturamento em cima e lucro no fim, como a conta do veículo (Pedro, 05/11/2026) */
.fin-faturamento { font-weight: 700; }
.fin-faturamento b { font-size: 15.5px; }
.fin-conta-mes { margin-bottom: 16px; padding: 4px 14px 6px; }
.fin-mes-n { margin: 8px 0 2px; font-size: 13px; font-weight: 700; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .03em; }
.fin-conta .fin-linha > span { min-width: 0; }

/* Documentos › Contratos em 2 × 2 (Pedro, 05/11/2026): venda e compra à esquerda, consignações à direita;
   cada cartão diz qual texto usa (modelo da loja, texto padrão ou só deste carro) */
.ct-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-tile { display: flex; flex-direction: column; gap: 1px; min-height: 84px; padding: 10px 12px; border: 1.5px solid var(--azul-25); border-radius: 12px; background: var(--papel); color: var(--azul); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ct-tile:active { background: var(--azul-10); }
.ct-tile small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tinta-3); }
.ct-tile b { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.ct-tile-modelo { margin-top: auto; padding-top: 6px; font-size: 12.5px; line-height: 1.25; color: var(--tinta-2); }
.ct-tile-proprio { color: var(--laranja-escuro); font-weight: 700; }
.ct-tile-falta { color: #a33a00; }
/* quem vê o negócio (05/11/2026, à noite) */
.ct-tile-fechado { display: flex; align-items: center; gap: 4px; color: var(--tinta-3); }
.ct-tile-fechado svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.docs-fechados { margin-top: 10px; }
.pessoa-funcoes { margin: 2px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--tinta-3); }
.ve-item { padding: 12px 0 4px; border-top: 1px solid var(--linha); }
.ve-item:first-of-type { border-top: 0; }
.ve-item h3 { margin: 0 0 2px; font-size: 15.5px; }
.ve-item > p { margin: 0 0 10px; font-size: 13.5px; color: var(--tinta-2); }
.ve-linha { margin-bottom: 10px; }
.ve-funcao { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--tinta-2); }
/* as três opções em colunas iguais: "Nos que vendeu" empurrava o "Em todos" pra outra linha a 390 px */
.ve-linha .pilulas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ve-linha .pilula { padding: 6px 6px; font-size: 13.5px; line-height: 1.2; text-align: center; }
.ct-fechado { grid-column: 1 / -1; max-width: 560px; margin: 24px auto; padding: 20px; border-radius: 14px; background: var(--papel); }
.ct-fechado h2 { margin: 0 0 8px; }
.ct-fechado p { margin: 0 0 12px; color: var(--tinta-2); }
.ct-proprio { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; }
.ct-proprio p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-proprio small { color: var(--tinta-2); }
.ct-proprio .pilulas .btn { min-height: 44px; }
.ct-outro { width: 100%; margin-top: 10px; font-size: 15.5px; }
.dica-carro { background: #fff4e5; color: #7a3d00; }
.fin-pessoa { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.fin-pessoa:last-child { border-bottom: 0; }
.fin-pessoa small { color: var(--tinta-3); }
.fin-pessoa-total { white-space: nowrap; color: var(--azul); }
.fin-veiculo { display: block; padding: 10px 0; border-bottom: 1px solid var(--linha); color: var(--tinta); text-decoration: none; }
.fin-veiculo:last-of-type { border-bottom: 0; }
.fin-veiculo-topo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.fin-veiculo-linha { font-size: 13.5px; color: var(--tinta-2); line-height: 1.4; }
.fin-ganho-mes { margin-bottom: 10px; }
.fin-ganho-cab { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--azul); }
.fin-ganho-cab b:first-child::first-letter { text-transform: uppercase; }
.fin-ganho { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--linha); font-size: 14px; }
.fin-ganho small { display: block; font-size: 12px; color: var(--tinta-3); }
.fin-ganho b { white-space: nowrap; }
@media (max-width: 359px) {
  .abas a { font-size: 11px; gap: 2px; }
  .fin-pcts { grid-template-columns: minmax(0, 1fr); }
  .fin-mes h2 { font-size: 17px; }
}

/* ── agenda do SDR (04/11/2026) ───────────────────────────────── */
.ag-cab { margin-bottom: 10px; }
.ag-dias { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.ag-dias::-webkit-scrollbar { display: none; }
.ag-dia { flex: none; display: grid; justify-items: center; align-content: start; gap: 1px; min-width: 50px; min-height: 64px; padding: 6px 8px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--papel); color: var(--tinta-2); position: relative; }
.ag-dia small { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.ag-dia b { font-size: 17px; color: var(--tinta); }
.ag-dia[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: rgba(255, 255, 255, .8); }
.ag-dia[aria-pressed="true"] b { color: #fff; }
.ag-dia-tudo { align-content: center; }
.ag-dia-n { min-width: 18px; height: 16px; margin-top: 2px; padding: 0 5px; border-radius: 8px; background: var(--laranja); color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.ag-lista { display: grid; gap: 10px; }
.ag-semana, .ag-depois { display: grid; gap: 10px; }
.ag-grupo { padding: 12px 14px; border-radius: var(--raio); background: var(--papel); box-shadow: var(--sombra); min-width: 0; }
.ag-grupo-vazio { display: none; }
.ag-grupo-titulo { margin: 0 0 6px; font: italic 700 15px/1.1 var(--fonte-marca); text-transform: uppercase; letter-spacing: .02em; color: var(--azul); }
.ag-grupo-titulo::first-letter { text-transform: uppercase; }
.ag-grupo-titulo small { font: 600 12.5px var(--fonte); text-transform: none; color: var(--tinta-3); margin-left: 4px; }
.ag-livre { margin: 0; font-size: 13.5px; color: var(--tinta-3); }
.ag-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-top: 1px solid var(--linha); background: none; text-align: left; color: var(--tinta); }
.ag-item:first-of-type { border-top: 0; }
.ag-hora { font-weight: 800; color: var(--azul); font-size: 15px; }
.ag-info { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.25; }
.ag-info span { font-size: 13px; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-cancelado .ag-info, .ag-cancelado .ag-hora { opacity: .5; text-decoration: line-through; }
.ag-veio .ag-hora { color: var(--verde); }
.ag-anteriores { padding: 12px 14px; border-radius: var(--raio); background: var(--papel); box-shadow: var(--sombra); }
.ag-anteriores > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tinta-2); cursor: pointer; }
.ag-anteriores .ag-grupo { padding: 8px 0 0; box-shadow: none; }
/* Contatos do site (05/11/2026) */
#ag-contatos:not(:empty) { margin-bottom: 12px; }
.ag-contatos { border-left: 4px solid var(--laranja); }
.ag-contato { grid-template-columns: 62px minmax(0, 1fr) auto; }
.ag-contato .ag-hora { font-size: 12.5px; font-weight: 700; color: var(--tinta-3); }
.abas a { position: relative; }
.aba-n { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--laranja); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.ag-detalhe { margin: 0 0 8px; font-size: 15px; }
.ag-obs { color: var(--tinta-2); }
.ag-detalhe small { color: var(--tinta-3); }
.opcoes-agendamento .btn { display: block; }
.opcoes-agendamento .btn small { white-space: normal; }
.linha-2-veiculo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
/* fechar a venda */
.vender-gasto { margin-bottom: 2px; }
#vender-mais { margin-bottom: 10px; }
/* computador: a agenda usa a largura toda, a semana em colunas, e a folha vira uma caixa no meio */
@media (min-width: 720px) {
  .folha { left: calc(50% - 280px); right: auto; width: 560px; }
}
@media (min-width: 900px) {
  .conteudo.larga { max-width: 1180px; }
  .ag-semana { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; }
  .ag-grupo-vazio { display: block; }
  .ag-semana .ag-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ag-semana .ag-item .etiqueta { justify-self: start; }
  .ag-dias { display: none; }
}
@media (max-width: 359px) {
  .abas a { font-size: 10.5px; letter-spacing: -.2px; }
}

/* ── aba Dono do veículo (05/11/2026) ─────────────────────────── */
.dono-whats { width: 100%; margin: -4px 0 14px; justify-content: center; gap: 8px; }
.dono-whats svg { width: 18px; height: 18px; flex: none; }
.dono-whats[hidden] { display: none; }
.dono-aviso { margin: -6px 0 14px; padding: 8px 10px; border-radius: 10px; background: #fff3ec; color: #a33a00; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.dono-aviso[hidden] { display: none; }
.dono-cep { margin: -6px 0 14px; font-size: 12.5px; color: var(--tinta-3); line-height: 1.4; }
/* celular estreito: CPF, CEP e cidade cortavam meio a meio (print de 320 px, 05/11/2026); viram linha inteira, como no contrato */
@media (max-width: 359px) { .linha-2-dono { grid-template-columns: minmax(0, 1fr); } }

/* Vídeo do veículo (06/11/2026): no fim da aba Fotos, largo como a capa, 16:9 */
.video-caixa { grid-column: 1 / -1; }
.video-caixa .foto-area { aspect-ratio: 16 / 9; }
.video-caixa.feita .foto-area { background: #0b0b14; }
.video-play { position: relative; z-index: 1; display: grid; place-items: center; }
.video-play svg { width: 64px !important; height: 64px; margin: 0 !important; fill: none; stroke: currentColor; stroke-width: 1.6; }
.video-caixa.feita .video-play { color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.video-progresso { padding: 0 18%; text-align: center; background: var(--azul); font-size: 15px; } /* opaca: na caixa vazia, o texto e os botões apareciam por trás */
.barra-progresso { display: block; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.barra-progresso i { display: block; height: 100%; background: var(--laranja); transition: width .2s linear; }
.video-info { margin: -4px 0 12px; font-size: 14px; color: var(--tinta-2); }
.video-info .aviso { color: #a35200; font-weight: 600; }
.video-cheio video { width: 100%; max-height: 100%; background: #000; }
