/* Mini page "Peças, estoque e compras" (chat 06). Só o que o molde das fichas (kit/ficha.css) não tem. Prefixo s07-.
   As regras das telas repetem as do bloco da home (secoes/07-receber-dinheiro-pecas/secao.css) de propósito:
   a página própria da função não carrega o CSS do bloco. */
.s07-ficha {
  --s07-vidro: rgb(255 255 255 / 0.82);
  --s07-contorno: rgb(0 0 0 / 0.1);
  --s07-aviso: rgb(11 16 32 / 0.92);
  --s07-aviso-tinta: #ffffff;
  --s07-novo: rgb(47 85 240 / 0.5);
  --s07-novo-fim: rgb(47 85 240 / 0);
  --s07-papelao: linear-gradient(180deg, #e2bf8c 0%, #d0a468 100%);
  --s07-papelao-tinta: #4a3110;
  --s07-fita: rgb(255 244 219 / 0.75);
  --s07-tabua: linear-gradient(180deg, #d5ddef 0%, #b9c4de 100%);
  --s07-tabua-sombra: 0 6px 10px -6px rgb(11 16 32 / 0.35);
}
.s07-ficha [hidden] { display: none !important; }
/* a letra das telas cresce com o aparelho: com 360 px de largura, a menor fica acima de 12 px */
.s07-ficha .ms-screen .t-cel { font-size: 4.9cqw; }
.s07-ficha .ms-screen .t-abas__i b { font-size: .95em; }
.s07-ficha .ms-screen .t-parc .t-carimbo { font-size: .8em; }
.s07-ficha .t-doca { display: none; }
/* o palco da parte: em cima a ficha que explica e o "Ver de novo"; embaixo o aparelho grande, cortado pelo palco */
.s07-palco { place-items: stretch; align-content: space-between; gap: 14px; min-height: 0; padding: 16px 16px 0; }
.s07-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.s07-topo .n-chip { max-width: 100%; }
.s07-janela { display: grid; justify-items: center; align-items: start; width: 100%; min-width: 0; height: var(--alt, 500px); padding: 8px 8px 0; }
.s07-janela .ms-iphone { --w: min(360px, 100%); }
.s07-rever { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--s07-vidro); box-shadow: var(--n-sombra-1); color: var(--n-azul-vivo); font-size: 0.875rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition-property: scale, background-color; transition-duration: var(--n-rapido); transition-timing-function: var(--n-curva); }
.s07-rever:hover { background: var(--n-papel); }
.s07-rever:active { scale: 0.96; }
.s07-rever .icon { width: 16px; height: 16px; stroke-width: 2; }
.s07-ficha .f-lista { margin-top: 6px; }
/* o que acabou de mudar na tela ganha um contorno que some */
.s07-vivo .s07-novo { animation: s07-novo 1100ms var(--n-curva) 1; border-radius: var(--radius-md); }
@keyframes s07-novo { from { box-shadow: 0 0 0 .3em var(--s07-novo); } to { box-shadow: 0 0 0 .3em var(--s07-novo-fim); } }
@media (max-width: 599px) { .s07-janela { height: min(var(--alt, 500px), 132vw); } }
@media (prefers-reduced-motion: reduce) { .s07-vivo .s07-novo { animation: none; } }
/* a entrega: onde a caixa espera */
.s07-ficha .s07-entrega { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border-radius: var(--n-r3); background: var(--s07-vidro); box-shadow: var(--n-sombra-1); }
.s07-ficha .s07-vaga { position: relative; display: grid; place-items: center; width: 132px; height: 84px; border-radius: 12px; outline: 1.5px dashed var(--n-linha-forte); outline-offset: -1px; }
.s07-ficha .s07-vaga__ok { display: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--n-verde-suave); color: var(--n-verde-tinta); }
.s07-ficha .s07-vaga__ok .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.s07-ficha .s07-chegou .s07-vaga__ok { display: grid; }
.s07-ficha .s07-entrega__b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.s07-ficha .s07-entrega__b .n-btn { --alt: 48px; flex: 1 1 auto; }
.s07-ficha .s07-apertado { scale: 0.96; }
.s07-ficha .s07-entrega__t { font-size: 0.875rem; line-height: 1.4; color: var(--n-texto); min-width: 0; text-wrap: pretty; }
.s07-ficha .s07-entrega__t b { display: block; color: var(--n-tinta); font-weight: 650; }
.s07-ficha .s07-entrega .n-btn .icon:first-child { translate: 0 0; }
/* a caixa chega: entra pela esquerda e assenta */
.s07-ficha .s07-chegando { animation: s07-chega 900ms var(--n-curva) 1 both; }
@keyframes s07-chega { 0% { opacity: 0; translate: -70% 0; rotate: -5deg; } 70% { opacity: 1; translate: 3% 0; rotate: 1deg; } 100% { translate: 0 0; rotate: 0deg; } }
/* a caixa de papelão, com a fita e a etiqueta da OS */
.s07-ficha .s07-caixa { position: relative; z-index: 2; display: grid; align-content: center; gap: 1px; width: 124px; height: 72px; padding: 8px 10px; border-radius: 6px; background: var(--s07-papelao); box-shadow: inset 0 0 0 1px var(--s07-contorno), var(--n-sombra-2); color: var(--s07-papelao-tinta); font-size: 0.75rem; line-height: 1.2; transition: translate 420ms var(--n-curva); }
.s07-ficha .s07-caixa::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; translate: -50% 0; background: var(--s07-fita); z-index: -1; }
.s07-ficha .s07-caixa b { font-weight: 700; font-size: 0.8125rem; }
.s07-ficha .s07-caixa small { font-size: 0.6875rem; }
.s07-ficha .s07-caixa--p { width: 112px; height: 60px; }
.s07-ficha .s07-caixa__os { position: absolute; right: -8px; top: -10px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 5px 11px 11px 5px; background: var(--n-ambar); color: var(--n-tinta); font-size: 0.6875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--n-sombra-1); rotate: 4deg; opacity: 0; scale: 0.25; transition-property: opacity, scale; transition-duration: 220ms; transition-timing-function: var(--n-curva); }
.s07-ficha .s07-caixa__os::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--n-papel); }
.s07-ficha .s07-caixa__os--on { opacity: 1; scale: 1; transition-delay: 260ms; }
/* a estante: duas tábuas */
.s07-ficha .s07-estante { display: grid; padding: 4px 14px 14px; border-radius: var(--n-r3); background: var(--n-papel); box-shadow: var(--n-sombra-2); }
.s07-ficha .s07-nivel { position: relative; display: grid; gap: 8px; padding: 12px 2px 20px; }
.s07-ficha .s07-nivel::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 8px; border-radius: 4px; background: var(--s07-tabua); box-shadow: var(--s07-tabua-sombra); }
.s07-ficha .s07-nivel__t { font-family: var(--n-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-apoio); }
.s07-ficha .s07-nivel__os { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.s07-ficha .s07-nicho { display: grid; justify-items: center; align-content: end; gap: 6px; min-height: 104px; padding-top: 12px; }
.s07-ficha .s07-nicho > small { font-size: 0.75rem; color: var(--n-apoio); text-align: center; }
.s07-ficha .s07-nicho__vazio { display: grid; place-items: center; width: 124px; height: 72px; border-radius: 8px; outline: 1.5px dashed var(--n-linha-forte); outline-offset: -1px; font-size: 0.75rem; color: var(--n-apoio); text-align: center; padding: 6px; }
/* o Civic: a etiqueta troca de escaninho */
.s07-ficha .s07-civic { display: grid; gap: 10px; padding: 10px 12px; border-radius: var(--n-r3); background: var(--s07-vidro); box-shadow: var(--n-sombra-1); }
.s07-ficha .s07-civic__c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s07-ficha .s07-civic__c .plate { --plate-size: 26px; flex: none; }
.s07-ficha .s07-civic__c b { display: block; font-weight: 650; font-size: 0.875rem; color: var(--n-tinta); }
.s07-ficha .s07-civic__c small { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--n-apoio); }
.s07-ficha .s07-civic__et { --vao: 6px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--vao); }
.s07-ficha .s07-civic__et > span { display: grid; align-content: start; justify-items: center; height: 62px; padding-top: 6px; border-radius: 10px; background: var(--n-nevoa); box-shadow: inset 0 0 0 1px var(--n-linha); font-family: var(--n-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n-apoio); }
.s07-ficha .s07-civic__tag { position: absolute; left: 4px; bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 4px; width: calc(50% - var(--vao) / 2 - 8px); height: 28px; border-radius: 6px; background: var(--n-ambar); color: var(--n-tinta); font-style: normal; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--n-sombra-1); transition-property: translate, background-color, color; transition-duration: 420ms; transition-timing-function: var(--n-curva); }
.s07-ficha .s07-civic__tag .icon { width: 13px; height: 13px; stroke-width: 2.25; }
.s07-ficha .s07-chegou .s07-civic__tag { translate: calc(100% + var(--vao) + 8px) 0; background: var(--n-verde-tinta); color: var(--n-papel); transition-delay: 180ms; }
/* a cena dentro do palco da mini page */
.s07-ficha .s07-palco--cena { padding-bottom: 16px; }
.s07-ficha .s07-cena { display: grid; gap: 12px; min-width: 0; align-items: center; }
.s07-ficha .s07-cena { max-width: 430px; width: 100%; justify-self: center; }
/* dentro do iPhone: Peças, Estoque e Cotação */
.s07-ficha .t-cel .t-forn__c .t-btn { display: inline-flex; flex-basis: 100%; }
.s07-ficha .t-abas__i b { display: none; }
.s07-ficha .t-abas__i { padding-inline: .3em; font-size: .8em; }
.s07-ficha .s07-f .t-folha__corpo { gap: .6em; }
.s07-ficha .s07-gs { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.s07-ficha .s07-g { display: grid; gap: .35em; align-content: start; padding: .65em .7em .7em; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.s07-ficha .s07-g__c { display: flex; align-items: center; justify-content: space-between; }
.s07-ficha .s07-g__c .t-assunto { width: 2em; height: 2em; }
.s07-ficha .s07-g__l { padding: .1em .45em; border-radius: var(--radius-sm); background: var(--surface-sunken); font: var(--weight-bold) .8em/1.4 var(--font-plate); color: var(--text-muted); letter-spacing: .04em; }
.s07-ficha .s07-g__n { font-size: .9em; line-height: 1.2; min-height: 2.4em; }
.s07-ficha .s07-g__s { display: flex; align-items: baseline; justify-content: space-between; gap: .4em; }
.s07-ficha .s07-g__s b { font: var(--weight-bold) 1.7em/1 var(--font-display); font-variant-numeric: tabular-nums; }
.s07-ficha .s07-g__m { position: relative; display: block; height: .4em; border-radius: var(--radius-full); background: var(--border); }
.s07-ficha .s07-g__m > i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--success); }
.s07-ficha .s07-g__m::after { content: ""; position: absolute; left: 33.3%; top: -.2em; width: .14em; height: .8em; border-radius: 1px; background: var(--text); }
.s07-ficha .s07-g[data-repor] { border-color: var(--warning); background: var(--warning-soft); }
.s07-ficha .s07-g[data-repor] .s07-g__m > i { background: var(--warning); }
.s07-ficha .s07-g .t-selo { justify-self: start; }
.s07-ficha .t-cel > .t-btn { align-self: stretch; }
.s07-ficha .s07-cot { display: flex; align-items: center; gap: .65em; padding: .7em .75em; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.s07-ficha .s07-cot .t-assunto { width: 2.1em; height: 2.1em; }
.s07-ficha .s07-cot__t { flex: 1; min-width: 0; display: grid; gap: .15em; justify-items: start; }
.s07-ficha .s07-cot .money { flex: none; font-size: 1.1em; }
