/* HRIS-wide table column headings: centered consistently.
   Applied only to header cells; body data alignment remains unchanged. */
#app table thead th,
#app table thead td,
#app table tr th[scope="col"],
#app .p-datatable .p-datatable-thead > tr > th,
#app [role="table"] [role="columnheader"],
#app [role="grid"] [role="columnheader"],
.modal-card table thead th,
.modal-card table thead td,
.modal-card table tr th[scope="col"],
.modal-card .p-datatable .p-datatable-thead > tr > th {
  text-align: center !important;
}
/* PrimeVue wraps header labels in flex containers; center those as well. */
#app .p-datatable .p-column-header-content,
.modal-card .p-datatable .p-column-header-content {
  justify-content: center !important;
}
/* Keep grouped/spanning titles centered too. */
#app table thead th[colspan],
.modal-card table thead th[colspan] {
  text-align: center !important;
}

/* modal-safe canonical heading alignment.
   Dashboard's db85 modal is Vue Teleport(to="body"), OUTSIDE #app and .workspace.
   Global heading alignment must therefore also cover body-level dialogs.
   Do not change alignment of any data cells (tbody td). */
body > .db85-modal-backdrop .db85-detail-modal .db74-table table thead tr > th,
body > .db85-modal-backdrop .db85-detail-modal .db74-table table thead tr > td,
body > .db85-modal-backdrop table thead tr > th,
body > .db85-modal-backdrop table thead tr > td,
body > .db85-modal-backdrop .p-datatable .p-datatable-thead > tr > th,
body > .db85-modal-backdrop [role="table"] [role="columnheader"],
body > .db85-modal-backdrop [role="grid"] [role="columnheader"],
body > .p-dialog-mask table thead tr > th,
body > .p-dialog-mask table thead tr > td,
body > .p-dialog-mask .p-datatable .p-datatable-thead > tr > th,
body > .p-overlay-mask table thead tr > th,
body > .p-overlay-mask table thead tr > td,
body > .modal-backdrop table thead tr > th,
body > .modal-backdrop table thead tr > td,
body > .modal-card table thead tr > th,
body > .modal-card table thead tr > td {
  text-align: center !important;
}
body > .db85-modal-backdrop .p-datatable .p-column-header-content,
body > .p-dialog-mask .p-datatable .p-column-header-content,
body > .p-overlay-mask .p-datatable .p-column-header-content {
  justify-content: center !important;
}
