/* Mini page do chat 04 (prefixo s04-). As telas montadas pelo chat (link do cliente, checklist de saída, quadro em zoom)
   trazem aqui o estilo delas, porque a página própria da função não carrega o CSS do bloco da home.
   Fora dos aparelhos: variáveis --n-*. Dentro: tokens do design system do app, em `em`. */
.s04-f {
  --s04-sombra-chave: 0 0 0 1px rgb(11 16 32 / 0.06), 0 6px 14px -6px rgb(11 16 32 / 0.35);
  --s04-sombra-papel: 0 0 0 1px rgb(11 16 32 / 0.06), 0 2px 4px rgb(11 16 32 / 0.04), 0 28px 48px -24px rgb(11 16 32 / 0.3);
  --s04-vidro: rgb(255 255 255 / 0.72);
  --s04-pauta: rgb(11 16 32 / 0.07);
  --s04-brilho: rgb(47 85 240 / 0.28);
  --s04-brilho-0: rgb(47 85 240 / 0);
  --s04-tinta-caneta: #1b2a8a;
  --s04-barra: #eef1f8;
  --s04-luz: rgb(255 255 255 / 0.16);
  --s04-some-0: rgb(244 246 251 / 0);
  --s04-some-1: rgb(244 246 251 / 0.96);
}
.s04-f .s04-so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* parado (?parado=1) ou movimento reduzido: nasce no estado final, sem transição nem animação */
.s04-parado, .s04-parado *, .s04-parado *::before, .s04-parado *::after { animation: none !important; transition: none !important; }
/* as telas dentro dos iPhones em zoom: a letra parte de 4,7cqw, sem a cápsula de baixo do app */
.s04-f .ms-iphone .t-cel { font-size: 4.7cqw; }
.s04-f .ms-iphone .t-pl .plate__band { font-size: 0; }
.s04-f .ms-iphone .t-doca { display: none; }
.s04-f .ms-iphone .t-cel--patio, .s04-f .ms-iphone .t-cel--clientes, .s04-f .ms-iphone .t-cel--hoje { padding-bottom: 1.2em; }
.s04-f .ms-iphone .stamp__when { font-size: .8em; }
.s04-f .ms-iphone .t-av { font-size: .9em; }
.s04-f .ms-iphone .t-etp small, .s04-f .ms-iphone .t-abas__i b { font-size: .9em; }
.s04-f .s04-f-palco { align-content: center; gap: 18px; }
.s04-f .s04-denovo { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 0; border: 0; border-radius: 999px; background: transparent; font-size: 0.9375rem; font-weight: 650; color: var(--n-azul); cursor: pointer; transition-property: scale, color; transition-duration: var(--n-rapido); transition-timing-function: var(--n-curva); }
.s04-f .s04-denovo:hover { color: var(--n-azul-vivo); }
.s04-f .s04-denovo:active { scale: 0.96; }
.s04-f .s04-denovo[hidden] { display: none; }
.s04-f .s04-denovo .icon { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- trazido do bloco 7: a folha do checklist de saída, a via do termo, o recibo e o carimbo ---------- */
.s04-f .s04-folha { position: relative; display: grid; gap: 14px; padding: 32px 18px 18px; border-radius: 6px 6px 16px 16px; background: var(--n-papel); box-shadow: var(--s04-sombra-papel); font-size: 0.875rem; line-height: 1.4; color: var(--n-texto); }
.s04-f .s04-folha__os { display: flex; align-items: center; gap: 10px; }
.s04-f .s04-folha__os .plate { --plate-size: 26px; flex: none; }
.s04-f .s04-folha__os .plate__band { font-size: 0; }
.s04-f .s04-folha__os b { display: block; font-family: var(--n-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.15; color: var(--n-tinta); }
.s04-f .s04-folha__os small { font-size: 0.75rem; color: var(--n-apoio); }
.s04-f .s04-folha__pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; box-shadow: inset 0 1px 0 var(--n-linha); }
.s04-f .s04-folha__pe .n-btn[data-fim] { background: transparent; color: var(--n-tinta); box-shadow: inset 0 0 0 1.5px var(--n-linha-forte); filter: none; }
.s04-f .s04-folha__pe .n-btn .icon { width: 16px; height: 16px; }
.s04-f .s04-folha__pe .n-btn:hover .icon { translate: 0 0; }
.s04-f .s04-via { display: grid; gap: 6px; }
.s04-f .s04-via > div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 10px; }
.s04-f .s04-via dt { color: var(--n-apoio); }
.s04-f .s04-via dd { color: var(--n-tinta); }
.s04-f .s04-via__t { font-family: var(--n-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-apoio); }
.s04-f .s04-via__l { display: grid; margin-top: -6px; }
.s04-f .s04-via__l li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 7px; box-shadow: inset 0 -1px 0 var(--s04-pauta); color: var(--n-tinta); }
.s04-f .s04-via__l li > span:last-child { flex: none; font-size: 0.8125rem; color: var(--n-apoio); font-variant-numeric: tabular-nums; }
.s04-f .s04-via__l--valor li > span:last-child { font-size: 0.875rem; color: var(--n-tinta); }
.s04-f .s04-via__total { font-weight: 700; }
.s04-f .s04-ciente { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--n-nevoa); font-weight: 600; }
.s04-f .s04-ciente[data-on] { background: var(--n-verde-suave); color: var(--n-verde-tinta) !important; }
.s04-f .s04-assina { display: grid; gap: 2px; margin-top: auto; }
.s04-f .s04-assina svg { display: block; width: 100%; max-width: 230px; height: 54px; overflow: visible; box-shadow: inset 0 -1.5px 0 var(--n-linha-forte); }
.s04-f .s04-assina path { fill: none; stroke: var(--s04-tinta-caneta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s04-f .s04-assina[data-on] path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--n-curva); }
.s04-f .s04-assina__n { font-weight: 650; color: var(--n-tinta); }
.s04-f .s04-assina__p { font-size: 0.75rem; line-height: 1.4; color: var(--n-apoio); }
.s04-f .s04-recibo__s { max-width: 15em; font-weight: 650; color: var(--n-ambar-tinta); }
.s04-f .s04-recibo__s[data-on] { color: var(--n-verde-tinta); }
.s04-f .s04-via__nota { margin-top: auto; font-size: 0.75rem; color: var(--n-apoio); }
.s04-f .s04-pago { position: absolute; z-index: 3; right: 14px; bottom: 70px; font-size: 1.5rem; padding: 8px 18px 7px; background: var(--s04-vidro); pointer-events: none; }
.s04-f .s04-pago[hidden] { display: none; }
.s04-f .s04-pago small { font-size: 0.6875rem; color: var(--n-verde-tinta); }
.s04-f .s04-pago.s04-fate { animation: s04-bate 340ms var(--n-curva) 1 both; }
@keyframes s04-bate { 0% { opacity: 0; scale: 1.7; } 60% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }
.s04-f .s04-sd .t-folha__cab small { display: block; }
.s04-f .s04-sd__passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35em; }
.s04-f .s04-sd__passos span { display: grid; gap: .3em; font-size: .78em; font-weight: var(--weight-semibold); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s04-f .s04-sd__passos span::before { content: ""; height: .3em; border-radius: var(--radius-full); background: var(--border-strong); }
.s04-f .s04-sd__passos span[data-estado="feito"]::before { background: var(--success); }
.s04-f .s04-sd__passos span[data-estado="atual"] { color: var(--accent-text); }
.s04-f .s04-sd__passos span[data-estado="atual"]::before { background: var(--accent); }
.s04-f .s04-sd__dev { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .42em 0; border-bottom: 1px solid var(--border); font-size: .92em; }
.s04-f .s04-sd__dev .t-selo { font-size: .85em; }
.s04-f .s04-sd__lin { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .5em; font-size: .82em; }
.s04-f .s04-sd__lin > span:first-child { color: var(--text-muted); }
.s04-f .s04-sd__chk { display: flex; align-items: flex-start; gap: .5em; padding: .55em .65em; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: .86em; }
.s04-f .s04-sd__chk > i { display: grid; place-items: center; flex: none; width: 1.4em; height: 1.4em; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); }
.s04-f .s04-sd__chk[data-on] > i { border-color: var(--accent); background: var(--accent); color: var(--text-on-accent); }
.s04-f .s04-sd__chk .icon { width: .95em; height: .95em; stroke-width: 3; }
.s04-f .s04-sd__chk small { font-size: .92em; }
.s04-f .s04-sd .stamp__when { font-size: .8em; }
.s04-f .s04-sd__quadro { display: grid; place-items: center; height: 4.2em; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--text-subtle); font-size: .8em; }
.s04-f .s04-sd__quadro svg { width: 80%; height: 3em; }
.s04-f .s04-sd__quadro path { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s04-f .s04-sd__ent { display: flex; align-items: center; gap: .55em; padding: .45em 0; border-bottom: 1px solid var(--border); }
.s04-f .s04-sd__ent > i { display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: var(--radius-full); border: 1px solid var(--border-strong); color: transparent; }
.s04-f .s04-sd__ent[data-on] > i { border-color: var(--success); background: var(--success); color: var(--text-on-accent); }
.s04-f .s04-sd__ent .icon { width: .95em; height: .95em; stroke-width: 3; }
.s04-f .s04-sd__ent > span { flex: 1; min-width: 0; }
.s04-f .s04-sd__carimbo { align-self: flex-end; margin: .2em .4em 0 0; rotate: var(--stamp-tilt); font-size: 1.2em; }

/* ---------- desta ficha ---------- */
.s04-f .s04-sd .t-folha__corpo > .t-btn { min-height: 3em; font-size: 1em; margin-top: .3em; }
.s04-f .s04-sd__carimbo { margin-block: .2em .4em; }
/* partes 3 e 4: a via do termo e o recibo, como folha de papel na escala da página */
.s04-f .s04-papel { position: relative; width: min(100%, 420px); text-align: left; }
.s04-f .s04-papel .s04-folha { padding: 24px 22px 22px; gap: 14px; border-radius: 6px 6px 16px 16px; font-size: 0.9375rem; rotate: -1.2deg; }
.s04-f .s04-papel .s04-folha__os .plate { --plate-size: 26px; }
.s04-f .s04-papel .s04-via > div { grid-template-columns: 7.4em minmax(0, 1fr); }
.s04-f .s04-papel .s04-assina { margin-top: 6px; }
.s04-f .s04-papel .s04-assina svg { max-width: 260px; height: 60px; }
.s04-f .s04-papel .s04-recibo__s { max-width: 16em; }
.s04-f .s04-papel .s04-pago { right: 18px; bottom: 44px; font-size: 1.75rem; }
.s04-f .s04-papel .s04-pago small { color: var(--n-verde-tinta); }
.s04-f .s04-papel__c { justify-self: center; }
