/* TJP Tracker v0.6.11
   Refinamento de alinhamento e marcas. Sem redesign estrutural.
*/

/* Logos oficiais: respeitam proporção e nunca são esticados. */
.firm-logo{
  width:24px!important;height:24px!important;min-width:24px!important;
  padding:2px!important;border:1px solid #222a32!important;background:#080b0e!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;
}
.firm-logo img{
  position:static!important;display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:100%!important;padding:0!important;object-fit:contain!important;background:transparent!important;
}
.firm-logo.brand-mark-v611 img{max-width:19px!important;max-height:19px!important}
.firm-logo.payout{width:28px!important;height:28px!important;min-width:28px!important;padding:3px!important}
.firm-logo.payout img{max-width:22px!important;max-height:22px!important}
.firm-logo em{position:static!important;width:100%!important;height:100%!important;display:grid!important;place-items:center!important;font-size:7px!important}
.firm-logo em[hidden],.wallet-brand-logo em[hidden]{display:none!important}
.firm-lockup-v611{align-items:center!important;gap:7px!important;min-width:0!important}
.firm-lockup-v611>span:last-child{min-width:0!important}
.firm-lockup-v611 b,.firm-lockup-v611 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Contas e carteiras: agrupadas por titular/CPF. */
.wallet-grid-v65{
  display:block!important;margin-top:14px!important;background:transparent!important;border:0!important;
}
.wallet-owner-section-v611+ .wallet-owner-section-v611{margin-top:22px!important;padding-top:20px!important;border-top:1px solid #1d252d!important}
.wallet-owner-head-v611{
  min-height:42px!important;margin:0 0 10px!important;padding:0 1px 9px!important;border-bottom:1px solid #202831!important;
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;
}
.wallet-owner-head-v611>span:first-child{display:grid!important;grid-template-columns:auto auto!important;align-items:baseline!important;column-gap:8px!important;min-width:0!important}
.wallet-owner-head-v611>span:first-child small{grid-column:1/-1;font-size:7px;color:#62707c;letter-spacing:.12em}
.wallet-owner-head-v611>span:first-child b{font-size:11px;color:#f3f6f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-owner-head-v611>span:first-child em{font-size:7px;color:#78838e;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-owner-summary-v611{text-align:right;flex:none}
.wallet-owner-summary-v611 small,.wallet-owner-summary-v611 strong{display:block}
.wallet-owner-summary-v611 small{font-size:7px;color:#697681}
.wallet-owner-summary-v611 strong{margin-top:3px;font-size:9px;color:#c4e665}
.wallet-owner-grid-v611{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;
}
.wallet-credit-card-v611{
  width:100%!important;min-width:0!important;height:172px!important;min-height:172px!important;max-height:172px!important;
  aspect-ratio:auto!important;margin:0!important;padding:13px!important;box-sizing:border-box!important;
}
.wallet-credit-card-v611 .wallet-credit-top{min-height:32px!important;align-items:center!important}
.wallet-credit-card-v611 .wallet-brand-lockup{min-width:0!important;gap:9px!important}
.wallet-brand-logo{
  display:grid!important;place-items:center!important;overflow:visible!important;padding:0!important;box-sizing:border-box!important;
}
.wallet-brand-logo img{
  display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;background:transparent!important;
}
.wallet-logo-wordmark-v611{width:60px!important;height:24px!important;flex:0 0 60px!important}
.wallet-logo-mark-v611{width:30px!important;height:30px!important;flex:0 0 30px!important}
.wallet-logo-fallback-v611{width:34px!important;height:30px!important;flex:0 0 34px!important}
.wallet-brand-logo em{font-size:8px!important}
.wallet-brand-copy{min-width:0!important;align-self:center!important}
.wallet-brand-copy b{font-size:9px!important;line-height:1.15!important}
.wallet-brand-copy small{font-size:7px!important;line-height:1.15!important}
.wallet-credit-main{align-self:center!important;min-width:0!important}
.wallet-credit-main .wallet-balance{font-size:19px!important;line-height:1.05!important}
.wallet-credit-bottom{min-height:27px!important;align-items:end!important}
.wallet-card .wallet-actions .mini-btn{height:24px!important;min-height:24px!important;padding:0 7px!important}

/* Payouts: logos ajudam a identificar a origem sem alterar a tabela. */
.payout-account-lockup-v611{display:inline-flex!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important}
.payout-account-lockup-v611>span:last-child{min-width:0!important;display:block!important}
.payout-account-lockup-v611 b,.payout-account-lockup-v611 small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.payout-account-lockup-v611 b{font-size:8px!important;color:#f2f5f7!important}
.payout-account-lockup-v611 small{margin-top:2px!important;font-size:7px!important;color:#747f89!important}
.payout-account-placeholder-v611{width:28px;height:28px;display:grid;place-items:center;border:1px solid #222a32;color:#59636c}
.payout-table-v66{table-layout:fixed!important;width:100%!important}
.payout-table-v66 th,.payout-table-v66 td{vertical-align:middle!important;padding-top:10px!important;padding-bottom:10px!important}
.payout-table-v66 th:nth-child(1){width:15%}.payout-table-v66 th:nth-child(2){width:20%}.payout-table-v66 th:nth-child(3){width:18%}.payout-table-v66 th:nth-child(4){width:24%}.payout-table-v66 th:nth-child(5){width:11%}.payout-table-v66 th:nth-child(6){width:12%}
.payout-table-v66 td{overflow:hidden!important}
.payout-table-v66 .table-actions{display:flex!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important}
.payout-hero-origin-v611{display:block!important;margin-top:8px!important}
.payout-hero-origin-v611>.payout-account-lockup-v611{display:flex!important}
.payout-hero-origin-v611>small{display:block!important;margin:5px 0 0 36px!important;color:#707c86!important;font-size:7px!important}
.payout-firm-line-v611{min-height:42px!important;align-items:center!important}
.payout-firm-line-v611>span{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
.payout-firm-line-v611>span>span{min-width:0!important}
.payout-firm-line-v611 b,.payout-firm-line-v611 small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.certificate-card-v611 .payout-account-lockup-v611{margin:4px 0 2px!important}
.certificate-card-v611 .firm-logo{width:22px!important;height:22px!important;min-width:22px!important}

/* Refinamento geral: alturas, espaços e ações previsíveis. */
.finance-card>.widget-head,.payout-certificates-head-v67{align-items:flex-start!important;gap:14px!important}
.finance-card>.widget-head>div,.payout-certificates-head-v67>div{min-width:0!important}
.finance-card .section-help{max-width:760px!important;line-height:1.45!important}
.finance-kpis-v65 .finance-kpi,.payout-kpis-v66 .payout-kpi-v66{min-height:92px!important;box-sizing:border-box!important}
.finance-filterbar-v65 label,.payout-filterbar-v66 label{min-width:0!important}
.finance-filterbar-v65 select,.payout-filterbar-v66 select{width:100%!important}
.data-table th{white-space:nowrap!important}
.data-table td{line-height:1.35!important}
.table-actions .mini-btn{white-space:nowrap!important}

@media(max-width:1280px){.wallet-owner-grid-v611{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:940px){
  .wallet-owner-grid-v611{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .payout-table-v66{table-layout:auto!important}
}
@media(max-width:620px){
  .wallet-owner-grid-v611{grid-template-columns:1fr!important}
  .wallet-owner-head-v611{align-items:flex-start!important;flex-direction:column!important}
  .wallet-owner-summary-v611{text-align:left!important}
  .wallet-credit-card-v611{height:174px!important;min-height:174px!important;max-height:174px!important}
}
.wallet-credit-card-v611 .wallet-brand-lockup{flex:1 1 auto!important}
.wallet-credit-card-v611 .wallet-brand-copy{flex:1 1 auto!important}
