/* Commercial finance presentation, scoped exclusively to the cash accounts page. */
.finance-polished{--fin-ink:#223149;--fin-muted:#758297;--fin-line:#e6ebf2;--fin-blue:#2867cf;background:#f2f5f9;color:var(--fin-ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}
.finance-polished aside{background:#152237;border-right:1px solid #233249;padding:20px 14px 12px}.finance-polished .brand{padding:2px 5px 24px;gap:10px}.finance-polished .brand b{font-size:15px;letter-spacing:.2px}.finance-polished .brand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.7px;color:#8294b0}.finance-polished .logo{border:1px solid #ffffff1c;background:#2b6ad0;border-radius:11px;font-size:16px;box-shadow:0 5px 14px #07142933}.finance-polished aside nav{gap:4px}.finance-polished aside nav a{font-size:14px;padding:9px 13px;min-height:37px;color:#b0bdd0;transition:background .15s,color .15s}.finance-polished aside nav a:hover{background:#ffffff0b;color:#fff}.finance-polished aside nav a[data-key=finance].active{background:#2b64bd;color:#fff;box-shadow:0 3px 10px #0c1a2e33}.finance-polished aside .foot{font-size:10px;color:#6d819e;padding-top:18px}.finance-polished aside nav a:is([data-key=sales],[data-key=retrofit],[data-key=repair],[data-key=rental]){background:#1d3947;border-color:#315562;color:#c7e2e7}
.finance-polished main>header{height:88px;padding:0 30px;background:#fff;border-bottom:1px solid var(--fin-line)}.finance-polished header h1{font-size:23px;font-weight:700;letter-spacing:.2px}.finance-polished header p{font-size:12px;color:#8a97aa;margin-top:7px}.finance-polished header>span{font-size:11px;color:#8998ae;border:1px solid var(--fin-line);border-radius:20px;padding:5px 10px;background:#fafbfd}.finance-polished .content{padding:20px 28px 30px;max-width:2000px;margin:0 auto}
.finance-polished .subnav{padding:4px;background:transparent;border:0;border-radius:0;gap:20px;margin:0 0 15px;border-bottom:1px solid #dde5ef}.finance-polished .subtab{padding:9px 3px 13px;color:#78879c;border-radius:0;position:relative;font-size:14px;font-weight:500}.finance-polished .subtab.active{background:transparent;color:#235fbf;font-weight:700}.finance-polished .subtab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px;background:#2867cf}.finance-polished .subtab:hover{background:transparent;color:#235fbf}
.finance-polished #cashAccountSection{margin-top:0;padding:24px;border-color:#e1e7f0;border-radius:14px;box-shadow:0 4px 20px #1e395205}.finance-polished #cashAccountSection>.head{margin-bottom:22px;gap:18px}.finance-polished #cashAccountSection>.head h2{font-size:18px;margin:0 0 6px}.finance-polished #cashAccountSection>.head p{font-size:12px;margin:0;line-height:1.6;color:#8995a6}.finance-polished #addCashAccount{min-height:38px;padding:9px 16px;border-radius:8px;font-size:13px;background:#2867cf;border:1px solid #2867cf;box-shadow:0 3px 7px #2867cf20;white-space:nowrap}.finance-polished #addCashAccount:hover{background:#2057b2}
.finance-polished .finance-overview{display:grid;grid-template-columns:minmax(280px,1.7fr) 1fr 1fr;gap:16px;margin-bottom:26px}.finance-polished .finance-overview>div{border-radius:10px;padding:20px 22px;min-height:140px}.finance-polished .finance-overview-balance{background:#1e3d68;color:white;position:relative;overflow:hidden}.finance-polished .finance-overview-balance:after{content:"";position:absolute;width:145px;height:145px;border:25px solid #ffffff05;border-radius:50%;right:-60px;top:-50px;pointer-events:none}.finance-polished .finance-metric-label{font-size:12px;color:#72829a;line-height:20px}.finance-polished .finance-overview-balance .finance-metric-label{color:#d0ddf0}.finance-polished .finance-metric-label span{font-size:9px;color:#92afd4;margin-left:12px;letter-spacing:.7px}.finance-polished .finance-metric-value{font-size:30px;font-weight:700;line-height:1.25;margin:13px 0 11px;font-variant-numeric:tabular-nums;letter-spacing:.3px;overflow-wrap:anywhere}.finance-polished .finance-metric-note{font-size:11px;color:#93a1b4;line-height:1.5}.finance-polished .finance-overview-balance .finance-metric-note{color:#a3bbd9}.finance-polished .finance-overview-count{background:#f8fafd;border:1px solid var(--fin-line)}.finance-polished .finance-count-value{margin:10px 0 9px}.finance-polished .finance-count-value strong{font-size:30px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}.finance-polished .finance-count-value span{font-size:12px;margin-left:9px;color:#8a97aa}
.finance-polished .cash-account-views{display:inline-flex;background:#f0f3f8;border:1px solid #e8edf4;border-radius:8px;padding:3px;gap:2px;margin:0 0 14px}.finance-polished .cash-account-views button{min-height:32px;padding:6px 15px;border:1px solid transparent;background:transparent;color:#758399;font-size:12px;border-radius:5px;box-shadow:none}.finance-polished .cash-account-views button.button-primary{background:white;border-color:#dce5f1;color:#255fb7;box-shadow:0 1px 3px #152b4920}.finance-polished .cash-account-views button:hover{color:#255fb7;background:#ffffffa8}
.finance-polished #cashAccountSearch{background:#fafbfd;border:1px solid var(--fin-line);box-shadow:none;border-radius:9px;padding:14px 16px;gap:12px;margin:0 0 18px;align-items:end}.finance-polished #cashAccountSearch label{font-size:11px;color:#8290a3;gap:6px}.finance-polished #cashAccountSearch input,.finance-polished #cashAccountSearch select{height:36px;min-height:36px;font-size:12px;padding:7px 10px;border-color:#dce3ed;border-radius:6px}.finance-polished #cashAccountSearch label:first-child{min-width:220px}.finance-polished #cashAccountSearch button{min-height:36px;padding:7px 14px;font-size:12px;border-radius:6px}.finance-polished #cashAccountSearch button[type=submit]{background:#2867cf;border-color:#2867cf;color:white}.finance-polished #cashAccountSearch button[type=submit]:hover{background:#2057b2}.finance-polished #cashAccountClear{background:#fff;color:#728198;border-color:#dce3ed}.finance-polished #cashAccountMessage{font-size:12px;line-height:1.5;min-height:0;margin:0 0 10px}.finance-polished #cashAccountMessage:empty{display:none}
.finance-polished .cash-account-table>table>thead th{font-size:11px;font-weight:500;color:#8b98aa;padding:10px 12px;background:white;border-bottom:1px solid #dfe6f0}.finance-polished .cash-account-table>table>thead th:nth-child(2){text-align:center;width:130px}.finance-polished .cash-account-table>table>thead th:nth-child(3){text-align:right;width:190px}.finance-polished .cash-account-category{background:#f0f5fc}.finance-polished .cash-account-category:hover{background:#e9f1fc}.finance-polished .cash-account-category>td{padding:9px 12px;border-bottom:0}.finance-polished .cash-account-category>td:first-child{border-left:3px solid #8eafde}.finance-polished .cash-account-category button{padding:1px 0;border:0;background:transparent;border-radius:3px;color:#2d4a70;font-weight:650;font-size:13px;min-height:26px;min-width:0}.finance-polished .cash-account-category button:hover{color:#2867cf}.finance-polished .finance-group-count{text-align:center!important;color:#7890af;font-size:12px;font-variant-numeric:tabular-nums}.finance-polished .finance-group-balance{text-align:right!important;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;color:#2c4c75}
.finance-polished #cashAccountRows>tr:not(.cash-account-category)>td{padding:0 0 13px;border-bottom:0}.finance-polished .cash-account-category-details{border:1px solid #e1e8f2;border-top:0;border-radius:0 0 8px 8px;padding:4px 10px 7px;background:white}.finance-polished .cash-account-detail-table{font-size:13px;min-width:1120px}.finance-polished .cash-account-detail-table th{font-size:10px;color:#8b99ac;font-weight:500;background:#fff;padding:6px 8px!important;line-height:16px!important;border-bottom:1px solid #e9edf4}.finance-polished .cash-account-detail-table td{padding:8px 8px!important;line-height:22px!important;border-bottom:1px solid #f0f3f8;color:#5d6c80}.finance-polished .cash-account-detail-row:hover{background:#f7faff}.finance-polished .cash-account-detail-row td:nth-child(1){font-size:11px;color:#a1adbd;width:42px}.finance-polished .cash-account-detail-row td:nth-child(2){font-weight:600;color:#2f425c}.finance-polished .cash-account-detail-row td:nth-child(6){font-size:12px;letter-spacing:.3px}.finance-polished .cash-account-detail-table :is(th,td):nth-child(7),.finance-polished .cash-account-detail-table :is(th,td):nth-child(8){text-align:right;white-space:nowrap}.finance-polished .cash-account-detail-table .finance-money{font-variant-numeric:tabular-nums;font-weight:600;color:#355e95}.finance-polished .cash-account-detail-table .finance-money.is-zero{color:#99a5b6;font-weight:400}.finance-polished .is-negative,.finance-polished .cash-account-detail-table .finance-money.is-negative{color:#bd575a!important}.finance-polished .finance-metric-value.is-negative{color:#ffd8d5!important}.finance-polished .finance-status{display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:0 5px;border-radius:4px;line-height:17px;white-space:nowrap}.finance-polished .finance-status:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.finance-polished .finance-status.is-active{color:#43876d;background:#edf7f1}.finance-polished .finance-status.is-inactive{color:#8a95a5;background:#f0f2f5}.finance-polished .cash-account-row-actions button{padding:1px 7px;min-height:22px;font-size:11px;line-height:18px;border-color:#e0e6ee;color:#74839a;background:#fff;border-radius:4px}.finance-polished .cash-account-row-actions button:nth-child(2){color:#3c72bd;border-color:#dbe7f8;background:#f5f9ff}.finance-polished .cash-account-row-actions button:hover{background:#edf4ff;color:#245fb7;border-color:#a9c4e9}.finance-polished .cash-account-row-actions button.cash-account-delete{color:#bf6a6d;background:#fff;border-color:#f0e4e5}.finance-polished .cash-account-row-actions button.cash-account-delete:hover{color:#b43e43;background:#fff1f1;border-color:#e7bdc0}.finance-polished .cash-account-table>table>tfoot th{background:#f8fafd;font-size:12px;font-weight:500;color:#61748f}.finance-polished .cash-account-table>table>tfoot small{font-size:10px;font-weight:400;color:#9aa7b8;margin-left:5px}.finance-polished .cash-account-table>table>tfoot td{text-align:right;background:#f8fafd}.finance-polished #cashAccountTotalBalance{font-size:17px;font-variant-numeric:tabular-nums;color:#2b4e7d}.finance-polished #cashAccountPage{font-size:11px;color:#9aa7b8}.finance-polished #cashAccountSection>.actions:last-child{margin-top:12px}
.finance-polished .cash-account-dialog{padding:24px;border:1px solid #e4eaf3;box-shadow:0 18px 70px #142c4e33;border-radius:14px}.finance-polished .cash-account-dialog::backdrop{background:#172b4666;backdrop-filter:blur(2px)}.finance-polished .cash-account-dialog h2{font-size:18px}.finance-polished .cash-account-fields{gap:12px 18px}.finance-polished .cash-account-fields label{font-size:12px;color:#6f7f95;gap:7px}.finance-polished .cash-account-fields input,.finance-polished .cash-account-fields select,.finance-polished .cash-account-fields textarea{min-height:38px;font-size:13px;border-color:#dce4ef;padding:9px 11px}.finance-polished .cash-account-dialog button{font-size:12px;border-radius:6px}.finance-polished #cashCurrentBalance{font-size:19px;font-weight:650;color:#315c95;line-height:38px;font-variant-numeric:tabular-nums}
@media(min-width:1700px){.finance-polished .content{padding-left:38px;padding-right:38px}.finance-polished #cashAccountSection{padding:28px}}
@media(max-width:1100px){.finance-polished .finance-overview{grid-template-columns:1.5fr 1fr 1fr;gap:10px}.finance-polished .finance-overview>div{padding:16px}.finance-polished .finance-metric-value{font-size:25px}.finance-polished .finance-metric-note{font-size:10px}.finance-polished .content{padding:18px}}
@media(max-width:760px){.finance-polished aside{position:static;width:100%;padding:12px}.finance-polished .brand{padding:0 4px 10px}.finance-polished aside nav{display:flex;flex-direction:row;flex-wrap:wrap;overflow:visible;gap:4px}.finance-polished aside nav a{font-size:12px;min-height:30px;padding:6px 9px}.finance-polished .foot{display:none}.finance-polished main{margin-left:0}.finance-polished main>header{height:76px;padding:0 18px}.finance-polished header h1{font-size:21px}.finance-polished .content{padding:12px}.finance-polished #cashAccountSection{padding:16px}.finance-polished #cashAccountSection>.head{align-items:flex-start;margin-bottom:18px}.finance-polished #cashAccountSection>.head p{max-width:210px;font-size:11px}.finance-polished #addCashAccount{padding:8px 10px;font-size:12px}.finance-polished .finance-overview{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.finance-polished .finance-overview-balance{grid-column:1/-1}.finance-polished .finance-overview>div{min-height:110px;padding:16px}.finance-polished .finance-metric-value{font-size:30px}.finance-polished .finance-count-value strong{font-size:25px}.finance-polished #cashAccountSearch{padding:12px}.finance-polished #cashAccountSearch label:first-child{width:100%;flex-basis:100%;min-width:0}.finance-polished #cashAccountSearch label:not(:first-child){flex:1}.finance-polished #cashAccountSearch button{flex:1}.finance-polished .cash-account-views{display:flex}.finance-polished .cash-account-views button{flex:1;padding:6px 8px;white-space:nowrap}.finance-polished .cash-account-table>table{min-width:560px}.finance-polished .cash-account-category-details{max-width:none}.finance-polished .cash-account-dialog{padding:18px}.finance-polished .cash-account-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.finance-polished *{transition:none!important}}

/* Keep labels readable and controls stable at narrow widths. */
.finance-polished #cashAccountSection>.head p{color:#718198}.finance-polished .finance-metric-note{color:#718298}.finance-polished .finance-metric-label{color:#64778f}.finance-polished .cash-account-table>table>thead th,.finance-polished .cash-account-detail-table th{color:#687c96}.finance-polished .cash-account-detail-table .finance-money.is-zero{color:#76879e}.finance-polished .finance-group-count{color:#607a9c}.finance-polished .cash-account-category button:before{content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin:0 5px 0 1px}.finance-polished .cash-account-category button[aria-expanded=true]:before{transform:rotate(45deg);margin-top:-3px}
@media(max-width:760px){.finance-polished #cashAccountSearch label:not(:first-child){flex:1 1 calc(50% - 6px);min-width:0}.finance-polished #cashAccountSearch button{flex:1 1 calc(50% - 6px);white-space:nowrap}.finance-polished .cash-account-table:before{content:"左右滑动查看完整账户信息";display:block;font-size:10px;color:#718198;padding:0 0 10px}.finance-polished #cashAccountSearch select{width:100%}}

.all-ledger-pager{display:flex;align-items:center;gap:12px;padding:13px 14px;border-top:1px solid #e4ebf4;color:#7b90aa;font-size:12px;flex-wrap:wrap}.all-ledger-pager button{white-space:nowrap}
/* 2026-10-25 cash accounts, matching the inventory/purchase look: rounded category bands, compact account rows. */
body.finance-polished[data-page=finance] table:has(#cashAccountRows){border-collapse:separate;border-spacing:0 8px}
body.finance-polished[data-page=finance] table:has(#cashAccountRows) thead th{border-bottom:0}
body.finance-polished[data-page=finance] #cashAccountRows>tr.cash-account-category>td{padding:12px 16px;background:#e6eefb;border-top:1px solid #cfdcf0;border-bottom:1px solid #cfdcf0}
body.finance-polished[data-page=finance] #cashAccountRows>tr.cash-account-category>td:first-child{border-left:5px solid #2a62ad;border-radius:9px 0 0 9px}
body.finance-polished[data-page=finance] #cashAccountRows>tr.cash-account-category>td:last-child{border-right:1px solid #cfdcf0;border-radius:0 9px 9px 0}
body.finance-polished[data-page=finance] #cashAccountRows>tr.cash-account-category:hover>td{background:#dde8f8}
body.finance-polished[data-page=finance] .cash-account-category button{font-size:15px;font-weight:700;color:#1d3657}
body.finance-polished[data-page=finance] .cash-account-category button:hover{color:#1d3657}
body.finance-polished[data-page=finance] .cash-account-category .finance-group-count{font-size:14px;font-weight:600;color:#3e5e83}
body.finance-polished[data-page=finance] .cash-account-category .finance-group-balance{font-size:16px;font-weight:700;color:#1f3a5c}
body.finance-polished[data-page=finance] .cash-account-category .finance-group-balance.is-negative{color:#c2414f}
body.finance-polished[data-page=finance] #cashAccountRows>tr:not(.cash-account-category)>td{padding:0 0 6px 18px}
body.finance-polished[data-page=finance] .cash-account-category-details{padding:0;border:1px solid #e1e8f2;border-left:3px solid #c9d9ef;border-radius:10px;background:#fff;box-shadow:0 1px 3px #1f37560a;overflow:hidden}
body.finance-polished[data-page=finance] .cash-account-detail-table{width:100%;border-collapse:collapse}
body.finance-polished[data-page=finance] .cash-account-detail-table th{padding:10px 12px;background:#f2f6fb;color:#4e6788;font-size:12px;font-weight:600;text-align:left;border-bottom:1px solid #dbe4ef;white-space:nowrap}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(4),body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(5){text-align:center;background:#edf3fc;color:#3f6591}
body.finance-polished[data-page=finance] .cash-account-detail-table td{padding:11px 12px;border-bottom:1px solid #edf1f6;color:#2f4a6b;font-size:13px;vertical-align:middle}
body.finance-polished[data-page=finance] .cash-account-detail-table tbody tr:last-child td{border-bottom:0}
body.finance-polished[data-page=finance] .cash-account-detail-table tbody tr:hover td{background:#f6f9fe}
body.finance-polished[data-page=finance] .cash-account-detail-table td.cash-account-no{width:48px;color:#8293aa;text-align:center}
body.finance-polished[data-page=finance] .cash-account-name{white-space:nowrap}
body.finance-polished[data-page=finance] .cash-account-name strong{font-size:14px;color:#1d3657}
body.finance-polished[data-page=finance] .cash-account-type{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#eef3fa;color:#4f6c8f;font-size:11.5px;font-weight:500;vertical-align:1px}
body.finance-polished[data-page=finance] .cash-account-detail-table td.cash-account-info{color:#5d7290;font-size:12.5px;overflow-wrap:anywhere}
body.finance-polished[data-page=finance] .cash-account-detail-table td:is(.cash-account-info,.cash-account-note).is-empty{color:#b2bccb}
body.finance-polished[data-page=finance] .cash-account-detail-table td.finance-money{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;color:#4e6788}
body.finance-polished[data-page=finance] .cash-account-detail-table td.cash-account-balance{font-size:14px;font-weight:700;color:#1f3a5c;background:#f5f9ff}
body.finance-polished[data-page=finance] .cash-account-detail-table tbody tr:hover td.cash-account-balance{background:#eaf2fd}
body.finance-polished[data-page=finance] .cash-account-detail-table td.finance-money.is-negative{color:#c2414f}
body.finance-polished[data-page=finance] .cash-account-detail-table td.finance-money.is-zero{color:#9aa8ba;font-weight:500}
body.finance-polished[data-page=finance] .cash-account-detail-table td.cash-account-note{max-width:180px;color:#6f8299;overflow-wrap:anywhere}
body.finance-polished[data-page=finance] .cash-account-row-actions{white-space:nowrap}
body.finance-polished[data-page=finance] .cash-account-row-actions button{min-height:28px;margin:0 6px 0 0;padding:4px 10px;font-size:12px;border-radius:6px}
body.finance-polished[data-page=finance] .cash-account-row-actions button.cash-account-ledger{background:#2463c7;border-color:#2463c7;color:#fff;font-weight:600}
body.finance-polished[data-page=finance] .cash-account-row-actions button.cash-account-ledger:hover{background:#1d55ae;border-color:#1d55ae;color:#fff}
@media(max-width:1100px){body.finance-polished[data-page=finance] .cash-account-category-details{overflow-x:auto}body.finance-polished[data-page=finance] #cashAccountRows>tr:not(.cash-account-category)>td{padding-left:0}}
/* Same column widths in every category so the money columns line up; long text wraps inside its cell. */
body.finance-polished[data-page=finance] table:has(#cashAccountRows){width:100%;table-layout:fixed}
body.finance-polished[data-page=finance] .cash-account-detail-table{table-layout:fixed}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(1){width:5%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(2){width:14%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(3){width:20%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(4){width:9%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(5){width:10%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(6){width:7%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(7){width:9%}
body.finance-polished[data-page=finance] .cash-account-detail-table th:nth-child(8){width:26%}
body.finance-polished[data-page=finance] .cash-account-name{white-space:normal;overflow-wrap:anywhere}
body.finance-polished[data-page=finance] .cash-account-row-actions{white-space:normal}
body.finance-polished[data-page=finance] .cash-account-row-actions button{margin:2px 4px 2px 0}
body.finance-polished[data-page=finance] .cash-account-category-details{overflow:visible}
body.finance-polished[data-page=finance] .cash-account-detail-table td{white-space:normal;overflow-wrap:anywhere}
body.finance-polished[data-page=finance] .cash-account-detail-table td.finance-money{white-space:nowrap;overflow-wrap:normal}
body.finance-polished[data-page=finance] .cash-account-row-actions{display:flex;flex-wrap:wrap;gap:5px}
body.finance-polished[data-page=finance] .cash-account-row-actions button{margin:0;padding:4px 9px}
/* 2026-10-25 应收 / 应付 page. */
.open-balance-workspace .open-balance-switch{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 14px}
.erp-commercial.open-balance-workspace .open-balance-switch button{display:inline-flex;align-items:baseline;gap:10px;min-height:46px;padding:10px 18px;border:1px solid #cfdcee;border-radius:10px;background:#fff;color:#2f5f93;font-size:14px;font-weight:600;transition:background-color .15s,border-color .15s}
.erp-commercial.open-balance-workspace .open-balance-switch button:hover{background:#eef4fd;border-color:#a9c3e6;color:#2f5f93}
.erp-commercial.open-balance-workspace .open-balance-switch button:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
.erp-commercial.open-balance-workspace .open-balance-switch button.is-active{background:#2a62ad;border-color:#2a62ad;color:#fff}
.erp-commercial.open-balance-workspace .open-balance-switch button.is-active:hover{background:#2f6fc4;border-color:#2f6fc4;color:#fff}
.open-balance-switch strong{font-size:18px;font-variant-numeric:tabular-nums}
.open-balance-switch strong small{font-size:12px;font-weight:400;opacity:.8}
.open-balance-switch em{padding:1px 8px;border-radius:10px;background:#eef3fa;color:#4f6c8f;font-size:12px;font-style:normal}
.open-balance-switch button.is-active em{background:#ffffff2e;color:#fff}
.open-balance-note{margin:0 0 12px;padding:9px 14px;background:#f8fafd;border:1px dashed #d7e1ee;border-radius:9px;color:#5d7290;font-size:12.5px;line-height:1.6}
.erp-commercial .open-balance-table table{width:100%}
.erp-commercial .open-balance-table :is(th,td){vertical-align:middle;white-space:normal}
.erp-commercial .open-balance-table :is(th,td).num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.erp-commercial .open-balance-table td.open-balance-left{color:#b4531f;font-weight:700}
.open-balance-kind{display:inline-block;padding:2px 9px;border-radius:10px;background:#eaf1fc;color:#2f5f93;font-size:12px;font-weight:600;white-space:nowrap}
.open-balance-ref{font-weight:600;color:#1f3a5c}
.open-balance-ref small{display:block;margin-top:2px;font-size:11.5px;font-weight:400;color:#8496ad}
.erp-commercial .open-balance-table tfoot td{background:#fff8f1;color:#8a4b22;font-weight:700}
.erp-commercial .open-balance-table tfoot td:first-child{text-align:right}
.open-balance-table td.empty{padding:28px;text-align:center;color:#7a8ca4}
@media(max-width:900px){.open-balance-table{overflow-x:auto}.open-balance-table table{min-width:860px}}
/* 2026-10-26 finance tabs as tinted buttons, one colour each. */
.erp-commercial.finance-polished .subnav{gap:10px;padding:0;margin:0 0 18px;border-bottom:0}
.erp-commercial.finance-polished .subnav .subtab{display:inline-flex;align-items:center;min-height:40px;padding:8px 20px;border:1px solid #cfdcee;border-radius:10px;background:#eef4fd;color:#2f5f93;font-size:14px;font-weight:600;text-decoration:none;transition:background-color .15s,border-color .15s}
.erp-commercial.finance-polished .subnav .subtab::after{display:none}
.erp-commercial.finance-polished .subnav .subtab:hover{background:#e1ebf9;border-color:#a9c3e6;color:#2f5f93}
.erp-commercial.finance-polished .subnav .subtab:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
.erp-commercial.finance-polished .subnav .subtab.active{background:#2a62ad;border-color:#2a62ad;color:#fff;box-shadow:0 2px 6px #2a62ad33}
.erp-commercial.finance-polished .subnav .subtab[href^="transfers"]{background:#eaf6f1;border-color:#c4e2d5;color:#2f6f5f}
.erp-commercial.finance-polished .subnav .subtab[href^="transfers"]:hover{background:#d9efe5;border-color:#97cbb4;color:#2f6f5f}
.erp-commercial.finance-polished .subnav .subtab[href^="transfers"].active{background:#2f7d6f;border-color:#2f7d6f;color:#fff;box-shadow:0 2px 6px #2f7d6f33}
.erp-commercial.finance-polished .subnav .subtab[href^="payables"]{background:#fdf3ea;border-color:#efd3b8;color:#9a5520}
.erp-commercial.finance-polished .subnav .subtab[href^="payables"]:hover{background:#fae6d3;border-color:#e2b78f;color:#9a5520}
.erp-commercial.finance-polished .subnav .subtab[href^="payables"].active{background:#c2622d;border-color:#c2622d;color:#fff;box-shadow:0 2px 6px #c2622d33}
/* 应收 / 应付 page polish. */
.erp-commercial.open-balance-workspace .open-balance-panel{padding:22px 24px;border-radius:14px}
.erp-commercial.open-balance-workspace .open-balance-switch button{min-height:52px;padding:10px 20px;border-radius:12px;box-shadow:0 1px 3px #1f37560d}
.erp-commercial.open-balance-workspace .open-balance-note{margin:0 0 16px}
.erp-commercial.open-balance-workspace .open-balance-table{background:#fff;border:1px solid #e1e8f2;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px #254c7d05}
.erp-commercial.open-balance-workspace .open-balance-table table{border-collapse:collapse;font-size:13.5px}
.erp-commercial.open-balance-workspace .open-balance-table thead th{padding:12px 14px;background:#edf3fc;color:#3f6591;font-size:12.5px;font-weight:600;border-bottom:1px solid #dde6f2;white-space:nowrap}
.erp-commercial.open-balance-workspace .open-balance-table tbody td{padding:13px 14px;border-bottom:1px solid #edf1f7;color:#2b4564}
.erp-commercial.open-balance-workspace .open-balance-table tbody tr:hover td{background:#f6f9ff}
.erp-commercial.open-balance-workspace .open-balance-table tbody tr:last-child td{border-bottom:0}
.erp-commercial.open-balance-workspace .open-balance-table tfoot td{padding:13px 14px;border-top:1px solid #f0dcc4}
.erp-commercial.open-balance-workspace a.open-balance-open{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#2f5f93;font-size:12.5px;font-weight:500;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s}
.erp-commercial.open-balance-workspace a.open-balance-open:is(:visited,:hover){color:#2f5f93;text-decoration:none}
.erp-commercial.open-balance-workspace a.open-balance-open:hover{background:#eef4fd;border-color:#a9c3e6}
.erp-commercial.open-balance-workspace a.open-balance-open:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
.erp-commercial.open-balance-workspace .open-balance-table :is(th,td):not(.num){text-align:left}
/* 手机端：抬头高度跟内容走，下面的按钮不再压住账号框 */
@media(max-width:760px){.finance-polished main>header{height:auto;min-height:76px;padding:12px 18px;flex-wrap:wrap}.erp-commercial.finance-polished .subnav{flex-wrap:wrap}}
