/* Mini page "Histórico do carro e do cliente" (chat 08): só o que o molde (kit/ficha.css) não tem. Prefixo s10-fh-.
   Dentro dos aparelhos valem as classes t- do kit e os tokens do app; fora, as variáveis --n-*. */
.s10-fh {
  --s10-fh-branco: #ffffff;
  --s10-fh-halo: rgb(47 85 240 / 0.2);
  --s10-fh-some-topo: linear-gradient(180deg, #0000 0, #000 44px);
  --s10-fh-veu: rgb(7 11 28 / 0.42);
  --s10-fh-sombra-folha: 0 -12px 40px -12px rgb(7 11 28 / 0.35);
}

/* ---------- o palco de cada parte: a janela (recorte grande do iPhone), a ficha flutuante e o "Ver de novo" ---------- */
.s10-fh-col { display: grid; gap: 10px; min-width: 0; }
.s10-fh-palco { padding-inline: clamp(12px, 3vw, 40px); }
.s10-fh .f-palco .ms-iphone { --w: min(430px, 100%); margin-bottom: 0; }
.s10-fh-janela { --s10-fh-dy: 0px; display: grid; justify-items: center; align-items: start; width: 100%; height: clamp(430px, 46vw, 540px); overflow: hidden; }
.s10-fh-janela > .ms-iphone { translate: 0 calc(-1 * var(--s10-fh-dy)); transition: translate 640ms var(--n-curva); }
.n-parado .s10-fh-janela > .ms-iphone { transition: none; }
.s10-fh-janela[data-cortada] { -webkit-mask-image: var(--s10-fh-some-topo); mask-image: var(--s10-fh-some-topo); }
.s10-fh-chip { position: absolute; left: clamp(10px, 2vw, 20px); bottom: clamp(12px, 2vw, 20px); z-index: 3; max-width: min(250px, 72%); }
.s10-fh-chip[data-pos="alto"] { top: clamp(12px, 2vw, 20px); bottom: auto; }
.s10-fh-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 44px; }
.s10-fh-rep { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--n-nevoa); font-family: var(--n-corpo); font-size: 0.875rem; font-weight: 650; color: var(--n-tinta); cursor: pointer; transition-property: background-color, scale, opacity; transition-duration: var(--n-rapido); transition-timing-function: var(--n-curva); }
.s10-fh-rep:hover { background: var(--n-azul-suave); }
.s10-fh-rep:active { scale: 0.96; }
.s10-fh-rep:focus-visible { border-radius: 999px; }
.s10-fh-rep .icon { width: 16px; height: 16px; stroke-width: 2; }
.s10-fh-rep[hidden] { display: none; }
/* enquanto a cena roda o botão some, mas guarda o lugar */
.s10-fh-rep[data-fora] { visibility: hidden; opacity: 0; }
/* o trecho que a cena aponta */
.s10-fh-foco { outline: 0.18em solid var(--n-azul-vivo); outline-offset: 0.2em; border-radius: 0.6em; box-shadow: 0 0 0 0.7em var(--s10-fh-halo); }
.t-btn.s10-fh-foco { border-radius: var(--radius-md); }
.s10-fh-some { opacity: 0; translate: 0 0.7em; }

/* ---------- a ficha do carro (CarroScreen): destaque, recomendado depois, visitas ---------- */
.s10-fh-fc { gap: 0.6em; }
.s10-fh-dest { display: flex; flex-direction: column; flex: none; align-items: flex-start; gap: 0.45em; padding: 0.9em 1em 1em; border-radius: var(--radius-xl); }
.s10-fh-dest .t-pl--g { --plate-size: 3em; box-shadow: none; }
.s10-fh-dest > b { font: var(--weight-bold) 1.6em/1.05 var(--font-display); }
.s10-fh-dest > p { margin: 0; font-size: 0.82em; line-height: 1.4; color: var(--text-muted); }
.s10-fh-dest .t-btn { align-self: stretch; margin-top: 0.2em; }
.s10-fh-dep { flex: none; gap: 0.4em; }
.s10-fh-dep .t-btn { align-self: flex-start; }
.s10-fh-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6em; padding: 0.45em 0; border-block: 1px solid var(--border); }
.s10-fh-row > span:first-child { min-width: 0; }
.s10-fh-vis { flex: none; gap: 0.4em; }
.s10-fh-odo { align-self: flex-start; padding: 0.15em 0.55em; border-radius: var(--radius-sm); background: var(--surface-inverse); color: var(--text-inverse); font: var(--weight-semibold) 0.9em/1.5 var(--font-plate); letter-spacing: 0.1em; }
.s10-fh-vis .t-hist__l { align-items: flex-start; transition: opacity 420ms var(--n-curva), translate 420ms var(--n-curva); }
.s10-fh-vis .t-hist__l > .money { flex: none; }
.s10-fh-vis .t-hist__l small { line-height: 1.35; }

