:root{font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#223d52;background:#f3f6f9;--accent:#1d6d77;--line:#e0e8ef;--muted:#71869a}*{box-sizing:border-box}body{margin:0}main{max-width:1720px;margin:auto;padding:24px 32px 50px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible{outline:2px solid #27828e}button{min-height:35px;padding:7px 13px;border:1px solid #d5e0e8;border-radius:7px;background:#fff;color:#365568;font-size:12px;cursor:pointer}button:hover{background:#f3f8fa}button:disabled{opacity:.45;cursor:not-allowed}.primary{border-color:var(--accent);background:var(--accent);color:#fff}.primary:hover{background:#155e68}input,select,textarea{min-width:0;width:100%;height:36px;padding:7px 9px;border:1px solid #ccdbe5;border-radius:6px;background:#fff;color:#26485f;font-size:12px}input[type=checkbox]{width:15px;height:15px;min-height:15px;margin:2px 0;accent-color:var(--accent);flex:0 0 15px}textarea{height:76px;resize:vertical}input[readonly]{background:#f5f8fa;color:#647f91}label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#688195;line-height:1.6}label small{font-size:10px}a{color:var(--accent)}h1,h2,h3,p{margin-top:0}h1{font-size:25px;letter-spacing:.02em;margin-bottom:7px}h2{font-size:14px;margin-bottom:4px}h3{font-size:13px;margin-bottom:12px}small{font-size:11px}.re-loading,.re-access{padding:50px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:30px}.re-access p{color:var(--muted)}
.re-nav{display:flex;align-items:center;gap:24px;margin-bottom:27px;font-size:12px}.re-nav a{text-decoration:none;color:#7790a2;padding:7px 0}.re-nav a[aria-current=page]{color:var(--accent);border-bottom:2px solid var(--accent)}.re-nav span{margin-left:auto;color:#8798a7;font-size:10px}.re-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}.re-heading>div>small{font-size:10px;color:#8b9caa;letter-spacing:.1em;display:block;margin-bottom:7px}.re-heading p{font-size:12px;color:#7b8f9f;margin-bottom:0}.re-heading .re-source{font-size:10px;margin-top:8px}.re-heading-actions{display:flex;gap:8px;padding-top:23px;flex-wrap:wrap}.re-demo,.re-warning{padding:11px 14px;border-radius:8px;font-size:11px;background:#e8f2f5;color:#4a7d89;margin-bottom:16px}.re-warning{background:#fff3dc;color:#936e29}
.re-tabs{display:flex;gap:4px;padding:4px;background:#eaf0f4;border-radius:9px;width:max-content;max-width:100%;overflow:auto;margin-bottom:18px}.re-tabs button{background:transparent;border:0;white-space:nowrap;padding:8px 16px;color:#7290a1}.re-tabs button[aria-current=page]{background:#fff;color:#1d6d77;box-shadow:0 2px 5px #294b6512}.re-tabs small{margin-left:6px;color:#95a6b3;font-size:10px}.re-panel{background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:17px;overflow:hidden}.re-filters{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:12px;padding:17px}.re-filter-actions{display:flex;align-items:flex-end;gap:7px}.re-filter-actions button{min-width:58px;height:36px}.re-overview-note{font-size:10px;color:#8295a5;margin-bottom:12px}.re-panel-head{padding:16px 18px;border-bottom:1px solid var(--line)}.re-panel-head p{font-size:10px;color:#8799a7;margin-bottom:0}.re-ledger-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.re-selection{display:flex;align-items:center;gap:13px;font-size:11px;color:#7d91a1}
.re-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;background:#f8fafc;padding:11px 12px;color:#8194a4;white-space:nowrap;font-weight:500;font-size:10px;border-bottom:1px solid var(--line)}td{padding:15px 12px;border-bottom:1px solid #eaf0f4;vertical-align:top;line-height:1.7}tbody tr:last-child td{border-bottom:0}td strong{font-size:11px;font-weight:600;display:block}td small{display:block;font-size:10px;color:#8a9ba9;margin-top:4px;max-width:235px;overflow-wrap:anywhere}.re-ledger{min-width:1240px}.re-ledger td:nth-child(2){min-width:170px}.re-ledger td:nth-child(3){min-width:145px}.re-checkbox{width:33px;padding-right:0}.re-money{white-space:nowrap;font-variant-numeric:tabular-nums}.re-number-label{color:#879eaf;font-size:9px;margin-right:7px}.re-badge{display:inline-block;border-radius:5px;padding:3px 7px;margin:0 3px 5px 0;background:#edf2f5;color:#7890a1;white-space:nowrap;font-size:9px;line-height:1.5}.re-badge.good{background:#e6f3ec;color:#50806b}.re-badge.warn{background:#fff1d7;color:#a17b31}.re-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:104px}.re-row-actions button,.re-link{min-height:20px;border:0;padding:0;background:transparent;color:var(--accent);font-size:10px}.re-row-actions button:hover,.re-link:hover{text-decoration:underline}.re-empty{text-align:center;padding:40px 20px;color:#8d9eac;font-size:12px}.re-footnote{margin:0;padding:12px 17px;background:#f8fafb;color:#8a9caa;font-size:10px;line-height:1.9;border-top:1px solid var(--line)}.re-page-status{font-size:12px;color:#9c6f25;min-height:25px;line-height:1.8}
.re-currency-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px;margin-bottom:17px}.re-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:19px}.re-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.re-card header strong{font-size:13px}.re-card header small{font-size:10px;color:#96a7b4}.re-total-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.re-total-grid span{display:block;font-size:10px;color:#879ba9;margin-bottom:4px}.re-total-grid strong{font-size:19px;font-weight:500;font-variant-numeric:tabular-nums}.re-total-grid div:nth-child(4) strong{color:var(--accent)}
.re-dialog{padding:0;width:min(970px,95vw);max-height:92vh;max-height:92dvh;border:1px solid #d0dce5;border-radius:13px;color:#2c4a60;box-shadow:0 22px 95px #1a3b5730}.re-dialog::backdrop{background:#18354b66}.re-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 21px;border-bottom:1px solid var(--line);background:#fff}.re-dialog>header h2{margin:0;font-size:17px;font-weight:500}.re-dialog>header button{font-size:10px;padding:5px 9px;min-height:29px}.re-dialog-body{padding:18px 22px;background:#f4f7fa;max-height:79vh;max-height:79dvh;overflow:auto}.re-intro{padding:12px 15px;border-radius:8px;background:#e9f1f7;color:#6d879a;font-size:11px;line-height:1.9;margin-bottom:16px}.re-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.re-full{grid-column:1/-1}.re-dialog-card{padding:16px;background:#fff;border:1px solid #e2eaf0;border-radius:9px;margin-bottom:15px}.re-dialog-card summary{font-size:11px;color:#6d8698;cursor:pointer}.re-dialog-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.9 ui-monospace,monospace;color:#8499a9;max-height:270px;overflow:auto}.re-details{display:grid;grid-template-columns:1fr 1fr;gap:15px 22px;font-size:11px;margin:0}.re-details dt{font-size:9px;color:#92a2af;margin-bottom:5px}.re-details dd{margin:0;overflow-wrap:anywhere}.re-muted{font-size:10px;color:#8da0af;line-height:1.9}.re-checkbox-label{display:flex;flex-direction:row;align-items:flex-start;gap:9px;margin:15px 0;color:#668295;font-size:11px;line-height:1.9}.re-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.re-status{font-size:11px;color:#9b762f;line-height:1.9;margin:12px 0 0}.re-allocation-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:15px}.re-allocation-head h3{margin:0}.re-allocation-head button{font-size:10px;min-height:27px;padding:4px 8px}.re-allocation-row{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:15px;padding:12px 0;border-top:1px solid #edf2f6;font-size:11px;align-items:center}.re-allocation-row small{display:block;font-size:10px;color:#8da1b1;margin-top:4px}.re-preview{margin-top:17px;padding:17px;border-radius:9px;border:1px solid #c8ded5;background:#edf7f1;color:#547d6b;font-size:11px;line-height:1.9}.re-preview p{margin-bottom:6px}.re-preview h3{color:#3e725d}.re-proof-images figure{margin:14px 0}.re-proof-images img{display:block;max-width:100%;max-height:420px;object-fit:contain;border:1px solid var(--line);background:#f7f9fb;border-radius:6px}.re-proof-images figcaption{font-size:9px;color:#8ca0af;overflow-wrap:anywhere;margin-top:6px}
@media(min-width:1550px){main{padding:30px 42px 60px}}@media(max-width:1200px){.re-filters{grid-template-columns:repeat(4,minmax(120px,1fr))}}@media(max-width:750px){main{padding:15px}.re-nav{gap:16px;margin-bottom:20px}.re-nav span{display:none}.re-heading{flex-direction:column;gap:12px}.re-heading-actions{padding-top:0}.re-tabs{width:100%}.re-tabs button{padding:8px 12px}.re-filters{grid-template-columns:repeat(2,minmax(110px,1fr));padding:12px}.re-ledger-head{flex-direction:column;align-items:flex-start}.re-selection{width:100%;justify-content:space-between}.re-dialog-body{padding:13px}.re-form-grid,.re-details{grid-template-columns:1fr}.re-dialog>header{padding:14px}.re-allocation-row{grid-template-columns:1fr 115px}.re-access,.re-loading{padding:25px}h1{font-size:23px}}
.finance-login{max-width:430px;margin:12vh auto 30px;padding:30px;background:#fff;border:1px solid var(--line);border-radius:13px}.finance-login h1{font-size:23px}.finance-login p{font-size:12px;color:#8397a6}.finance-login form{display:grid;gap:17px;margin-top:23px}.finance-login button{margin-top:6px;background:var(--accent);color:#fff;border-color:var(--accent)}
.re-nav .re-mode{margin-left:auto;white-space:nowrap}.re-session{display:flex;align-items:center;gap:12px;min-width:0;padding-left:18px;border-left:1px solid #dce6ed}.re-nav .re-session span{display:block;margin:0;max-width:230px;overflow-wrap:anywhere;font-size:11px;color:#8197a7}.re-session strong{font-weight:500;color:#3b6075}.re-session button{min-height:29px;padding:4px 10px;white-space:nowrap;font-size:11px}.re-source-notice{display:flex;align-items:flex-start;gap:16px;border:1px solid #dce7ed;border-radius:9px;padding:13px 16px;background:#f8fbfd;margin-bottom:16px}.re-source-notice>strong{white-space:nowrap;font-weight:500;font-size:12px;color:#577b8e}.re-source-notice p{margin:0;color:#8197a6;font-size:11px;line-height:1.8}.re-source-notice.connected{background:#edf6f0;border-color:#d8e8dc}.re-source-notice.connected>strong{color:#52836b}.re-first-use{background:#fff;border:1px solid #dce7ee;border-radius:12px;padding:23px;margin:0 0 21px}.re-first-use>div>small{color:#7e9cac;display:block;margin-bottom:7px;font-size:10px}.re-first-use h2{font-size:19px;font-weight:500;margin-bottom:9px}.re-first-use p{color:#8499a7;font-size:12px;margin-bottom:0;max-width:760px}.re-first-use ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;margin:22px 0;padding:0;list-style:none;counter-reset:first-use}.re-first-use li{counter-increment:first-use;position:relative;min-width:0;padding-left:32px}.re-first-use li::before{content:counter(first-use);position:absolute;left:0;top:0;border-radius:50%;background:#edf4f7;color:#658a9b;width:23px;height:23px;text-align:center;line-height:23px;font-size:11px}.re-first-use li strong{display:block;font-size:12px;font-weight:500;color:#55778c;margin-bottom:5px}.re-first-use li span{display:block;font-size:11px;color:#8c9fac;line-height:1.8}.re-net-base{font-size:11px;color:#6f8798;line-height:1.9;border-left:3px solid #c8dce6;padding:10px 13px;background:#eef4f8;margin-bottom:17px}.re-net-base strong{color:#3e6f80;font-weight:500}.re-total-grid strong{overflow-wrap:anywhere}.re-access a{display:inline-block;margin:10px 0}.re-access button+a{margin-left:15px}
@media(max-width:750px){.re-nav{flex-wrap:wrap;gap:10px 18px}.re-nav .re-mode{display:none}.re-session{width:100%;justify-content:space-between;padding:10px 0 0;border-left:0;border-top:1px solid #dfe8ee}.re-nav .re-session span{display:block;max-width:calc(100% - 60px)}.re-source-notice{flex-direction:column;gap:5px;padding:12px 14px}.re-first-use{padding:18px}.re-first-use ol{grid-template-columns:1fr;gap:16px;margin:20px 0}.re-first-use h2{font-size:18px}.re-first-use button{width:100%}.re-access button+a{display:block;margin-left:0}.re-nav a{font-size:12px}.re-dialog{max-width:calc(100vw - 16px)}}
.re-inbox-state{padding:24px}.re-inbox-state p{font-size:12px;color:#8398a7}.re-snapshot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;padding:17px;border-bottom:1px solid var(--line)}.re-snapshot-list article{padding:12px 14px;background:#f4f8fa;border-radius:8px;min-width:0}.re-snapshot-list strong{display:block;font-size:12px;font-weight:500;color:#52768c;overflow-wrap:anywhere}.re-snapshot-list span{display:inline-block;font-size:9px;background:#e7eff4;color:#7593a5;padding:3px 6px;border-radius:4px;margin:7px 0}.re-snapshot-list small{display:block;font-size:10px;color:#90a2af;line-height:1.8}.re-inbox-table{min-width:780px}.re-inbox-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-top:1px solid var(--line);font-size:11px;color:#8298a8}.re-inbox-pagination>div{display:flex;gap:7px}.re-inbox-pagination button{font-size:10px;min-height:30px;padding:5px 10px}.re-inbox-empty p{font-size:11px;line-height:1.9;margin:8px 0 0}.re-inbox-empty h3{font-size:14px;font-weight:500;margin:0}@media(max-width:750px){.re-snapshot-list{grid-template-columns:1fr;padding:12px}.re-inbox-pagination{flex-wrap:wrap}.re-inbox-pagination>div{margin-left:auto}.re-tabs{min-width:0}.re-tabs button{flex-shrink:0}}
[data-source-company] label+label{margin-top:14px}.re-inbox-table td:last-child{min-width:130px}.re-inbox-table td:nth-child(1){min-width:165px}
.re-company-suggestion{padding:15px 17px;border:1px solid #d4e5dd;border-radius:9px;background:#eef7f1;margin-bottom:15px}.re-company-suggestion h3{color:#4e7a65;margin-bottom:8px}.re-company-suggestion p{font-size:11px;color:#759181;line-height:1.9;margin:0 0 10px}.re-company-suggestion p:last-child{margin:12px 0 0}.re-company-suggestion .re-details{gap:11px 20px}.re-company-suggestion.pending{background:#f4f7fa;border-color:#dfe8ef}.re-company-suggestion.pending h3,.re-company-suggestion.pending p{color:#7c94a5}

/* Finance reconciliation workspace; existing settlement screen remains independent. */
#finance-reconciliation{max-width:1480px;margin:0 auto;padding:24px;color:#29495b}#finance-reconciliation>.re-panel{padding:22px;margin-bottom:18px}#finance-reconciliation h1{font-size:25px;margin:0 0 12px}#finance-reconciliation form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}#finance-reconciliation label{display:grid;gap:6px;font-size:12px}#finance-reconciliation input,#finance-reconciliation select{min-height:38px;min-width:180px;padding:7px;border:1px solid #cad9e2;border-radius:6px}#finance-reconciliation th,#finance-reconciliation td{padding:12px;vertical-align:top;text-align:left;border-bottom:1px solid #e1e9ef}#finance-reconciliation th{background:#f0f5f8}#finance-reconciliation td{font-size:12px;line-height:1.7}#finance-reconciliation table{width:100%;min-width:900px}.re-dialog [data-body] form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.re-dialog [data-body] label{display:grid;gap:6px;font-size:12px}.re-dialog [data-body] label:has(input[type=checkbox]){display:flex;align-items:start}.re-dialog [data-body] input:not([type=checkbox]),.re-dialog [data-body] select,.re-dialog [data-body] textarea{width:100%;min-height:36px;padding:7px;border:1px solid #cad9e2;border-radius:6px;box-sizing:border-box}.re-dialog [data-body] textarea{min-height:85px}.re-dialog [data-body] .re-panel{padding:18px;margin:14px 0}.re-dialog [data-body] [data-status]{position:sticky;top:0;background:#fff8de;padding:10px;z-index:2}.re-dialog [data-body] [data-status]:empty{display:none}@media(max-width:700px){#finance-reconciliation{padding:10px}#finance-reconciliation>.re-panel{padding:14px}.re-dialog [data-body] form{grid-template-columns:1fr}}

/* Monthly business facets: independent business, task and payment filters. */
.month-filters{border:0;padding:0;margin:18px 0}.month-filters legend{font-weight:700;margin-bottom:10px}.month-filters>div{display:flex;gap:8px;flex-wrap:wrap}.month-filters button{display:inline-flex;gap:9px;align-items:center;border:1px solid #d6e0e3;border-radius:9px;background:#fff;color:#334b54;padding:9px 12px;cursor:pointer}.month-filters button span{font-variant-numeric:tabular-nums;color:#647881;background:#f0f4f5;padding:1px 6px;border-radius:5px}.month-filters button[aria-pressed="true"]{background:#2e6570;color:white;border-color:#2e6570}.month-filters button[aria-pressed="true"] span{background:#ffffff25;color:white}.month-filters button:focus-visible{outline:3px solid #88b6bd;outline-offset:2px}.month-filter-result{display:flex;justify-content:space-between;align-items:center;margin-top:16px;border-top:1px solid #e1e9ec;padding-top:12px}.month-payment summary{cursor:pointer;color:#376975}.month-business-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.month-business-tags span{background:#edf5f5;border-radius:4px;padding:2px 5px;color:#355963;font-size:12px}@media(max-width:600px){.month-filters button{padding:8px;font-size:13px}.month-filter-result{gap:10px}}

.month-evidence-notes{min-width:210px;font-size:.88rem;color:#315b65}.month-evidence-notes p{margin:0 0 .5rem}
#monthly-review{max-width:1080px}#monthly-review>.re-panel{padding:22px}#monthly-review form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}#monthly-review label{font-size:12px}#monthly-review label:has(textarea),#monthly-review label:has(input[type=checkbox]){grid-column:1/-1}#monthly-review label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center}#monthly-review summary{cursor:pointer;color:var(--accent);padding:8px 0}.business-confirmation{overflow-wrap:anywhere}.business-confirmation:has(strong){padding:16px;margin:14px 0;border-left:3px solid var(--accent);background:#f2f8f7}.business-confirmation p{margin:9px 0}.business-confirmation strong{color:#185e68}@media(max-width:650px){#monthly-review form{grid-template-columns:1fr}#monthly-review>.re-panel{padding:16px}}
