/* ============================================================================
   CargaCheia — Clube de Compras Fechadas
   Design system. Roxo elegante + acento âmbar no momento do Pix.
   Display: Bricolage Grotesque | Corpo: Inter | Dados: JetBrains Mono
   ============================================================================ */

:root {
  /* Paleta (clara) */
  --uva:       #4C1D95;   /* aubergine — marca */
  --roxo:      #6D28D9;   /* primária */
  --roxo-2:    #7C3AED;
  --lavanda:   #A78BFA;
  --lilas:     #EDE9FE;
  --ambar:     #D97706;   /* sinal / Pix / CTA de pagamento */
  --ambar-sf:  #FEF3C7;
  --verde:     #059669;
  --vermelho:  #DC2626;

  --bg:        #F5F3FB;   /* off-white lilás (evita o cream padrão) */
  --superf:    #FFFFFF;
  --superf-2:  #FAF9FE;
  --borda:     #E7E3F3;
  --texto:     #241B37;
  --texto-2:   #6B6480;
  --sombra:    0 1px 2px rgba(76,29,149,.06), 0 8px 24px rgba(76,29,149,.08);
  --sombra-fl: 0 10px 40px rgba(76,29,149,.22);

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-full: 999px;
  --nav-h: 68px; --top-h: 60px; --max: 560px;
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-corpo: 'Inter', system-ui, sans-serif;
  --f-dados: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --uva:      #C4B5FD;
  --roxo:     #8B5CF6;
  --roxo-2:   #A78BFA;
  --lavanda:  #7C6BAF;
  --lilas:    #2A2440;
  --ambar:    #F59E0B;
  --ambar-sf: #3A2A12;
  --verde:    #34D399;
  --vermelho: #F87171;

  --bg:       #14111F;
  --superf:   #1E1930;
  --superf-2: #241E38;
  --borda:    #322A4A;
  --texto:    #EDE9F6;
  --texto-2:  #A79FC0;
  --sombra:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --sombra-fl:0 10px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--f-corpo);
  background: var(--bg);
  color: var(--texto);
  line-height: 1.5;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lavanda); color: #fff; }
.mono { font-family: var(--f-dados); font-feature-settings: "tnum" 1; }
.oculto { display: none !important; }

/* ---- App shell ---- */
#app { max-width: var(--max); margin: 0 auto; min-height: 100%; position: relative; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.marca .glifo { width: 26px; height: 26px; flex: none; }
.topbar .busca { flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--superf); border: 1px solid var(--borda); border-radius: var(--r-full);
  padding: 7px 12px; color: var(--texto-2); }
.topbar .busca input { flex: 1; border: none; background: none; outline: none; min-width: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center;
  color: var(--texto-2); flex: none; transition: background .15s; }
.icon-btn:active { background: var(--lilas); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---- Conteúdo / telas ---- */
main { padding: 16px 16px calc(var(--nav-h) + 28px); }
section[id^="tela-"] { display: none; animation: sobe .28s cubic-bezier(.2,.7,.3,1); }
section.ativa { display: block; }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, section.ativa { animation: none !important; transition: none !important; } }

.titulo-tela { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; margin-bottom: 2px; }
.sub-tela { color: var(--texto-2); font-size: .92rem; margin-bottom: 16px; }
.eyebrow { font-family: var(--f-dados); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--roxo); font-weight: 600; }

/* ---- Cards ---- */
.card { background: var(--superf); border: 1px solid var(--borda); border-radius: var(--r);
  box-shadow: var(--sombra); padding: 16px; margin-bottom: 14px; }
