/* 2026-10-22 资金中心 · 付款申请 */
#funds-payment-review.pa-on > .stats,#funds-payment-review.pa-on > .panel.workspace,#funds-payment-review.pa-on > .review-layout{display:none!important}
#funds-payment-review:not(.pa-on) > .pa-root .pa-stats,#funds-payment-review:not(.pa-on) > .pa-root .pa-panel > :not(.pa-bar){display:none}
.pa-root{display:flex;flex-direction:column;gap:12px;margin:12px 0}
.pa-head h2{margin:0;font-size:18px;color:#111827}.pa-head p{margin:4px 0 0;font-size:13px;color:#6b7280}
.pa-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.pa-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border-radius:12px;border:1px solid #edf0f5;background:#fff;cursor:pointer;text-align:left;font:inherit}
.pa-stat span{font-size:13px;color:#6b7280}.pa-stat b{font-size:24px;color:#111827;font-variant-numeric:tabular-nums}.pa-stat small{font-size:12px;color:#9ca3af}
.pa-stat:hover{border-color:#93c5fd}
.pa-stat.ready b{color:#2563eb}.pa-stat.pending b{color:#d97706}.pa-stat.approved b{color:#1d4ed8}.pa-stat.awaiting_payout b{color:#7c3aed}.pa-stat.paid b{color:#16a34a}
.pa-panel{background:#fff;border:1px solid #edf0f5;border-radius:14px;padding:12px 14px}
.pa-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.pa-seg{display:flex;gap:4px;background:#f3f5f9;border-radius:10px;padding:3px}
.pa-seg button{border:0;background:transparent;padding:7px 14px;border-radius:8px;font:inherit;font-size:13px;color:#4b5563;cursor:pointer}
.pa-seg button em{font-style:normal;color:#9ca3af;margin-left:4px}
.pa-seg button.on{background:#fff;color:#1d4ed8;font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.1)}
.pa-tools{display:flex;gap:8px;align-items:center}
.pa-tools select,.pa-tools input{height:32px;border:1px solid #dfe5ee;border-radius:8px;padding:0 10px;font-size:13px;background:#fff}
.pa-tools input{width:220px}
.pa-tools button{height:32px;padding:0 12px;border-radius:8px;border:1px solid #dfe5ee;background:#fff;font-size:13px;cursor:pointer;color:#374151}
.pa-tools button.ghost{color:#6b7280}
.pa-table{width:100%;border-collapse:collapse;font-size:13px}
.pa-table th{text-align:left;font-weight:500;color:#9ca3af;font-size:12px;padding:8px;background:#f8fafc;border-bottom:1px solid #eef1f5}
.pa-table td{padding:10px 8px;border-bottom:1px solid #f3f5f8;color:#1f2937;vertical-align:middle}
.pa-table td small{display:block;color:#9ca3af;font-size:12px;margin-top:2px}
.pa-table .r{text-align:right;font-variant-numeric:tabular-nums}.pa-table .strong{font-weight:700}
.pa-tag{display:inline-block;font-size:12px;padding:1px 8px;border-radius:9px;background:#eef2ff;color:#4338ca}
.pa-st{display:inline-block;font-size:12px;padding:2px 9px;border-radius:10px;font-weight:600;white-space:nowrap}
.pa-st.amber{background:#fef3c7;color:#b45309}.pa-st.blue{background:#dbeafe;color:#1d4ed8}.pa-st.violet{background:#ede9fe;color:#6d28d9}.pa-st.green{background:#dcfce7;color:#15803d}.pa-st.red{background:#fee2e2;color:#b91c1c}.pa-st.gray{background:#f3f4f6;color:#6b7280}
.pa-acts{white-space:nowrap}
.pa-btn{height:28px;padding:0 10px;border-radius:7px;border:1px solid #bfd3ff;background:#eff6ff;color:#1d4ed8;font-size:12px;cursor:pointer;margin-right:4px}
.pa-btn.green{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}
.pa-link{border:0;background:none;color:#6b7280;font-size:12px;cursor:pointer;padding:0 4px}
.pa-empty{padding:28px;text-align:center;color:#9ca3af;font-size:13px}.pa-empty.bad{color:#b91c1c}
.pa-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:3000;display:flex;align-items:center;justify-content:center;padding:16px}
.pa-modal{background:#fff;border-radius:16px;width:min(640px,96vw);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 64px rgba(15,23,42,.3)}
.pa-modal header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eef1f5}
.pa-modal header b{font-size:16px}.pa-modal header button{border:0;background:none;font-size:22px;cursor:pointer;color:#9ca3af}
.pa-mbody{padding:16px 18px;overflow:auto;display:flex;flex-direction:column;gap:12px}
.pa-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #eef1f5}
.pa-modal footer button{height:34px;padding:0 16px;border-radius:9px;font-size:13px;cursor:pointer;border:1px solid #dfe5ee;background:#fff}
.pa-modal footer .primary{background:linear-gradient(120deg,#2563eb,#4f46e5);color:#fff;border:0}
.pa-modal footer .danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.pa-sum{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;background:linear-gradient(135deg,#eef4ff,#f8fbff);border-radius:12px;padding:12px 14px}
.pa-sum b{display:block;margin-top:6px;font-size:14px}.pa-sum small{display:block;color:#6b7280;font-size:12px;margin-top:2px}
.pa-sum strong{font-size:22px;color:#1d4ed8;white-space:nowrap}
.pa-l{font-size:13px;font-weight:600;color:#374151}.pa-l small{font-weight:400;color:#9ca3af;margin-left:4px}
.pa-methods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.pa-methods button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;font:inherit;text-align:left}
.pa-methods button span{font-size:18px}.pa-methods button b{font-size:13px}.pa-methods button small{font-size:11px;color:#9ca3af}
.pa-methods button.on{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.pa-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.pa-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#6b7280}
.pa-grid label.full{grid-column:1/-1}
.pa-grid input,.pa-grid textarea,.pa-ta{height:34px;border:1px solid #dfe5ee;border-radius:8px;padding:0 10px;font:inherit;font-size:13px;color:#111827}
.pa-grid textarea,.pa-ta{height:64px;padding:8px 10px;resize:vertical}
.pa-hint{margin:0;font-size:12px;color:#9ca3af}.pa-hint.warn{color:#92400e;background:#fffbeb;border-radius:8px;padding:8px 10px}
.pa-kv{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.pa-kv span{display:block;font-size:12px;color:#9ca3af}.pa-kv b{font-size:13px;font-weight:500;color:#1f2937}
.pa-note{font-size:13px;background:#f8fafc;border-radius:8px;padding:8px 10px}.pa-note b{display:block;font-size:12px;color:#6b7280}
.pa-ev,.pa-files{display:flex;flex-wrap:wrap;gap:8px}
.pa-ev img,.pa-file img{width:84px;height:84px;object-fit:cover;border-radius:8px;display:block}
.pa-file{display:inline-flex;flex-direction:column;gap:4px;font-size:11px;color:#6b7280;max-width:100px;word-break:break-all}
.pa-file.up{color:#2563eb}.pa-file.bad{color:#b91c1c}
.pa-drop{display:inline-flex;align-items:center;justify-content:center;width:120px;height:84px;border:2px dashed #c7d7f5;border-radius:10px;background:#f8fbff;color:#2563eb;cursor:pointer;font-size:13px}
.pa-up{display:flex;gap:10px;flex-wrap:wrap}
.pa-toast{position:fixed;top:24px;left:50%;transform:translateX(-50%);background:#111827;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;z-index:4000}
.pa-toast.bad{background:#b91c1c}
@media (max-width:900px){.pa-stats{grid-template-columns:repeat(2,1fr)}.pa-grid,.pa-kv{grid-template-columns:1fr}.pa-table{display:block;overflow-x:auto}}
/* 抵消资金中心通用按钮/标题样式 */
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-stat{height:auto!important;min-height:88px!important;padding:12px 14px!important;justify-content:flex-start!important;line-height:1.3!important;border-radius:12px!important;box-shadow:none!important}
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-head h2{font-size:18px!important;line-height:1.4!important;margin:0!important;font-weight:700!important}
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-head p{font-size:13px!important;line-height:1.5!important;margin:2px 0 0!important}
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-seg button{height:32px!important;padding:0 14px!important;line-height:32px!important}
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-btn{height:28px!important;padding:0 10px!important;line-height:26px!important}
@media (max-width:700px){.pa-methods{grid-template-columns:repeat(2,1fr)!important}}
html:is(#_,html) body:is(#_,body) #funds-payment-review .pa-root .pa-head{display:none!important}
.pa-title{font-size:15px;font-weight:700;color:#111827;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.pa-title em{font-style:normal;font-size:12px;color:#9ca3af;font-weight:400}
.pa-title small{font-size:12px;color:#9ca3af;font-weight:400;margin-left:6px}
.pa-root.pa-pay{margin:12px 0}
.pa-entry{background:linear-gradient(120deg,#2563eb,#4f46e5)!important;color:#fff!important;border:0!important}
html:is(#_,html) body:is(#_,body) #funds-payout-center .pa-root .pa-btn{height:28px!important;padding:0 10px!important;line-height:26px!important}
.pa-batch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;margin:0 0 10px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;font-size:13px;color:#1e3a8a}
.pa-batch select,.pa-sel{height:30px;border:1px solid #dfe5ee;border-radius:8px;padding:0 8px;font-size:13px;background:#fff}
.pa-sel{width:100%;height:34px}
.pa-btn.red{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.pa-ck{width:28px}
