:root{--header-blue: #333399;--cyan-bg: #00ffff;--tag-blue-bg: #88aaff;--tag-green-bg: #33cc33;--tag-red-bg: #ff0000;--tag-grey-bg: #dddddd;--border-dark: #666;--top-green: #9bae00;--top-dark-green: #5a6b00;--row-hover: #e8f4ff;--panel-bg: #e0e0e0;--text: #1f2933}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;font-family:Arial,sans-serif;background-color:#f0f0f0;color:var(--text);font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;background-color:#f0f0f0}.top-header{background-color:var(--top-green);height:36px;display:flex;justify-content:center;gap:1px}.header-tab{width:80px;display:flex;justify-content:center;align-items:center;color:#1f2933;text-decoration:none}.header-tab.active{background-color:var(--top-dark-green);color:#fff;box-shadow:inset 0 -2px 5px #0003}.control-bar{display:flex;align-items:center;flex-wrap:wrap;padding:4px;background-color:var(--panel-bg);gap:6px;border-bottom:1px solid #ccc}.date-input,.text-input,.select-input{height:26px;padding:4px;border:1px solid #999;border-radius:0;background:#fff}.date-input{width:126px}.search-input{width:min(280px,100%)}.currency-select{width:82px}.toolbar-spacer{flex:1 1 auto}.icon-btn,.action-btn,.add-comp-btn,.mgmt-btn,.btn-save,.btn-del,.plain-btn{min-height:26px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:0;border:1px solid #999;background:#eee;color:#1f2933;font-weight:700}.icon-btn{width:26px;padding:0;color:var(--header-blue)}.add-comp-btn{background:#e0f7fa;border-color:#00acc1;color:#00838f;padding:4px 8px}.mgmt-btn,.action-btn,.plain-btn{padding:4px 8px}.btn-save{background:#4caf50;border-color:#3f9443;color:#fff;padding:4px 8px}.btn-del{background:#f44336;border-color:#d9342a;color:#fff;padding:4px 8px}.tags-wrapper{background-color:var(--panel-bg);border-bottom:2px solid #ccc}.tags-container,.banks-container{display:flex;flex-wrap:wrap;gap:2px;padding:4px}.banks-container{background-color:#d5d5d5;border-top:1px dashed #aaa;box-shadow:inset 0 2px 4px #0000000d}.tag{width:200px;padding:8px;font-size:13px;border:1px solid #999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1;color:#000;cursor:pointer;-webkit-user-select:none;user-select:none;transition:filter .1s;border-radius:0}.tag:hover{filter:brightness(.92)}.tag.active-company,.tag.active-bank{outline:2px solid #000;outline-offset:-2px;font-weight:700}.tag.bank-disabled{opacity:.55;filter:grayscale(.35)}.inline-report-tag{background:#111827;color:#fff;border-color:#111827}.tag.blue{background-color:var(--tag-blue-bg)}.tag.green{background-color:var(--tag-green-bg)}.tag.red{background-color:var(--tag-red-bg);color:#fff}.tag.grey{background-color:var(--tag-grey-bg)}.empty-tag{color:#666;font-style:italic;padding:8px}.workspace{display:block}.ledger-workspace{display:grid;grid-template-columns:minmax(0,1fr)}.ledger-workspace.with-summary{grid-template-columns:minmax(0,1fr) 430px}.ledger-main{min-width:0}.link-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 8px;background:#f7f7f7;border-bottom:1px solid #d4d4d4}.copy-link{font-family:Consolas,monospace;color:#172554;background:#fff;border:1px solid #bbb;padding:4px 6px;max-width:min(520px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.summary-bar{display:flex;background-color:var(--cyan-bg);border-bottom:1px solid var(--border-dark);overflow-x:auto}.summary-item{display:flex;align-items:center}.summary-label{padding:4px 8px;font-weight:700}.summary-value{background-color:#fff;padding:4px 8px;min-width:100px;border:1px solid var(--border-dark);font-weight:700;height:24px;display:flex;align-items:center;justify-content:flex-end}.summary-filler{flex:1;background-color:var(--cyan-bg)}.table-container{width:100%;overflow-x:auto;background-color:#f0f0f0;padding-bottom:50px}.loading-container{position:relative;min-height:160px}.loading-overlay{position:absolute;inset:0;z-index:4;display:flex;align-items:flex-start;justify-content:center;padding-top:42px;background:#f0f0f0b8}.loading-card{min-width:220px;padding:12px 18px;border:1px solid #93c5fd;background:#eff6ff;color:#1e3a8a;font-weight:700;text-align:center;box-shadow:1px 1px 8px #0000001f}.data-table{border-collapse:collapse;font-size:12px;table-layout:fixed;background-color:#fff;min-width:1030px}.data-table th,.data-table td{border:1px solid var(--border-dark);padding:4px 6px;height:28px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.data-table th{background-color:var(--header-blue);color:#fff;text-align:left;font-weight:700;font-size:11px;border-bottom:2px solid #222266}.data-table th:nth-child(1),.data-table td:nth-child(1){width:52px;text-align:center;font-weight:700}.data-table th:nth-child(2),.data-table td:nth-child(2){width:350px}.data-table th:nth-child(3),.data-table td:nth-child(3),.data-table th:nth-child(4),.data-table td:nth-child(4),.data-table th:nth-child(7),.data-table td:nth-child(7){width:100px;text-align:right}.data-table th:nth-child(5),.data-table td:nth-child(5){width:90px}.data-table th:nth-child(6),.data-table td:nth-child(6){width:120px}.data-table th:nth-child(8),.data-table td:nth-child(8){width:250px}.data-row{cursor:pointer}.data-row:hover{background-color:var(--row-hover)}.row-number{display:flex;align-items:center;justify-content:center;gap:3px;min-height:20px}.row-number>span{min-width:16px}.row-action-btn{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #c7c7c7;background:#fff;color:#1f2937;opacity:.72}.row-action-btn:hover{opacity:1;background:#eff6ff;border-color:#93c5fd}.row-save-btn{color:#166534}.row-delete-btn{color:#b91c1c}.row-delete-btn:hover{opacity:1;background:#fee2e2;border-color:#fca5a5}.edit-row td{background:#fffbea}.editable-cell{cursor:text}.editable-cell:hover{background-color:#fff7cc}.input-row td{background-color:#fff}.input-row td:first-child{background-color:#e0e0e0}.cell-input{width:100%;height:22px;border:none;padding:0;background:transparent;outline:none}.cell-input:focus{background-color:#ffd}.money-input{text-align:right}.total-row{background-color:#e0e0e0;font-weight:700}.settlement-inline-ledger-row{background-color:#fff7d6}.settlement-inline-ledger-row td{border-top:1px dashed #888;font-weight:600}.settlement-inline-ledger-row td:first-child{color:#777}.select-cell{min-width:90px}.ledger-table{min-width:1160px}.ledger-table th:nth-child(1),.ledger-table td:nth-child(1){width:52px;text-align:center;font-weight:700}.ledger-table th:nth-child(2),.ledger-table td:nth-child(2){width:115px;text-align:left}.ledger-table th:nth-child(3),.ledger-table td:nth-child(3){width:360px;text-align:left}.ledger-table th:nth-child(4),.ledger-table td:nth-child(4),.ledger-table th:nth-child(5),.ledger-table td:nth-child(5),.ledger-table th:nth-child(8),.ledger-table td:nth-child(8){width:100px;text-align:right}.ledger-table th:nth-child(6),.ledger-table td:nth-child(6){width:90px;text-align:left}.ledger-table th:nth-child(7),.ledger-table td:nth-child(7){width:120px;text-align:left}.description-cell.detail-cell{cursor:zoom-in}.description-cell.detail-cell:hover{background:#eef6ff;text-decoration:underline}.copy-id-btn{display:inline;width:auto;min-width:0;height:auto;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:copy}.copy-id-btn:hover{color:#1d4ed8;text-decoration:underline}.ledger-table th:nth-child(9),.ledger-table td:nth-child(9){width:250px;text-align:left}.summary-panel{border-left:1px solid #aaa;background:#fff;min-height:360px}.summary-panel-header,.summary-context{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #d4d4d4;background:#eaeaea;font-weight:700}.summary-context{align-items:flex-start;flex-direction:column;background:#f7f7f7;font-weight:400}.mini-table{width:100%;border-collapse:collapse;table-layout:fixed}.mini-table th,.mini-table td{border:1px solid #aaa;padding:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-table th{background:var(--header-blue);color:#fff;font-size:11px;text-align:left}.amount-in{color:#065f46;font-weight:700}.amount-out,.danger-text{color:#b91c1c;font-weight:700}.status-pill{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;border:1px solid #999;background:#f5f5f5;font-size:12px;font-weight:700}.status-pill.completed{background:#dcfce7;color:#166534;border-color:#86efac}.status-pill.pending{background:#fef9c3;color:#854d0e;border-color:#fde047}.status-pill.unchecked{background:#e5e7eb;color:#374151;border-color:#cbd5e1}.status-pill.rejected,.status-pill.failed{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.modal-overlay{position:fixed;inset:0;background:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center;padding:20px}.modal-content{background:#fff;padding:20px;width:min(720px,100%);max-height:88vh;overflow:auto;border:1px solid #333;box-shadow:2px 2px 10px #0000004d}.bank-modal-content{width:min(1220px,calc(100vw - 36px));padding:16px;background:#fafafa}.review-modal-content,.settlement-modal-content{width:min(1180px,calc(100vw - 36px));padding:16px}.settlement-context{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:12px}.settlement-context>div{display:flex;align-items:center;gap:8px;min-height:30px}.settlement-recovered{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-weight:700}.settlement-recovered input{width:130px}.settlement-stats{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px;margin:10px 0}.settlement-stats>div{border:1px solid #999;background:#f2f2f2;padding:8px;display:flex;flex-direction:column;gap:4px}.settlement-stats span,.settlement-note{color:#4b5563;font-size:12px}.settlement-note{margin:8px 0}.section-title{margin:14px 0 6px;font-size:15px}.compact-table-container{max-height:280px;border:1px solid #999}.data-table.settlement-table th:nth-child(n),.data-table.settlement-table td:nth-child(n),.data-table.settlement-debt-table th:nth-child(n),.data-table.settlement-debt-table td:nth-child(n){width:auto;text-align:left}.data-table.settlement-table th:nth-child(n+3),.data-table.settlement-table td:nth-child(n+3),.data-table.settlement-debt-table th:nth-child(3),.data-table.settlement-debt-table td:nth-child(3){text-align:right}.settlement-role{display:inline-flex;min-width:78px;justify-content:center;padding:2px 6px;border:1px solid #999;background:#eee;font-size:11px;font-weight:700}.settlement-role.creditor{background:#dcfce7;color:#166534;border-color:#86efac}.settlement-role.debtor{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.settlement-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.inline-report-panel{border-top:2px solid #999;background:#f7f7f7;padding:10px}.inline-report-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px}.inline-report-header>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.inline-report-stats{grid-template-columns:repeat(4,minmax(130px,1fr))}.inline-report-table-container{max-height:360px;background:#fff}.data-table.inline-report-table th:nth-child(n),.data-table.inline-report-table td:nth-child(n){width:auto;text-align:left}.data-table.inline-report-table th:nth-child(1),.data-table.inline-report-table td:nth-child(1){width:52px;text-align:center}.data-table.inline-report-table th:nth-child(4),.data-table.inline-report-table td:nth-child(4),.data-table.inline-report-table th:nth-child(5),.data-table.inline-report-table td:nth-child(5){width:120px;text-align:right}.data-table.inline-report-table th:nth-child(6),.data-table.inline-report-table td:nth-child(6){min-width:260px}.loading-box{margin:8px 0;padding:10px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-weight:700}.modal-header{display:flex;justify-content:space-between;align-items:center;font-weight:700;margin-bottom:15px;border-bottom:1px solid #ccc;padding-bottom:5px}.close-modal{width:24px;height:24px;border:none;background:transparent;font-weight:700;cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-field{display:flex;flex-direction:column;gap:4px}.form-field label{font-weight:700;color:#3a3a3a}.form-field input,.form-field select,.form-field textarea{min-height:28px;border:1px solid #999;padding:5px;border-radius:0}.form-field textarea{min-height:90px;resize:vertical;font-family:Consolas,monospace}.full-span{grid-column:1 / -1}.bank-edit-row{display:grid;grid-template-columns:minmax(180px,1fr) 90px 90px 70px 70px;gap:5px;margin-bottom:5px;align-items:center}.rich-bank-row{grid-template-columns:minmax(360px,1.4fr) 120px minmax(180px,.8fr) minmax(180px,.8fr) 86px;align-items:start;padding:8px 0;border-bottom:1px solid #e5e5e5}.add-bank-row{grid-template-columns:minmax(420px,1.4fr) 90px 160px minmax(190px,.8fr) minmax(190px,.8fr) 70px;border-bottom:none}.bank-main-fields{display:grid;grid-template-columns:minmax(150px,1fr) 90px 130px 130px 84px;gap:5px}.bank-preview{grid-column:1 / -1;width:100%;min-height:28px;padding:7px;font-weight:700}.bank-card-list{display:grid;gap:10px}.bank-card{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:12px;border:1px solid #d7d7d7;background:#fff}.bank-card-main,.bank-card-side{min-width:0}.bank-field-grid{display:grid;grid-template-columns:minmax(180px,1.2fr) 96px minmax(145px,.9fr) minmax(145px,.9fr) 92px;gap:8px;align-items:end}.bank-form-field{display:flex;flex-direction:column;gap:3px;min-width:0;font-weight:700;color:#374151}.bank-form-field span{font-size:11px;line-height:1}.bank-form-field input{width:100%;height:28px;border:1px solid #9ca3af;background:#fff;padding:4px 6px;border-radius:0}.bank-form-field input:focus,.hex-value:focus{outline:2px solid #93c5fd;outline-offset:-1px}.small-field{max-width:110px}.bank-card-preview,.add-bank-preview{width:100%;height:30px;margin-top:8px;border-color:#555;font-weight:700}.bank-card-side{display:grid;grid-template-columns:minmax(170px,220px) minmax(280px,360px) auto;align-items:start;gap:12px}.bank-state-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.bank-color-grid{display:grid;grid-template-columns:1fr;gap:8px}.hex-color-control{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;font-weight:700}.hex-color-label{color:#111827}.hex-picker{height:38px;display:grid;grid-template-columns:30px 14px minmax(58px,1fr) 72px;align-items:center;gap:4px;padding:4px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #f3f4f6 inset}.hex-dot{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;overflow:hidden;box-shadow:0 0 0 1px #d1d5db}.hex-dot::-webkit-color-swatch-wrapper{padding:0}.hex-dot::-webkit-color-swatch{border:0;border-radius:50%}.hash-mark{color:#6b7280;text-align:center}.hex-value{min-width:0;height:28px;border:0;padding:2px 3px;background:transparent;font-family:Consolas,monospace;font-weight:700;text-transform:uppercase}.hex-format{height:28px;border:0;border-left:1px solid #e5e7eb;background:#f9fafb;padding:2px 6px;font-weight:700}.add-bank-panel{margin-top:16px;padding-top:14px;border-top:1px solid #b8b8b8}.add-bank-title{margin-bottom:8px;font-weight:700}.add-bank-grid{grid-template-columns:minmax(210px,1.2fr) 100px minmax(150px,.8fr) minmax(150px,.8fr) 100px}.add-bank-footer{display:grid;grid-template-columns:minmax(280px,360px) 160px;gap:12px;align-items:end;margin-top:10px}.add-bank-submit{height:38px}@media(min-width:1120px){.bank-card{grid-template-columns:minmax(0,1fr) 360px}.bank-card-side{grid-template-columns:1fr;gap:10px}}.bank-switches,.bank-row-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}.bank-card-side .bank-row-actions{justify-content:flex-end}.bank-switches{flex-direction:column}.switch-label{min-height:24px;display:inline-flex;align-items:center;gap:4px;font-weight:700}.bank-usage{padding:3px 6px;background:#f1f5f9;border:1px solid #cbd5e1;font-weight:700}.color-picker-block{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px;align-items:start;font-weight:700}.swatch-grid{display:grid;grid-template-columns:repeat(6,20px);gap:4px}.color-swatch{width:20px;height:20px;border:1px solid #777;padding:0;border-radius:0}.color-swatch.selected{outline:2px solid #111;outline-offset:1px}.btn-del:disabled{opacity:.45;cursor:not-allowed}.modal-actions,.page-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}.review-summary-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.review-summary-bar span{padding:4px 8px;border:1px solid #cbd5e1;background:#f8fafc;font-weight:700}.review-table-container{max-height:58vh;padding-bottom:0}.best-review-table{min-width:1040px}.best-review-table th:nth-child(1),.best-review-table td:nth-child(1){width:52px;text-align:center}.best-review-table th:nth-child(2),.best-review-table td:nth-child(2){width:130px}.best-review-table th:nth-child(3),.best-review-table td:nth-child(3){width:90px}.best-review-table th:nth-child(4),.best-review-table td:nth-child(4){width:140px}.best-review-table th:nth-child(5),.best-review-table td:nth-child(5){width:100px;text-align:right}.best-review-table th:nth-child(6),.best-review-table td:nth-child(6){width:120px}.best-review-table th:nth-child(7),.best-review-table td:nth-child(7){width:260px}.best-review-table th:nth-child(8),.best-review-table td:nth-child(8){width:220px}.page{padding-bottom:42px}.page-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;background:#e0e0e0;border-bottom:1px solid #ccc}.pagination-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 8px;background:#eee;border-bottom:1px solid #cfcfcf;font-weight:700}.page-size-select{width:112px}.bulk-bank-select{width:190px}.checkbox-input{width:15px;height:15px;margin:0;vertical-align:middle}.row-select-cell{text-align:center}.progress-panel{margin:8px;padding:8px;border:1px solid #93c5fd;background:#eff6ff}.progress-head,.progress-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:6px;font-weight:700}.progress-track{height:18px;border:1px solid #1d4ed8;background:#fff;overflow:hidden}.progress-fill{height:100%;background:#2563eb;transition:width .2s ease}.page-title{font-size:16px;font-weight:700;margin-right:10px}.transactions-table{min-width:1510px}.transactions-table th:nth-child(1),.transactions-table td:nth-child(1){width:60px}.transactions-table th:nth-child(2),.transactions-table td:nth-child(2){width:150px}.transactions-table th:nth-child(3),.transactions-table td:nth-child(3){width:260px}.transactions-table th:nth-child(4),.transactions-table td:nth-child(4){width:95px}.transactions-table th:nth-child(5),.transactions-table td:nth-child(5){width:135px}.transactions-table th:nth-child(6),.transactions-table td:nth-child(6){width:105px;text-align:right}.transactions-table th:nth-child(7),.transactions-table td:nth-child(7){width:210px}.transactions-table th:nth-child(8),.transactions-table td:nth-child(8){width:120px;text-align:left}.transactions-table th:nth-child(9),.transactions-table td:nth-child(9){width:80px}.transactions-table th:nth-child(10),.transactions-table td:nth-child(10){width:190px}.transactions-table th:nth-child(11),.transactions-table td:nth-child(11){width:160px}.transactions-table th:nth-child(12),.transactions-table td:nth-child(12){width:150px}.transactions-table th:nth-child(13),.transactions-table td:nth-child(13){width:180px}.assignment-table{min-width:1510px}.assignment-table th:nth-child(1),.assignment-table td:nth-child(1){width:44px;text-align:center}.assignment-table th:nth-child(2),.assignment-table td:nth-child(2){width:52px}.assignment-table th:nth-child(3),.assignment-table td:nth-child(3){width:170px}.assignment-table th:nth-child(4),.assignment-table td:nth-child(4){width:95px}.assignment-table th:nth-child(5),.assignment-table td:nth-child(5){width:135px}.assignment-table th:nth-child(6),.assignment-table td:nth-child(6){width:110px;text-align:right}.assignment-table th:nth-child(7),.assignment-table td:nth-child(7){width:120px}.assignment-table th:nth-child(8),.assignment-table td:nth-child(8){width:130px}.assignment-table th:nth-child(9),.assignment-table td:nth-child(9){width:170px}.assignment-table th:nth-child(10),.assignment-table td:nth-child(10){width:180px}.assignment-table th:nth-child(11),.assignment-table td:nth-child(11){width:220px}.assignment-table th:nth-child(12),.assignment-table td:nth-child(12){width:220px}.assignment-table th:nth-child(13),.assignment-table td:nth-child(13){width:140px}.company-table{min-width:1580px}.company-table th:nth-child(1),.company-table td:nth-child(1){width:55px;text-align:center}.company-table th:nth-child(2),.company-table td:nth-child(2){width:120px}.company-table th:nth-child(3),.company-table td:nth-child(3){width:90px}.company-table th:nth-child(4),.company-table td:nth-child(4){width:240px}.company-table th:nth-child(5),.company-table td:nth-child(5),.company-table th:nth-child(6),.company-table td:nth-child(6){width:130px}.company-table th:nth-child(7),.company-table td:nth-child(7),.company-table th:nth-child(8),.company-table td:nth-child(8){width:270px}.company-table th:nth-child(9),.company-table td:nth-child(9){width:220px}.compact-link{display:inline-block;max-width:215px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.tiny-btn{min-height:22px;padding:2px 5px;margin-left:4px}.bank-picker,.time-picker{display:flex;gap:6px;align-items:center}.bank-picker input,.time-picker input{flex:1}.best-bank-btn,.tiny-inline-btn{white-space:nowrap;min-height:24px;padding:2px 7px}.tiny-best-btn{display:inline-block;margin-top:4px;min-height:20px;padding:1px 6px;border:1px solid #2563eb;background:#dbeafe;color:#1e3a8a;cursor:pointer;font-size:12px;font-weight:700}.bank-helper{margin-top:4px;color:#374151;font-size:12px}.summary-filter-hint{display:block;margin-top:4px;color:#374151;font-size:12px}.tiny-link-btn{border:0;background:transparent;color:#1d4ed8;cursor:pointer;font-weight:700;padding:0 4px}.summary-company-row{cursor:pointer}.summary-company-row.selected td{background:#dbeafe}.summary-company-btn{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:700;padding:0;text-align:left}.logs-table{min-width:1120px}.logs-filters{gap:6px;padding:6px 10px}.logs-filters input,.logs-filters select{height:26px;border:1px solid #999;padding:2px 5px}.muted-text{color:#555;font-size:12px}.logs-table th:nth-child(1),.logs-table td:nth-child(1){width:55px;text-align:center}.logs-table th:nth-child(2),.logs-table td:nth-child(2){width:170px}.logs-table th:nth-child(3),.logs-table td:nth-child(3){width:140px}.logs-table th:nth-child(4),.logs-table td:nth-child(4){width:260px}.logs-table th:nth-child(5),.logs-table td:nth-child(5){width:120px}.logs-table th:nth-child(6),.logs-table td:nth-child(6){width:170px}.logs-table th:nth-child(7),.logs-table td:nth-child(7){width:320px}.log-summary-table{min-width:1180px}.log-summary-table th:nth-child(1),.log-summary-table td:nth-child(1){width:55px;text-align:center}.log-summary-table th:nth-child(2),.log-summary-table td:nth-child(2){width:100px}.log-summary-table th:nth-child(3),.log-summary-table td:nth-child(3){width:180px}.log-summary-table th:nth-child(4),.log-summary-table td:nth-child(4){width:150px}.log-summary-table th:nth-child(5),.log-summary-table td:nth-child(5){width:90px;text-align:right}.inline-select,.inline-input{width:100%;height:24px;border:1px solid #999;border-radius:0;padding:2px 4px}.compact-form{display:grid;grid-template-columns:120px 90px;gap:4px}.assigned-bank{color:#166534;font-weight:700}.count-badge{min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;margin-left:4px;padding:0 5px;border-radius:999px;background:#b91c1c;color:#fff;font-size:11px;font-weight:700;line-height:1}.check-summary{display:grid;grid-template-columns:150px minmax(0,1fr);border-top:1px solid #ddd}.check-summary div{padding:8px 10px;border-bottom:1px solid #ddd}.check-summary div:nth-child(odd){background:#f4f4f4;font-weight:700}.check-found{color:#166534;font-weight:700}.check-missing{color:#991b1b;font-weight:700}.detail-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:12px;padding:12px}.panel{border:1px solid #b8b8b8;background:#fff}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #d4d4d4;background:#eaeaea;font-weight:700}.detail-grid{display:grid;grid-template-columns:160px minmax(0,1fr);border-top:1px solid #ddd}.detail-grid:first-child{border-top:none}.detail-label,.detail-value{padding:8px 10px;border-bottom:1px solid #ddd}.detail-label{background:#f4f4f4;font-weight:700}.detail-value{overflow-wrap:anywhere}.json-box{margin:0;padding:10px;min-height:160px;overflow:auto;background:#0f172a;color:#dbeafe;font:12px Consolas,monospace}.notice{padding:10px;color:#666}.error-box{margin:8px;padding:8px;border:1px solid #fca5a5;background:#fee2e2;color:#991b1b;font-weight:700}.success-box{margin:8px;padding:8px;border:1px solid #86efac;background:#dcfce7;color:#166534;font-weight:700}@media(max-width:760px){.tag{width:calc(50% - 1px)}.form-grid,.detail-layout,.ledger-workspace.with-summary{grid-template-columns:1fr}.summary-panel{border-left:none;border-top:1px solid #aaa}.bank-edit-row{grid-template-columns:1fr 80px}.rich-bank-row,.add-bank-row,.bank-main-fields,.bank-card,.bank-field-grid,.add-bank-grid,.add-bank-footer,.settlement-stats{grid-template-columns:1fr}.swatch-grid{grid-template-columns:repeat(6,20px)}.bank-edit-row .btn-save,.bank-edit-row .btn-del{min-width:72px}.detail-grid{grid-template-columns:1fr}}
