.finance-page{--finance-text:var(--ink,#172033);--finance-muted:#7c879b;--finance-border:var(--line,#e5ebf3);--finance-card:#fff;--finance-soft:#f7f9fc;display:flex;flex-direction:column;width:100%;min-width:0;gap:16px;color:var(--finance-text)}
[data-theme="dark"] .finance-page{--finance-text:#e8eef8;--finance-muted:#97a5b9;--finance-border:#28364b;--finance-card:#121c2b;--finance-soft:#101a29}
.finance-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.finance-heading p{margin:0 0 5px;color:var(--blue,#2f7df4);font-size:11px;font-weight:700;letter-spacing:.06em}.finance-heading h1{margin:0 0 7px;font-size:30px;letter-spacing:-.03em}.finance-heading>div>span,.finance-panel-title p{color:var(--finance-muted);font-size:13px}.finance-heading-meta{display:flex;gap:10px}.finance-heading-meta span{padding:9px 12px;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-card)}
.finance-notice{margin:0;padding:11px 14px;border:1px solid #bbdfd0;border-radius:10px;background:#effaf5;color:#167857}.finance-notice.error{border-color:#f1c2c7;background:#fff5f6;color:#c83f4f}
.finance-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:12px}.finance-summary article{display:grid;grid-template-columns:auto repeat(4,minmax(0,1fr));align-items:center;gap:18px;padding:17px 18px;border:1px solid var(--finance-border);border-radius:14px;background:var(--finance-card)}.finance-summary article>span{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#edf4ff;color:#2f7df4;font-weight:800}.finance-summary small,.finance-progress small{display:block;color:var(--finance-muted);font-size:11px}.finance-summary strong{display:block;margin-top:4px;font-size:15px}.attention{color:#d45b66!important}.finance-summary .empty{display:block;color:var(--finance-muted)}
.finance-summary.finance-payable-summary article,.finance-summary.finance-receivable-summary article{grid-template-columns:auto repeat(5,minmax(0,1fr))}
.finance-payable-overview{min-width:0;overflow:hidden;border:1px solid var(--finance-border);border-radius:14px;background:var(--finance-card)}.finance-payable-overview-table{width:100%;min-width:680px;border-collapse:collapse;table-layout:fixed}.finance-payable-overview-table th,.finance-payable-overview-table td{padding:13px 18px;border-bottom:1px solid var(--finance-border);font-size:13px;text-align:right;white-space:nowrap}.finance-payable-overview-table thead th{padding-top:11px;padding-bottom:10px;color:var(--finance-muted);font-size:10px;font-weight:700}.finance-payable-overview-table th:first-child,.finance-payable-overview-table td:first-child{width:82px;text-align:left}.finance-payable-overview-table tbody th{color:var(--finance-text);font-size:13px;font-weight:800}.finance-payable-overview-table tbody td{font-weight:600}.finance-payable-overview-table tbody tr:last-child th,.finance-payable-overview-table tbody tr:last-child td{border-bottom:0}
.finance-panel{min-width:0;padding:18px;border:1px solid var(--finance-border);border-radius:15px;background:var(--finance-card)}.finance-panel-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.finance-panel-title h2{margin:0 0 4px;font-size:18px}.finance-panel-title p{margin:0}.finance-panel-title>strong{color:var(--finance-muted);font-size:12px}.finance-table-wrap{overflow:auto}.finance-table{width:100%;min-width:1080px;border-collapse:collapse}.finance-table th{padding:11px 10px;border-bottom:1px solid var(--finance-border);color:var(--finance-muted);font-size:11px;text-align:left;white-space:nowrap}.finance-table td{padding:13px 10px;border-bottom:1px solid var(--finance-border);font-size:12px;vertical-align:middle}.finance-table td>small{display:block;margin-top:4px;color:var(--finance-muted)}.finance-table tbody tr:last-child td{border-bottom:0}.finance-table .btn{padding:7px 10px;font-size:11px;white-space:nowrap}.finance-empty{text-align:center!important;color:var(--finance-muted);padding:34px!important}.finance-settled{color:#2d9a70;font-size:12px;font-weight:700}
.finance-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#617087;font-size:10px;font-weight:700;white-space:nowrap}.finance-badge.done{background:#eaf8f2;color:#238461}.finance-badge.partial{background:#fff5df;color:#b37818}.finance-badge.pending{background:#fff3dd;color:#b06a12}.finance-badge.refund,.finance-badge.rejected,.finance-badge.blocked{background:#fff0f2;color:#c64c5b}.finance-badge.open{background:#edf4ff;color:#2f70c8}
.finance-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.finance-panel-actions>strong{color:var(--finance-muted);font-size:12px}.finance-counterparty-scroll{max-height:220px;overscroll-behavior:contain}.finance-counterparty-table{min-width:1180px}.finance-counterparty-table thead{position:sticky;top:0;z-index:1;background:var(--finance-card)}.finance-counterparty-table tbody tr.active td{background:#f3f7ff}.finance-link-button{display:grid;gap:3px;padding:0;border:0;background:transparent;color:var(--finance-text);font:inherit;text-align:left;cursor:pointer}.finance-link-button small{color:var(--finance-muted);font-size:10px}
.finance-receipt-dialog{width:min(940px,calc(100vw - 40px))}.finance-receipt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 22px}.finance-receipt-fields label{display:grid;gap:7px;color:var(--finance-text);font-size:12px;font-weight:700}.finance-receipt-fields .finance-field-wide{grid-column:1/-1}.finance-receipt-fields input,.finance-receipt-fields textarea,.finance-receipt-allocation input{width:100%;height:42px;padding:0 12px;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-card);color:var(--finance-text);font:inherit}.finance-receipt-fields textarea{height:86px;padding:10px 12px;resize:vertical}.finance-money-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-card);overflow:hidden}.finance-money-control input{border:0;border-radius:0}.finance-money-control b{padding:0 12px;color:var(--finance-muted);font-size:12px}.finance-receipt-fields label>small,.finance-receipt-allocation [data-allocation-error]{color:#c83f4f;font-size:11px}.finance-receipt-allocation{margin:0 22px;border:1px solid var(--finance-border);border-radius:12px;overflow:hidden}.finance-receipt-allocation>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--finance-soft)}.finance-receipt-allocation>header div{display:grid;gap:3px}.finance-receipt-allocation>header small{color:var(--finance-muted);font-size:11px}.finance-receipt-allocation>label{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:center;gap:16px;padding:12px 14px;border-top:1px solid var(--finance-border)}.finance-receipt-allocation>label>span{display:grid;gap:4px}.finance-receipt-allocation>label>span small{color:var(--finance-muted);font-size:11px}.finance-receipt-allocation>label>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.finance-receipt-allocation>label>div>b{color:var(--finance-muted);font-size:11px}.finance-receipt-allocation>label>div>small{grid-column:1/-1}.finance-receipt-balance{margin:12px 22px 0;color:var(--finance-muted);font-size:12px;text-align:right}.finance-receipt-balance.error{color:#c83f4f}.finance-receipt-dialog>.cc-notice{margin:10px 22px 0}
.finance-adjustment-dialog{--finance-text:var(--ink,#172033);--finance-muted:#7c879b;--finance-border:var(--line,#e5ebf3);--finance-card:var(--card,#fff);--finance-soft:#f7f9fc;width:min(860px,calc(100vw - 40px))}.finance-adjustment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 22px}.finance-adjustment-fields label{display:grid;gap:7px;color:var(--finance-text);font-size:12px;font-weight:700}.finance-adjustment-fields label.wide{grid-column:1/-1}.finance-adjustment-fields input,.finance-adjustment-fields select,.finance-adjustment-fields textarea{width:100%;padding:0 12px;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-card);color:var(--finance-text);font:inherit}.finance-adjustment-fields input,.finance-adjustment-fields select{height:42px}.finance-adjustment-fields textarea{padding-top:10px;resize:vertical}.finance-adjustment-order-field small{color:var(--finance-muted);font-weight:500;line-height:1.45}.finance-adjustment-preview{display:grid;gap:4px;margin:0 22px 14px;padding:12px 14px;border:1px solid var(--finance-border);border-radius:11px;background:var(--finance-soft);color:var(--finance-muted);font-size:12px}.finance-adjustment-preview strong{color:var(--finance-text)}.finance-adjustment-dialog>.cc-notice{margin:0 22px 12px}[data-theme="dark"] .finance-adjustment-dialog{--finance-text:#e8eef8;--finance-muted:#97a5b9;--finance-border:#28364b;--finance-card:#121c2b;--finance-soft:#101a29}
.finance-profit-list{display:grid;gap:12px}.finance-profit-list article{border:1px solid var(--finance-border);border-radius:13px;overflow:hidden}.finance-profit-list article>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--finance-border)}.finance-profit-list header div{display:grid;gap:5px}.finance-profit-list header span{display:flex;align-items:center;gap:7px;color:var(--finance-muted);font-size:12px}.finance-profit-list header>b{color:var(--finance-muted);font-size:12px}.finance-profit-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--finance-border)}.finance-profit-values>div{min-width:0;padding:13px 16px;background:var(--finance-card)}.finance-profit-values span{display:block;color:var(--finance-muted);font-size:11px}.finance-profit-values strong{display:block;margin:5px 0 0;font-size:17px}.finance-progress strong{font-size:14px}.finance-profit-list details{padding:11px 16px}.finance-profit-list summary{cursor:pointer;color:#2f7df4;font-size:12px;font-weight:700}.finance-profit-list dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 0}.finance-profit-list dl div{padding:10px 12px;border-radius:9px;background:var(--finance-soft)}.finance-profit-list dt{color:var(--finance-muted);font-size:10px}.finance-profit-list dd{margin:4px 0 0;font-size:12px;font-weight:700}.finance-row-actions{display:flex;gap:6px}.finance-row-actions .btn{padding:7px 9px}.finance-load-error{max-width:540px;margin:60px auto;text-align:center}.finance-load-error p{color:var(--finance-muted)}
.finance-statement-filters{display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(160px,.8fr));gap:12px}.finance-statement-filters label,.finance-statement-fields label{display:grid;gap:6px;color:var(--finance-text);font-size:11px;font-weight:700}.finance-statement-filters input,.finance-statement-filters select,.finance-statement-fields input,.finance-statement-fields select{width:100%;height:42px;padding:0 12px;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-card);color:var(--finance-text);font:inherit}.finance-statement-table{min-width:1320px}.finance-statement-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--finance-border);border-radius:14px;background:var(--finance-border)}.finance-statement-overview article{padding:16px 18px;background:var(--finance-card)}.finance-statement-overview small{display:block;color:var(--finance-muted);font-size:11px}.finance-statement-overview strong{display:block;margin-top:5px;font-size:17px}.finance-statement-dialog{width:min(820px,calc(100vw - 40px))}.finance-statement-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 22px}.finance-statement-fields label:first-child{grid-column:1/-1}.finance-statement-fields input:disabled{background:var(--finance-soft);color:var(--finance-muted)}
.finance-receivable-workspace{padding-top:0;overflow:hidden}.finance-workspace-tabs{display:flex;gap:28px;margin:0 -18px;padding:0 18px;border-bottom:1px solid var(--finance-border)}.finance-workspace-tabs button{display:flex;align-items:center;gap:7px;padding:17px 2px 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--finance-muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}.finance-workspace-tabs button.active{border-bottom-color:var(--blue,#2f7df4);color:var(--blue,#2f7df4)}.finance-workspace-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--finance-soft);font-size:10px}.finance-workspace-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:16px 0}.finance-workspace-toolbar>div:first-child>strong,.finance-workspace-toolbar>div:first-child>span{display:block}.finance-workspace-toolbar>div:first-child>span{margin-top:4px;color:var(--finance-muted);font-size:12px}.finance-workspace-toolbar>b{color:var(--finance-muted);font-size:12px}.finance-filters{display:flex;align-items:flex-end;gap:10px;min-width:0}.finance-filters label{display:grid;gap:5px;color:var(--finance-muted);font-size:10px;font-weight:700}.finance-filters input,.finance-filters select{height:39px;padding:0 11px;border:1px solid var(--finance-border);border-radius:9px;background:var(--finance-card);color:var(--finance-text);font:inherit;font-size:12px}.finance-filters input{width:min(300px,28vw)}.finance-filter-chip{display:inline-flex;align-items:center;gap:7px;max-width:260px;height:39px;padding:0 11px;border:1px solid #a8c8fb;border-radius:999px;background:#edf4ff;color:#246ac4;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.finance-filter-chip span{font-size:16px}.finance-counterparty-table{min-width:1280px;table-layout:fixed}.finance-receivable-table{min-width:1240px;table-layout:fixed}.finance-receivable-table thead,.finance-counterparty-table thead{position:sticky;top:0;z-index:2;background:var(--finance-card)}.finance-receivable-table th:nth-child(1){width:15%}.finance-receivable-table th:nth-child(2){width:18%}.finance-receivable-table th:nth-child(3){width:10%}.finance-receivable-table th:nth-child(4){width:20%}.finance-receivable-table th:nth-child(5){width:12%}.finance-receivable-table th:nth-child(6){width:8%}.finance-receivable-table th:nth-child(7){width:9%}.finance-receivable-table th:nth-child(8){width:100px}.finance-amount-stack{display:grid;gap:3px}.finance-amount-stack span,.finance-amount-stack strong{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;font-size:11px;white-space:nowrap}.finance-amount-stack small{margin:0;color:var(--finance-muted);font-size:9px;font-weight:400}.finance-none{color:var(--finance-muted);font-size:11px;white-space:nowrap}.finance-counterparty-table td>small{display:block;margin-top:4px;color:var(--finance-muted)}.finance-counterparty-table th:nth-child(1){width:19%}.finance-counterparty-table th:nth-child(2){width:8%}.finance-counterparty-table th:nth-child(3){width:11%}.finance-counterparty-table th:nth-child(4){width:15%}.finance-counterparty-table th:nth-child(5){width:16%}.finance-counterparty-table th:nth-child(6){width:14%}.finance-counterparty-table th:nth-child(7){width:8%}.finance-counterparty-table th:last-child{width:150px}.finance-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;color:var(--finance-muted);font-size:11px}.finance-pagination>div{display:flex;gap:6px}.finance-pagination .btn{min-width:34px;padding:7px 9px;font-size:11px}.finance-pagination .btn[aria-current="page"]{pointer-events:none}
.finance-reversal-original td{border-bottom-color:transparent;background:#fbfdff}.finance-reversal-original td:first-child,.finance-reversal-child td:first-child{box-shadow:inset 3px 0 0 #8ab7f5}.finance-reversal-child td{border-bottom-color:#cbdcf3;background:var(--finance-soft)}.finance-reversal-child td:first-child{padding-left:16px}.finance-reversal-tag{display:inline-flex;margin:0 0 6px;padding:3px 7px;border-radius:999px;background:#e6f0ff;color:#246ac4;font-size:9px;font-weight:800;letter-spacing:.04em}.finance-reversal-relation{color:#4c73a7!important;font-weight:600}[data-theme="dark"] .finance-reversal-original td{background:#111d2d}[data-theme="dark"] .finance-reversal-child td{border-bottom-color:#36506f}
.finance-payable-workspace{padding-top:0;overflow:hidden}.finance-workspace-tabbar,.finance-payable-tabbar{display:flex;align-items:stretch;justify-content:space-between;gap:16px;margin:0 -18px;padding:0 18px;border-bottom:1px solid var(--finance-border)}.finance-workspace-tabbar .finance-workspace-tabs,.finance-payable-tabbar .finance-workspace-tabs{flex:1;margin:0;padding:0;border-bottom:0}.finance-workspace-tab-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 0}.finance-payable-toolbar{grid-template-columns:minmax(180px,1.35fr) repeat(5,minmax(100px,.8fr)) auto;margin-top:16px}.finance-payable-reset{min-width:72px}.finance-filter-reset{min-width:72px;justify-content:center}.finance-payable-filter-context{display:flex;align-items:center;min-height:39px;margin:-4px 0 14px}.finance-payable-table{min-width:1240px;table-layout:fixed}.finance-payable-table thead{position:sticky;top:0;z-index:2;background:var(--finance-card)}.finance-payable-table th:nth-child(1){width:12.5%}.finance-payable-table th:nth-child(2){width:11.5%}.finance-payable-table th:nth-child(3){width:12.5%}.finance-payable-table th:nth-child(4){width:8.5%}.finance-payable-table th:nth-child(5){width:13%}.finance-payable-table th:nth-child(6){width:9%}.finance-payable-table th:nth-child(7),.finance-payable-table th:nth-child(8){width:8%}.finance-payable-table th:nth-child(9){width:9%}.finance-payable-table th:nth-child(10){width:116px}.finance-payable-table td>small,.finance-payable-progress small{color:#68778d;font-size:10px}.finance-payable-progress{grid-template-rows:repeat(3,minmax(16px,auto))}.finance-payable-progress span,.finance-payable-progress strong{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:baseline;gap:8px;text-align:right}.finance-payable-progress small{text-align:left;font-weight:600}.finance-payable-table th:last-child,.finance-payable-table td:last-child:not(.finance-empty){position:sticky;right:0;z-index:3;width:116px;min-width:116px;max-width:116px;box-sizing:border-box;background:var(--finance-card);box-shadow:-1px 0 0 var(--finance-border)}.finance-payable-table td:last-child:has(.finance-document-more[open]){z-index:12}.finance-payable-table thead th:last-child{z-index:4}.finance-payable-table .finance-reversal-original td:last-child{background:#fbfdff}.finance-payable-table .finance-reversal-child td:last-child{background:var(--finance-soft)}[data-theme="dark"] .finance-payable-table .finance-reversal-original td:last-child{background:#111d2d}[data-theme="dark"] .finance-payable-table td>small,[data-theme="dark"] .finance-payable-progress small{color:#a8b5c7}
.finance-receivable-table.finance-payable-table{min-width:1240px}.finance-receivable-table.finance-payable-table th:nth-child(1){width:15%}.finance-receivable-table.finance-payable-table th:nth-child(2){width:18%}.finance-receivable-table.finance-payable-table th:nth-child(3){width:10%}.finance-receivable-table.finance-payable-table th:nth-child(4){width:14%}.finance-receivable-table.finance-payable-table th:nth-child(5){width:10%}.finance-receivable-table.finance-payable-table th:nth-child(6){width:9%}.finance-receivable-table.finance-payable-table th:nth-child(7),.finance-receivable-table.finance-payable-table th:nth-child(8){width:8%}.finance-receivable-table.finance-payable-table th:nth-child(9){width:116px}.finance-receivable-progress{grid-template-rows:repeat(3,minmax(16px,auto))}.finance-receivable-progress span,.finance-receivable-progress strong{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:baseline;gap:8px;text-align:right}.finance-receivable-progress small{text-align:left;font-weight:600}.finance-receivable-table.finance-payable-table td>small,.finance-receivable-progress small{color:#68778d;font-size:10px}[data-theme="dark"] .finance-receivable-table.finance-payable-table td>small,[data-theme="dark"] .finance-receivable-progress small{color:#a8b5c7}
.finance-config-workspace{padding-top:0;overflow:hidden}.finance-config-panel{min-width:0;padding-top:16px}.finance-config-toolbar{display:flex;align-items:center;justify-content:flex-end;min-height:39px;margin-bottom:16px}.finance-config-toolbar:empty{display:none;min-height:0;margin:0}.finance-config-loading{padding:32px;text-align:center;color:var(--finance-muted)}.finance-config-exchange{min-width:0}.finance-config-exchange .cc-pagination{margin-bottom:0}
.finance-profit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.finance-profit-summary article{padding:15px 17px;border:1px solid var(--finance-border);border-radius:13px;background:var(--finance-card)}.finance-profit-summary article>span,.finance-profit-summary article>small{display:block;color:var(--finance-muted);font-size:11px}.finance-profit-summary article>strong{display:block;margin:6px 0 3px;font-size:24px;line-height:1}.finance-profit-summary article.attention{border-color:#f1c2c7;background:#fff8f8}.finance-profit-toolbar{display:grid;grid-template-columns:minmax(210px,1.3fr) repeat(4,minmax(120px,.8fr)) auto;align-items:end;gap:10px;margin-bottom:14px}.finance-profit-toolbar label{display:grid;gap:6px;color:var(--finance-muted);font-size:11px;font-weight:700}.finance-profit-toolbar input,.finance-profit-toolbar select{width:100%;height:40px;padding:0 11px;border:1px solid var(--finance-border);border-radius:9px;background:var(--finance-card);color:var(--finance-text);font:inherit}.finance-profit-toolbar .btn{height:40px}.finance-profit-table{min-width:1040px;table-layout:fixed}.finance-profit-table th:nth-child(1){width:16%}.finance-profit-table th:nth-child(2),.finance-profit-table th:nth-child(3),.finance-profit-table th:nth-child(8){width:9%}.finance-profit-table th:nth-child(4),.finance-profit-table th:nth-child(5){width:11%}.finance-profit-table th:nth-child(6),.finance-profit-table th:nth-child(7){width:15%}.finance-profit-table th:nth-child(9){width:10%}.finance-profit-table td{line-height:1.45}.finance-profit-table td>strong{font-size:13px}.finance-profit-dialog{--finance-text:var(--ink,#172033);--finance-muted:#7c879b;--finance-border:var(--line,#e5ebf3);--finance-card:var(--card,#fff);--finance-soft:#f7f9fc;width:min(900px,calc(100vw - 40px))}[data-theme="dark"] .finance-profit-summary article.attention{border-color:#66333c;background:#26181d}[data-theme="dark"] .finance-profit-dialog{--finance-text:#e8eef8;--finance-muted:#97a5b9;--finance-border:#28364b;--finance-card:#121c2b;--finance-soft:#101a29}.finance-profit-detail-body{display:grid;gap:20px;padding:18px 22px;overflow:auto}.finance-profit-detail-body h4{margin:0 0 10px;font-size:14px}.finance-profit-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.finance-profit-detail-summary article,.finance-profit-breakdown div,.finance-profit-detail-progress>div{padding:13px 14px;border:1px solid var(--finance-border);border-radius:11px;background:var(--finance-soft)}.finance-profit-detail-summary span,.finance-profit-breakdown dt{display:block;color:var(--finance-muted);font-size:10px}.finance-profit-detail-summary strong{display:block;margin-top:5px;font-size:16px}.finance-profit-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.finance-profit-breakdown dd{margin:5px 0 0;font-size:13px;font-weight:700}.finance-profit-detail-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-profit-detail-progress .finance-progress strong{font-size:15px}
@media(min-width:1101px){.finance-profit-toolbar.finance-payable-toolbar{grid-template-columns:minmax(180px,1.35fr) repeat(5,minmax(88px,.8fr)) auto}}
@media(max-width:1100px){.finance-profit-values{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-summary article{grid-template-columns:auto repeat(2,minmax(0,1fr))}.finance-summary article>div:last-child{grid-column:2/-1}.finance-statement-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-statement-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-profit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-profit-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-profit-detail-summary,.finance-profit-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.finance-summary.finance-payable-summary article,.finance-summary.finance-receivable-summary article{grid-template-columns:auto repeat(2,minmax(0,1fr))}.finance-payable-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-payable-reset{width:100%}}
@media(max-width:720px){.finance-heading{align-items:flex-start;flex-direction:column}.finance-heading-meta{width:100%;flex-wrap:wrap}.finance-summary article{grid-template-columns:auto 1fr}.finance-summary article>div{grid-column:2}.finance-profit-values,.finance-profit-list dl{grid-template-columns:1fr}.finance-panel{padding:13px}.finance-receipt-fields,.finance-statement-fields,.finance-statement-filters{grid-template-columns:1fr}.finance-statement-fields label:first-child{grid-column:auto}.finance-statement-overview{grid-template-columns:1fr}.finance-receipt-allocation>label{grid-template-columns:1fr}.finance-receipt-dialog,.finance-statement-dialog,.finance-profit-dialog{width:calc(100vw - 20px)}.finance-workspace-tabs{margin:0 -13px;padding:0 13px;gap:18px}.finance-workspace-toolbar{align-items:stretch;flex-direction:column}.finance-filters{align-items:stretch;flex-direction:column}.finance-filters input{width:100%}.finance-filter-chip{max-width:100%;align-self:flex-start}.finance-panel-actions{justify-content:flex-start}.finance-pagination{align-items:flex-start;flex-direction:column}.finance-pagination>div{flex-wrap:wrap}.finance-receivable-table,.finance-counterparty-table,.finance-profit-table{display:block;width:100%;min-width:0}.finance-receivable-table thead,.finance-counterparty-table thead,.finance-profit-table thead{display:none}.finance-receivable-table tbody,.finance-counterparty-table tbody,.finance-profit-table tbody{display:grid;gap:10px}.finance-receivable-table tr,.finance-counterparty-table tr,.finance-profit-table tr{display:grid;padding:11px 12px;border:1px solid var(--finance-border);border-radius:11px;background:var(--finance-soft)}.finance-receivable-table tr.finance-reversal-original{margin-bottom:-10px;border-bottom-right-radius:0;border-bottom-left-radius:0}.finance-receivable-table tr.finance-reversal-child{border-top-color:#cbdcf3;border-top-right-radius:0;border-top-left-radius:0}.finance-receivable-table tr.finance-reversal-original td,.finance-receivable-table tr.finance-reversal-child td{background:transparent}.finance-receivable-table td,.finance-counterparty-table td,.finance-profit-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border:0;text-align:right}.finance-receivable-table td::before,.finance-counterparty-table td::before,.finance-profit-table td::before{content:attr(data-label);flex:0 0 86px;color:var(--finance-muted);font-size:10px;font-weight:700;text-align:left}.finance-amount-stack{grid-template-columns:1fr;text-align:right}.finance-row-actions{justify-content:flex-end}.finance-empty{display:block!important}.finance-empty::before{display:none}.finance-profit-summary,.finance-profit-toolbar,.finance-profit-detail-summary,.finance-profit-breakdown,.finance-profit-detail-progress{grid-template-columns:1fr}.finance-profit-summary article>strong{font-size:20px}.finance-profit-toolbar .btn{width:100%}.finance-profit-table td>small{max-width:190px}.finance-profit-detail-body{padding:14px}}
@media(max-width:720px){.finance-summary.finance-payable-summary article,.finance-summary.finance-receivable-summary article{grid-template-columns:auto 1fr}.finance-workspace-tabbar,.finance-payable-tabbar{align-items:stretch;flex-direction:column;margin:0 -13px;padding:0 13px 12px}.finance-workspace-tabbar .finance-workspace-tabs,.finance-payable-tabbar .finance-workspace-tabs{margin:0;padding:0}.finance-workspace-tab-actions{justify-content:flex-start;padding:0}.finance-payable-toolbar{grid-template-columns:1fr}.finance-payable-reset,.finance-filter-reset{width:100%}.finance-payable-filter-context{margin:0 0 14px}.finance-payable-table{display:block;width:100%;min-width:0}.finance-payable-table thead{display:none}.finance-payable-table tbody{display:grid;gap:10px}.finance-payable-table tr{display:grid;padding:11px 12px;border:1px solid var(--finance-border);border-radius:11px;background:var(--finance-soft)}.finance-payable-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border:0;text-align:right}.finance-payable-table th:last-child,.finance-payable-table td:last-child:not(.finance-empty){position:static;background:transparent;box-shadow:none}.finance-payable-table td::before{content:attr(data-label);flex:0 0 86px;color:var(--finance-muted);font-size:10px;font-weight:700;text-align:left}.finance-payable-table .finance-empty{display:block!important}.finance-payable-table .finance-empty::before{display:none}.finance-payable-table td:nth-child(10) .btn{width:auto}}
.finance-hub-tabs,.finance-statement-tabs{padding-top:0;padding-bottom:0;overflow:hidden}.finance-cash-toolbar{grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(130px,.7fr)) auto}.finance-cash-table{min-width:1040px;table-layout:fixed}.finance-cash-table th:nth-child(1){width:19%}.finance-cash-table th:nth-child(2){width:10%}.finance-cash-table th:nth-child(3){width:14%}.finance-cash-table th:nth-child(4){width:11%}.finance-cash-table th:nth-child(5){width:15%}.finance-cash-table th:nth-child(6){width:22%}.finance-cash-table th:nth-child(7){width:9%}.finance-cash-table td:nth-child(1){min-width:0}.finance-cash-table td:nth-child(1)>strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}.finance-cash-table td:nth-child(1)>strong,.finance-cash-table td:nth-child(4)>strong,.finance-cash-table td:nth-child(5)>strong,.finance-cash-table td:nth-child(5)>small,.finance-cash-table td:nth-child(7){white-space:nowrap}.finance-cash-table td:nth-child(6){overflow-wrap:anywhere}.finance-cash-table td:nth-child(6)>strong,.finance-cash-table td:nth-child(6)>small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.finance-ledger-dialog{--finance-text:var(--ink,#172033);--finance-muted:#7c879b;--finance-border:var(--line,#e5ebf3);--finance-card:var(--card,#fff);--finance-soft:#f7f9fc;width:min(940px,calc(100vw - 40px))}.finance-ledger-detail{display:grid;gap:20px;padding:18px 22px;overflow:auto}.finance-ledger-detail h4{margin:0 0 10px}.finance-candidate-empty,.finance-reconciliation-note,.finance-detail-help{margin:0;color:var(--finance-muted);font-size:12px}.finance-candidate-empty{grid-column:1/-1;padding:12px;border:1px dashed var(--finance-border);border-radius:10px;background:var(--finance-soft)}.finance-reconciliation-note{padding:12px 14px;border:1px solid #f0d3a4;border-radius:11px;background:#fff9ec;color:#8a651d}.finance-detail-help{margin:-4px 0 10px}.finance-profit-table{min-width:1260px}.finance-profit-table th:nth-child(n){width:auto}.finance-profit-detail-body .finance-table{min-width:760px}
.finance-prepayment-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-prepayment-history-table{min-width:800px}
[data-theme="dark"] .finance-ledger-dialog{--finance-text:#e8eef8;--finance-muted:#97a5b9;--finance-border:#28364b;--finance-card:#121c2b;--finance-soft:#101a29}[data-theme="dark"] .finance-reconciliation-note{border-color:#5d4929;background:#241e14;color:#e7c984}
@media(max-width:1100px){.finance-cash-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.finance-cash-toolbar{grid-template-columns:1fr}.finance-cash-table{display:block;width:100%;min-width:0}.finance-cash-table thead{display:none}.finance-cash-table tbody{display:grid;gap:10px}.finance-cash-table tr{display:grid;padding:11px 12px;border:1px solid var(--finance-border);border-radius:11px;background:var(--finance-soft)}.finance-cash-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border:0;text-align:right}.finance-cash-table td::before{content:attr(data-label);flex:0 0 86px;color:var(--finance-muted);font-size:10px;font-weight:700;text-align:left}.finance-cash-table .finance-empty{display:block!important}.finance-cash-table .finance-empty::before{display:none}.finance-ledger-dialog{width:calc(100vw - 20px)}.finance-ledger-detail{padding:14px}}
@media(max-width:720px){.finance-adjustment-dialog{width:calc(100vw - 20px)}.finance-adjustment-fields{grid-template-columns:1fr}.finance-adjustment-fields label.wide{grid-column:auto}}
html.finance-dialog-open,html.finance-dialog-open body{overflow:hidden;overscroll-behavior:none}
.finance-profit-detail-body{overscroll-behavior:contain}

/* FIN-ORDER-SETTLEMENT-DETAIL-LAYOUT-474 */
.finance-profit-dialog{width:min(1280px,calc(100vw - 48px));max-width:none;height:min(900px,calc(100dvh - 40px));padding:0;overflow:hidden}
.finance-profit-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.finance-profit-dialog>.cc-category-dialog-head{padding:22px 26px 18px;border-bottom:1px solid var(--finance-border)}
.finance-profit-dialog>.cc-dialog-actions{margin:0;padding:14px 26px;border-top:1px solid var(--finance-border);background:var(--finance-card)}
.finance-profit-dialog-head{align-items:center}.finance-profit-dialog-head .cc-dialog-close{margin-left:0}.finance-profit-dialog-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.finance-profit-detail-body{display:block;min-height:0;padding:20px 26px 24px;background:var(--finance-soft)}
.finance-profit-detail-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;border:1px solid var(--finance-border);border-radius:12px;background:var(--finance-card)}
.finance-profit-detail-summary article{min-width:0;padding:14px 16px;border:0;border-right:1px solid var(--finance-border);border-radius:0;background:var(--finance-card)}.finance-profit-detail-summary article:last-child{border-right:0}.finance-profit-detail-summary strong{overflow-wrap:anywhere}.finance-profit-detail-summary strong.attention{color:var(--red,#d95a67)}
.finance-profit-detail-summary article>small{display:block;margin-top:5px;color:var(--finance-muted);font-size:10px;line-height:1.45;overflow-wrap:anywhere}
.finance-profit-top-breakdown{margin-top:16px}.finance-profit-top-breakdown .finance-profit-detail-section{padding:14px 16px}.finance-profit-top-breakdown .finance-profit-breakdown{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-profit-top-breakdown .finance-profit-breakdown div{background:var(--finance-soft)}
.finance-profit-detail-tabs{position:sticky;top:-20px;z-index:4;margin:18px -26px 0;padding:0 26px;background:var(--finance-card)}
.finance-profit-detail-panels>div{display:grid;gap:16px;padding-top:16px}.finance-profit-detail-panels>div[hidden]{display:none}
.finance-profit-detail-section{min-width:0;padding:16px 18px;border:1px solid var(--finance-border);border-radius:12px;background:var(--finance-card)}
.finance-profit-detail-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.finance-profit-detail-section>header h4{margin:0}.finance-profit-detail-section>header .btn{flex:0 0 auto;padding:8px 11px;font-size:11px}
.finance-settlement-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:0;margin:0;overflow:hidden;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-soft)}
.finance-settlement-facts div{min-width:0;padding:12px 14px;border-right:1px solid var(--finance-border)}.finance-settlement-facts div:last-child{border-right:0}.finance-settlement-facts dt{color:var(--finance-muted);font-size:10px}.finance-settlement-facts dd{margin:5px 0 0;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.finance-profit-detail-table{width:100%;min-width:0!important;table-layout:fixed}.finance-profit-detail-table th,.finance-profit-detail-table td{padding-right:10px;padding-left:10px}.finance-profit-detail-table td{overflow-wrap:anywhere}.finance-profit-detail-table td>strong,.finance-profit-detail-table td>small{display:block}.finance-profit-detail-table td>small{margin-top:3px;color:var(--finance-muted);font-size:9px}
.finance-profit-material-table{min-width:660px}.finance-profit-material-table th:first-child{width:27%}.finance-profit-material-table td{padding-top:9px;padding-bottom:9px}.finance-profit-material-table td>small{display:block;margin-top:3px}.finance-profit-material-table .finance-link-button{color:#2f70c8;font-weight:700}
.finance-profit-prepayment-table th:nth-child(1){width:28%}.finance-profit-prepayment-table th:nth-child(2){width:14%}.finance-profit-prepayment-table th:nth-child(3){width:14%}.finance-profit-prepayment-table th:nth-child(4){width:16%}.finance-profit-prepayment-table th:nth-child(5){width:28%}
.finance-profit-receivable-table th:nth-child(1){width:20%}.finance-profit-receivable-table th:nth-child(2),.finance-profit-receivable-table th:nth-child(3){width:10%}.finance-profit-receivable-table th:nth-child(n+4){width:12%}
.finance-profit-payable-table th:nth-child(1){width:18%}.finance-profit-payable-table th:nth-child(2){width:20%}.finance-profit-payable-table th:nth-child(3),.finance-profit-payable-table th:nth-child(4){width:10%}.finance-profit-payable-table th:nth-child(5),.finance-profit-payable-table th:nth-child(6),.finance-profit-payable-table th:nth-child(7){width:11%}.finance-profit-payable-table th:nth-child(8){width:9%}
.finance-profit-cash-table th:nth-child(1){width:16%}.finance-profit-cash-table th:nth-child(2){width:11%}.finance-profit-cash-table th:nth-child(3){width:10%}.finance-profit-cash-table th:nth-child(4){width:12%}.finance-profit-cash-table th:nth-child(5){width:17%}.finance-profit-cash-table th:nth-child(6){width:17%}.finance-profit-cash-table th:nth-child(7){width:17%}
.finance-profit-detail-section .finance-profit-breakdown{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-profit-detail-section .finance-profit-breakdown div{background:var(--finance-soft)}
.finance-profit-detail-section .finance-profit-detail-progress>div{background:var(--finance-soft)}
@media(max-width:1200px){.finance-profit-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-profit-detail-summary article:nth-child(2n){border-right:0}.finance-profit-detail-summary article:nth-child(-n+2){border-bottom:1px solid var(--finance-border)}.finance-profit-detail-section .finance-profit-breakdown,.finance-profit-top-breakdown .finance-profit-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.finance-profit-dialog{width:calc(100vw - 28px);height:calc(100dvh - 28px)}.finance-profit-receivable-table,.finance-profit-payable-table,.finance-profit-cash-table{min-width:920px!important}.finance-profit-prepayment-table{min-width:720px!important}}
@media(max-width:720px){.finance-profit-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.finance-profit-dialog>.cc-category-dialog-head{align-items:flex-start;padding:18px}.finance-profit-dialog-status{display:none}.finance-profit-dialog>.cc-dialog-actions{padding:12px 18px}.finance-profit-detail-body{padding:14px 18px 18px}.finance-profit-detail-tabs{top:-14px;margin:0 -18px;padding:0 18px;overflow-x:auto}.finance-profit-detail-tabs button{white-space:nowrap}.finance-profit-detail-summary{grid-template-columns:1fr}.finance-profit-detail-summary article,.finance-profit-detail-summary article:nth-child(3n){border-right:0;border-bottom:1px solid var(--finance-border)}.finance-profit-detail-summary article:last-child{border-bottom:0}.finance-profit-detail-section{padding:14px}.finance-profit-detail-section>header{align-items:flex-start;flex-direction:column}.finance-profit-detail-section .finance-profit-breakdown,.finance-profit-detail-progress{grid-template-columns:1fr}}

/* FIN-ADJUSTMENT-DETAIL-494: keep the sticky action column compact while preserving adjustment traceability. */
/* FIN-ADJUSTMENT-ACTION-MENU-496: keep the fixed action cell compact and lift an open menu above later sticky rows. */
.finance-row-actions{align-items:center;flex-wrap:nowrap}.finance-payable-table .finance-row-actions{gap:4px}.finance-payable-table .finance-row-actions>.btn{padding:6px 7px;font-size:11px;white-space:nowrap}.finance-document-more{position:relative;z-index:1;flex:0 0 auto}.finance-document-more[open]{z-index:13}.finance-document-more>summary{display:grid;place-items:center;width:28px;min-height:30px;padding:0;border-radius:7px;font-size:16px;line-height:1}.finance-document-more>div{min-width:148px}.finance-document-more>div .btn{width:100%;justify-content:flex-start;white-space:nowrap}.finance-adjustment-detail-dialog{width:min(900px,calc(100vw - 40px))}.finance-adjustment-detail-body{padding:18px 22px;overflow:auto}.finance-adjustment-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.finance-adjustment-detail-grid article{min-width:0;padding:13px 14px;border:1px solid var(--finance-border);border-radius:10px;background:var(--finance-soft)}.finance-adjustment-detail-grid small{display:block;color:var(--finance-muted);font-size:10px}.finance-adjustment-detail-grid strong{display:block;margin-top:5px;overflow-wrap:anywhere;font-size:13px;line-height:1.55}.finance-adjustment-detail-reason{grid-column:1/-1}.finance-adjustment-detail-reason strong{white-space:pre-wrap}
@media(max-width:720px){.finance-adjustment-detail-dialog{width:calc(100vw - 20px)}.finance-adjustment-detail-body{padding:14px 18px}.finance-adjustment-detail-grid{grid-template-columns:1fr}}

