.available-panel .grid-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.available-panel .grid-two>div{min-width:0}
.available-panel .bridge strong{display:block;margin-top:10px}
@media(max-width:1200px){.available-panel .grid-two{grid-template-columns:minmax(0,1fr)}}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20364b;background:#f3f7fb;font-synthesis:none;--primary:#087da3;--muted:#586e82;--line:#dce5ee;--accent:#dceffc;--red:#aa4a40}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button,a,input,select{outline-offset:4px}button{border:1px solid var(--line);border-radius:8px;background:white;color:var(--primary);padding:10px 14px;font-weight:600}button:hover{background:#eaf3fb}button.primary{background:var(--primary);color:white;border-color:var(--primary)}button.primary:hover{background:#096484}button.danger{color:var(--red)}input,select,textarea{padding:11px;border:1px solid #b8cbdc;border-radius:7px;background:white;color:#20364b;min-width:0}input[type=checkbox]{accent-color:var(--primary);width:16px;height:16px}label{font-size:13px;font-weight:600;display:grid;gap:7px}p{line-height:1.55}.muted{color:var(--muted)}.small,small{font-size:12px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1px;margin-bottom:8px;font-weight:650}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:14px}a{color:var(--primary)}.app-shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:#102e4b;color:#eef5fc;padding:32px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.nav-label{font-size:10px;letter-spacing:1.4px;color:#a8c5df;margin:20px 12px 12px;text-transform:uppercase}.sidebar nav{display:grid;gap:5px}.sidebar nav button{color:#d4e6f5;text-align:left;border:0;background:transparent;font-weight:500;padding:13px 14px}.sidebar nav button.active{background:#234f78;color:#ffffff}.sidebar nav button:hover{background:#1c456b}.nav-icon{display:inline-block;width:27px;color:#89d4f1}.sidebar-bottom{margin-top:auto;padding-top:28px;font-size:12px;color:#c4d7e9}.sidebar-bottom button{background:transparent;border:1px solid #587895;color:#e7f1fa;margin-top:15px}.sidebar-bottom .email{overflow-wrap:anywhere;font-size:11px;line-height:1.6}.workspace{min-width:0;padding:0 36px 40px}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;height:75px;border-bottom:1px solid var(--line);margin-bottom:30px;font-size:12px}.topbar .crumb{color:var(--muted)}.badge{border-radius:20px;background:#e2f0fb;color:#24567b;padding:6px 10px;font-size:11px;display:inline-block;font-weight:600}.badge.warning{background:#fcf0d8;color:#805d21}.badge.danger{background:#f8e5e1;color:#923a31}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.heading-row p{font-size:13px;color:var(--muted);margin-bottom:0}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#536f88;text-transform:uppercase;margin-bottom:12px}.filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.filters label{font-size:11px}.company-select{position:relative;min-width:205px}.company-select summary{padding:10px 13px;border:1px solid #b8cbdc;border-radius:7px;cursor:pointer;font-size:13px}.company-options{position:absolute;top:44px;left:0;background:white;z-index:10;border:1px solid var(--line);box-shadow:0 10px 30px #183a5915;border-radius:9px;padding:15px;min-width:230px}.company-options label{display:flex;align-items:center;margin:9px 0;font-size:13px}.notice{padding:11px 15px;border:1px solid #cadfee;background:#edf5fc;border-radius:8px;font-size:12px;line-height:1.6;margin-bottom:20px}.notice.warning{background:#fff7e7;border-color:#ebdcb7;color:#76571d}.notice.error{background:#fff0eb;border-color:#eec9bf;color:#933d30}.coverage{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:0 0 18px}.coverage span{border-left:2px solid #73aace;padding-left:8px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.metric{background:#fff;border:1px solid var(--line);border-radius:11px;padding:20px;text-align:left;min-height:140px;display:flex;flex-direction:column;align-items:start}.metric.featured{background:#123b62;color:#fff;border-color:#123b62}.metric .metric-label{font-size:12px;font-weight:500;opacity:.86}.metric .metric-value{font-size:26px;font-weight:650;letter-spacing:-.8px;margin:14px 0 10px;white-space:nowrap}.metric .metric-foot{font-size:10px;font-weight:400;color:var(--muted);line-height:1.6}.metric.featured .metric-foot{color:#c5dff3}.metric .metric-link{font-size:11px;margin-left:auto;opacity:.6}.grid-two{display:grid;grid-template-columns:1.45fr 1fr;gap:20px;margin-bottom:20px}.equal{grid-template-columns:1fr 1fr}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:18px}.panel-head h2{margin-bottom:5px}.panel-head p{font-size:11px;color:var(--muted);margin-bottom:0}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted);margin-bottom:8px}.legend span:before{content:'';width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;background:#087da3}.legend span:nth-child(2):before{background:#5b86c5}.legend span:nth-child(3):before{background:#173b68}.chart{width:100%;height:220px;display:block}.chart text{font-family:inherit;font-size:10px;fill:#586e82}.chart .grid{stroke:#e6edf5;stroke-width:1}.chart .revenue{stroke:#087da3;stroke-width:2.5;fill:none}.chart .expense{stroke:#5b86c5;stroke-width:2.5;fill:none}.chart .net{stroke:#173b68;stroke-width:2;fill:none;stroke-dasharray:5 4}.rank-row{display:grid;grid-template-columns:24px 1fr auto;gap:11px;padding:14px 0;border-bottom:1px solid #e9eff6;align-items:center}.rank-row:last-child{border:0}.rank-index{font-size:11px;color:#586e82}.rank-label{font-size:12px;line-height:1.4;font-weight:550}.rank-label small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.rank-value{text-align:right;font-size:13px;font-weight:650}.rank-value small{display:block;font-size:10px;color:var(--muted);margin-top:5px;font-weight:400}.link-button{border:0;padding:0;background:none;text-align:left;font-weight:inherit}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;font-weight:600;color:var(--muted);padding:12px 10px;background:#f6f9fd;white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #e9eff6;line-height:1.5}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}td small{display:block;color:var(--muted)}.table-wrap .wrap{min-width:170px;max-width:350px}.table-wrap td button{font-size:11px;padding:6px 9px}.switch{display:flex;align-items:center;gap:9px;font-size:12px}.stack{display:grid;gap:20px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-stack{display:grid;gap:17px;max-width:500px}.form-stack p{margin:0;font-size:12px;color:var(--muted)}.upload{border:1px dashed #88a9c6;background:#f6f9fd;padding:24px;border-radius:9px}.upload input{max-width:100%;font-size:12px}.empty{padding:55px 20px;text-align:center;color:var(--muted);font-size:14px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 10% 10%,#dceefa,transparent 60%),#f2f7fc}.login-card{width:420px;max-width:100%;background:white;border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 20px 70px #123b6214}.login-card .brand{color:var(--primary);margin-bottom:35px}.login-card h1{font-size:25px}.login-card>p{font-size:13px;color:var(--muted);margin-bottom:25px}.login-card form{display:grid;gap:18px}.login-card button{padding:13px}.login-foot{font-size:11px!important;margin-top:22px;margin-bottom:0!important}.error-text{color:var(--red);font-size:12px;line-height:1.5}.tab-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tab-row button.active{background:var(--primary);color:white}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;width:1000px;max-width:94vw;max-height:88vh;color:#20364b;box-shadow:0 20px 90px #102b3240}dialog::backdrop{background:#0b233c88}dialog .dialog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}dialog h2{margin-bottom:7px}dialog .close{border:0;font-size:20px;padding:0 8px}#toast{position:fixed;bottom:24px;right:24px;max-width:400px;background:#123b62;color:white;border-radius:10px;padding:15px 22px;box-shadow:0 5px 30px #0002;display:none;z-index:100}#toast.show{display:block}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:22px}.decision{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:9px;padding:18px 0;border-bottom:1px solid var(--line)}.decision h3{grid-column:1/-1;margin:0}.decision p{grid-column:1/-1;font-size:11px;margin:0;color:var(--muted)}.checks{max-height:420px;overflow:auto}.adjust-list{max-height:340px;overflow:auto;display:grid;gap:8px}.adjust-list label{font-size:12px;display:flex;align-items:center;font-weight:400}.bridge{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.bridge>div{background:#edf5fc;padding:20px;border-radius:8px}.bridge span{font-size:11px;color:var(--muted);display:block;margin-bottom:10px}.bridge strong{font-size:21px}.footer-note{margin:20px 0 0;font-size:10px;color:#586e82}.status-line{font-size:12px;color:var(--muted);margin-bottom:16px}.hidden{display:none!important}
@media(min-width:1600px){.workspace{padding-left:55px;padding-right:55px}.metric .metric-value{font-size:30px}}@media(max-width:1200px){.app-shell{grid-template-columns:200px 1fr}.workspace{padding:0 22px 30px}.cards{grid-template-columns:repeat(2,1fr)}.metric .metric-value{font-size:27px}.grid-two{grid-template-columns:1fr}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:16px}.brand{margin-bottom:12px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap;font-size:12px}.sidebar .nav-label,.sidebar-bottom{display:none}.workspace{padding:0 15px 25px}.topbar{height:55px;margin-bottom:23px;gap:8px}.heading-row{align-items:start;flex-direction:column;gap:12px}h1{font-size:26px}.filters{gap:10px;padding:13px}.filters label{flex:1;min-width:120px}.company-select{width:100%}.cards{gap:10px}.metric{padding:15px;min-height:130px}.metric .metric-value{font-size:20px;white-space:normal}.panel{padding:17px}.two-fields,.review-grid,.bridge{grid-template-columns:1fr}.decision{grid-template-columns:1fr}.login-card{padding:27px}.topbar .crumb{display:none}.chart{height:200px}}

