/* R2.9.5.10 - 表头对齐专项修正
 * 用户要求：万达式业务表格表头全部水平/垂直居中；正文仍按字段类型对齐。
 * 本层仅修展示，不修改任何业务数据、金额或计费规则。
 */
body.r29510-wanda-head-align #appShell table thead th{
  text-align:center!important;
  vertical-align:middle!important;
}
body.r29510-wanda-head-align #appShell table thead th > .r29510-th-inner{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.18!important;
  white-space:normal!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
}

/* 商户账务：两层表头按万达模板强制几何居中。 */
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead th{
  text-align:center!important;
  vertical-align:middle!important;
  padding:0 4px!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead tr:first-child th{
  height:36px!important;
  line-height:1.18!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead tr:nth-child(2) th{
  height:34px!important;
  line-height:1.15!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead th[rowspan="2"] .r29510-th-inner{
  min-height:68px!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead tr:first-child th:not([rowspan="2"]) .r29510-th-inner{
  min-height:34px!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead tr:nth-child(2) th .r29510-th-inner{
  min-height:32px!important;
}

/* 表头全部居中，但正文继续按业务类型排版。 */
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table tbody td:nth-child(1),
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table tbody td:nth-child(13){
  text-align:center!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table tbody td:nth-child(2){
  text-align:left!important;
}
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table tbody td:nth-child(n+3):nth-child(-n+12){
  text-align:right!important;
  font-variant-numeric:tabular-nums!important;
  font-feature-settings:'tnum' 1!important;
}

/* 应收明细、合同、铺位等普通单层表头也统一为万达式居中。 */
body.r29510-wanda-head-align #panel-bills table thead th,
body.r29510-wanda-head-align #panel-contracts table thead th,
body.r29510-wanda-head-align #panel-shops table thead th,
body.r29510-wanda-head-align #panel-multi table thead th,
body.r29510-wanda-head-align #panel-ads table thead th{
  text-align:center!important;
  vertical-align:middle!important;
}

/* 防止旧样式给表头加不一致的左右内边距造成视觉偏移。 */
body.r29510-wanda-head-align #panel-merchantFinance .r2957-wanda-finance-table thead th,
body.r29510-wanda-head-align #panel-bills table thead th{
  box-sizing:border-box!important;
  text-indent:0!important;
}
