/* V331 AP ledger only. Semantic colors come from the active portal theme. */
.apx-queue331{min-width:0}
.apx-queue331 .apx-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.apx-queue331 .apx-summary-item{padding:17px;gap:8px;min-height:132px}
.apx-queue331 .apx-summary-item>span{font-weight:600;color:var(--apx-ink)}
.apx-queue331 .apx-summary-item.selected>span{color:var(--primary-ink,var(--primary))}
.apx-queue331 .apx-summary-item strong{font-size:32px}
.apx-queue331 .apx-secondary-nav{margin-bottom:16px}
.apx-queue331 .apx-panel-head{padding:20px}
.apx-queue331 .apx-ledger-filters{grid-template-columns:2fr 1fr 1.25fr 1fr 1fr}
.apx-queue331 .apx-filter-buttons{grid-column:1/-1;display:flex;gap:8px}
.apx-queue331 .apx-filter-buttons .btn{min-width:90px}
.apx-queue331 .apx-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.apx-queue331 .apx-table.apx-ledger{width:100%;min-width:1180px;table-layout:auto;display:table}
.apx-queue331 .apx-ledger tbody{display:table-row-group}
.apx-queue331 .apx-ledger thead{display:table-header-group}
.apx-queue331 .apx-ledger tr{display:table-row}
.apx-queue331 .apx-table.apx-ledger th:nth-child(n){width:auto;text-align:left;padding:13px 10px;font-size:10px;font-weight:650;letter-spacing:.015em;vertical-align:middle}
.apx-queue331 .apx-table.apx-ledger td:nth-child(n){display:table-cell;vertical-align:top;padding:17px 10px;font-size:11px;line-height:1.55;border-bottom:1px solid var(--apx-line)}
.apx-queue331 .apx-ledger tr:last-child td{border-bottom:0}
.apx-queue331 .apx-ledger .apx-reference{font-size:11px;max-width:125px;margin:5px 0 0}
.apx-queue331 .apx-ledger .apx-date{white-space:nowrap;font-size:11px}
.apx-queue331 .apx-ledger .apx-row-number{color:var(--apx-muted);font-variant-numeric:tabular-nums}
.apx-queue331 .apx-ledger-nature{font-weight:600;display:block;max-width:130px}
.apx-queue331 .apx-ledger td:nth-child(3){white-space:nowrap}
.apx-queue331 .apx-ledger .pf-priority{white-space:nowrap;font-size:10px;padding:4px 7px}
.apx-queue331 .apx-ledger td:nth-child(5),.apx-queue331 .apx-ledger td:nth-child(6),.apx-queue331 .apx-ledger td:nth-child(8){max-width:150px;overflow-wrap:anywhere}
.apx-queue331 .apx-table.apx-ledger th:nth-child(10),.apx-queue331 .apx-table.apx-ledger td:nth-child(10){text-align:right}
.apx-queue331 .apx-ledger .apx-money{font-size:13px;white-space:nowrap}
.apx-queue331 .apx-ledger .apx-currency{margin-top:0}
.apx-queue331 .apx-ledger .apx-row-actions{align-items:stretch;min-width:108px;max-width:132px}
.apx-queue331 .apx-ledger .apx-row-actions .btn{padding:8px 10px;min-height:38px;font-size:10px;gap:6px;white-space:nowrap}
.apx-queue331 .apx-status{font-size:10px;padding:5px 7px;line-height:1.5}
.apx-queue331 .apx-ledger .apx-sub{font-size:10px;line-height:1.5}
.ap-workspace .apx-pending{background:color-mix(in srgb,#d49a28 12%,var(--apx-surface))}
.ap-workspace .apx-pending-name{display:block;font-size:11px;font-weight:600;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.ap-workspace .apx-wait{display:block;font-size:10px;color:var(--apx-muted);margin-top:5px}
.apx-queue331 .apx-pending-notice{padding:13px 20px;background:var(--apx-soft);color:var(--apx-muted);font-size:12px;border-bottom:1px solid var(--apx-line);line-height:1.65}
.apx-queue331 .apx-ledger-cards{display:none}
.apx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ap-workspace .apx-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.ap-workspace .apx-progress-head small{color:var(--apx-muted);font-size:9px;letter-spacing:.08em}
.ap-workspace .apx-progress-head h3{margin:6px 0 0;font-size:16px}
.ap-workspace .apx-progress-head .btn{flex-shrink:0;white-space:nowrap}
.ap-workspace .apx-current-approver{display:flex;flex-direction:column;gap:6px;background:var(--apx-soft);border:1px solid var(--apx-line);border-left:3px solid var(--primary);border-radius:9px;padding:15px;margin-bottom:22px;overflow-wrap:anywhere}
.ap-workspace .apx-current-approver>small,.ap-workspace .apx-current-approver>span{font-size:11px;color:var(--apx-muted);line-height:1.6}
.ap-workspace .apx-current-approver>strong{font-size:16px;color:var(--apx-ink)}
.ap-workspace .apx-progress-list{list-style:none;padding:0;margin:0}
.ap-workspace .apx-progress-step{position:relative;display:grid;grid-template-columns:25px minmax(0,1fr);gap:12px;padding:0 0 23px;font-size:12px}
.ap-workspace .apx-progress-step:not(:last-child)::after{content:'';position:absolute;left:12px;top:29px;bottom:6px;border-left:1px solid var(--apx-line)}
.ap-workspace .apx-progress-dot{display:flex;align-items:center;justify-content:center;width:25px;height:25px;box-sizing:border-box;border:1px solid var(--apx-line);border-radius:50%;background:var(--apx-soft);color:var(--apx-muted)}
.ap-workspace .apx-progress-step.approved .apx-progress-dot,.ap-workspace .apx-progress-step.reused .apx-progress-dot{background:color-mix(in srgb,#04846a 12%,var(--apx-surface));color:var(--apx-ink)}
.ap-workspace .apx-progress-step.pending .apx-progress-dot{background:color-mix(in srgb,var(--primary) 10%,var(--apx-surface));border-color:var(--primary);color:var(--primary-ink,var(--primary))}
.ap-workspace .apx-progress-step strong{display:block;line-height:1.5;overflow-wrap:anywhere}
.ap-workspace .apx-progress-state{display:inline-block;font-size:10px;margin-top:5px;font-weight:600}
.ap-workspace .apx-progress-step small{display:block;font-size:11px;color:var(--apx-muted);line-height:1.6;margin-top:4px;overflow-wrap:anywhere}
.ap-workspace .apx-progress-note{color:var(--apx-muted);font-size:11px;line-height:1.7;padding-top:14px;border-top:1px solid var(--apx-line)}
@media(max-width:1100px){.apx-queue331 .apx-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.apx-queue331 .apx-ledger-filters .field:first-child{grid-column:1/-1}}
@media(max-width:700px){.apx-queue331 .apx-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.apx-queue331 .apx-summary-item{min-height:126px;padding:15px}.apx-queue331 .apx-summary-item span{min-height:0}.apx-queue331 .apx-summary-item small{min-height:0}}
@media(max-width:600px){
 .apx-queue331 .apx-table-wrap{display:none}
 .apx-queue331 .apx-ledger-cards{display:block;padding:0 14px}
 .apx-queue331 .apx-ledger-card{padding:18px 0;border-bottom:1px solid var(--apx-line);min-width:0;overflow-wrap:anywhere}
 .apx-queue331 .apx-ledger-card:last-child{border-bottom:0}
 .apx-queue331 .apx-mobile-top{display:flex;align-items:start;justify-content:space-between;gap:12px}
 .apx-queue331 .apx-mobile-top small{font-size:10px;color:var(--apx-muted)}
 .apx-queue331 .apx-mobile-top .apx-reference{margin:5px 0 0;font-size:12px}
 .apx-queue331 .apx-ledger-card h3{font-size:14px;line-height:1.5;margin:14px 0}
 .apx-queue331 .apx-ledger-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
 .apx-queue331 .apx-ledger-card dt{font-size:10px;color:var(--apx-muted);margin-bottom:5px}
 .apx-queue331 .apx-ledger-card dd{font-size:12px;margin:0;line-height:1.5}
 .apx-queue331 .apx-mobile-amount{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}
 .apx-queue331 .apx-mobile-amount small{font-size:11px;color:var(--apx-muted)}
 .apx-queue331 .apx-mobile-amount strong{font-size:17px;font-variant-numeric:tabular-nums}
 .apx-queue331 .apx-mobile-status{padding:12px;background:var(--apx-soft);border:1px solid var(--apx-line);border-radius:8px;margin-bottom:13px}
 .apx-queue331 .apx-mobile-status .apx-pending-name{font-size:13px}
 .apx-queue331 .apx-mobile-status .apx-wait{font-size:11px}
 .apx-queue331 .apx-ledger-card .apx-row-actions{max-width:none;align-items:stretch;flex-direction:row;flex-wrap:wrap}
 .apx-queue331 .apx-ledger-card .apx-row-actions .btn{flex:1;min-height:44px;font-size:12px}
 .apx-queue331 .apx-panel-head{gap:15px;padding:18px 14px}
 .apx-queue331 .apx-panel-head p{line-height:1.6}
 .apx-queue331 .apx-panel-head .field{margin:0}
 .apx-queue331 .apx-filter-details{padding:0 14px 15px}
 .apx-queue331 .apx-ledger-filters{grid-template-columns:1fr}
 .apx-queue331 .apx-pending-notice{padding:13px 14px;font-size:11px}
 .apx-queue331 .apx-footer>div{justify-content:space-between;width:100%}
 .apx-queue331 .apx-summary-item strong{font-size:29px}
 .apx-queue331 .page-head .btn{white-space:nowrap}
}