.period-fields{display:flex;gap:12px;flex-wrap:wrap}.workflow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}.workflow button{font-size:13px}.decision label{margin:10px 0}#filters-pending{color:#85600b;font-size:13px}.actions{flex-wrap:wrap}.panel{min-width:0}.table-wrap{max-width:100%;overflow:auto}

.available-panel{margin-bottom:28px}.selection-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e2eaf2}#selected-adjustments{margin:20px 0}.adjust-list label{display:flex;gap:10px;align-items:flex-start}#adjust-pending{color:#85600b}.form-stack [data-upload-summary]{padding:12px;background:#edf5fc;border-radius:8px}@media(max-width:700px){.available-panel{margin-bottom:24px}.selection-item{align-items:flex-start;flex-wrap:wrap}.filters>label:first-child{flex-basis:100%}.company-select{min-width:0}.company-select summary{overflow-wrap:anywhere}.period-fields{max-width:100%}}

.adjusted-panel{margin-bottom:24px}.adjust-choice{border:0;padding:0;margin:24px 0;display:flex;flex-wrap:wrap;gap:16px 24px}.adjust-choice legend{font-weight:600;margin-bottom:16px}.adjust-choice label{display:flex;align-items:center;gap:8px}.adjust-choice input{width:auto}.adjust-choice-panel{display:grid;gap:16px}.adjust-choice-panel[hidden]{display:none}.adjust-choice-panel h3{margin:0}.adjust-choice-panel>button{justify-self:start}.adjust-choice-panel .adjust-list{margin:0}.adjust-list [role="status"]{margin:0 0 16px}.adjust-list label{padding:10px 0}.adjust-actions{display:flex;align-items:center;gap:14px;margin-top:20px}.adjusted-panel #selected-adjustments{display:grid;gap:10px;margin:24px 0}.adjusted-panel #selected-adjustments h3{margin:0 0 6px}@media(max-width:600px){.adjust-actions{flex-direction:column;align-items:stretch}.adjust-choice{gap:16px}.adjust-choice-panel>button{justify-self:stretch}.selection-item{align-items:flex-start}}

