/* =====================================================================
   VexaPay - fonte única (Satoshi) e leitura no celular
   Carregado por último: só muda tipografia e a forma das tabelas/campos
   no celular. Cores, textos e funções continuam iguais.
   ===================================================================== */

/* ---------- 1. Fonte única em todo o site ---------- */
:root,
html[data-vx-theme],
html body{
  --vx-fonte:'Satoshi','Segoe UI',system-ui,-apple-system,Roboto,sans-serif;
  --vxa-font-display:var(--vx-fonte);
  --vxa-font-mono:var(--vx-fonte);
  --vh-disp:var(--vx-fonte);
  --vh-body:var(--vx-fonte);
  --vh-mono:var(--vx-fonte);
  --display:var(--vx-fonte);
  --body:var(--vx-fonte);
}
html body,
html body *:not(code):not(pre):not(kbd):not(samp):not(pre *):not(code *){
  font-family:var(--vx-fonte)!important;
}
html body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* números de dinheiro alinhados (sem fonte "de código") */
html body :is(td,strong,b,.money,.stat strong,[class*="saldo"],[class*="valor"],[class*="amount"],[class*="balance"],[class*="money"]){
  font-variant-numeric:tabular-nums;
}

/* ---------- 2. Sem legendas em CAIXA ALTA espaçada ---------- */
html body :is(
  th,.label,.kicker,.cc-field-label,.cc-section-title,.vxn-page-head small,
  body .stat span,.stat span,.vxa2-hero-eyebrow,.vxa2-chart-tooltip .tt-label,.vxa2-panel-head small,
  .vh-eyebrow,.vh-kicker,.vh-tag,.vh-badge,.vh-footer-grid h4,.vh-dash-kpi small,.vh-dash-card small,
  .vexa-auth-formbox label,.vexa-auth-secure,.mr-table-wrap th,.pix-active-count span,.vxr-section-title,
  .pix-payment-head span:first-child,.pix-countdown span,.vexa-page-profile label,.vexa-page-admin th,
  .co-box h4,.vxrk-kicker,.vxrk-timer-label,.prod-price span,.sgx-costs-h,.sgx-dns span,.sc-group,.sc-side h3,
  .page-head small,.count span,.bank-eyebrow,.pix-pro-kicker,.pix-pro-label,#vxLoader .vxl-corner,#vxLoader .vxl-skip
){
  text-transform:none!important;
  letter-spacing:0!important;
}
html body .responsive-table td::before{text-transform:none!important;letter-spacing:0!important}
html body .cc-field-label,html body .cc-section-title{font-size:13px!important;font-weight:700!important}
html body .side .label{font-size:13px!important;font-weight:700!important}

/* ---------- 3. Rótulos dos campos (cartões de clientes) ----------
   No computador o rótulo some e o layout fica igual ao de antes. */
.vxt-campo{display:contents}
.vxt-campo>.vxt-rotulo{display:none}

/* =====================================================================
   4. Celular: tabelas viram cartões fáceis de ler
   (só as tabelas preparadas pelo vexa-tabela.js, que ganham .vxt-cards)
   ===================================================================== */
