[data-page="disbursement"] [data-advance-company-home][hidden],[data-page="disbursement"] [data-advance-company-detail][hidden]{display:none}
.advance-company-table tr[data-advance-company]{cursor:pointer}.advance-company-table tr[data-advance-company]:hover td{background:#f8f8f9}.advance-company-table tr:focus-visible{outline:2px solid #4775ca;outline-offset:-2px}
.advance-company-workspace .payroll-run-detail-body{min-width:0}.advance-company-workspace .payroll-run-totals{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}.advance-company-workspace .individual-period-preflight{margin:24px 0}
.advance-company-workspace .disbursement-filter-toolbar{width:100%;box-sizing:border-box}.advance-company-workspace .disbursement-table-scroll{margin:0}.advance-company-workspace .disbursement-table{min-width:760px}
[data-page="disbursement"] [data-advance-company-back]{margin-bottom:8px}[data-page="disbursement"] [data-advance-company-back][hidden]{display:none}
@media(max-width:760px){.advance-company-workspace .payroll-run-totals{grid-template-columns:minmax(0,1fr)}.advance-company-workspace{grid-template-columns:minmax(0,1fr)}.advance-company-workspace .payroll-run-detail-guide{display:none}}
.advance-drafts-section{margin:0 0 24px}.advance-drafts-section>h4{font-size:14px}.advance-draft-card{border:1px solid #dce2ea;border-radius:8px;padding:14px;margin:14px 0}.advance-draft-card>header,.advance-draft-card>footer,.advance-draft-card>header>div,.advance-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.advance-draft-card>header>div{justify-content:flex-start}.advance-draft-card>footer{margin-top:12px}.advance-draft-card small{font-size:12px;color:var(--muted)}.advance-draft-table{width:100%;border-collapse:collapse;min-width:560px}.advance-draft-table th,.advance-draft-table td{padding:10px;text-align:left;border-bottom:1px solid #e6eaf0;font-size:13px}.advance-draft-card .form-message:empty{display:none}
@media(max-width:640px){.advance-draft-actions{justify-content:flex-start}.advance-draft-actions button{width:auto!important}.advance-draft-card>header{align-items:flex-start}}

.advance-company-workspace .payroll-run-detail-body{grid-template-columns:minmax(0,1fr)}.advance-company-workspace .payroll-run-detail-body>*{min-width:0}.advance-draft-card .table-scroll{max-width:100%;overflow-x:auto}

.advance-company-workspace .disbursement-record-row[data-disbursement-employee-detail]{cursor:pointer}.advance-company-workspace .disbursement-record-row[data-disbursement-employee-detail]:hover td{background:#f8f8f9}.advance-company-workspace .disbursement-record-row[data-disbursement-employee-detail]:focus-visible{outline:2px solid #4775ca;outline-offset:-2px}

.advance-created-time{white-space:nowrap}.advance-company-table{min-width:820px}.advance-draft-card>header>div>.advance-created-time{flex-basis:100%}

/* Company batch directory and employee drilldown follow shared table alignment. */
.advance-company-table{width:100%;table-layout:fixed;min-width:900px}
.advance-company-table th,.advance-company-table td{padding:12px 14px!important;text-align:center!important;vertical-align:middle}
.advance-company-table th:first-child,.advance-company-table td:first-child{width:28%;text-align:left!important}
.advance-company-table th:nth-child(4),.advance-company-table td:nth-child(4){text-align:right!important}
.advance-company-table th:last-child,.advance-company-table td:last-child{width:19%}
.advance-company-table th{white-space:nowrap}
.advance-company-table .status-pill,.advance-employee-table .status-pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:24px;box-sizing:border-box}
.advance-company-workspace .advance-employee-table{width:100%;table-layout:fixed;min-width:720px}
.advance-employee-table col{width:auto!important}
.advance-employee-table th,.advance-employee-table td{padding:12px 14px!important;text-align:center!important;vertical-align:middle;white-space:normal!important}
.advance-employee-table th:first-child,.advance-employee-table .advance-employee-row>td:first-child{width:26%;text-align:left!important}
.advance-employee-table th:nth-child(3),.advance-employee-table .advance-employee-row>td:nth-child(3){text-align:right!important}
.advance-employee-table th:last-child{width:30px}
.advance-employee-row{cursor:pointer}.advance-employee-row[aria-expanded="true"]>td{background:#eef4ff!important}
.advance-employee-row:focus-visible{outline:2px solid #4775ca;outline-offset:-2px}
.advance-employee-table .advance-employee-expanded>td{padding:12px!important}
.advance-employee-detail{border:1px solid #dce2ea;border-radius:8px;padding:16px;text-align:left;background:#fafbfe}
.advance-employee-detail h4{margin:0 0 8px}.advance-employee-detail .table-scroll{overflow-x:auto;max-width:100%}
.advance-employee-items{table-layout:fixed;width:100%;min-width:680px;border-collapse:collapse}
.advance-employee-table .advance-employee-items th,.advance-employee-table .advance-employee-items td{padding:10px!important;text-align:left!important;width:auto}
.advance-employee-table .advance-employee-items th:first-child,.advance-employee-table .advance-employee-items td:first-child{width:38px;text-align:center!important}
.advance-employee-table .advance-employee-items th:nth-child(4),.advance-employee-table .advance-employee-items td:nth-child(4){text-align:center!important;width:100px}
.advance-employee-table .advance-employee-items th:nth-child(5),.advance-employee-table .advance-employee-items td:nth-child(5){text-align:right!important;width:100px}
.advance-employee-table .advance-employee-items th:last-child,.advance-employee-table .advance-employee-items td:last-child{width:60px;text-align:center!important}
.advance-check-progress{font-size:12px;color:var(--muted);white-space:nowrap}
.advance-company-workspace .advance-drafts-section{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}

#disbursementListPanel table.advance-company-table>thead>tr>th:not([data-table-type="number"]),#disbursementListPanel table.advance-company-table>tbody>tr>td:not([data-table-type="number"]){text-align:center!important}
#disbursementListPanel table.advance-company-table>thead>tr>th:first-child,#disbursementListPanel table.advance-company-table>tbody>tr>td:first-child{text-align:left!important}
#disbursementListPanel table.advance-company-table>thead>tr>th:nth-child(4),#disbursementListPanel table.advance-company-table>tbody>tr>td:nth-child(4){text-align:right!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>thead>tr>th:not([data-table-type="number"]),#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td:not([data-table-type="number"]){text-align:center!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>thead>tr>th:first-child,#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td:first-child{text-align:left!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>thead>tr>th:nth-child(3),#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td:nth-child(3){text-align:right!important}
#disbursementListPanel table.advance-employee-items>thead>tr>th,#disbursementListPanel table.advance-employee-items>tbody>tr>td{text-align:left!important}
#disbursementListPanel table.advance-employee-items>thead>tr>th:is(:first-child,:nth-child(4),:last-child),#disbursementListPanel table.advance-employee-items>tbody>tr>td:is(:first-child,:nth-child(4),:last-child){text-align:center!important}
#disbursementListPanel table.advance-employee-items>thead>tr>th:nth-child(5),#disbursementListPanel table.advance-employee-items>tbody>tr>td:nth-child(5){text-align:right!important}

/* Batch detail actions belong in the page header, above the employee list. */
#disbursementListPanel .advance-header-actions,#disbursementListPanel .advance-header-run-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#disbursementListPanel .advance-header-actions[hidden]{display:none}
#disbursementListPanel .advance-header-messages:empty,#disbursementListPanel .advance-header-messages .form-message:empty{display:none}
#disbursementListPanel .advance-header-messages{margin-top:8px;text-align:right}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-employee{width:30%!important}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-count{width:16%!important}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-amount{width:18%!important}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-check{width:18%!important}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-status{width:14%!important}
#disbursementListPanel table.advance-employee-table>colgroup>.advance-col-expand{width:4%!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>thead>tr>th{position:static!important;background:transparent!important;box-shadow:none!important;width:auto!important;white-space:nowrap!important;height:42px!important;padding:10px 14px!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td{position:static!important;box-shadow:none!important;height:58px!important;padding:10px 14px!important}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>thead>tr>th:last-child,#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td:last-child{padding-left:2px!important;padding-right:8px!important;min-width:0!important;font-size:18px}
#disbursementListPanel .advance-company-workspace table.advance-employee-table>tbody>.advance-employee-row>td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap!important}
@media(max-width:640px){#disbursementListPanel .advance-header-actions,#disbursementListPanel .advance-header-run-actions{justify-content:flex-start}#disbursementListPanel .advance-header-actions button{width:auto!important}}

/* Selection tools and per-item menu stay outside table clipping. */
#disbursementListPanel .advance-header-actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
#disbursementListPanel table.advance-company-table:has([data-advance-draft-action]) th:last-child,#disbursementListPanel table.advance-company-table:has([data-advance-draft-action]) td:last-child{width:120px}
#disbursementListPanel table.advance-employee-items th:last-child,#disbursementListPanel table.advance-employee-items td:last-child{width:32px!important;padding:4px!important}
#disbursementListPanel table.advance-employee-items th:first-child,#disbursementListPanel table.advance-employee-items td:first-child{width:36px!important;padding-left:8px!important;padding-right:8px!important;box-sizing:border-box}
#disbursementListPanel table.advance-employee-items th:nth-child(6),#disbursementListPanel table.advance-employee-items td:nth-child(6){width:72px!important;text-align:center!important;white-space:nowrap!important}
.advance-item-menu{position:fixed;inset:auto;margin:0;border:1px solid #d6dce6;border-radius:8px;padding:6px;background:white;box-shadow:0 8px 30px #0002;max-width:260px;font:inherit}
.advance-item-menu button{display:block;border:0;background:white;padding:10px 16px;text-align:left;color:#c43f45;cursor:pointer;font:inherit;font-size:14px;font-weight:650}.advance-item-menu button:hover{background:#fff0f0}.advance-item-menu p{margin:8px;font-size:13px}

#disbursementListPanel table.advance-employee-items>thead>tr>th{position:static!important;background:transparent!important;box-shadow:none!important}

/* Match salary export tools inside the employee section. */
#disbursementListPanel .advance-header-actions{margin:0 0 12px;padding:0;border:0;gap:12px}
#disbursementListPanel .advance-header-run-actions{gap:12px}
#disbursementListPanel .advance-header-run-actions>span{font-size:12px;color:var(--muted)}
#disbursementListPanel .advance-header-messages{margin:0;flex-basis:100%}

/* Batch actions use the same narrow, unshaded tool column as other tables. */
#disbursementListPanel table.advance-company-table>thead>tr>th{position:static!important;background:transparent!important;box-shadow:none!important}
#disbursementListPanel table.advance-company-table>thead>tr>th:last-child,#disbursementListPanel table.advance-company-table>tbody>tr:not(:has(.empty-cell))>td:last-child{width:40px!important;padding:8px 4px!important}
#disbursementListPanel [data-advance-record-menu]{width:32px;min-width:32px;height:32px;font-size:20px}
.advance-record-menu button{color:var(--text,#30343a)}.advance-record-menu button:hover{background:#f4f6fa}

.advance-create-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px}.advance-create-summary>div{display:flex;flex-direction:column;gap:8px;padding:14px;background:#f6f8fc;border:1px solid #dce2ea;border-radius:8px;min-width:0}.advance-create-summary span{font-size:12px;color:var(--muted)}.advance-create-summary strong{font-size:17px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:480px){.advance-create-summary{grid-template-columns:1fr}.advance-create-summary>div{flex-direction:row;align-items:center;justify-content:space-between}}

#disbursementListPanel [data-advance-item-menu],#disbursementListPanel [data-advance-record-menu]{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;width:28px;min-width:28px;height:28px;padding:0;color:var(--text,#30343a)}

#disbursementListPanel table.advance-employee-items{table-layout:fixed!important}
#disbursementListPanel table.advance-employee-items th,#disbursementListPanel table.advance-employee-items td{min-width:0!important}
#disbursementListPanel table.advance-employee-items th:first-child,#disbursementListPanel table.advance-employee-items td:first-child{width:36px!important;max-width:36px!important}

#disbursementListPanel .advance-company-workspace table.advance-employee-items>thead>tr>th:nth-child(4),#disbursementListPanel .advance-company-workspace table.advance-employee-items>thead>tr>th:nth-child(5){width:110px!important}
