/* Celular: tabelas viram cartões (padrão Yampi, CartPanda e Shopify). As células recebem data-label em js/tabelas-celular.js. */
@media (max-width: 700px) {
  .rolagem:has(> table.tabela-cartoes) { overflow: visible; margin: 0 !important; padding: 0 !important; }
  table.tabela-cartoes, table.tabela-cartoes tbody { display: block; width: 100%; }
  table.tabela-cartoes thead { display: none; }
  table.tabela-cartoes tbody { display: grid; gap: 10px; }
  table.tabela-cartoes tr { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--linha, #e7e6ec); border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 16, 40, .05); }
  table.tabela-cartoes tr:hover td { background: none !important; }
  table.tabela-cartoes td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0 !important; border: 0 !important; text-align: right !important; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
  table.tabela-cartoes td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--tinta-3, #8a8792); font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
  table.tabela-cartoes td[data-label=""]::before { content: none; }
  table.tabela-cartoes td[data-label=""] { justify-content: flex-end; }
  /* primeira coluna = título do cartão (número do pedido, nome do cliente) */
  table.tabela-cartoes td:first-child { justify-content: flex-start; text-align: left !important; font-weight: 600; font-size: .95rem; padding-bottom: 9px !important; margin-bottom: 4px; border-bottom: 1px solid var(--linha, #e7e6ec) !important; }
  table.tabela-cartoes td:first-child::before { content: none; }
  table.tabela-cartoes td:first-child .sub { text-align: left; }
  table.tabela-cartoes td { flex-wrap: wrap; }
  table.tabela-cartoes td .sub { display: block; flex-basis: 100%; text-align: right; margin-top: -2px; }
  table.tabela-cartoes td > :is(select, input) { max-width: 60%; }
  table.tabela-cartoes td:empty { display: none; }
  table.tabela-cartoes td .botoes, table.tabela-cartoes td[style*="white-space"] { flex-wrap: wrap; justify-content: flex-end; white-space: normal !important; }

  /* gestão: filtros em grade de 2 colunas, num cartão branco, e as listas direto no fundo */
  .conteudo .filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .conteudo .filtros > .campo, .conteudo .filtros > label { min-width: 0; flex: none; }
  .conteudo .filtros > .campo.cresce, .conteudo .filtros > .abas, .conteudo .filtros > .marcar { grid-column: 1 / -1; }
  .conteudo .folha:has(table.tabela-cartoes) { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .conteudo .folha:has(table.tabela-cartoes) > .filtros { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 12px; }
}

/* arrastar para baixo para recarregar: bolinha que desce do topo e gira */
html, body { overscroll-behavior-y: contain; }
.puxar-ind { position: fixed; top: 52px; left: 50%; z-index: 90; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1d1b22; box-shadow: 0 6px 18px -6px rgba(20, 16, 40, .35), 0 0 0 1px rgba(20, 16, 40, .06); display: grid; place-items: center; transform: translate(-50%, -56px); opacity: 0; pointer-events: none; transition: opacity .15s; }
.puxar-ind svg { width: 20px; height: 20px; }
.puxar-ind.pronto { color: #7b4dff; }
.puxar-ind.girando { transition: transform .2s; }
.puxar-ind.girando svg { display: none; }
.puxar-ind.girando::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid #e4dcff; border-top-color: #7b4dff; animation: puxar-gira .7s linear infinite; }
@keyframes puxar-gira { to { transform: rotate(360deg); } }

/* botão de olho para ver a senha digitada */
.senha-caixa { position: relative; display: block; }
.senha-caixa > input { width: 100%; padding-right: 48px !important; }
.ver-senha { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px !important; height: 40px; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px; background: none !important; box-shadow: none !important; color: #6b6780 !important; cursor: pointer; }
.ver-senha:hover, .ver-senha[aria-pressed="true"] { color: #1d1b22 !important; }
.ver-senha svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
