/* Purchase invoice register only; keep column sizing and bindings intact. */
#purchasesTable.record-register .record-register-head > [role="columnheader"],
#purchasesTable.record-register .record-register-row > [role="cell"] {
 text-align:center !important;
}
#purchasesTable.record-register .record-register-head > [role="columnheader"]::before {content:'( ';}
#purchasesTable.record-register .record-register-head > [role="columnheader"]::after {content:' )';}
#purchasesTable.record-register .record-register-row > [role="cell"] > button {margin-inline:auto;}

#purchasesPage .section-title-row:has(+ .purchase-filters) > div:first-child{text-align:center!important;flex:1}
html body #purchaseServiceModal .purchase-service-modal-head > div:first-child{width:100%!important;flex:1 0 100%!important;text-align:center!important;padding-inline:0!important}
html body #purchaseServiceModal .purchase-service-modal-head{flex-wrap:wrap!important}
html body #purchasesTable:not(#centerA#centerB#centerC) .record-register-row > [role="cell"],html body #purchasesTable:not(#centerA#centerB#centerC) .record-register-head > [role="columnheader"]{text-align:center!important;justify-self:stretch!important}
html body #purchaseServiceModal:not(#centerA#centerB#centerC) .purchase-service-modal-head > div:first-child,html body #purchaseServiceModal:not(#centerA#centerB#centerC) #purchaseServiceModalTitle,html body #purchaseServiceModal:not(#centerA#centerB#centerC) #purchaseServiceModalSubtitle{width:100%!important;text-align:center!important}
html body #purchasesPage:not(#centerA#centerB#centerC) > .dashboard-header > div:first-child{width:100%!important;flex:1 0 100%!important;text-align:center!important;padding-inline:0!important}
html body #purchasesPage:not(#centerA#centerB#centerC) > .dashboard-header > div:first-child :is(h1,p){text-align:center!important}
/* Unified filter captions and aligned controls. */
html body #purchaseUnifiedToolbar{align-items:end!important;gap:8px!important}
html body #purchaseInvoiceUnifiedFilters,html body #purchaseUnifiedToolbar .purchase-service-modal-actions{align-items:end!important;gap:8px!important}
html body #purchaseInvoiceUnifiedFilters > label,html body #purchaseUnifiedToolbar .purchase-service-modal-actions > label{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;margin:0!important;align-self:end!important}
html body #purchaseInvoiceUnifiedFilters > label > span:first-child,html body #purchaseUnifiedToolbar .purchase-service-modal-actions > label > span:first-child{display:block!important;width:100%!important;text-align:center!important;font-size:11px!important;font-weight:600!important;line-height:16px!important;white-space:nowrap!important}
html body #purchaseInvoiceUnifiedFilters > label > span:first-child::before,html body #purchaseUnifiedToolbar .purchase-service-modal-actions > label > span:first-child::before{content:'( '}
html body #purchaseInvoiceUnifiedFilters > label > span:first-child::after,html body #purchaseUnifiedToolbar .purchase-service-modal-actions > label > span:first-child::after{content:' )'}
html body #purchaseUnifiedToolbar .purchase-filter-control{width:100%!important;min-width:0!important}
html body #purchaseUnifiedToolbar input,html body #purchaseUnifiedToolbar select,html body #purchaseUnifiedToolbar button:not(.purchase-filter-clear){height:32px!important;min-height:32px!important;box-sizing:border-box!important;margin-bottom:0!important}
html body #purchaseUnifiedToolbar .purchase-service-modal-actions > button{align-self:end!important}
html body #purchaseUnifiedToolbar .purchase-service-modal-actions > label[hidden]{display:none!important}
html body #purchaseUnifiedToolbar input,html body #purchaseUnifiedToolbar select{font-size:12px!important;line-height:normal!important}
html body #purchaseUnifiedToolbar button:not(.purchase-filter-clear){font-size:12px!important}
