/* Cross-page fixes from the console UI audit. Keep business-specific base styles in their owning files. */

/* Wide operational tables keep their identity and action columns visible. */
.ff-table th:first-child,.ff-table td:first-child{position:sticky;left:0;z-index:2;min-width:230px;background:#fff}
.ff-table th:first-child{z-index:4;background:#f4f8fb}
.ff-table th:last-child,.ff-table td:last-child{position:sticky;right:0;z-index:2;min-width:76px;background:#fff;box-shadow:-8px 0 14px #1830470a}
.ff-table th:last-child{z-index:4;background:#f4f8fb}
.ff-table tbody tr:hover td:first-child,.ff-table tbody tr:hover td:last-child{background:#f8fbfd}
.pc-table th:first-child,.pc-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.pc-table th:first-child{z-index:4;background:#fbfcfe}
.pc-table th:last-child,.pc-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-10px 0 18px #1e385e0d}
.pc-table th:last-child{z-index:4;background:#fbfcfe}
.pc-table tbody tr:hover td:first-child,.pc-table tbody tr:hover td:last-child{background:#fbfdff}
.ow-page-login-devices th:first-child,.ow-page-login-devices td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.ow-page-login-devices th:first-child{z-index:4;background:#f7faff}
.ow-page-login-devices th:last-child,.ow-page-login-devices td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-9px 0 16px #20355012}
.ow-page-login-devices th:last-child{z-index:4;background:#f7faff}
.ow-page-login-devices tbody tr:hover td:first-child,.ow-page-login-devices tbody tr:hover td:last-child{background:#f8fbff}
.ow-page-agent-profit .fp-agent-profit-table .table-scroll{overflow-x:auto}
.ow-page-agent-profit .fp-agent-profit-table th:first-child,.ow-page-agent-profit .fp-agent-profit-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.ow-page-agent-profit .fp-agent-profit-table th:first-child{z-index:4;background:#f7faff}
.ow-page-agent-profit .fp-agent-profit-table tbody tr:hover td:first-child{background:#f8fbff}

/* Platform wallet, profit and inspection hierarchy. */
.po-shell{gap:18px;color:#203550}
.po-head{padding:2px 0}
.po-head h2{color:#203550;font-size:24px;letter-spacing:0}
.po-head p{max-width:820px;line-height:1.65}
.po-actions button{min-height:40px}
.po-stat{min-width:0;padding:17px;border-color:#dce6f1;box-shadow:0 8px 24px #264a7c0a}
.po-stat b{letter-spacing:0}
.po-profit-stat{border-top:3px solid #2472df}
.po-profit-stat small{line-height:1.55}
.po-profit-stat em{display:block;margin-top:9px;padding:7px 9px;border-radius:6px;background:#fff1f0;color:#a53c36;font-size:11px;font-style:normal;font-weight:750;line-height:1.45}
.po-table{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.po-table th{position:sticky;top:0;z-index:3;white-space:nowrap}
.po-table td{line-height:1.5}
.po-bank-table th:first-child,.po-bank-table td:first-child,.po-profit-table th:first-child,.po-profit-table td:first-child,.po-withdrawal-table th:first-child,.po-withdrawal-table td:first-child,.po-inspection-table th:first-child,.po-inspection-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.po-bank-table th:first-child,.po-profit-table th:first-child,.po-withdrawal-table th:first-child,.po-inspection-table th:first-child{z-index:4;background:#f5f8fb}
.po-withdrawal-table th:last-child,.po-withdrawal-table td:last-child,.po-inspection-table th:last-child,.po-inspection-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-9px 0 16px #20355012}
.po-withdrawal-table th:last-child,.po-inspection-table th:last-child{z-index:4;background:#f5f8fb}
.po-profit-ledger{background:#f2f7ff;color:#245f9f;font-weight:750}
.po-profit-bank{background:#f1faf6;color:#17684d;font-weight:750}
.po-profit-withdrawable{min-width:180px;background:#fffaf0}
.po-profit-withdrawable b{color:#82580e;font-size:15px}
.po-profit-withdrawable small{max-width:210px;padding:5px 7px;border-radius:5px;background:#fff0ee;color:#a33c36;font-weight:750;white-space:normal}
.po-row-actions{display:flex;gap:6px;min-width:124px}
.po-currency-amounts{display:grid!important;gap:3px}
.po-currency-amounts span{color:#365b80;font-variant-numeric:tabular-nums}
.po-amount-missing-currency{color:#a33c36!important;font-weight:750}
.po-findings{gap:12px;margin-top:2px}
.po-findings:empty{display:none}
.po-findings-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 19px;border:1px solid #dce6f1;border-radius:8px;background:#f7faff}
.po-findings-head span{color:#718198;font-size:11px;font-weight:750}
.po-findings-head h3{margin:4px 0 0;color:#203550;font-size:17px;letter-spacing:0}
.po-finding{display:grid;gap:14px;padding:16px 18px;border:1px solid #eadcae;border-left:4px solid #d4a431;border-radius:6px;background:#fffdf7}
.po-finding.CRITICAL{border-color:#e6b9b9;border-left-color:#ad2e2e;background:#fff8f8}
.po-finding.ABNORMAL{border-color:#edc9bb;border-left-color:#db6b43;background:#fffaf7}
.po-finding>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.po-finding>header>div{display:flex;align-items:center;gap:9px;min-width:0}
.po-finding>header b{overflow-wrap:anywhere;color:#283d57;font-size:14px}
.po-finding>header>span{flex:none;color:#718198;font-size:11px;font-weight:750}
.po-evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.po-evidence-item{min-width:0;padding:10px 11px;border:1px solid #e2e9f1;border-radius:6px;background:#fff}
.po-evidence-item span,.po-evidence-item b{display:block}
.po-evidence-item span{color:#8190a3;font-size:10px;font-weight:700}
.po-evidence-item b{margin-top:5px;overflow-wrap:anywhere;color:#344b67;font-size:12px}
.po-evidence-item.money b{color:#a33c36;font-variant-numeric:tabular-nums}
.po-evidence-item.wide{grid-column:span 2}
.po-evidence-item.error b{color:#a33c36}
.po-evidence-raw{overflow:hidden;border:1px solid #dfe7ef;border-radius:6px;background:#fff}
.po-evidence-raw summary{padding:10px 12px;color:#315b91;font-size:12px;font-weight:750;cursor:pointer}
.po-evidence-raw>div{display:flex;justify-content:flex-end;padding:0 12px 8px}
.po-evidence-raw pre{max-height:320px;margin:0;overflow:auto;padding:13px;background:#172338;color:#dce8f6;font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word}

@media(max-width:900px){.po-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .ff-shell:not(.ff-provider) .ff-table{overflow-x:auto;overflow-y:hidden}.ff-shell:not(.ff-provider) .ff-table table{display:table;width:max-content;min-width:100%}.ff-shell:not(.ff-provider) .ff-table thead{display:table-header-group}.ff-shell:not(.ff-provider) .ff-table tbody{display:table-row-group}.ff-shell:not(.ff-provider) .ff-table tr{display:table-row}.ff-shell:not(.ff-provider) .ff-table td{display:table-cell;white-space:normal}.ff-shell:not(.ff-provider) .ff-table td:nth-child(7),.ff-shell:not(.ff-provider) .ff-table td:nth-child(8),.ff-shell:not(.ff-provider) .ff-table td:nth-child(9){text-align:right;white-space:nowrap}.ff-shell:not(.ff-provider) .ff-table td:before{content:none}
  .po-head{align-items:stretch}.po-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.po-actions button{width:100%}.po-table{overflow:visible;border:0;background:transparent}.po-table table,.po-table tbody,.po-table tr,.po-table td{display:block;width:100%;min-width:0}.po-table table{min-width:0}.po-table thead{display:none}.po-table tbody{display:grid;gap:10px}.po-table tr{box-sizing:border-box;overflow:hidden;border:1px solid #dce6f1;border-radius:8px;background:#fff}.po-table td{position:static!important;display:grid!important;grid-template-columns:104px minmax(0,1fr);gap:10px;min-width:0!important;padding:10px 12px;border-bottom:1px solid #ebf0f5;background:#fff!important;box-shadow:none!important;overflow-wrap:anywhere}.po-table td:before{color:#718198;font-size:10px;font-weight:750;content:""}.po-table td:last-child{border-bottom:0}.po-table td[colspan]{display:block!important;text-align:center}.po-table td[colspan]:before{display:none}.po-bank-table td:nth-child(1):before{content:"账户"}.po-bank-table td:nth-child(2):before{content:"银行 / 户名"}.po-bank-table td:nth-child(3):before{content:"国家 / 币种"}.po-bank-table td:nth-child(4):before{content:"可用余额"}.po-bank-table td:nth-child(5):before{content:"冻结余额"}.po-bank-table td:nth-child(6):before{content:"利润账户"}.po-bank-table td:nth-child(7):before{content:"状态"}.po-bank-table td:nth-child(8):before{content:"更新时间"}.po-profit-table td:nth-child(1):before{content:"币种"}.po-profit-table td:nth-child(2):before{content:"上线后已实现"}.po-profit-table td:nth-child(3):before{content:"商户收入"}.po-profit-table td:nth-child(4):before{content:"三方成本"}.po-profit-table td:nth-child(5):before{content:"代理分润"}.po-profit-table td:nth-child(6):before{content:"已提取"}.po-profit-table td:nth-child(7):before{content:"提取中"}.po-profit-table td:nth-child(8):before{content:"账面剩余"}.po-profit-table td:nth-child(9):before{content:"银行可用"}.po-profit-table td:nth-child(10):before{content:"实际可提"}.po-withdrawal-table td:nth-child(1):before{content:"提取单号"}.po-withdrawal-table td:nth-child(2):before{content:"账户"}.po-withdrawal-table td:nth-child(3):before{content:"金额"}.po-withdrawal-table td:nth-child(4):before{content:"状态"}.po-withdrawal-table td:nth-child(5):before{content:"利润前后"}.po-withdrawal-table td:nth-child(6):before{content:"银行前后"}.po-withdrawal-table td:nth-child(7):before{content:"外部流水 / 凭证"}.po-withdrawal-table td:nth-child(8):before{content:"原因"}.po-withdrawal-table td:nth-child(9):before{content:"时间"}.po-withdrawal-table td:nth-child(10):before{content:"操作"}.po-inspection-table td:nth-child(1):before{content:"报告"}.po-inspection-table td:nth-child(2):before{content:"统计区间"}.po-inspection-table td:nth-child(3):before{content:"代收"}.po-inspection-table td:nth-child(4):before{content:"代付"}.po-inspection-table td:nth-child(5):before{content:"回调"}.po-inspection-table td:nth-child(6):before{content:"路由/代付卡单"}.po-inspection-table td:nth-child(7):before{content:"异常"}.po-inspection-table td:nth-child(8):before{content:"结论"}.po-inspection-table td:nth-child(9):before{content:"完成时间"}.po-inspection-table td:nth-child(10):before{content:"操作"}.po-row-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.po-row-actions button,.po-inspection-table .mini-action{min-height:44px}.po-evidence-grid{grid-template-columns:1fr}.po-evidence-item.wide{grid-column:auto}.po-finding>header{align-items:flex-start}.po-finding>header>div{align-items:flex-start;flex-direction:column}
}
.po-bank-table td:nth-child(9):before{content:"操作"}.po-bank-table td:nth-child(9) .mini-action{min-height:40px}.fp-fee-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,390px);gap:16px;align-items:start}.fp-fee-directory{min-width:0;overflow:auto}.fp-fee-directory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.fp-fee-directory-head h2{margin:0}.fp-fee-workspace{position:sticky;top:18px;min-width:0;padding:18px;border:1px solid #aac5e8;border-radius:8px;background:#f7fbff}.fp-fee-workspace[hidden]{display:none}.fp-fee-workspace>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.fp-fee-workspace h3{margin:4px 0;color:#263b54;font-size:16px}.fp-fee-workspace p{margin:4px 0 0;color:#75859a;font-size:11px;line-height:1.5}.fp-workspace-kicker{color:#2672d6;font-size:10px;font-weight:800}.fp-fee-workspace .form-grid{grid-template-columns:1fr}.fp-fee-workspace .form-grid .wide{grid-column:auto}.fp-fee-workspace .form-actions{align-items:flex-start;flex-wrap:wrap}.fp-fee-workspace .form-message{flex-basis:100%}@media(max-width:1050px){.fp-fee-layout{grid-template-columns:1fr}.fp-fee-workspace{position:relative;top:auto}}@media(max-width:650px){.fp-fee-workspace{padding:15px}}

.payout-review-forms>.card,.payout-review-forms .config-form label{min-width:0}.payout-review-forms .form-grid{grid-template-columns:minmax(0,1fr)}
