.financing-bank-workspace{padding:24px}.financing-bank-workspace .card-head .actions{flex-wrap:wrap;justify-content:flex-end}.financing-bank-workspace .fd-bank-stage-actions{gap:8px;margin:20px 0}.financing-bank-workspace [data-bank-group]{background:#f5f6fc;color:#465371;border:1px solid #d8def0;min-height:38px}.financing-bank-workspace [data-bank-group].active{background:var(--primary,#5548ef);border-color:var(--primary,#5548ef);color:#fff}.financing-bank-workspace [data-bank-group] span{margin-left:5px;font-weight:700}.fb-inbox-tools{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:16px 0}.fb-inbox-tools label{display:grid;gap:6px;font-size:12px;flex:1;max-width:420px}.fb-inbox-tools input,.fb-row-choice select{border:1px solid var(--border,#d8def0);border-radius:7px;padding:9px;background:#fff;color:inherit;font:inherit;width:100%;box-sizing:border-box}.fb-inbox-tools>span{font-size:11px;color:var(--muted,#68758c)}.fb-row-choice{display:grid;gap:5px;margin-top:9px;font-size:10px;color:#64728a;max-width:390px}.fb-row-choice select{font-size:11px;max-width:100%;white-space:normal}.fb-has-suggestion>td{background:#f4faf5}.fb-match{color:#33704c!important;font-size:11px;line-height:1.5}.fb-warning{color:#9c3545;font-size:12px;line-height:1.5}.financing-bank-workspace td{vertical-align:top}.financing-bank-workspace td small{display:block;margin-top:5px;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.financing-bank-workspace td.num{white-space:nowrap}.fb-row-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;min-width:140px}.fb-icon{display:inline-flex;position:relative;flex:none;align-items:center;justify-content:center;width:32px;height:34px;min-height:34px;padding:6px;border:1px solid #d8def0;color:#4f6279;background:#fff}.fb-icon svg{width:18px;height:18px;flex:none}.fb-icon.fb-pdf{height:36px;flex-direction:column;gap:1px;padding:3px}.fb-icon.fb-pdf small{font-size:6px;line-height:7px;margin:0!important;letter-spacing:.3px;white-space:nowrap}.fb-batch{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 14px;background:#f1f7f2;border:1px solid #d9e9dc;border-radius:8px;margin:12px 0}.fb-batch>span{font-size:12px;font-weight:600}.fb-batch .actions{display:flex;gap:8px;flex-wrap:wrap}#financingBankBatchResults{padding:12px 14px;border:1px solid #dce3ee;border-radius:8px;margin:12px 0;font-size:12px}#financingBankBatchResults li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.financing-bank-workspace .table-wrap{max-width:100%;overflow:auto}.financing-bank-workspace :focus-visible,.fb-category-modal :focus-visible{outline:2px solid #8175d9;outline-offset:2px}.financing-bank-workspace [hidden],.fb-category-modal [hidden]{display:none!important}
#financingBankCategoryModal>.fb-category-modal{display:flex;flex-direction:column;width:min(800px,calc(100vw - 28px));max-width:800px;max-height:calc(100dvh - 28px);padding:0;overflow:hidden}.fb-category-modal .modal-head,.fb-category-modal .modal-foot{flex:none;padding:18px 24px}.fb-category-modal .modal-head small{display:block;color:#6d7790;font-size:9px;letter-spacing:.06em;margin-bottom:6px}.fb-category-modal .modal-head h3{margin:0;font-size:20px}.fb-category-modal .modal-body{overflow:auto;min-height:0;padding:0 24px 18px}.fb-category-modal .modal-foot{display:flex;gap:9px;justify-content:flex-end;border-top:1px solid #e5eaf0;background:#fff}.fb-bank-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 16px;background:#f2f9f4;border:1px solid #d7e8dd;border-radius:9px;margin:2px 0 18px}.fb-bank-summary>div{display:grid;gap:4px;min-width:0}.fb-bank-summary small{font-size:9px;letter-spacing:.04em;color:#527563}.fb-bank-summary span{font-size:11px;color:#63776c}.fb-bank-summary>strong{font-size:23px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#183a2a}.fb-bank-summary>div>strong{font-size:13px;overflow-wrap:anywhere}.fb-category-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.fb-category-modal .field{display:grid;gap:6px;font-size:12px;margin:14px 0;min-width:0}.fb-category-modal input,.fb-category-modal select,.fb-category-modal textarea{padding:10px;border:1px solid #cdd4e6;border-radius:7px;max-width:100%;width:100%;box-sizing:border-box;background:#fff;color:inherit;font:inherit;font-size:13px}.fb-category-modal input[readonly]{background:#f4f7f8;color:#536174}.fb-category-modal input[type=checkbox]{width:16px;height:16px;flex:none;margin:2px 0}.fb-category-modal small{color:#748096;font-size:10px;line-height:1.5}.fb-category-modal summary{cursor:pointer;font-size:12px;color:#355c50;padding:12px 0;font-weight:600}.fb-category-modal details{border-top:1px solid #e5eaf0;margin:14px 0}.fb-category-modal fieldset{border:1px solid #e0e6ed;border-radius:8px;padding:8px 12px;margin:14px 0}.fb-category-modal legend{font-size:12px;padding:0 5px}.fb-category-modal .fb-confirm{display:flex;align-items:start;gap:8px;font-size:12px;line-height:1.5;padding:10px;background:#fff8e8}.fb-search{display:flex;gap:8px}.fb-search input{min-width:0}.fb-category-modal .fd-bank-result{align-items:center;padding:12px}.fb-category-modal .fd-bank-result strong{font-size:11px}.fb-category-modal .fd-bank-result small{font-size:10px}.fb-category-modal #financingBankLookupResults{max-height:36vh;overflow:auto}.fb-category-modal #financingBankSelected{font-size:12px}.fb-category-modal #financingBankSelected p{line-height:1.6}.fb-category-modal #financingBankFileList p{font-size:11px;overflow-wrap:anywhere}.fb-category-modal #financingBankCategoryError:empty{display:none}
@media(max-width:700px){.financing-bank-workspace{padding:16px}.fb-inbox-tools{align-items:stretch;flex-direction:column}.fb-inbox-tools label{width:100%;max-width:none}.financing-bank-workspace .card-head{align-items:start;flex-direction:column}.financing-bank-workspace .card-head .actions{justify-content:flex-start}.fb-batch{align-items:stretch}.fb-batch .actions{width:100%}.fb-batch .actions .primary{flex:1}.financing-bank-workspace .fd-bank-stage-actions{gap:6px}.financing-bank-workspace [data-bank-group]{padding:8px 10px;font-size:11px}.fb-category-modal .modal-head,.fb-category-modal .modal-foot{padding:16px}.fb-category-modal .modal-body{padding:0 16px 16px}.fb-category-modal .modal-head h3{font-size:18px}.fb-category-grid{grid-template-columns:1fr;gap:0}.fb-bank-summary{padding:12px;align-items:start;gap:10px}.fb-bank-summary>strong{font-size:19px}.fb-search .btn{padding:8px}.fb-category-modal .modal-foot .primary{flex:1}.fb-category-modal .fd-bank-result{align-items:start}.fb-category-modal .fd-bank-result>strong{font-size:10px}.fb-category-modal .fd-bank-selected button{margin-top:8px}}

.fb-receipt-dialog{width:min(850px,94vw);max-height:90vh;padding:0;border:1px solid #dce3ed;border-radius:12px;color:#142b49;box-shadow:0 22px 80px #142b4933}.fb-receipt-dialog::backdrop{background:#15274366}.fb-receipt-dialog[open]{display:flex;flex-direction:column}.fb-receipt-dialog>header,.fb-receipt-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#fff;flex-shrink:0}.fb-receipt-dialog>header{border-bottom:1px solid #e3e8f0}.fb-receipt-dialog h2{font-size:19px;margin:4px 0}.fb-receipt-dialog small{color:#62748d}.fb-receipt-body{overflow:auto;padding:18px 24px}.fb-receipt-body label{display:flex;flex-direction:column;gap:7px;margin:16px 0;color:#52647d;font-size:13px}.fb-receipt-body input{padding:10px;border:1px solid #d7dfec;border-radius:7px;min-width:0;box-sizing:border-box;font:inherit}.fb-receipt-dialog>footer{border-top:1px solid #e3e8f0}.fb-receipt-results{display:grid;gap:6px;max-height:280px;overflow:auto}.fb-receipt-results>button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;background:#fff;border:1px solid #dce3ed;border-radius:7px;padding:12px;color:#142b49;font:inherit;cursor:pointer}.fb-receipt-results>button[aria-selected=true]{border-color:#5140d6;background:#f5f2ff}.fb-receipt-results>button:focus-visible,.fb-receipt-body input:focus-visible{outline:2px solid #8071e9;outline-offset:1px}.fb-receipt-results>button:disabled{opacity:.55;cursor:not-allowed}.fb-receipt-dialog [role=alert]{color:#ad3344}.fb-receipt-body article{padding:12px 0;border-bottom:1px solid #e3e8f0}@media(max-width:600px){.fb-receipt-dialog{width:96vw;max-width:96vw;max-height:96vh}.fb-receipt-dialog>header,.fb-receipt-dialog>footer,.fb-receipt-body{padding:14px}.fb-receipt-dialog>footer{flex-wrap:wrap}.fb-receipt-dialog>footer .btn{width:100%}}
.financing-bank-workspace .fb-bank-reconciled{background:#f3f8f6}.financing-bank-workspace .fb-bank-reconciled td:nth-child(2)>strong,.financing-bank-workspace .fb-bank-reconciled td.num{text-decoration:line-through;color:#65756e}
/* Inline, exact receipt suggestions keep the observed bank name above the proposal. */
.fb-receipt-match{display:grid;gap:5px;margin-top:9px;padding:9px;border-left:3px solid #478779;background:#f1f7f5;max-width:460px;white-space:normal}
.fb-receipt-match>span,.fb-receipt-match small,.fb-receipt-match article>span{display:block;font-size:12px;line-height:1.5}
.fb-receipt-match .actions{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.fb-receipt-match summary{cursor:pointer;font-size:12px;text-decoration:underline;padding:4px 0}
.fb-receipt-match article{padding:8px 0;border-top:1px solid #dce7e3}
.fb-direct-actions{display:flex;flex-wrap:wrap;gap:5px;max-width:310px}.fb-direct-dialog form{display:grid;gap:12px}.fb-direct-dialog label{display:grid;gap:5px}.fb-direct-dialog select,.fb-direct-dialog input,.fb-direct-dialog textarea{width:100%;padding:8px}.fb-direct-dialog footer{display:flex;flex-wrap:wrap;gap:8px}.fb-direct-dialog textarea{min-height:68px}
.fb-receipt-results>button.fb-receipt-suggested{border-left:4px solid #478779;background:#f1f7f5}
.fb-receipt-match[data-match-state=UNAVAILABLE]{border-color:#a36b3a;background:#fcf7ef}
.fb-receipt-match button:focus-visible,.fb-receipt-match summary:focus-visible{outline:2px solid #286a5b;outline-offset:2px}
@media(max-width:720px){.fb-receipt-match{max-width:100%;min-width:210px}.fb-receipt-match .actions{flex-direction:column}}

.fb-receipt-batch{padding:12px 0}.fb-match-select{display:flex;gap:8px;align-items:center;margin:6px 0}.fb-match-select input,.fb-receipt-batch input{width:auto}.fb-receipt-batch-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin:12px 0}.fb-receipt-batch-preview article{padding:12px;border:1px solid #d9e2e0;border-radius:8px}.fb-receipt-batch-preview p{margin:6px 0;overflow-wrap:anywhere}.fb-receipt-batch .fb-batch{flex-wrap:wrap}

/* One bank movement and its selected destination remain a continuous row. */
#financingBankSummary>p{font-size:12px;margin:12px 0 5px;color:var(--muted,#68758c)}
#financingBankSummary dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:14px 0;border-block:1px solid #e3e8f0}
#financingBankSummary dt{font-size:12px;color:#52647d}#financingBankSummary dd{font-size:20px;font-weight:650;margin:5px 0 0;font-variant-numeric:tabular-nums}#financingBankSummary dd small{display:block;font-weight:400;font-size:12px}
.fb-inbox-tools{align-items:end;flex-wrap:wrap;gap:12px}.fb-inbox-tools label{min-width:120px;max-width:360px}.fb-inbox-tools select{padding:9px;border:1px solid #d8def0;border-radius:7px;font:inherit;background:#fff}.fb-inbox-tools .fb-exact-filter input{width:auto}.fb-query-menu{font-size:12px;max-width:260px}.fb-query-menu summary,.fb-more-actions summary{cursor:pointer;padding:9px;color:#465371;min-height:24px}.fb-query-menu p{font-size:12px}.fb-more-actions .btn{display:flex;align-items:center;gap:6px;white-space:normal;text-align:left;width:100%;margin:4px 0;min-height:36px;font-size:12px}.fb-more-actions .fb-icon{width:100%;justify-content:flex-start}.fb-more-actions .fb-icon:after{content:attr(aria-label)}.fb-more-actions .fb-direct-actions{display:block;max-width:none}.fb-row-actions{display:block;min-width:0}
.fb-unified-receipts{width:100%;table-layout:fixed}.fb-unified-receipts th:first-child{width:46px}.fb-unified-receipts th:nth-child(2){width:20%}.fb-unified-receipts th:nth-child(3),.fb-unified-receipts th:nth-child(5){width:15%}.fb-unified-receipts th:nth-child(6){width:21%}.fb-unified-receipts td{overflow-wrap:anywhere}.financing-bank-workspace .fb-unified-receipts td small{font-size:12px}.fb-unified-receipts td strong{font-size:14px;font-variant-numeric:tabular-nums}.fb-unified-receipts td span{display:block;font-size:12px;margin:4px 0}.fb-unified-receipts td .actions{margin-top:8px}.fb-unified-receipts .btn{font-size:12px;min-height:36px;white-space:normal}.fb-receipt-state{font-weight:600}.fb-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.fb-receipt-batch{position:sticky;top:0;background:#fff;z-index:3;padding:6px 0}.fb-match-select input{width:18px;height:18px}.fb-receipt-dialog:focus-visible,.fb-more-actions summary:focus-visible{outline:2px solid #8175d9;outline-offset:2px}
@media(max-width:760px){#financingBankSummary dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#financingBankSummary dd{font-size:18px}.fb-inbox-tools{align-items:stretch}.fb-inbox-tools label{min-width:0;max-width:none}.fb-unified-receipts,.fb-unified-receipts tbody,.fb-unified-receipts tr,.fb-unified-receipts td{display:block;width:auto!important;min-width:0!important}.fb-unified-receipts thead{display:none}.fb-unified-receipts tr{padding:14px 0;border-bottom:1px solid #d8def0}.fb-unified-receipts td{padding:7px 10px;border:0!important;text-align:left!important}.fb-unified-receipts td::before{content:attr(data-label);display:block;color:#62748d;font-size:11px;margin-bottom:4px}.fb-unified-receipts td.num{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fb-unified-receipts td.num::before{flex-basis:100%}.fb-unified-receipts td.num strong{font-size:18px}.fb-unified-receipts td.num small{margin:0}.fb-unified-receipts .btn,.fb-more-actions summary,.fb-query-menu summary{min-height:44px}.fb-receipt-batch{position:static;padding-bottom:env(safe-area-inset-bottom,0px)}.financing-bank-workspace .table-wrap{overflow:visible}.fb-query-menu{max-width:100%}}
.fb-unified-receipts .fb-has-suggestion>td{background:#f5efff}.fb-unified-receipts .fb-receipt-state.fb-exact{background:#e5f5e9;color:#22603b}.fb-unified-receipts .fb-comparison-values{white-space:normal;overflow-wrap:anywhere}.fb-unified-receipts .fb-comparison-values>.btn{margin-top:6px;white-space:normal}.fb-receipt-dialog [data-receipt-decision]{padding:12px 0}.fb-receipt-dialog [data-receipt-decision] .actions{display:flex;gap:8px;flex-wrap:wrap}

/* Signed differences compare the available bank credit with the current destination balance. */
.fb-unified-receipts .fb-difference{display:grid;gap:4px;width:fit-content;max-width:100%;box-sizing:border-box;margin:8px 0 6px auto;padding:8px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#f1f5f9;color:#475569;text-align:right;line-height:1.3;white-space:normal}
.fb-unified-receipts .fb-difference>.fb-difference-label{margin:0;font-size:.75rem;font-weight:650}
.fb-unified-receipts .fb-difference>strong{font-size:1rem;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fb-unified-receipts .fb-difference--negative{background:#fff1f2;border-color:#fda4af;color:#9f1239}
.fb-unified-receipts .fb-difference--positive{background:#f0fdf4;border-color:#86efac;color:#166534}
.fb-unified-receipts td[data-label="Situação / ação"]>.actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.fb-unified-receipts td[data-label="Situação / ação"]>.actions>.btn{width:100%;justify-content:center;box-sizing:border-box;text-align:center}
@media(max-width:760px){.fb-unified-receipts .fb-difference{margin-left:0;text-align:left}}

.fb-expense-batch-dialog{width:min(1060px,95vw);max-height:92vh;border:1px solid #d8def0;border-radius:10px;padding:20px;overflow:auto}.fb-expense-batch-dialog header,.fb-expense-batch-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fb-expense-batch-dialog fieldset,.fb-expense-batch-dialog [data-expense-row],.fb-expense-batch-dialog [data-attempt]{padding:16px;margin:12px 0;border:1px solid #d8def0;border-radius:8px}.fb-expense-batch-dialog label{display:grid;gap:5px;margin:10px 0}.fb-expense-batch-dialog input,.fb-expense-batch-dialog select,.fb-expense-batch-dialog textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #b9c4d6;border-radius:6px;font:inherit}.fb-expense-batch-dialog .actions{display:flex;gap:8px;flex-wrap:wrap}.fb-expense-batch-dialog button{min-height:44px}.fb-expense-batch-dialog [data-rows]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fb-expense-batch-dialog article{overflow-wrap:anywhere}.fb-expense-batch-dialog button:focus-visible{outline:2px solid var(--primary,#5548ef);outline-offset:3px}.fb-direct-actions [data-bank-direct=DIRECT_DEBIT]{display:inline-flex;align-items:center;gap:6px}.fb-direct-actions svg{flex:none}@media(max-width:720px){.fb-expense-batch-dialog [data-rows]{grid-template-columns:1fr}.fb-expense-batch-dialog{padding:12px;width:95vw}.fb-expense-batch-dialog .actions{display:grid}}
