/* L6a — tela inicial da consultora, variante B ("Carteira de joalheria") aprovada pelo Kiko em 12/11.
   Tokens do Golden Vendas (os mesmos das previas). Letras: as da casa quando instaladas; senao, as do aparelho
   (nada e baixado de fora). */
:root {
  --c-tiffany: #0FB5AE; --c-tiffany-deep: #0A8C86; --c-tiffany-soft: #DFF4F2;
  --c-gold: #C99A2E; --c-gold-soft: #E7C77A;
  --c-ink: #16302E; --c-ink2: #46615E; --c-muted: #84999A;
  --c-line: #E7EEEC; --c-line2: #F0F4F3; --c-surface: #FFFFFF; --c-bg: #F3F7F6;
  --c-danger: #B8352A; --c-danger-soft: #FDECEA;
  --c-warn: #9A5B00; --c-warn-soft: #FFF6E6;
  --c-ok: #1E7A5A; --c-ok-soft: #E7F5EE;
  --f-title: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(22,48,46,.04), 0 4px 16px -8px rgba(22,48,46,.12);
  --tap: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-tiffany); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--c-bg); }

/* topo escuro com o saldo */
.b-hero { position: relative; padding: 8px 16px 24px; background: var(--c-ink); color: #fff; overflow: hidden; }
.b-hero::before { content: ""; position: absolute; right: -96px; top: -96px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(15,181,174,.35), rgba(15,181,174,0) 70%); }
.b-hero > * { position: relative; }
.b-hero-top { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.b-marca { font-family: var(--f-title); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.b-marca span { color: var(--c-gold-soft); }
.b-app { margin-left: auto; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }
.b-teste { margin-top: 8px; display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(231,199,122,.16); color: var(--c-gold-soft); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.b-total-l { margin-top: 20px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.b-total { margin-top: 8px; font-family: var(--f-title); font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.b-total-s { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.b-ouro { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: rgba(231,199,122,.16); color: var(--c-gold-soft); font-size: 12px; font-weight: 800; }

/* corpo */
.b-corpo { padding: 16px 16px 120px; }
.b-falha { padding: 16px; border-radius: var(--r-lg); background: var(--c-danger-soft); color: var(--c-danger); font-weight: 600; }
.b-falha button { margin-left: 8px; min-height: var(--tap); padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--c-danger); color: #fff; font-weight: 700; }
.b-esperando { margin-bottom: 8px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--c-tiffany-soft); }
.b-pendentes { margin-bottom: 8px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--c-warn-soft); }
.b-pendentes .b-esperando-n { color: var(--c-warn); }
.b-esperando-n { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); color: var(--c-tiffany-deep); font-family: var(--f-title); font-weight: 700; font-size: 18px; }
.b-esperando-t { display: block; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.b-esperando-d { display: block; margin-top: 4px; font-size: 13px; color: var(--c-ink2); }
.b-dia { margin: 24px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink2); }
.b-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* cada cobranca: <details> (tocar abre o detalhe quando existe) */
.b-cob { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.b-cob > summary, .b-cob > .b-cob-linha { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 16px; }
.b-cob > summary { cursor: pointer; }
.b-cob > summary::-webkit-details-marker { display: none; }
.b-band { width: 48px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--c-line2); color: var(--c-ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; font-style: italic; }
.b-band.lnk { font-style: normal; background: var(--c-tiffany-soft); color: var(--c-tiffany-deep); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-cob-info { flex: 1; min-width: 0; }
.b-cob-nome { font-size: 16px; font-weight: 700; color: var(--c-ink); overflow-wrap: anywhere; }
.b-cob-meta { margin-top: 4px; font-size: 13px; color: var(--c-ink2); font-variant-numeric: tabular-nums; }
.b-cob-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.b-cob-valor { font-family: var(--f-title); font-weight: 700; font-size: 16px; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-cob-valor.is-fora { color: var(--c-ink2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.b-sit { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.b-sit::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.b-sit.ok { color: var(--c-ok); }
.b-sit.neg { color: var(--c-danger); }
.b-sit.sc { color: var(--c-warn); }
.b-sit.env { color: var(--c-ink2); }
.b-sit.env::before { background: var(--c-tiffany-deep); }
.b-sit.lnk { color: var(--c-tiffany-deep); }
.b-sit.cx { color: var(--c-muted); }
.b-detalhe { margin: 0 16px 16px; padding: 12px 16px; border-radius: var(--r); background: var(--c-warn-soft); color: var(--c-warn); font-size: 14px; }
.b-detalhe p + p { margin-top: 4px; }
.b-detalhe p:first-child { font-weight: 800; }
.b-detalhe .b-pedido { font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.b-detalhe.lnk { background: var(--c-tiffany-soft); color: var(--c-ink); }
.b-detalhe a { color: var(--c-tiffany-deep); font-weight: 700; overflow-wrap: anywhere; }
.b-cortados { margin-top: 16px; font-size: 13px; color: var(--c-ink2); text-align: center; }

/* vazio */
.b-vazio { margin-top: 32px; text-align: center; padding: 0 24px; }
.b-vazio-arte { width: 120px; height: 80px; margin: 0 auto 24px; position: relative; }
.b-vazio-arte i { position: absolute; width: 96px; height: 60px; border-radius: 10px; }
.b-vazio-arte i:first-child { left: 0; top: 0; background: var(--c-tiffany-soft); transform: rotate(-8deg); }
.b-vazio-arte i:last-child { right: 0; bottom: 0; background: var(--c-surface); box-shadow: var(--shadow); border: 1px solid var(--c-line); }
.b-vazio h3 { font-family: var(--f-title); font-weight: 700; font-size: 20px; color: var(--c-ink); }
.b-vazio p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--c-ink2); }

/* botao preso no pe */
.b-pe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--c-bg) 72%, rgba(243,247,246,0)); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; max-width: 448px; margin: 0 auto; border-radius: var(--r-pill); background: var(--c-tiffany-deep); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 8px 24px -8px rgba(10,140,134,.6); }
/* L7e — botao "Sair deste aparelho" no topo */
.b-sair { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