/* ---------- parte 2: o cartão das visitas ampliado, fora do aparelho ---------- */
.s10-fh-palco--recorte { align-items: center; }
.s10-fh-recorte { flex: none; width: min(100%, 460px); gap: 0.8em; font-size: clamp(14px, 1.25vw, 16px); line-height: var(--leading-snug); color: var(--text); }
.s10-fh-recorte__cab { display: flex; align-items: center; gap: 0.8em; padding-inline: 0.2em; }
.s10-fh-recorte__cab b { display: block; font: var(--weight-bold) 1.3em/1.1 var(--font-display); }
.s10-fh-recorte .t-card { border-color: transparent; box-shadow: var(--n-sombra-3); padding: 1.1em 1.2em; }

/* ---------- parte 4: a folha "Combinar revisão" encosta no pé do aparelho ---------- */
.s10-fh-baixo { justify-content: flex-end; }
.s10-fh-baixo .t-folha { flex: none; margin-top: 0; }
.s10-fh-opc { font-style: normal; font-weight: var(--weight-regular, 400); color: var(--text-muted); }
.s10-fh-baixo .t-input { gap: 0.5em; }
.s10-fh .t-input [data-v] em { font-style: normal; color: var(--text-subtle); }

/* ---------- parte 5: a aba Retornos e a folha "Lembrar da revisão" ---------- */
.s10-fh-ret { gap: 0.7em; }
.s10-fh-sit { display: flex; gap: 0.4em; flex: none; overflow: hidden; }
.s10-fh-sit > span { flex: none; padding: 0.4em 0.8em; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); font-size: 0.82em; font-weight: var(--weight-semibold); color: var(--text-muted); white-space: nowrap; }
.s10-fh-sit > span[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.s10-fh-rl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65em; padding: 0.7em 0.75em; }
.s10-fh-rl + .s10-fh-rl { border-top: 1px solid var(--border); }
.s10-fh-rl__ic { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--text-muted); }
.s10-fh-rl__t { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.5em; min-width: 0; }
.s10-fh-rl__t > b { font-size: 0.95em; }
.s10-fh-rl__t > small { flex-basis: 100%; line-height: 1.35; }
/* o adesivo do óleo, como o da vidraça */
.s10-fh-adesivo { display: grid; justify-items: center; width: 4.2em; padding: 0.3em 0.2em; border: 1.5px dashed var(--warning-border); border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning-text); line-height: 1.1; }
.s10-fh-adesivo small { font-size: 0.8em; color: inherit; text-align: center; }
.s10-fh-adesivo b { font: var(--weight-bold) 0.9em/1.2 var(--font-display); }
.s10-fh-veu { position: absolute; inset: 0; z-index: 3; background: var(--s10-fh-veu); opacity: 0; transition: opacity 320ms var(--n-curva); pointer-events: none; }
.s10-fh-msg { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; flex: none; margin: 0; box-shadow: var(--s10-fh-sombra-folha); translate: 0 104%; transition: translate 460ms var(--n-curva); }
.s10-fh-ret[data-aberta] .s10-fh-veu { opacity: 1; }
.s10-fh-ret[data-aberta] .s10-fh-msg { translate: 0 0; }
.n-parado .s10-fh-msg, .n-parado .s10-fh-veu { transition: none; }
.s10-fh-balao { display: grid; gap: 0.3em; padding: 0.8em 0.9em; border-radius: var(--radius-lg); background: var(--success-soft); }
.s10-fh-balao p { margin: 0; line-height: 1.45; }

@media (max-width: 719px) {
  .s10-fh-janela { height: 440px; }
  .s10-fh-chip { max-width: 78%; }
}
@media (min-width: 1000px) {
  /* letra das telas: no computador nada abaixo de 12 px */
  .s10-fh .ms-iphone .t-doca__i { font-size: max(12px, 0.67em); }
}
@media (prefers-reduced-motion: reduce) {
  .s10-fh-janela > .ms-iphone, .s10-fh-msg, .s10-fh-veu, .s10-fh-vis .t-hist__l { transition: none; }
  .s10-fh-rep { display: none; }
}
