:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#22364a;background:#f3f6fa;font-size:16px;line-height:1.5;--green:#08775e;--navy:#122b3e;--line:#dce4eb}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #139e80;outline-offset:3px}aside{position:fixed;inset:0 auto 0 0;width:240px;background:var(--navy);color:#dce7ee;padding:32px 22px;display:flex;flex-direction:column}.brand{color:white;text-decoration:none;font-size:23px;font-weight:700;white-space:nowrap}.brand span{color:#79ddbf}.brand-caption{font-size:12px;letter-spacing:1.6px;color:#9bb6c7;margin-top:10px}nav{display:grid;gap:12px;margin-top:36px}nav button{border:0;border-radius:9px;background:transparent;color:#c0d1df;text-align:left;padding:15px;font-weight:600;font-size:16px}nav button span{display:block;font-size:13px;font-weight:400;color:#a1b8c9;margin-top:4px}nav button.active{background:#244a5b;color:#b5f4dd}nav button.active span{color:#b6dbd4}.aside-bottom{margin-top:auto;font-size:13px;line-height:1.9;color:#9fb6c7}main{margin-left:240px;padding:36px 3.5vw;max-width:1880px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#47766d}h1{font-size:32px;letter-spacing:-1px;line-height:1.25;margin:12px 0}h2{font-size:22px;letter-spacing:-.4px;line-height:1.35;margin:14px 0 22px}h3{font-size:17px}p{color:#627588}header p{margin:0;font-size:16px;max-width:730px}.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.primary,.secondary{border-radius:7px;padding:11px 17px;font-size:14px;font-weight:600;min-height:44px}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:#07634f}.secondary{background:white;border:1px solid #cbd8e2;color:#375269}.secondary:hover{background:#edf3f7}.full{width:100%;margin-top:17px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:0 4px 13px #19384b04}.source-choice{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:25px}.choice{padding:20px 24px;text-align:left;border:1px solid var(--line);border-radius:10px;background:white;color:#385269}.choice strong{display:block;font-size:17px}.choice span{display:block;font-size:14px;margin-top:7px;color:#6b7f90}.choice.selected{border:2px solid var(--green);background:#f3fbf8;padding:19px 23px}.setup-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two>div,.two>article{min-width:0}label{display:block;font-size:14px;font-weight:600;color:#425b6e;margin:16px 0 7px}input,select{width:100%;border:1px solid #cdd9e2;border-radius:6px;padding:11px;color:#213c50;background:white;font-size:16px;min-width:0}select{appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#425b6e 50%),linear-gradient(135deg,#425b6e 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.domain{display:flex;align-items:center;border:1px solid #cdd9e2;border-radius:6px}.domain input{border:0}.domain span{padding-right:12px;color:#677e90;font-size:14px}.help,small{font-size:13px;color:#657b8c;line-height:1.7}.explanatory ol{padding-left:22px;color:#345166}.explanatory li{padding-left:5px;margin:19px 0}.explanatory li p{margin:5px 0;font-size:14px}.notice,.success,.message{padding:15px 18px;border-radius:7px;background:#edf7f4;color:#286451;border:1px solid #c8e5da;font-size:14px;line-height:1.7}.message{margin-bottom:22px;background:#fff7e9;border-color:#efdab8;color:#7d541b;overflow-wrap:anywhere}.success p{font-size:14px}.step-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0}.step-actions>span{font-size:14px;color:#718698}.dropzone{display:flex;min-height:190px;border:1px dashed #a6c6bd;background:#f5fbf8;border-radius:8px;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:22px;text-align:center}.dropzone span{font-size:13px;font-weight:400}.dropzone input{background:white;font-size:14px}.upload{border:1px dashed #adbecb;border-radius:8px;padding:20px}.upload input{margin-top:12px;font-size:14px}.file-info{font-size:14px;overflow-wrap:anywhere}.validation{margin-top:24px}.validation h2{margin:0}.checkbox-label{display:flex;gap:12px;align-items:flex-start;font-size:14px;font-weight:400}.checkbox-label input{width:19px;height:19px;flex-shrink:0;margin-top:2px}.preview{margin-top:20px}.preview .table-wrap{max-height:270px}.preview h3{font-size:14px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#f3f7fa;color:#607689;text-align:left;font-size:13px;font-weight:600;padding:12px;white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid #e8eef2;vertical-align:top;overflow-wrap:anywhere;min-width:90px;max-width:350px}.sub{display:block;font-size:13px;color:#6c8092;margin-top:6px}.numeric{white-space:nowrap;font-variant-numeric:tabular-nums}.negative{color:#9c4137}.audit-toolbar,.results-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.audit-toolbar p{font-size:14px;margin:8px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.stats article{background:white;padding:21px;border:1px solid var(--line);border-radius:9px}.stats span{font-size:14px;color:#587183}.stats strong{display:block;font-size:27px;letter-spacing:-.6px;margin:10px 0}.stats small{font-size:12px}.decision{display:grid;grid-template-columns:1fr 2fr;gap:0 20px;margin-bottom:24px}.decision label{margin-top:0}.decision p{grid-column:1/-1;margin-bottom:0}.tabs{display:flex;gap:8px;border-bottom:1px solid #ccd9e3;margin:22px 0;overflow:auto}.tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:13px 16px;font-weight:600;color:#63798b;white-space:nowrap;font-size:14px}.tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}.filters{display:flex;align-items:end;gap:15px;flex-wrap:wrap;margin-bottom:10px}.filters>div{flex:1;min-width:160px}.filters label{margin-top:0}.results-head h2{margin:0}.results-head p{font-size:14px}.results-head label{font-size:13px;margin:0}.results-head select{margin-top:5px}.pending-grid{gap:22px}.pending-grid .table-wrap{max-height:490px;border:1px solid var(--line);border-radius:7px}.pending-grid table{font-size:14px}.pending-grid td{max-width:240px;min-width:45px}.pending-grid td:first-child,.pending-grid th:first-child{width:40px}.pending-grid input[type=checkbox]{width:19px;height:19px}.row-action{padding:7px 9px;min-height:34px;font-size:13px;margin-top:7px}.badge{display:inline-block;border-radius:5px;padding:5px 9px;font-size:14px;font-weight:600;background:#fff1da;color:#835b21}.badge.green{background:#def3e9;color:#1a7054}.selection-summary{display:flex;gap:18px;align-items:center;justify-content:space-between;background:#f2f7f7;border:1px solid #d8e7e3;padding:18px;border-radius:8px;margin-top:24px;flex-wrap:wrap}.selection-summary>div{font-size:14px;color:#557366}.selection-summary strong{display:block;font-size:18px;color:#244d40;margin-top:7px}.empty{text-align:center;padding:30px 16px;color:#728798;font-size:14px}footer{font-size:12px;color:#708599;margin-top:35px;line-height:1.8}dialog{max-width:540px;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:0 20px 80px #0003;color:#22364a}dialog::backdrop{background:#102b3d66}[hidden]{display:none!important}@media(min-width:1700px){main{padding:44px 50px}}@media(max-width:1150px){aside{width:205px;padding:26px 15px}.brand{font-size:20px}main{margin-left:205px;padding:28px 22px}.setup-grid,.import-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.pending-grid{grid-template-columns:1fr}h1{font-size:29px}}@media(max-width:700px){aside{position:static;width:100%;padding:18px 16px}.brand-caption,.aside-bottom{display:none}nav{display:flex;gap:3px;margin-top:16px;overflow:auto}nav button{padding:9px 11px;font-size:14px;white-space:nowrap}nav button span{display:none}main{margin:0;padding:24px 15px}header,.audit-toolbar,.results-head{align-items:flex-start;flex-direction:column}h1{font-size:28px}.source-choice,.decision{grid-template-columns:1fr}.card{padding:20px}.two{gap:12px}.stats{gap:10px}.stats article{padding:16px}.stats strong{font-size:24px}.step-actions{align-items:stretch;flex-direction:column}.decision p{grid-column:1}.decision>div{margin-bottom:14px}.selection-summary{gap:20px}.selection-summary button{width:100%}.header-actions{gap:7px}}
.pager{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;flex-wrap:wrap}.pager span{font-size:13px;color:#627588}
.title-results{margin-top:24px}details{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}summary{cursor:pointer;font-size:14px;color:#3b6570}.title-candidate{padding:10px 0;border-bottom:1px solid #e2eaef}.title-candidate:last-child{border:0}.title-results td{min-width:150px}.title-results td:nth-child(2){min-width:240px}.title-results select{font-size:14px}.title-results .badge{white-space:normal}dialog label{margin-top:13px}

.allocation-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(340px,2fr);gap:24px}.allocation-bank-list,.allocation-title-list{max-height:560px;overflow:auto;margin:12px 0}.allocation-bank{display:block;width:100%;text-align:left;margin-bottom:8px;border:1px solid #dce3e7;background:white;padding:14px;color:#173536}.allocation-bank.selected{border:2px solid #16836b;background:#effaf5}.allocation-title,.allocation-plan{border:1px solid #dce3e7;border-radius:8px;padding:14px;margin:10px 0}.allocation-title input[type=number]{max-width:180px}.allocation-title .checkbox-label{margin:0 0 10px}@media(max-width:1000px){.allocation-grid{grid-template-columns:1fr}}

.work-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.work-filters label{margin:0;font-size:12px}.work-filters input,.work-filters select{min-width:0;width:100%}.work-filters input{padding:9px}.allocation-grid>div{min-width:0}.allocation-title-list{max-height:500px}

.title-source{margin-bottom:16px}.title-source>summary{font-weight:600}.title-source h2,.title-source>.eyebrow{display:none}.filter-details{margin:12px 0;border:1px solid #e1e7e9;border-radius:8px;padding:12px}.filter-details summary{font-size:13px;font-weight:600;cursor:pointer}.settlement-context{padding:14px 16px;background:#f0f6f7;border-left:3px solid #397c6b;border-radius:6px;margin:12px 0}.settlement-context h3{font-size:14px;margin:0}.settlement-context p{font-size:12px;margin:8px 0}.decision{margin-top:24px;border-top:3px solid #dce7e4}.allocation-grid{grid-template-columns:minmax(260px,0.9fr) minmax(360px,1.5fr)}@media(max-width:1000px){.allocation-grid{grid-template-columns:1fr}}
.ledger-workbench{grid-template-columns:280px minmax(0,1fr);align-items:start;gap:20px}.ledger-workbench .allocation-bank{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.ledger-workbench .allocation-bank input{width:17px;height:17px;flex:0 0 17px;margin-top:3px}.ledger-workbench .allocation-bank-list{max-height:620px}.day-navigation{display:flex;gap:6px;margin:10px 0}.day-navigation select{min-width:0;flex:1;padding:9px}.day-navigation button{padding:8px 12px}.nearby-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;background:#f0f6f5;padding:12px;border-radius:8px}.nearby-toolbar label{margin:0;font-size:12px}.nearby-toolbar input{width:100px;padding:8px}.nearby-toolbar button{margin:0}.title-ledger>select{margin:10px 0;max-width:260px}.title-ledger-scroll{max-height:560px;margin-top:10px;overflow:auto}.title-ledger-table{min-width:1000px;font-size:12px}.title-ledger-table thead th{position:sticky;top:0;background:#edf3f5;z-index:1;white-space:nowrap}.title-ledger-table td{vertical-align:top;padding:12px 10px}.title-ledger-table tr.selected{background:#e7f1ff}.title-ledger-table td:first-child{width:44px}.title-ledger-table input[type=checkbox]{width:17px;height:17px}.title-ledger-table input[type=number]{width:115px;padding:7px}.title-ledger-table td:nth-child(3){white-space:nowrap}.title-ledger-table td:nth-child(5){min-width:220px}.allocation-selection{margin-top:16px}.allocation-selection>button.secondary{margin:4px}.allocation-selection details{padding:10px 0}.ofx-worklist .notice{margin-top:12px}.ofx-worklist h3,.title-ledger h3{font-size:16px}.ledger-workbench .checkbox-label{font-size:12px;margin:12px 0}@media(max-width:1450px){.ledger-workbench{grid-template-columns:1fr}.ledger-workbench .allocation-bank-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;max-height:230px}.ledger-workbench .allocation-bank{margin:0}.ofx-worklist .notice{padding:10px}.ofx-worklist .notice button{margin:3px}.title-ledger-table{min-width:960px}}
.ledger-workbench>section{min-width:0;max-width:100%}.title-ledger-scroll{width:100%;max-width:100%}.ledger-workbench input,.ledger-workbench select{max-width:100%}.ledger-workbench .notice{overflow-wrap:anywhere}

.matching-mode{background:#edf4f5;border:1px solid #d7e5e5;border-radius:8px;padding:16px;margin:0 0 20px}.matching-mode>select{font-weight:600;max-width:620px}.matching-mode .help{margin-bottom:0}

.task-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-choice{text-align:left;background:white;color:#244153;border:1px solid #cbd9df;padding:15px;font-weight:600;border-radius:8px}.task-choice.active{background:#e7f3ed;border:2px solid #367c66}.task-choice .sub{font-weight:400;margin-top:6px}.title-scope-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f5f8fa;padding:12px;margin:10px 0;border-radius:6px;font-size:12px}.title-scope-status p{width:100%;margin:0}.decision-shortcut{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}@media(max-width:650px){.task-choices{grid-template-columns:1fr}}

.audit-overview{margin:24px 0}.audit-overview h2{font-size:22px;margin:7px 0}.audit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.audit-action{text-align:left;background:#fff;border:1px solid #d5e1e3;border-radius:10px;color:#244153;padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}.audit-action:hover{border-color:#3c826a;background:#f4faf6}.audit-action>span{font-weight:600}.audit-action>strong{font-size:21px;color:#287359}.audit-action>small{font-size:12px;font-weight:400;color:#657c86}.tabs{flex-wrap:wrap}.tabs [data-tab=reversals] span{display:inline-block;background:#e4efea;border-radius:10px;padding:1px 7px;margin-left:4px}.audit-toolbar{border-bottom:1px solid #dae3e7;padding-bottom:14px}.stats{margin-bottom:12px}@media(max-width:850px){.audit-actions{grid-template-columns:1fr}}

.audit-metrics{margin:18px 0;border:1px solid #d9e2e6;background:#fff;border-radius:8px;padding:12px 16px}.audit-metrics>summary{font-size:13px;font-weight:600;cursor:pointer}.audit-metrics .stats{margin-top:16px}.audit-overview{padding:20px;background:#f0f5f4;border-radius:12px}.audit-overview .audit-actions{margin-bottom:0}.audit-overview .help{margin-bottom:0}
/* Auditoria: duas origens lado a lado e conferência sempre acessível. */
@media(min-width:1101px){.ledger-workbench{grid-template-columns:270px minmax(0,1fr)}.ledger-workbench .allocation-bank-list{display:block;max-height:640px}.ledger-workbench .allocation-bank{margin-bottom:8px}}
.allocation-selection{position:sticky;bottom:12px;z-index:5;background:#f3faf6;border:1px solid #b8d5c6;box-shadow:0 6px 22px #17353620;padding:18px;border-radius:12px}.allocation-selection>strong{display:block;font-size:18px;color:#173536}.allocation-selection>p{margin:8px 0}.allocation-bank:has(input:checked){border-color:#16836b;background:#effaf5}.title-ledger .filter-details{background:#f8fafb}.title-ledger-scroll{border:1px solid #dce5e9;border-radius:8px}.title-ledger-table{min-width:880px}.title-ledger-table td:nth-child(5){min-width:170px}.allocation-selection details{max-height:180px;overflow:auto}#staged-titles button+button{margin-top:8px}@media(max-width:700px){.allocation-selection{position:static}}
.allocation-selection>.primary{margin-top:10px}.allocation-selection>.selection-more{padding:8px 0 0;margin-top:4px;border:0}.selection-more>summary{font-size:12px;cursor:pointer}.selection-more .help{font-size:12px}
#decision-dialog{width:min(520px,calc(100vw - 32px));border:1px solid #dce5e9;border-radius:14px;padding:24px;box-shadow:0 20px 70px #10203040}#decision-dialog::backdrop{background:#142d3b66}#decision-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #cbd7df;border-radius:6px;padding:12px;font:inherit;resize:vertical}#decision-dialog .header-actions{justify-content:flex-end;margin-top:18px}

/* Mesas de auditoria: uma tarefa ativa e um contexto por operação. */
.task-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.task-choice{padding:14px;text-align:left;border:1px solid #cfdce0;background:white;color:#213d48;border-radius:8px;cursor:pointer}.task-choice.active{border:2px solid #397b65;background:#edf7f1}.matching-mode{padding:14px}.task-choice .sub{font-size:12px;font-weight:400;line-height:1.5;margin-top:8px}.title-ledger>.notice{margin:12px 0}.selection-more[open]{max-height:210px;overflow:auto}@media(max-width:1100px){.task-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.task-choices{grid-template-columns:1fr}}

.agent-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.agent-controls input{flex:1;min-width:220px}.agent-dialog{width:min(760px,calc(100vw - 32px));border:1px solid #dce5e9;border-radius:12px;padding:20px}.agent-dialog::backdrop{background:#142d3b66}.agent-dialog .card{margin:0 0 12px}