.card-oferta { cursor: pointer; transition: transform .12s, box-shadow .2s; overflow: hidden; }
.card-oferta:active { transform: scale(.985); }
.card-oferta .topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card-oferta .produto { font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.card-oferta .num { font-family: var(--f-dados); font-size: .72rem; color: var(--texto-2); }

/* ---- Badge de status ---- */
.badge { font-family: var(--f-dados); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 600; padding: 4px 9px; border-radius: var(--r-full); white-space: nowrap;
  background: var(--lilas); color: var(--roxo); }
.badge.ABERTO   { background: var(--lilas); color: var(--roxo); }
.badge.FECHADO  { background: var(--ambar-sf); color: var(--ambar); }
.badge.COMPRADO { background: color-mix(in srgb, var(--verde) 16%, transparent); color: var(--verde); }
.badge.TRANSITO { background: color-mix(in srgb, var(--roxo) 14%, transparent); color: var(--roxo-2); }
.badge.RETIRADA { background: color-mix(in srgb, var(--verde) 18%, transparent); color: var(--verde); }
.badge.FINALIZADO { background: var(--borda); color: var(--texto-2); }

/* ============================================================================
   ASSINATURA — Termômetro da carga (fill gauge estilo container)
   ============================================================================ */
.gauge { margin-top: 4px; }
.gauge .leitura { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.gauge .kg { font-family: var(--f-dados); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.gauge .kg b { color: var(--roxo); font-size: 1.35rem; }
.gauge .pct { font-family: var(--f-dados); font-size: .82rem; color: var(--texto-2); }
.container-carga {
  --n: 12;
  position: relative; height: 26px; border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(100%/var(--n) - 1px),
      var(--borda) calc(100%/var(--n) - 1px), var(--borda) calc(100%/var(--n)));
  background-color: var(--superf-2);
  border: 1.5px solid var(--borda);
  overflow: hidden;
}
.container-carga .preench {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--uva), var(--roxo) 70%, var(--roxo-2));
  border-right: 2px solid var(--ambar);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.container-carga .preench::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 3px;
  background: var(--ambar); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--ambar) 60%, transparent);
}
.container-carga.cheio .preench { background: linear-gradient(90deg, var(--verde), color-mix(in srgb,var(--verde) 75%,#000 0%)); border-right-color: var(--verde); }
.container-carga.cheio .preench::after { background: var(--verde); box-shadow: none; }

/* ---- Detalhe da oferta ---- */
.detalhe-hero { background: linear-gradient(135deg, var(--uva), var(--roxo)); color: #fff;
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--sombra-fl); }
.detalhe-hero .produto { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; }
.detalhe-hero .badge { background: rgba(255,255,255,.2); color: #fff; }
.detalhe-hero .gauge .kg, .detalhe-hero .gauge .kg b, .detalhe-hero .gauge .pct { color: #fff; }
.detalhe-hero .container-carga { background-color: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100%/12 - 1px),
    rgba(255,255,255,.18) calc(100%/12 - 1px), rgba(255,255,255,.18) calc(100%/12)); }
.detalhe-hero .container-carga .preench { background: linear-gradient(90deg, #fff, var(--lavanda)); border-right-color: var(--ambar); }
.detalhe-hero .container-carga .preench::after { background: var(--ambar); }

.linha-dados { display: flex; gap: 10px; margin-bottom: 16px; }
.dado { flex: 1; background: var(--superf); border: 1px solid var(--borda); border-radius: var(--r); padding: 12px 14px; }
.dado .rot { font-size: .72rem; color: var(--texto-2); text-transform: uppercase; letter-spacing: .05em; }
.dado .val { font-family: var(--f-dados); font-weight: 700; font-size: 1.1rem; margin-top: 3px; }

/* ---- Timeline ---- */
.tl { list-style: none; position: relative; padding-left: 8px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--borda); }
.tl li { position: relative; padding: 0 0 18px 34px; }
.tl li .ponto { position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--superf); border: 3px solid var(--roxo); }
.tl li.feito .ponto { background: var(--roxo); }
.tl li .quando { font-family: var(--f-dados); font-size: .72rem; color: var(--texto-2); }
.tl li .oque { font-weight: 600; }
.tl li .txt { color: var(--texto-2); font-size: .9rem; }
.tl li img { margin-top: 8px; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--borda); }

/* fluxo de status (barra de etapas) */
.fluxo { display: flex; gap: 4px; margin: 14px 0 4px; }
.fluxo .passo { flex: 1; height: 5px; border-radius: var(--r-full); background: var(--borda); }
.fluxo .passo.on { background: var(--roxo); }
.fluxo-legenda { font-family: var(--f-dados); font-size: .72rem; color: var(--texto-2); margin-bottom: 14px; }

/* ---- Formulários ---- */
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--texto-2); }
.campo input, .campo textarea, .campo select {
  width: 100%; background: var(--superf-2); border: 1.5px solid var(--borda); border-radius: var(--r-sm);
  padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--roxo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--roxo) 18%, transparent); }
.campo textarea { min-height: 84px; resize: vertical; }
.dica { font-size: .78rem; color: var(--texto-2); margin-top: 5px; }
.linha-campos { display: flex; gap: 10px; }
.linha-campos > .campo { flex: 1; }

/* stepper (mín/qtd) */
.stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--borda); border-radius: var(--r-sm); overflow: hidden; background: var(--superf-2); }
.stepper button { width: 52px; height: 52px; font-size: 1.5rem; font-weight: 600; color: var(--roxo); display: grid; place-items: center; }
.stepper button:active { background: var(--lilas); }
.stepper input { flex: 1; text-align: center; border: none; background: none; font-family: var(--f-dados); font-weight: 700; font-size: 1.3rem; }

