/* Account management table alignment: enforced as the final stylesheet layer. */
body.erp-app .account-table-header,
body.erp-app .account-table-header > span,
body.erp-app .account-table-cell,
body.erp-app .account-table-cell-name,
body.erp-app .account-table-cell-account,
body.erp-app .account-table-cell-status,
body.erp-app .account-table-cell-edit,
body.erp-app .account-list-empty .account-table-cell {
  justify-content: center !important;
  text-align: center !important;
  text-align-last: center !important;
}

body.erp-app .account-table-header > span,
body.erp-app .account-table-cell {
  display: flex !important;
  align-items: center !important;
}

body.erp-app .account-table-header > span:nth-child(-n + 2),
body.erp-app .account-table-header > span:nth-child(n + 3) {
  justify-content: center !important;
  text-align: center !important;
  text-align-last: center !important;
}

body.erp-app .account-table-cell-name > span,
body.erp-app .account-table-cell-account {
  text-align: center !important;
  text-align-last: center !important;
}

body.erp-app .account-status-badge,
body.erp-app .account-more-button {
  margin-inline: auto !important;
}

/* 2026-09-14：账号管理页收尾（老板要求）：
   1) 整个模块水平居中，不要贴左边；
   2) 「新增账号」按钮居中（原来靠左）；
   3) 「总账号」分组行、名字后面的「老板」徽章、侧边栏底部的「老板」两个字都已经删掉。 */
body.erp-app .accounts-shell-minimal {
  width: min(680px, 100%) !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}

body.erp-app .accounts-list-head {
  justify-content: center !important;
  padding: 14px 0 12px !important;
}

body.erp-app .accounts-list-title {
  display: none !important;
}

/* 四列改成等宽：原来「姓名」占 1.35fr、「编辑」只有 54px，左边松右边挤。 */
body.erp-app .account-table-header,
body.erp-app .account-table-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 14px !important;
}
