/* V339 payment workspace: local layout only; existing portal themes supply colors. */
.aw339{min-width:0;color:var(--text);font-size:13px;--aw-line:var(--border);--aw-paper:var(--surface);--aw-soft:var(--surface-alt,var(--surface))}
.aw339 [hidden]{display:none!important}.aw339 a,.aw339 button,.aw339 input,.aw339 select,.aw339 textarea{outline-offset:3px}.aw339 :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--primary)}
.aw339-tabs{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--border);margin:0 0 24px;padding:0 3px}
.aw339-tabs a{display:flex;align-items:center;min-height:45px;padding:10px 0;color:var(--muted);font-size:12px;font-weight:650;border-bottom:3px solid transparent;text-decoration:none}
.aw339-tabs a[aria-current=page]{color:var(--primary-ink,var(--primary));border-bottom-color:var(--primary)}
.aw339 .page-head{margin-bottom:22px}.aw339 .page-head h1{font-size:28px;letter-spacing:-.7px}.aw339 .page-head p{font-size:12px;line-height:1.6}
.aw339-panel{background:var(--aw-paper);border:1px solid var(--aw-line);border-radius:10px;margin-bottom:18px;min-width:0;overflow:hidden}
.aw339-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px;border-bottom:1px solid var(--aw-line)}
.aw339 h2{font-size:16px;margin:0 0 14px}.aw339-panel-head h2{margin:0}.aw339 h3{font-size:13px}.aw339-panel-head p,.aw339-note{font-size:12px;color:var(--muted);line-height:1.6;margin:5px 0 0}
.aw339-count{display:inline-block;font-size:11px;color:var(--primary-ink,var(--primary));background:color-mix(in srgb,var(--primary) 9%,var(--aw-paper));border-radius:5px;padding:4px 7px;margin-left:6px}
.aw339-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--aw-line)}
.aw339-toolbar label{font-size:11px;display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted)}
.aw339-toolbar .aw339-search{display:flex;flex:1;min-width:180px;background:var(--aw-soft);border:1px solid var(--aw-line);border-radius:6px;padding:0 10px}
.aw339-search input{min-width:0;width:100%;border:0;background:transparent;color:var(--text);padding:10px 0;min-height:39px;font:inherit}
.aw339-toolbar select{max-width:100%;min-height:39px;border:1px solid var(--aw-line);border-radius:6px;background:var(--aw-paper);color:var(--text);padding:8px 26px 8px 9px;font-size:12px}
.aw339-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--aw-line);padding:14px 18px;font-size:11px;color:var(--muted)}
.aw339-footer>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.aw339-row-action{display:flex;align-items:flex-start;gap:7px;flex-direction:column}.aw339-row-action .badge{font-size:10px;white-space:normal}
.aw339-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:20px;align-items:start}.aw339-pad{padding:20px}.aw339-pad .detail-meta{padding:0;margin-top:18px}.aw339-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;margin:20px 0 0!important}
.aw339-amount{border-top:3px solid var(--primary)}.aw339-amount>small{display:block;color:var(--muted);font-size:12px}.aw339-amount>strong{display:block;font-size:27px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:12px 0 18px}
.aw339-timeline{list-style:none;padding:0;margin:18px 0 0}.aw339-timeline li{display:flex;gap:12px;border-left:1px solid var(--aw-line);margin-left:5px;padding:0 0 22px 17px;position:relative}.aw339-timeline li:last-child{padding-bottom:0;border-left-color:transparent}.aw339-dot{position:absolute;left:-5px;top:4px;height:9px;width:9px;border-radius:50%;background:var(--muted)}.aw339-dot.done{background:var(--accent,var(--primary))}.aw339-timeline strong{font-size:12px}.aw339-timeline small{display:block;font-size:11px;color:var(--muted);margin:6px 0}.aw339-timeline p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.aw339-state{font-size:10px;color:var(--muted);display:inline-block;margin-left:10px}
.aw339-authorization{background:color-mix(in srgb,var(--primary) 7%,var(--aw-paper));border:1px solid var(--aw-line);border-radius:8px;padding:14px;margin:16px 0}.aw339-authorization b{font-size:12px;display:flex;gap:7px;align-items:center}.aw339-authorization p{font-size:12px;margin:7px 0;overflow-wrap:anywhere;white-space:pre-wrap}.aw339-authorization small{color:var(--muted);font-size:11px}
.aw339-process{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:22px;padding:14px 18px;background:var(--aw-paper);border:1px solid var(--aw-line);border-radius:9px;color:var(--muted);font-size:12px}.aw339-process span{display:flex;align-items:center;gap:8px}.aw339-process b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--primary) 10%,var(--aw-paper));color:var(--primary-ink,var(--primary));font-size:11px}.aw339-process i{font-style:normal}
.aw339-candidate{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px;border-bottom:1px solid var(--aw-line)}.aw339-candidate:last-child{border-bottom:0}.aw339-candidate>div{min-width:0}.aw339-candidate a:not(.btn){font-weight:650;font-size:12px;color:var(--primary-ink,var(--primary))}.aw339-candidate h3{margin:6px 0}.aw339-candidate p,.aw339-candidate small{font-size:11px;color:var(--muted);line-height:1.6}.aw339-candidate-action{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.aw339-candidate-action>strong{font-size:15px;font-variant-numeric:tabular-nums}.aw339-candidate-action>span{font-size:11px;color:var(--muted)}
.aw339-warning{padding:11px;border:1px solid var(--aw-line);border-radius:7px;background:color-mix(in srgb,#c58b27 10%,var(--aw-paper));color:var(--text)!important;font-size:12px!important;margin-top:12px!important;line-height:1.6}
.aw339 [data-aw-authorize] .field{margin:18px 0;font-size:12px}.aw339 textarea{min-height:110px;resize:vertical;line-height:1.6}.aw339-confirm{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.6;background:var(--aw-soft);padding:13px;border-radius:7px;margin:14px 0}.aw339-confirm input{margin-top:3px;flex-shrink:0}.aw339-full{width:100%;margin-top:14px}.aw339 [data-aw-authorize] .form-error{font-size:12px;line-height:1.6}
/* Compact AP tables with the reviewed queue-card and header arrangement. */
.aw339.apx-ap338 .apx-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:20px 0}.aw339.apx-ap338 .apx-summary-item{border-radius:10px;padding:15px;gap:10px}.aw339.apx-ap338 .apx-summary-item.selected{box-shadow:inset 0 3px 0 var(--primary)}.aw339.apx-ap338 .apx-summary-item strong{font-size:28px}.aw339.apx-ap338 .apx-summary-item span{font-weight:650}.aw339.apx-ap338 .apx-panel-head{padding:16px 18px}.aw339.apx-ap338 .apx-panel-head h2{font-size:16px;margin:0}.aw339.apx-ap338 .apx-panel{border-radius:10px}
.aw339.apx-queue332.apx-ledger338 .apx-table.apx-ledger th{background:color-mix(in srgb,var(--primary) 7%,var(--surface));color:var(--text);border-top:0;font-weight:650;padding-top:9px;padding-bottom:9px}.aw339.apx-queue332.apx-ledger338 .apx-table.apx-ledger td{padding-top:8px;padding-bottom:8px}.aw339 .apx-ledger-toolbar{padding:12px 18px}
@media(min-width:901px){.aw339.apx-queue332.apx-ledger338 .apx-table.apx-ledger [data-ledger-col=pending_with]{position:sticky;right:0;background:var(--surface);box-shadow:-2px 0 3px #0000000a}.aw339.apx-queue332.apx-ledger338 .apx-table.apx-ledger th[data-ledger-col=pending_with]{background:color-mix(in srgb,var(--primary) 7%,var(--surface));z-index:1}}
@media(max-width:1000px){.aw339-detail-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.aw339-tabs{gap:16px}.aw339.apx-ap338 .apx-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.aw339-detail-grid{grid-template-columns:1fr}.aw339-detail-grid>aside{grid-row:1}.aw339 .page-head h1{font-size:24px}.aw339-tabs{gap:5px 18px;margin-bottom:18px}.aw339-tabs a{font-size:11px;min-height:44px}.aw339-toolbar{padding:12px;gap:8px}.aw339-toolbar .aw339-search{flex-basis:70%;min-width:0}.aw339-toolbar label{flex:1}.aw339-panel-head{padding:15px}.aw339-pad{padding:17px}.aw339-process{gap:10px;font-size:11px;padding:12px}.aw339-process i{display:none}.aw339-process span{flex-basis:100%}.aw339-footer{padding:13px}.aw339-footer>div{justify-content:space-between;width:100%}.aw339-candidate{align-items:flex-start;flex-direction:column;padding:15px}.aw339-candidate-action{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.aw339-candidate-action>.btn{width:100%}.aw339-amount>strong{font-size:25px}.aw339 .btn{min-height:44px}.aw339 .apx-ledger-toolbar{padding:12px}.aw339 .document-row{overflow-wrap:anywhere}}
@media(max-width:700px){.aw339-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto}.aw339-toolbar label:not(.aw339-search){display:grid;grid-template-columns:52px minmax(0,1fr);grid-column:1/-1}.aw339-toolbar select{width:100%;min-width:0}.aw339-toolbar [data-aw-reset]{grid-column:1/-1;width:100%}}
/* V340: compact personal request lists; detail views and other ledgers retain their layout. */
.aw339-mine .aw339-tabs{margin-bottom:12px}.aw339-mine .aw339-tabs a{min-height:38px;padding:6px 0}
body[data-portal-page="my-payments"] .aw339.aw339-mine .page-head{min-height:0;margin-bottom:12px;gap:12px}
body[data-portal-page="my-payments"][data-overview-theme] .aw339.aw339-mine .page-head{padding:14px 18px}
body[data-portal-page="my-payments"] .aw339.aw339-mine .page-head h1{font-size:26px;line-height:1.2;margin:4px 0}
body[data-portal-page="my-payments"] .aw339.aw339-mine .page-head p{line-height:1.4;margin:0}
.aw339-mine .aw339-panel{margin-bottom:12px}.aw339-mine .aw339-panel-head{padding:10px 14px;gap:10px}.aw339-mine .aw339-panel-head p{margin-top:3px;line-height:1.4}
.aw339-mine .aw339-toolbar{padding:8px 14px;gap:7px}.aw339-mine .apx-ledger-toolbar{padding:7px 14px}.aw339-mine .aw339-footer{padding:8px 14px}
.aw339-mine .aw339-row-action{gap:4px}
@media(min-width:701px){
 .aw339-mine .aw339-panel-head .btn,.aw339-mine .aw339-toolbar .btn,.aw339-mine .aw339-footer .btn{min-height:32px;padding:6px 10px}
 .aw339-mine .aw339-search input{min-height:32px;padding:6px 0}.aw339-mine .aw339-toolbar select{min-height:32px;padding-top:5px;padding-bottom:5px}
 .aw339.aw339-mine.apx-queue332.apx-ledger338 .apx-table.apx-ledger th{padding-top:6px;padding-bottom:6px}
 .aw339.aw339-mine.apx-queue332.apx-ledger338 .apx-table.apx-ledger td{padding-top:4px;padding-bottom:4px}
 .aw339-mine .aw339-row-action .badge{padding:3px 6px;line-height:1.2;white-space:nowrap}.aw339-mine .aw339-row-action .btn{min-height:28px;padding:4px 7px;font-size:11px;line-height:1.2;white-space:nowrap}
}
@media(max-width:700px){
 .aw339-mine .aw339-tabs a{min-height:44px}.aw339-mine .aw339-panel-head,.aw339-mine .aw339-toolbar,.aw339-mine .apx-ledger-toolbar,.aw339-mine .aw339-footer{padding:10px 12px}
 body[data-portal-page="my-payments"] .aw339.aw339-mine .page-head h1{font-size:24px}
 .aw339-mine .aw339-toolbar :is(input,select),.aw339-mine .btn{min-height:44px}
 .aw339-mine.apx-queue331 .apx-ledger-card{padding:12px 0}.aw339-mine.apx-queue331 .apx-ledger-card h3{margin:10px 0}.aw339-mine.apx-queue331 .apx-ledger-card dl{gap:8px;margin-bottom:12px}.aw339-mine.apx-queue331 .apx-ledger-card dt{margin-bottom:3px}
}
