/* Box Boy Web V5.8.54 — centralização consistente dos resultados das pesquisas.
   Escopo: apenas tabelas/listagens do painel administrativo. Não altera mapas,
   cards de pedidos, Android, PWA ou integrações. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) :is(
  #reportsPage,#couriersPage,#registrationsPage,#storesAdminPage,#clientsPage,
  #contractsPage,#billingChargesPage,#automaticFinancePage,
  #minimumGuaranteePage,#withdrawalsPage,#quickWithdrawPage,#commissionsPage,
  #financePage,#billingTablesPage,#paymentTablesPage,#whatsappPage,#auditPage,
  #collectionsPage
) :is(table th,table td){
  text-align:center!important;
  vertical-align:middle!important;
}

body:is(.boxboy-theme-light,.boxboy-theme-dark) :is(
  #reportsPage,#couriersPage,#registrationsPage,#storesAdminPage,#clientsPage,
  #contractsPage,#billingChargesPage,#automaticFinancePage,
  #minimumGuaranteePage,#withdrawalsPage,#quickWithdrawPage,#commissionsPage,
  #financePage,#billingTablesPage,#paymentTablesPage,#whatsappPage,#auditPage,
  #collectionsPage
) :is(
  .bb33-sort-head,.bb36-th-sort,.bb37-th-sort,.bb38-fin-sort,
  .bb39-billing-sort,.bb-th-sort-v5835
){
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
}

/* Relatórios: a V5.8.53 preservava alinhamentos laterais por coluna.
   Agora todos os resultados e títulos ficam alinhados ao centro. */
#reportsPage .general-report-tablewrap :is(th,td):nth-child(n){
  text-align:center!important;
}
#reportsPage .general-report-tablewrap .bb33-sort-head{
  justify-content:center!important;
  text-align:center!important;
}
#reportsPage .general-report-tablewrap tbody td:nth-child(6),
#reportsPage .general-report-tablewrap tbody td:nth-child(7){
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* Lojas */
#storesAdminPage .v50-admin-table :is(th,td){text-align:center!important;}
#storesAdminPage .v50-logo-cell{margin-inline:auto;}
#storesAdminPage .v50-muted,
#storesAdminPage .v50-code,
#storesAdminPage .v50-admin-table a,
#storesAdminPage .v50-admin-table b,
#storesAdminPage .v50-admin-table small{
  text-align:center!important;
}
#storesAdminPage .v50-actions{justify-content:center!important;}

/* Cadastros > Entregadores */
#registrationsPage .courier-admin-table-v539 :is(th,td),
#registrationsPage .courier-admin-name-v539,
#registrationsPage .courier-admin-sub-v539,
#registrationsPage .courier-last-online-v5756{
  text-align:center!important;
}
#registrationsPage .courier-admin-avatar-v539{margin-inline:auto;}
#registrationsPage .courier-admin-actions-v539{justify-content:center!important;}

/* Financeiro > Cobrança */
#billingChargesPage #billingMainTableV5719.billing-table-v5722 :is(th,td),
#billingChargesPage .billing-table-v571 :is(th,td){
  text-align:center!important;
}
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .nfse-summary-v5718,
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .nfse-summary-title-v5718,
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .bill-actions-v5722,
#billingChargesPage .billing-link-actions-v571{
  justify-content:center!important;
  text-align:center!important;
}
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .nfse-summary-v5718 small,
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .nfse-summary-v5718 a,
#billingChargesPage #billingMainTableV5719.billing-table-v5722 .nfse-summary-v5718 b{
  text-align:center!important;
}

/* Saques, contratos, mínimo garantido, auditoria e listas auxiliares */
#withdrawalsPage .wd-table-v5622 :is(th,td),
#contractsPage table :is(th,td),
#minimumGuaranteePage table :is(th,td),
#auditPage table :is(th,td),
#collectionsPage table :is(th,td),
#financePage table :is(th,td),
#automaticFinancePage table :is(th,td),
#commissionsPage table :is(th,td),
#paymentTablesPage table :is(th,td),
#billingTablesPage table :is(th,td),
#whatsappPage table :is(th,td){
  text-align:center!important;
}

#withdrawalsPage :is(.wd-table-v5622 .bb-th-sort-v5835,.wd-table-v5622 .bb33-sort-head),
#minimumGuaranteePage .bb36-th-sort,
#contractsPage .bb36-th-sort,
#auditPage .bb-th-sort-v5835,
#collectionsPage .bb-th-sort-v5835,
#financePage .bb38-fin-sort,
#billingTablesPage .bb39-billing-sort,
#paymentTablesPage .bb39-billing-sort,
#whatsappPage .bb37-th-sort{
  justify-content:center!important;
  text-align:center!important;
}

/* Grupos de ações e badges seguem centralizados na própria célula. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) :is(
  #reportsPage,#registrationsPage,#storesAdminPage,#billingChargesPage,
  #minimumGuaranteePage,#withdrawalsPage,#financePage,#auditPage,
  #collectionsPage,#automaticFinancePage,#commissionsPage,#paymentTablesPage,
  #billingTablesPage,#whatsappPage
) table td :is(
  .v50-actions,.courier-admin-actions-v539,.report-action-group-v5842,
  .bb37-table-actions,.billing-row-actions-v5722,.bill-actions-v5722,
  .billing-link-actions-v571
){
  justify-content:center!important;
  align-items:center!important;
  margin-inline:auto;
}

/* Subtextos dentro das células também ficam sob o mesmo eixo do cabeçalho. */
body:is(.boxboy-theme-light,.boxboy-theme-dark) :is(
  #reportsPage,#registrationsPage,#storesAdminPage,#billingChargesPage,
  #withdrawalsPage,#financePage,#collectionsPage,#automaticFinancePage,
  #commissionsPage,#whatsappPage
) table td :is(div,small,span,b,strong,p,a){
  text-align:inherit;
}
