/* T52.6.97: all application table headings and cell contents are left aligned. */
body :is(#adminPage,#transactionsPage,.page,.modal) :is(input,textarea,select){text-align:left!important}
body :is(#adminPage,#transactionsPage,.page,.modal) table :is(th,td),body .ad-center,body .tx-center,body td.account-number{text-align:left!important}
body .tx-table .tx-sort-header{text-align:left!important;justify-content:flex-start}
body .money-display{justify-content:flex-start!important;gap:5px!important;text-align:left!important}
body .money-field input{padding-left:22px!important;padding-right:22px!important;text-align:left!important}
body #adminPage .ad-control-table .money-field input{padding-left:12px!important;padding-right:12px!important}
body :is(#adminPage,#transactionsPage,.page,.modal) :is(input[type=date],input[type=month],input[data-money],input[data-bank-money],input[data-es-year],[data-directory-field=dateOfBirth],.eg-date textarea,.eg-numeric textarea),
body :is(.system-date,.ad-entry-date,.ad-activity-possession,.tx-home-entry-date,.tx-home-possession,.bank-number,[data-bank-total],[data-bank-balance],.eg-date,.eg-numeric,.sheet-money,.ad-number,[data-format=money],[data-format=date]){text-align:left!important;font-variant-numeric:tabular-nums}
body .system-date{display:block}
body #adminPage .sheet-table input[data-sheet-cell],body #adminPage .sheet-table textarea[data-sheet-cell]{text-align:inherit!important}
body .eg-table .eg-numeric textarea{padding-left:6px!important;padding-right:6px!important}
body .ad-address,body .eg-table .eg-f1 textarea,body .eg-table .eg-f2 textarea{text-align:left!important}
body :is(td,th):has(> .money-display),body td:has(> .money-field),body td:has(> input[type=date]){text-align:left!important}
body :is(.bank-pick,.eg-check-cell,.eg-check-head),body .sheet-table th:has(input[type=checkbox]){text-align:left!important}
/* The worksheet follows the same fixed alignment standard. */
body .sheet-tools [data-sheet-style=align]{display:none}

body :is(#adminPage,#transactionsPage,.page,.modal) :is(td,th)[data-format=money],body :is(#adminPage,#transactionsPage,.page,.modal) :is(td,th)[data-format=date],body :is(#adminPage,#transactionsPage,.page,.modal) :is(td,th):has(> .money-display),body :is(#adminPage,#transactionsPage,.page,.modal) :is(td,th):has(> .money-field),body :is(#adminPage,#transactionsPage,.page,.modal) :is(.ad-entry-date,.ad-activity-possession,.tx-home-entry-date,.tx-home-possession,.bank-number,.eg-date,.eg-numeric){text-align:left!important}
body :is(#adminPage,#transactionsPage,.page,.modal) .tx-sort-header{text-align:left!important;justify-content:flex-start}
body #earningStatementsHost .eg-table td.eg-numeric:has(textarea:not([readonly]):focus){position:relative}
body #earningStatementsHost .eg-table td.eg-numeric:has(textarea:not([readonly]):focus)::before{content:'';position:absolute;left:5px;top:7px;pointer-events:none;font-size:12px;line-height:19px}
body #earningStatementsHost .eg-table td.eg-numeric:has(textarea:not([readonly]):focus) textarea{padding-left:20px!important;padding-right:20px!important}

body :is(#adminPage,#transactionsPage,.page,.modal) .ad-sort{text-align:left!important;justify-content:flex-start}
body :is(#adminPage,#transactionsPage,.page,.modal) th:is([data-format=money],[data-format=date]) :is(.ad-sort,.tx-sort-header){text-align:left!important;justify-content:flex-start}
body #adminPage .sheet-table th:is([data-format=money],[data-format=date]) input[data-sheet-header]{text-align:left!important}
body #adminPage .ad-table td.ad-center,body #transactionsPage .tx-table td.tx-home-status{text-align:left!important}
body #adminPage .ad-table td.ad-center:is(.ad-entry-date,.ad-activity-possession){text-align:left!important}

body #adminPage .sheet-table td.sheet-money[data-currency-value="1"]:not(:has(> .sheet-dollar))::before{content:'';position:absolute;left:5px;top:50%;transform:translateY(-50%);pointer-events:none}
body #adminPage .sheet-table td:not(.sheet-money)>.sheet-dollar{display:none}
body #adminPage .sheet-table td.sheet-money{position:relative}
body #adminPage .sheet-table td.sheet-money input{padding-left:16px!important;padding-right:16px!important}
/* #7552 uses left alignment for every heading and data cell in both Admin views. */
body #adminPage #bankGeneralSheet.bank-trust-sheet table.sheet-table :is(th,td,input,textarea,.sheet-column-letter){text-align:left!important}

body #adminPage #bankGeneralSheet.bank-trust-sheet table.sheet-table td.sheet-money input{padding-left:16px!important;padding-right:16px!important}

/* Payment and earnings worksheet column headings stay left aligned, including date/money labels. */
body #adminPage #paymentSheetsHost .sheet-table thead :is(th,input[data-sheet-header],.sheet-column-letter),
body #adminPage #earningStatementsHost :is(.eg-table,.es-template) thead th{text-align:left!important}

/* Shared table alignment, including nested journal, payment and earning grids. */
body :is(#adminPage,#transactionsPage,.modal) table :is(th,td,input,textarea,select){text-align:left!important}
body #adminPage :is(#bankGeneralSheet,#paymentSheetsHost,#earningStatementsHost) table :is(th,td,input,textarea,select){text-align:left!important}
body :is(#adminPage,#transactionsPage,.modal) table :is(.ad-sort,.tx-sort-header,.money-display,.accounting-money){text-align:left!important;justify-content:flex-start!important}
body #adminPage .sheet-table .sheet-column-select{justify-content:start;justify-items:start;text-align:left!important}
body #adminPage .sheet-table .sheet-column-letter{display:block;text-align:left!important}
body :is(#adminPage,#transactionsPage,.modal) table input[type=checkbox]{margin-left:0!important;margin-right:auto!important}
/* Numeric editing should not jump sideways on focus. */
body #earningStatementsHost .eg-table td.eg-numeric:has(textarea:not([readonly]):focus) textarea{padding-left:6px!important;padding-right:6px!important}
body #adminPage .sheet-table td.sheet-money :is(input,textarea),
body #adminPage #bankGeneralSheet.bank-trust-sheet table.sheet-table td.sheet-money input{padding-left:5px!important;padding-right:5px!important}
body #adminPage .ad-control-table .money-field input{padding-left:5px!important;padding-right:5px!important}