/* ---- Botões ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--r-sm); font-weight: 700; width: 100%;
  transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primario { background: var(--roxo); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--roxo) 34%, transparent); }
.btn-pix { background: var(--ambar); color: #3A2503; box-shadow: 0 6px 16px color-mix(in srgb, var(--ambar) 40%, transparent); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-contorno { background: transparent; border: 1.5px solid var(--borda); color: var(--texto); }
.btn-perigo { background: transparent; border: 1.5px solid var(--vermelho); color: var(--vermelho); }
.btn-txt { width: auto; padding: 8px 12px; color: var(--roxo); font-weight: 600; }
.btn-sm { padding: 9px 14px; font-size: .86rem; width: auto; }

/* ---- Pix ---- */
.pix-box { background: var(--ambar-sf); border: 1.5px solid color-mix(in srgb, var(--ambar) 40%, transparent);
  border-radius: var(--r); padding: 16px; text-align: center; }
.pix-box .valor { font-family: var(--f-dados); font-weight: 700; font-size: 1.8rem; color: var(--ambar); letter-spacing: -.02em; }
.pix-qr { width: 190px; height: 190px; margin: 14px auto; background: #fff; padding: 10px; border-radius: var(--r-sm); }
.pix-qr canvas, .pix-qr img { width: 100%; height: 100%; }
.pix-copia { display: flex; gap: 8px; margin-top: 12px; }
.pix-copia input { flex: 1; font-family: var(--f-dados); font-size: .74rem; padding: 10px; border: 1.5px solid var(--borda);
  border-radius: var(--r-sm); background: var(--superf); overflow: hidden; text-overflow: ellipsis; }

/* ---- Bottom nav ---- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--nav-h);
  max-width: var(--max); margin: 0 auto;
  background: color-mix(in srgb, var(--superf) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--borda);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom); }
.nav .item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--texto-2);
  font-size: .66rem; font-weight: 600; flex: 1; padding: 8px 0; transition: color .15s; }
.nav .item svg { width: 24px; height: 24px; }
.nav .item.on { color: var(--roxo); }
.nav .central { flex: none; margin-top: -26px; }
.nav .central .fab { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--roxo), var(--uva));
  display: grid; place-items: center; box-shadow: var(--sombra-fl); color: #fff; }
.nav .central .fab svg { width: 28px; height: 28px; }
.nav .central .fab:active { transform: scale(.94); }

/* ---- Bottom sheet ---- */
.sheet-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(20,10,40,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-fundo.aberto { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: var(--max); margin: 0 auto;
  background: var(--superf); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sombra-fl);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 90vh; overflow-y: auto; padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); }
.sheet.aberto { transform: none; }
.sheet .puxador { width: 40px; height: 4px; border-radius: var(--r-full); background: var(--borda); margin: 8px auto 14px; }
.sheet h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 4px; }

/* ---- Toast ---- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 14px); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--texto); color: var(--bg); padding: 12px 18px; border-radius: var(--r-full);
  font-size: .88rem; font-weight: 600; box-shadow: var(--sombra-fl); max-width: 90%;
  animation: toastIn .25s, toastOut .25s 2.4s forwards; }
.toast.erro { background: var(--vermelho); color: #fff; }
.toast.ok { background: var(--verde); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---- Estados vazios ---- */
.vazio { text-align: center; padding: 48px 20px; color: var(--texto-2); }
.vazio .glifo { width: 64px; height: 64px; margin: 0 auto 14px; opacity: .55; }
.vazio h4 { font-family: var(--f-display); font-weight: 700; color: var(--texto); margin-bottom: 4px; }

/* ---- Auth ---- */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  max-width: 420px; margin: 0 auto; padding: 24px; }
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo .glifo { width: 76px; height: 76px; margin: 0 auto 12px; }
.auth-logo h1 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; }
.auth-logo p { color: var(--texto-2); font-size: .92rem; }
.auth-tabs { display: flex; background: var(--lilas); border-radius: var(--r-full); padding: 4px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: var(--r-full); font-weight: 700; color: var(--texto-2); }
.auth-tabs button.on { background: var(--superf); color: var(--roxo); box-shadow: var(--sombra); }
.auth-link { text-align: center; margin-top: 14px; }

/* ---- Skeleton / carregando ---- */
.skel { background: linear-gradient(90deg, var(--borda) 25%, var(--superf-2) 50%, var(--borda) 75%);
  background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--r-sm); }