@media (max-width:760px){
  .table:has(> table.vxt-cards),.table-wrap:has(> table.vxt-cards){
    overflow:visible!important;border-radius:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  table.vxt-cards{min-width:0!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;display:block!important}
  table.vxt-cards>tbody,table.vxt-cards>thead{display:block!important}
  table.vxt-cards tr.vxt-head{display:none!important}

  table.vxt-cards tr:not(.vxt-head){
    display:block!important;
    margin:0 0 12px!important;
    padding:14px 16px 12px!important;
    border:1px solid var(--vb-line,rgba(255,255,255,.08))!important;
    border-radius:16px!important;
    background:var(--vb-surface,#141624)!important;
    box-shadow:none!important;
  }
  table.vxt-cards tr:not(.vxt-head):last-child{margin-bottom:0!important}

  table.vxt-cards td{
    display:flex!important;justify-content:space-between;align-items:baseline;gap:14px;
    width:auto!important;padding:8px 0!important;border:0!important;
    white-space:normal!important;text-align:right!important;
    font-size:15px!important;line-height:1.35;overflow-wrap:anywhere;min-width:0;
    background:transparent!important;
  }
  table.vxt-cards td::before{
    content:attr(data-label);
    flex:0 0 auto;max-width:46%;text-align:left;
    font-size:13.5px;font-weight:500;line-height:1.35;
    color:var(--vb-muted,#9AA0B8);
    text-transform:none!important;letter-spacing:0!important;
  }
  table.vxt-cards td+td{border-top:1px solid var(--vb-line,rgba(255,255,255,.06))!important}
  table.vxt-cards td>small,table.vxt-cards td .muted{font-size:13px}

  /* 1ª coluna (cliente / referência) vira o título do cartão */
  table.vxt-cards td.vxt-first{
    display:block!important;text-align:left!important;
    font-size:16.5px!important;font-weight:700;padding:0 0 10px!important;
  }
  table.vxt-cards td.vxt-first::before{display:none}
  table.vxt-cards td.vxt-first small,table.vxt-cards td.vxt-first .muted{display:inline-block;margin-top:3px;font-weight:500;font-size:13.5px}
  table.vxt-cards td.vxt-first+td{border-top:1px solid var(--vb-line,rgba(255,255,255,.08))!important}

  /* valores em dinheiro: maiores e em destaque */
  table.vxt-cards td.vxt-money{font-size:17px!important;font-weight:700;font-variant-numeric:tabular-nums}
  table.vxt-cards td>.vxt-v{display:block;flex:1 1 auto;min-width:0;text-align:right}
  table.vxt-cards td>.vxt-v>br{display:none}
  table.vxt-cards td>.vxt-v>small,table.vxt-cards td>.vxt-v>.muted{display:block;margin-top:3px;font-size:13px;font-weight:500;line-height:1.35}
  table.vxt-cards td.vxt-money>.vxt-v>small{font-size:12.5px}

  /* coluna de ações: largura total, botões grandes */
  table.vxt-cards td.vxt-acoes{display:block!important;text-align:left!important;padding-top:12px!important}
  table.vxt-cards td.vxt-acoes::before{display:block;max-width:none;margin-bottom:8px}
  table.vxt-cards td.vxt-acoes .actions,table.vxt-cards td.vxt-acoes form{display:flex!important;flex-wrap:wrap;gap:8px;width:100%;margin:0 0 8px}
  table.vxt-cards td.vxt-acoes input:not([type=hidden]):not([type=checkbox]),
  table.vxt-cards td.vxt-acoes select{width:100%!important;flex:1 1 100%;min-height:46px;font-size:16px!important;padding:10px 12px!important}
  table.vxt-cards td.vxt-acoes .btn,table.vxt-cards td.vxt-acoes button{flex:1 1 0;min-height:46px;font-size:15px!important;justify-content:center}
  table.vxt-cards td.vxt-acoes .actions>form{flex:1 1 0!important;width:auto!important;margin:0!important;min-width:0}
  table.vxt-cards td.vxt-acoes .actions>form>.btn,table.vxt-cards td.vxt-acoes .actions>form>button{width:100%;padding-left:6px!important;padding-right:6px!important;white-space:nowrap;font-size:14px!important}
  table.vxt-cards td.vxt-acoes details{width:100%}
  table.vxt-cards td.vxt-acoes small{display:block}

  /* linha com uma célula só (aviso / vazio) */
  table.vxt-cards td.vxt-full{display:block!important;text-align:left!important}
  table.vxt-cards td.vxt-full::before{display:none}

  /* status mais visível */
  table.vxt-cards td .status{font-size:13px;padding:5px 11px}

  /* ---------- Cartões de clientes (admin) ---------- */
  .client-card .cc-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px}
  .client-card .cc-field-value{font-size:15px!important}
  .client-card .cc-field-value.money,.client-card .cc-field:last-child .cc-field-value{font-size:17px!important;font-weight:700}
  .vxt-campo{display:flex;flex-direction:column;gap:6px;flex:1 1 100%;min-width:0}
  .vxt-campo>.vxt-rotulo{display:block;font-size:13.5px;font-weight:600;color:var(--vb-muted,#9AA0B8)}
  .vxt-campo>input,.vxt-campo>select{width:100%!important;max-width:100%;min-height:46px;font-size:16px!important}
  .client-card .cc-form .cc-btn,.client-card .cc-form .btn{min-height:46px;font-size:15px!important}
}
@media (max-width:420px){
  .client-card .cc-info-grid{grid-template-columns:1fr!important}
  table.vxt-cards tr:not(.vxt-head){padding:13px 14px 11px!important}
}