.composition-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 24px}.composition-summary{margin-bottom:24px}.composition-summary td:first-child{white-space:normal}.composition-summary tbody tr:last-child{font-weight:700;background:#edf5fc}.composition-table{max-height:55vh}.composition-table th{position:sticky;top:0;background:#f3f7fb;z-index:1}.composition-table tfoot th{position:static}.composition-pending{color:#85600b}.composition-actions [role=status]{font-size:12px}.composition-summary .link-button{text-align:left;white-space:normal}@media(max-width:600px){.composition-actions{align-items:stretch;flex-direction:column}.composition-summary th,.composition-summary td{padding:10px 8px}.composition-summary .number{font-size:12px}}

.cfo-view-notice{display:flex;gap:16px;align-items:center;justify-content:space-between}.cfo-view-notice p{margin:8px 0 0}.cfo-view-notice button{flex-shrink:0}@media(max-width:650px){.cfo-view-notice{flex-direction:column;align-items:stretch}.topbar{height:auto;min-height:55px;padding:12px 0}}


/* The original PNG stays unchanged. The viewport reveals the E and circular
   mark while excluding the other letters; no emblem pixels are redrawn. */
.brand{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:140px;max-width:100%;padding:12px;margin:0 auto 28px;border-radius:14px;background:#fff}
.brand-logo{position:relative;flex-shrink:0;width:100px;aspect-ratio:270/294;overflow:hidden;clip-path:polygon(0 0,100% 0,100% 29.59%,87.04% 29.59%,87.04% 77.21%,100% 77.21%,100% 100%,0 100%)}
.brand-logo img{position:absolute;display:block;width:370%;height:auto;max-width:none;left:-21.4815%;top:-52.0408%}
.login-card .brand{width:140px;padding:0;margin:0 auto 26px}
.login-card .brand-logo{width:112px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #087da3;outline-offset:3px}
.sidebar button:focus-visible{outline-color:#89d4f1}
button:disabled{opacity:1;background:#e8eef5;color:#52677c;border-color:#d0dce8}
button.primary:disabled,button.primary:disabled:hover{background:#d4e1ec;color:#435c73;border-color:#bfcede}
.sidebar nav button.active{box-shadow:inset 3px 0 #69c6e8}
.sidebar nav button.active:hover{background:#2a5b85}
.sidebar-bottom button:hover{background:#234f78}
.chart .expense{stroke-dasharray:9 4}
.chart .net{stroke-dasharray:3 4}
.legend span:nth-child(2):before{border-radius:1px}
.legend span:nth-child(3):before{border-radius:0;transform:rotate(45deg)}
input[type=radio]{accent-color:var(--primary)}
.badge.success{background:#e6f4eb;color:#25643d}
@media(max-width:760px){

 .sidebar nav{gap:6px;padding:4px 0}
 .login-card .brand-logo{width:100px}
 .topbar{height:auto;min-height:60px;padding:12px 0}
}


.sidebar{overflow-y:auto}
.login-shell{grid-template-columns:minmax(0,1fr)}
.login-card{width:min(420px,100%);min-width:0;justify-self:center}
.login-card form,.login-card label{min-width:0}
.login-card input{width:100%}

/* Sidebar-only treatment; the login logo remains unchanged. */
.sidebar-brand{display:flex;justify-content:center;align-items:center;flex:0 0 auto;width:64px;height:64px;margin:0 auto 10px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.sidebar-brand img{display:block;width:64px;height:64px;object-fit:contain}
.sidebar-brand+.nav-label{margin-top:8px}
@media(max-width:760px){.sidebar-brand{margin:0 auto 10px}}

/* Demonstrativos: same-date positions and independently signed result columns. */
.statements-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch;margin:24px 0}
.statement-panel{min-width:0;padding:20px 16px;margin-bottom:0;color:#123650}
.statement-panel h2{margin-top:0}
.statement-table{width:100%;table-layout:fixed;font-size:12px}
.statement-table th,.statement-table td{padding:11px 5px;overflow-wrap:anywhere;white-space:normal;vertical-align:top}
.statement-table th{font-weight:400;text-align:left;width:52%}
.statement-table .number{font-variant-numeric:tabular-nums;text-align:right}
.statement-table .link-button{color:inherit;font-weight:inherit;font-size:inherit;white-space:normal;text-align:inherit;line-height:1.45;max-width:100%}
.statement-dre .statement-table th{width:42%}
.statement-total{background:#eaf3fa;color:#123650}
.statement-total th,.statement-total td{font-weight:700;background:#eaf3fa;color:#123650}
.statement-table th,.statement-table td{color:#123650}
.statement-table .link-button:hover{background:transparent;text-decoration:underline;text-underline-offset:3px}
.statement-table .link-button:focus-visible{outline:2px solid #087da3;outline-offset:2px}
.statement-table .number{overflow-wrap:normal;word-break:normal}
.statement-table .number .link-button{overflow-wrap:normal;word-break:normal}
.statement-checks,.statement-issues{margin-top:24px}
.statement-checks td,.statement-issues td{vertical-align:top}
.statement-eliminations{margin:18px 0}
.statement-eliminations label{display:flex;align-items:center;gap:10px}
.statement-eliminations input{width:auto}
.statement-filters{gap:16px}
@media(max-width:1150px){.statements-grid{grid-template-columns:1fr}.statement-panel{padding:20px}.statement-table{font-size:14px}}
@media(max-width:600px){.statement-panel{padding:16px 10px}.statement-table{font-size:12px}.statement-table th,.statement-table td{padding:10px 4px}.statement-filters{display:flex;flex-direction:column;align-items:stretch}.statement-filters>label{width:100%}.statements-grid{gap:20px}}
.statement-companies{display:grid;gap:7px;font-size:13px;font-weight:600;min-width:0}
.mapping-actions{margin:0 0 24px;gap:14px;flex-wrap:wrap}.mapping-table td{vertical-align:top}.mapping-row-actions{display:grid;gap:10px;min-width:140px}.mapping-impact{margin:24px 0}.mapping-impact summary{font-weight:700;color:#123650}.mapping-table input[type=checkbox]{min-width:16px}.composition-table [data-reclassify-statement]{display:block;font-size:12px;margin-top:10px}.mapping-table .notice{margin:8px 0;padding:10px;font-size:12px}#statement-edit ul{padding-left:20px}@media(max-width:600px){.mapping-actions{flex-direction:column;align-items:stretch}.mapping-actions button{width:100%}}

.absorption-panel>label{display:block;max-width:36rem;margin:20px 0}.absorption-panel table{margin:20px 0}.absorption-panel th{font-weight:500}.absorption-panel tr:nth-last-child(-n+2){background:var(--blue-light,#eaf4fc);font-weight:700}#revenue-account-list .actions{margin:16px 0}.statement-eliminations+section{margin-bottom:24px}

.absorption-panel>.absorption-category-field{display:flex;flex-direction:column;gap:8px;width:100%;max-width:42rem;margin:24px 0 16px}.absorption-category-field select{display:block;width:100%;min-width:0;max-width:100%}.absorption-category-field+p{margin-top:0}.statement-eliminations{margin-bottom:24px}@media(max-width:600px){.absorption-panel>.absorption-category-field{margin-top:20px;max-width:100%}.absorption-category-field select{font-size:16px}}

/* Overview expense composition: same filtered totals, distinct percentage base. */
.overview-expenses{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:stretch;margin-bottom:24px}
.overview-expenses>.panel,.overview-expense-summary>.panel{margin-bottom:0}
.overview-expense-summary{margin-bottom:24px;gap:24px}
.expense-donut-panel{display:flex;flex-direction:column}
.expense-donut-body{display:flex;flex:1;align-items:center;align-content:center;justify-content:center;flex-wrap:wrap;gap:16px 20px;padding-block:12px}
.expense-ring{position:relative;width:220px;max-width:100%;flex:0 1 220px}
.expense-ring>svg{display:block;width:100%;height:auto;overflow:visible}
.expense-ring-total{position:absolute;inset:31% 19%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;pointer-events:none;color:#123650}
.expense-ring-total span{font-size:12px;line-height:1.25}.expense-ring-total strong{font-size:15px;line-height:1.3;max-width:100%;overflow-wrap:break-word;font-variant-numeric:tabular-nums}
.expense-slice{cursor:pointer;pointer-events:visiblePainted;transition:filter .15s}
.expense-slice:hover,.expense-slice:focus-visible{stroke:#123650;stroke-width:3;outline:none;filter:brightness(.85)}
.expense-donut-legend{list-style:none;margin:0;padding:0;flex:0 1 250px;min-width:0;display:grid;gap:5px}
.expense-donut-legend button{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:7px;color:#123650;font-weight:500;line-height:1.3}
.expense-donut-legend button:hover{background:#eaf3fa}.expense-donut-legend svg{flex:0 0 12px;margin-top:3px}
.expense-donut-legend small{display:block;margin-top:4px;font-size:12px;color:#3c576e;font-variant-numeric:tabular-nums}.expense-donut-legend small span{white-space:nowrap}
.overview-ebitda{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center}.overview-ebitda h2,.overview-ebitda p{margin:0}.overview-ebitda p{margin-top:8px;color:#52677c}.overview-ebitda-value{font-size:clamp(24px,2.3vw,36px);color:#123650;line-height:1.25;overflow-wrap:anywhere}.overview-ebitda button{white-space:normal;text-align:center;max-width:100%}
@media(max-width:1150px){.overview-expenses{grid-template-columns:minmax(0,1fr)}.expense-donut-body{justify-content:center}.expense-donut-legend{flex-basis:250px}}
@media(max-width:600px){.overview-expenses,.overview-expense-summary{gap:18px;margin-bottom:18px}.overview-expense-summary{grid-template-columns:minmax(0,1fr)}.expense-donut-body{flex-direction:column;justify-content:center}.expense-donut-legend{flex:none;width:100%;max-width:280px}.expense-donut-body .expense-ring{flex:none}.overview-expense-table .table-wrap{overflow:visible}.overview-expense-table table{min-width:0;width:100%}.overview-expense-table thead{display:none}.overview-expense-table tr{display:block;padding:12px 0;border-bottom:1px solid #dce6ef}.overview-expense-table td{display:block;border:0;padding:5px 0;white-space:normal}.overview-expense-table td.number{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:13px}.overview-expense-table td.number::before{content:attr(data-label);text-align:left;max-width:52%;font-size:12px;color:#52677c}.overview-ebitda{gap:14px}}

.revenue-category-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);align-items:center;gap:24px}
.revenue-category-table{width:100%;table-layout:fixed}.revenue-category-table th:first-child{width:44%;text-align:left}.revenue-category-table th:nth-child(2){width:33%}.revenue-category-table th:nth-child(3){width:23%}
.revenue-category-table th,.revenue-category-table td{padding:12px 8px}.revenue-category-table th.number,.revenue-category-table td.number{text-align:right;font-variant-numeric:tabular-nums}
.revenue-category-table .link-button{display:flex;align-items:baseline;gap:8px;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.revenue-category-table .link-button svg{flex-shrink:0}
.revenue-category-chart{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}.revenue-ring{width:260px;flex-basis:auto}.revenue-chart-tip{font-size:12px;color:#52677c;text-align:center;line-height:1.5;min-height:3em;margin:0;max-width:340px}
.revenue-slice{stroke:none}.revenue-slice:focus-visible{stroke:#123650;stroke-width:2}
@media(max-width:1000px){.revenue-category-layout{grid-template-columns:minmax(0,1fr)}.revenue-category-table{font-size:13px}.revenue-category-table th,.revenue-category-table td{padding:12px 6px}.revenue-category-chart{margin-top:8px}}
@media(max-width:450px){.revenue-category-table{font-size:12px}.revenue-category-table th:first-child{width:40%}.revenue-category-table th:nth-child(2){width:36%}.revenue-category-table th:nth-child(3){width:24%}.revenue-category-table .link-button{font-size:12px;gap:5px}.revenue-category-table th,.revenue-category-table td{padding:10px 3px;white-space:normal}.revenue-category-table td.number{overflow-wrap:normal}.revenue-category-panel .table-wrap{overflow:visible}}

/* Absorption presentation uses existing attributed values without recalculating results. */
.absorption-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.absorption-header h2{margin:0 0 10px}.absorption-context{margin:0;color:#52677c;font-size:13px;line-height:1.5}
.absorption-header .absorption-category-field{display:flex;flex-direction:column;gap:8px;flex:0 1 380px;min-width:240px;margin:0}.absorption-category-field span{font-size:13px;font-weight:600;color:#123650}
.absorption-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.absorption-metric{padding:16px;border:1px solid #dce6ef;border-radius:12px;color:#123650;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-width:0}.absorption-metric>span{font-size:13px;line-height:1.4}.absorption-metric>strong{font-size:clamp(19px,1.7vw,27px);line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.absorption-metric.featured{background:#eaf3fa;border-color:#b8d3e7}.absorption-metric.negative{background:#fff2f1;border-color:#e6b9b4;color:#9d302b}.absorption-metric.unavailable{background:#f3f5f7;color:#52677c}
.absorption-base{margin:18px 0 24px;font-size:13px;color:#52677c;line-height:1.6}.absorption-base strong{color:#123650}
.absorption-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.absorption-block{min-width:0}.absorption-block h3{font-size:16px;margin:0 0 14px;color:#123650}
.absorption-panel .absorption-table{width:100%;table-layout:fixed;margin:0;font-size:14px}.absorption-table th:first-child{width:61%}.absorption-panel .absorption-table th,.absorption-panel .absorption-table td{padding:12px 10px;color:#123650;white-space:normal;line-height:1.45;background:transparent;border-bottom:1px solid #e3ebf2}.absorption-panel .absorption-table th{font-weight:400;text-align:left}.absorption-panel .absorption-table .number{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.absorption-panel .absorption-table tr{background:transparent;font-weight:400}.absorption-panel .absorption-table thead th{font-size:12px;font-weight:600;color:#52677c}.absorption-panel .absorption-table tr.is-total,.absorption-panel .absorption-table tr.is-total th,.absorption-panel .absorption-table tr.is-total td{background:#eaf3fa;font-weight:700}
.absorption-footer{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.absorption-footer p{margin:0;max-width:620px;font-size:13px;line-height:1.6;color:#52677c}.absorption-footer button{flex-shrink:0;white-space:normal}
@media(max-width:1100px){.absorption-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.absorption-header{align-items:flex-start;flex-wrap:wrap}.absorption-header .absorption-category-field{flex-basis:100%;max-width:440px}.absorption-grid{grid-template-columns:1fr}.absorption-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.absorption-header{gap:18px}.absorption-header .absorption-category-field{min-width:0;width:100%;max-width:none}.absorption-metrics{grid-template-columns:1fr;gap:12px}.absorption-metric>strong{font-size:25px}.absorption-grid{gap:24px}.absorption-panel .absorption-table{font-size:13px}.absorption-panel .absorption-table th,.absorption-panel .absorption-table td{padding:11px 6px}.absorption-table th:first-child{width:57%}.absorption-footer{gap:16px}.absorption-footer button{width:100%;text-align:center}}

.currency-caption{margin:12px 0;color:#52677c}.filters label small{display:block;margin-top:6px;max-width:260px;line-height:1.4}.filters input[name="rate"]{min-width:0;width:100%;max-width:240px}

/* Rate explanation stays on its own row, without changing control alignment. */
.filters .currency-rate{width:180px}.filters .currency-rate-note{order:10;flex:0 0 100%;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}.filters>label>input,.filters>label>select,.filters .period-fields input,.filters .period-fields select,.filters .company-select summary{min-height:42px}.filters .currency-rate input{height:42px}@media(max-width:760px){.filters .currency-rate{width:auto;min-width:150px}.filters .currency-rate-note{gap:4px 10px}}

.revenue-account-field{grid-column:1/-1;display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:8px}.decision .revenue-account-field label{margin:0}.decision .revenue-account-field p{margin:0}.revenue-account-field button{justify-self:start}

.decision label:has(.new-accounting-definition){grid-template-columns:minmax(0,1fr) auto;align-content:start}.decision label:has(.new-accounting-definition) select{grid-column:1}.new-accounting-definition{font-size:12px;align-self:stretch}.form-stack [hidden]{display:none!important}@media(max-width:600px){.decision label:has(.new-accounting-definition){grid-template-columns:1fr}.new-accounting-definition{justify-self:start}}

.accounting-manager{margin:0 12px 16px 0}

/* Recolhimento altera somente o layout; filtros e consultas permanecem no estado. */
.app-shell{grid-template-columns:235px minmax(0,1fr);transition:grid-template-columns .18s ease}.app-shell.nav-compact{grid-template-columns:72px minmax(0,1fr)}
.sidebar{padding:14px 10px;z-index:30;overflow:visible}.sidebar nav button,.sidebar-bottom button{display:flex;align-items:center;gap:10px;position:relative;min-height:44px;width:100%;padding:11px 12px}.nav-icon{width:22px;height:22px;flex:0 0 22px;display:inline-flex}.nav-text{line-height:1.35}.nav-label{margin:14px 10px 8px}.sidebar-bottom{padding-top:16px}.sidebar-bottom button{margin-top:6px}.sidebar-brand{margin:8px auto}.sidebar button:focus-visible{outline:2px solid #89d4f1;outline-offset:2px}.sidebar #sidebar-toggle{display:flex;align-items:center;justify-content:center;min-height:44px;width:44px;margin:0 0 0 auto;background:transparent;color:#d4e6f5;border-color:#587895}.nav-tooltip{display:none;position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:#102e4b;color:#fff;border:1px solid #587895;padding:8px 12px;border-radius:6px;white-space:nowrap;z-index:60;pointer-events:none;font-size:12px}.nav-compact .nav-text,.nav-compact .nav-label,.nav-compact .account-description{display:none}.nav-compact .sidebar{padding:10px}.nav-compact .sidebar-brand,.nav-compact .sidebar-brand img{width:48px;height:48px}.nav-compact .sidebar nav{margin-top:12px}.nav-compact .sidebar nav button,.nav-compact .sidebar-bottom button{justify-content:center;padding:11px 0}.nav-compact .sidebar button:is(:hover,:focus-visible) .nav-tooltip{display:block}.nav-compact #sidebar-toggle{margin:0 auto}.workspace{width:100%;min-width:0}#mobile-menu,#nav-backdrop{display:none}
@media(max-height:760px) and (min-width:761px){.sidebar{height:auto;min-height:100vh;position:relative}}
@media(max-width:760px){.app-shell,.app-shell.nav-compact{display:block}.sidebar,.nav-compact .sidebar{display:flex;position:fixed;inset:0 auto 0 0;transform:translateX(-100%);transition:transform .18s ease;width:min(290px,85vw);height:100dvh;overflow-y:auto;padding:14px 12px;min-height:0;visibility:hidden}.nav-open .sidebar{transform:translateX(0);visibility:visible}.nav-compact .nav-text,.nav-compact .account-description{display:block}.nav-compact .nav-label{display:block}.nav-compact .sidebar nav button,.nav-compact .sidebar-bottom button{justify-content:flex-start;padding:11px 12px}.nav-compact .sidebar-brand,.nav-compact .sidebar-brand img{width:64px;height:64px}.nav-compact #sidebar-toggle{margin-left:auto;margin-right:0}.nav-tooltip{display:none!important}.workspace{margin:0!important;padding:0 16px 28px}.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:12px;padding:12px 0}.topbar .actions{flex-wrap:wrap;gap:8px;max-width:100%}.topbar select{max-width:100%}#mobile-menu{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}#nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0b233c88;border:0;border-radius:0;z-index:25}.sidebar nav{display:grid!important}.sidebar-bottom{display:block!important}}
@media(prefers-reduced-motion:reduce){.app-shell,.sidebar{transition:none!important}}

@media(min-width:761px){.sidebar{position:sticky;top:0;height:100vh;min-height:0;overflow-y:auto;scrollbar-width:thin}.sidebar #sidebar-toggle{position:sticky;top:0;z-index:2;background:#102e4b;flex-shrink:0}.nav-tooltip{position:fixed}.sidebar nav{flex-shrink:0}.sidebar-bottom{flex-shrink:0}}

/* Disponível: quatro posições no mesmo plano, conforme a largura útil do painel. */
.available-panel{container-type:inline-size}.available-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 24px;align-items:stretch}.available-cards .metric{width:100%;height:100%;min-width:0;min-height:158px;padding:20px;justify-content:flex-start}.available-cards .available-component{background:#edf5fc;border-color:#dbe9f5;color:#20364b}.available-cards .available-component:hover{background:#e1effa}.available-cards .metric-label{min-height:34px;line-height:1.4}.available-cards .metric-value{font-size:clamp(20px,2.25cqi,30px);line-height:1.2;white-space:normal;overflow-wrap:anywhere;margin:10px 0 14px;max-width:100%;font-variant-numeric:tabular-nums}.available-cards .metric-foot{margin-top:auto}.available-cards .featured:hover{background:#194b76}.available-cards .metric:focus-visible{outline:3px solid #087da3;outline-offset:3px}
@container(max-width:900px){.available-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.available-cards .metric-value{font-size:26px}}
@container(max-width:430px){.available-cards{grid-template-columns:minmax(0,1fr);gap:12px}.available-cards .metric{min-height:134px;padding:18px}.available-cards .metric-label{min-height:0}.available-cards .metric-value{font-size:26px}}

/* Planning is isolated from realized data. */
.budget-page{min-width:0}.budget-toolbar,.budget-company-versions{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:16px 0 24px}.budget-toolbar label,.budget-company-versions label,.budget-form label{display:flex;flex-direction:column;gap:8px}.budget-toolbar input,.budget-toolbar select{max-width:100%;min-height:40px}.budget-company-versions label{flex:1 1 230px}.budget-form{display:grid;gap:18px}.budget-form #forecast-fields:not([hidden]){display:grid;gap:18px}.budget-grid{max-height:65vh;overflow:auto}.budget-grid table{min-width:1800px}.budget-grid th:first-child{min-width:230px;text-align:left;position:sticky;left:0;background:#fff;z-index:1}.budget-grid small{display:block;font-weight:400}.budget-grid input{width:105px;min-width:85px;text-align:right;background:#fff;border:1px solid #bdd5e9;padding:8px}.budget-grid input[readonly]{background:#edf3f8;color:#456}.budget-subtotal th,.budget-subtotal td{background:#eaf4ff!important;font-weight:700;color:#153e63}.budget-page td,.budget-page th:not(:first-child){text-align:right}.budget-page th:first-child{text-align:left}.budget-page .panel{margin-bottom:24px;min-width:0}.budget-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.budget-cards strong{display:block;font-size:1.35rem}.budget-chart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.budget-chart-month{min-width:0}.budget-bar{margin:6px 0;padding:7px 10px;color:#123b60;border-radius:4px;background:linear-gradient(to right,#dbeeff var(--size),#f5f8fc var(--size));font-size:12px;overflow-wrap:anywhere}.budget-bar.actual{background:linear-gradient(to right,#bfd8ed var(--size),#f5f8fc var(--size));font-weight:600}.budget-bottom{position:sticky;bottom:0;background:#fff;padding:16px 0;z-index:2}.budget-page summary{cursor:pointer}.budget-page td details{text-align:left}.budget-page button:focus-visible,.budget-page input:focus-visible,.budget-page select:focus-visible{outline:3px solid #078db8;outline-offset:2px}@media(max-width:760px){.budget-cards,.budget-chart{grid-template-columns:1fr}.budget-toolbar{align-items:stretch}.budget-toolbar label{flex:1 1 150px}.budget-grid table{min-width:1600px}.budget-grid th:first-child{min-width:160px;max-width:180px}.budget-bottom{position:static}.budget-company-versions{display:grid;grid-template-columns:1fr}}

.budget-page td{white-space:nowrap}.budget-page td details,.budget-page th{white-space:normal}.budget-page .table-wrap{max-width:100%;overflow:auto}.budget-page .table-wrap table{min-width:700px}.budget-page .budget-grid table{min-width:1800px}.budget-page th{min-width:140px}

.budget-monthly{min-width:0}.budget-month-picker{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #cadcec;border-radius:8px;padding:14px}.budget-month-picker label{display:flex;gap:6px;align-items:center}.budget-month-picker input,.budget-sheet input[type=checkbox]{width:16px;min-height:16px}.budget-sheet{max-height:65vh;overflow:auto;position:relative;border:1px solid #d5e3f1;border-radius:8px}.budget-sheet table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.budget-sheet th,.budget-sheet td{min-width:120px;padding:10px;white-space:nowrap}.budget-sheet .account-sticky{position:sticky;left:0;width:250px;min-width:250px;max-width:250px;white-space:normal;background:#fff;z-index:2;box-shadow:2px 0 0 #d5e3f1}.budget-sheet thead th{position:sticky;top:0;background:#edf5ff;z-index:3;height:44px}.budget-sheet thead tr:nth-child(2) th{top:44px}.budget-sheet thead .account-sticky{z-index:4}.budget-sheet small{display:block;font-size:11px;font-weight:400}.budget-sheet .budget-calculated{background:#f5f8fc}.budget-sheet .budget-planned-input{width:115px;min-width:100px;text-align:right;background:white;border:1px solid #9abfdc}.budget-sheet .budget-planned-input[readonly]{background:#e9eff5}.budget-sheet [hidden]{display:none}@media(max-width:760px){.budget-sheet .account-sticky{min-width:160px;width:160px;max-width:160px}.budget-sheet th,.budget-sheet td{min-width:110px}.budget-sheet thead{display:table-header-group}.budget-sheet tr{display:table-row}.budget-sheet td,.budget-sheet th{display:table-cell}.budget-sheet thead th{white-space:nowrap}}

.budget-toolbar>label{min-width:0;max-width:100%}.budget-toolbar select{min-width:0;width:100%}.budget-bottom button{max-width:100%;white-space:normal}

/* Separadores dos blocos mensais, incluindo cabeçalhos, contas e totais. */
.budget-sheet .budget-month-end{border-right:1px solid #a8bdcf}
.budget-page .budget-sheet th.budget-month-title{text-align:center;vertical-align:middle}
.budget-monthly > .budget-month-picker{margin-bottom:16px}

.budget-inline,.budget-companies label{display:flex;align-items:center;gap:8px;margin:12px 0}.budget-inline input,.budget-companies input{width:16px;min-height:16px}.budget-companies{min-width:220px;padding:12px;border:1px solid #cadcec;border-radius:8px}.budget-page [hidden]{display:none!important}.budget-page td button{margin:4px}.budget-page .badge{white-space:nowrap}

.budget-form [hidden]{display:none!important}.budget-help{margin:12px 0 20px}.budget-help summary{color:#216185}.budget-companies summary{cursor:pointer}.budget-page .budget-toolbar{align-items:end}
/* Consistent action spacing before adjacent content, without changing top navigation. */
#content .actions + :is(.table-wrap,table,.panel,.filters,.two-fields,form),
dialog .actions + :is(.table-wrap,table,.panel,.filters,.two-fields,form){margin-top:20px}
#content .panel > .actions,dialog .mapping-actions{gap:12px 14px;align-items:center;flex-wrap:wrap}
@media(max-width:600px){#content .panel > .actions > button{max-width:100%;white-space:normal}}

/* Dedicated planning editor: controls remain outside the scrollable sheet. */
.budget-editor-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.budget-editor-header h2{margin:0 0 8px}.budget-editor-header p{margin:6px 0}.budget-editor-header .budget-toolbar{margin:0}.budget-monthly{max-height:none;overflow:visible}.budget-grid-tools{gap:12px!important;margin:0 0 12px!important}.budget-grid-tools details{position:relative}.budget-grid-tools summary,.budget-more>summary{padding:10px 14px;border:1px solid #c5d9e8;border-radius:6px}.budget-reference-line{font-size:12px;margin:8px 0 16px}.budget-reference-line button{padding:3px 8px}.budget-more .budget-toolbar{margin-bottom:0}.budget-bottom{position:static;padding:16px 0 0;margin-bottom:0}.budget-sheet .budget-planned-input:not([readonly]){background:#f0f8ff;min-width:120px;width:130px}.budget-monthly input[type=checkbox]{width:16px;min-width:16px}.budget-monthly [hidden]{display:none!important}#budget-fill-accounts{max-height:230px;overflow:auto}#budget-fill-accounts label{display:flex;flex-direction:row;gap:8px;margin:8px 0}#budget-fill-accounts input{width:18px}.budget-editor-header #budget-save-state{font-size:12px;color:#375d7e}@media(max-width:760px){.budget-editor-header{align-items:stretch}.budget-editor-header>div{width:100%}.budget-grid-tools>label{flex:1 1 180px}.budget-sheet{max-height:62vh}}

#budget-editor-tools .budget-grid-tools{display:contents}.budget-grid-tools>span{font-size:12px}.budget-editor-header h2{font-size:20px}#budget-dirty{font-size:12px;margin:8px 0 14px}.budget-page .budget-editor-header+.budget-toolbar{margin-bottom:12px}