@keyframes sh { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: gira .7s linear infinite; }
.spinner.roxo { border-color: color-mix(in srgb, var(--roxo) 30%, transparent); border-top-color: var(--roxo); }
@keyframes gira { to { transform: rotate(360deg); } }

/* lista admin de reservas */
.linha-reserva { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.linha-reserva:last-child { border-bottom: none; }
.linha-reserva .info { flex: 1; min-width: 0; }
.linha-reserva .nome { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-reserva .meta { font-family: var(--f-dados); font-size: .78rem; color: var(--texto-2); }
.pg { font-family: var(--f-dados); font-size: .66rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-full); }
.pg.PENDENTE  { background: var(--borda); color: var(--texto-2); }
.pg.ENVIADO   { background: var(--ambar-sf); color: var(--ambar); }
.pg.CONFIRMADO{ background: color-mix(in srgb, var(--verde) 18%, transparent); color: var(--verde); }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--superf); border: 1px solid var(--borda); border-radius: var(--r); padding: 16px; }
.kpi .v { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.kpi .l { font-size: .78rem; color: var(--texto-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: var(--r-full); background: var(--superf); border: 1.5px solid var(--borda);
  font-size: .82rem; font-weight: 600; color: var(--texto-2); white-space: nowrap; }
.chip.on { background: var(--roxo); border-color: var(--roxo); color: #fff; }

@media print {
  .topbar, .nav, #toasts, .sheet-fundo, .sheet, .btn { display: none !important; }
  body { background: #fff; }
}

/* ============================================================================
   RESPONSIVIDADE (item 1) — telas estreitas (iPhone SE, Android compactos)
   ============================================================================ */
html, body { overflow-x: hidden; }
* { min-width: 0; } /* evita que flex/grid filhos estourem a largura do pai */

.topbar .busca input { min-width: 0; }
.marca { min-width: 0; }
.marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 420px) {
  .marca .hide-busca { display: none; } /* esconde o texto da marca, mantém só o glifo */
  .topbar { padding: 0 10px; gap: 6px; }
  main { padding: 12px 12px calc(var(--nav-h) + 24px); }
  .titulo-tela { font-size: 1.32rem; }
  .detalhe-hero { padding: 16px; }
  .detalhe-hero .produto { font-size: 1.4rem; }
  .linha-campos { flex-direction: column; gap: 0; }
  .linha-campos > .campo { flex: none; }
  .linha-dados { gap: 8px; }
  .dado { padding: 10px; }
  .dado .val { font-size: .95rem; }
  .kpi-grid { gap: 8px; }
  .kpi .v { font-size: 1.3rem; }
  .stepper button { width: 44px; height: 48px; }
  .pix-qr { width: 160px; height: 160px; }
  .card { padding: 13px; }
  .nav .item { font-size: .6rem; }
  .nav .central .fab { width: 54px; height: 54px; }
}

@media (max-width: 360px) {
  .produto { font-size: 1.02rem; }
  .badge { font-size: .62rem; padding: 3px 7px; }
  .linha-dados { flex-wrap: wrap; }
  .dado { min-width: calc(50% - 4px); }
}

/* Garante que textos longos (produto, nomes) quebrem em vez de estourar a tela */
.card-oferta .produto, .detalhe-hero .produto, .linha-reserva .nome { overflow-wrap: anywhere; }

/* ============================================================================
   FEEDBACK DE TOQUE (item 6) — resposta imediata ao clique, antes do delay de rede
   ============================================================================ */
.btn, .chip, .card-oferta, .nav .item, .icon-btn, .fab, .btn-txt {
  transition: transform .08s ease, opacity .08s ease, background .15s ease;
}
.btn.tocado, .btn-txt.tocado { transform: scale(.96); opacity: .85; }
.chip.tocado { transform: scale(.94); }
.card-oferta.tocado { transform: scale(.98); box-shadow: none; }
.icon-btn.tocado, .fab.tocado { transform: scale(.88); background: var(--lilas); }
.nav .item.tocado svg { transform: scale(1.15); }
.nav .item svg { transition: transform .15s ease; }

/* ============================================================================
   FOTO DO PRODUTO (itens 5, 8, 9) — capa no card, thumbnail de comprovante
   ============================================================================ */
.capa-oferta { margin: -16px -16px 12px; border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  height: 150px; background: var(--superf-2); }
.capa-oferta img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-comprovante { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover;
  border: 1px solid var(--borda); cursor: pointer; flex: none; }

